/* =================================
   GNAM GNAM BOUILLIE - CUSTOM STYLES
   ================================= */

/* === GLOBAL & RESET === */
* {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* === HERO PATTERN === */
.hero-pattern {
    background-image:
        radial-gradient(circle at 20% 50%, rgba(47, 133, 90, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(26, 54, 93, 0.1) 0%, transparent 50%);
}

/* === CTA BUTTON === */
.cta-button {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* === PILLAR CARDS === */
.pillar-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(26, 54, 93, 0.15);
    border-color: rgba(47, 133, 90, 0.2);
}

.icon-wrapper {
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

/* === BESTSELLER CARD === */
.bestseller-card {
    background: white;
    padding: 3rem;
    border-radius: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.bestseller-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(47, 133, 90, 0.03) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.product-image-wrapper {
    position: relative;
}

.product-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, transparent 0%, rgba(26, 54, 93, 0.1) 100%);
    pointer-events: none;
}

/* === PRODUCT CARDS === */
.product-card {
    background: white;
    padding: 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(26, 54, 93, 0.2);
}

/* === TESTIMONIAL CARDS === */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1.25rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-left: 4px solid #2F855A;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* === CHATBOT PREMIUM === */
.bot-message {
    align-self: flex-start;
    background: white;
    color: #1F2937;
    border-radius: 20px 20px 20px 5px;
    padding: 12px 16px;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.user-message {
    align-self: flex-end;
    background: #1A365D;
    color: white;
    border-radius: 20px 20px 5px 20px;
    padding: 12px 16px;
    max-width: 85%;
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.2);
    font-size: 0.9rem;
    line-height: 1.5;
}

#chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

#chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(26, 54, 93, 0.1);
    border-radius: 10px;
}

#chatbot-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(26, 54, 93, 0.2);
}

.typing-indicator {
    padding: 12px 16px;
    background: white;
    border-radius: 20px 20px 20px 5px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.typing-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #1A365D;
    border-radius: 50%;
    margin-right: 3px;
    animation: typing 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

@keyframes bounce-gentle {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === NAVBAR SCROLL EFFECT === */
.navbar-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* === PRODUCT CARDS BUTTONS === */
.btn-more,
.btn-buy {
    cursor: pointer;
}

/* === MODAL STYLES === */
#productModal {
    transition: opacity 0.3s ease;
    z-index: 100;
    /* Primary modal index */
}

.price-container {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    white-space: nowrap;
}

#productModal.hidden {
    display: none;
    pointer-events: none;
}

#productModal:not(.hidden) {
    display: block;
}

#productModal .bg-white {
    max-height: 90vh;
    overflow-y: auto;
}

/* Ripple effect for CTA */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* === RESPONSIVE ADJUSTMENTS === */
@media (max-width: 768px) {
    .hero-pattern {
        background-size: cover;
    }

    .bestseller-card {
        padding: 1.5rem;
    }

    .whatsapp-button {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 55px;
        height: 55px;
    }
}

/* === SMOOTH GRADIENT OVERLAYS === */
.gradient-overlay {
    background: linear-gradient(135deg,
            rgba(26, 54, 93, 0.9) 0%,
            rgba(47, 133, 90, 0.8) 100%);
}

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #F7FAFC;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1A365D 0%, #2F855A 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #2F855A 0%, #1A365D 100%);
}

/* === SELECTION COLOR === */
::selection {
    background: rgba(47, 133, 90, 0.3);
    color: #1A365D;
}

::-moz-selection {
    background: rgba(47, 133, 90, 0.3);
    color: #1A365D;
}