/* 1. Header Aesthetics */
.navbar {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05) !important;
    transition: all 0.3s ease;
}
.crav-icon-btn, .crav-cart-btn {
    transition: transform 0.2s ease, filter 0.2s ease !important;
}
.crav-icon-btn:hover, .crav-cart-btn:hover {
    transform: translateY(-2px) scale(1.1) !important;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}
.crav-shop-btn {
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(239, 111, 46, 0.2) !important;
}
.crav-shop-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(239, 111, 46, 0.4) !important;
}

/* 2. Product Showcase Enhancements */
#product-showcase {
    position: relative;
    overflow: visible;
    background: #ffffff !important;
}

.showcase-product-img {
    transform: scale(0.8) translateY(30px) rotate(-5deg) !important;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 5;
    position: relative;
}
.showcase-slide.active .showcase-product-img {
    transform: scale(1.4) translateY(0) rotate(0deg) !important;
    opacity: 1;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.25));
}

/* 3. Editorial About Section */
.about-section {
    background: radial-gradient(circle at top right, #ffffff 0%, var(--beige) 70%) !important;
    position: relative;
}
.about-editorial-layout {
    display: flex;
    align-items: center;
    gap: 5vw;
    max-width: 1200px;
    margin: 0 auto;
}
.about-text-content {
    flex: 1;
    text-align: left;
}
.tamil-heading {
    font-family: 'Tiro Tamil', serif;
    font-size: clamp(28px, 3vw, 42px);
    color: var(--red);
    margin-bottom: 15px;
    font-weight: 400;
}
.english-heading {
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--black);
    font-size: clamp(36px, 4.5vw, 64px);
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 25px;
}
.title-divider {
    width: 60px;
    height: 4px;
    background: var(--red);
    margin-bottom: 25px;
}
.about-desc {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 20px);
    color: #444;
    line-height: 1.7;
    margin-bottom: 30px;
}
.about-visual-collage {
    flex: 1.2;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.collage-item {
    position: absolute;
    border-radius: 2vw;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    transition: transform 0.4s ease;
}
.collage-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.item-main {
    width: 60%;
    height: 80%;
    z-index: 2;
    left: 20%;
    top: 10%;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.item-1 {
    width: 45%;
    height: 50%;
    z-index: 3;
    left: 0;
    bottom: 5%;
}
.item-3 {
    width: 40%;
    height: 45%;
    z-index: 1;
    right: -5%;
    top: -25%;
}
.collage-item:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

/* Mobile: reorder and gridify the gallery */
@media (max-width: 991px) {
    .about-editorial-layout {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    /* Allow text content children to be ordered independently */
    .about-text-content {
        display: contents;
    }
    
    .about-text-content .tamil-heading { order: 1; margin-top: 20px; }
    .about-text-content .english-heading { order: 2; }
    .about-text-content .title-divider { order: 3; margin-left: auto; margin-right: auto; }
    .about-text-content .about-desc { order: 4; }
    
    /* Images container aligned below text */
    .about-visual-collage {
        order: 5;
        width: 100%;
        height: auto !important;
        position: relative;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 15px;
        margin: 20px 0;
    }
    
    /* KNOW MORE button at the bottom */
    .about-text-content .shop-flavor-btn {
        order: 6;
        margin-top: 10px !important;
        margin-bottom: 20px !important;
    }
    
    /* Reset absolute positioning for collage items */
    .about-visual-collage .collage-item {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        z-index: 1 !important;
        box-shadow: none;
    }
    
    /* Make all images the same size with exact requested styles */
    .about-visual-collage .collage-item img {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 4/3;
        border-radius: 12px;
        object-fit: cover;
        display: block;
    }
}

.showcase-circle {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: var(--circle-color, var(--red));
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulseCircle 4s infinite alternate ease-in-out, rotateCircle 20s infinite linear !important;
    opacity: 0.9 !important;
    box-shadow: inset 0 0 50px rgba(255,255,255,0.3), 0 10px 40px rgba(239, 111, 46, 0.4) !important;
    border: 2px dashed rgba(255,255,255,0.5) !important;
}

@media (max-width: 991px) {
    .showcase-circle {
        width: 280px;
        height: 280px;
    }
    /* Arrows positioned lower to align with the middle-lower section of the image */
    .showcase-nav-arrows {
        position: absolute !important;
        top: 260px !important;
        left: 0 !important;
        right: 0 !important;
        transform: translateY(-50%) !important;
        padding: 0 5px !important;
        display: flex !important;
        justify-content: space-between !important;
        width: 100% !important;
        z-index: 100 !important;
        margin: 0 !important;
        pointer-events: none !important;
    }
    /* Reduced arrow size for mobile */
    .showcase-arrow {
        position: relative !important;
        transform: none !important;
        pointer-events: auto !important;
        width: 40px !important;
        height: 40px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    .showcase-arrow svg {
        width: 20px !important;
        height: 20px !important;
    }
}
@keyframes pulseCircle {
    0% { transform: scale(0.95); }
    100% { transform: scale(1.05); }
}
@keyframes rotateCircle {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 3. About Section Improvements */
.about-photo-grid {
    display: flex !important;
    gap: 2vw !important;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}
.about-photo-card {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease !important;
    animation: floatCard 6s infinite ease-in-out;
    border-radius: 2vw !important;
    overflow: hidden;
}
.about-photo-card:nth-child(1) { animation-delay: 0s; transform: translateY(20px); z-index: 1; }
.about-photo-card:nth-child(2) { animation-delay: 1.5s; transform: scale(1.1) translateY(-10px); z-index: 2; box-shadow: 0 20px 40px rgba(0,0,0,0.2); }
.about-photo-card:nth-child(3) { animation-delay: 3s; transform: translateY(30px); z-index: 1; }

.about-photo-card:hover {
    transform: scale(1.15) translateY(-15px) !important;
    box-shadow: 0 30px 60px rgba(239, 111, 46, 0.3) !important;
    z-index: 10 !important;
}
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 4. New Showcase Split Layout */
.showcase-split-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5vw;
    width: 75%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2vw 0;
}
.showcase-content-left {
    flex: 1;
    text-align: left;
    padding-left: 2vw;
}
/* Staggered entrance animations */
.showcase-content-left > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.showcase-slide.active .showcase-content-left > * {
    opacity: 1;
    transform: translateY(0);
}
.showcase-slide.active .showcase-content-left .showcase-counter { transition-delay: 0.1s; }
.showcase-slide.active .showcase-content-left .showcase-title { transition-delay: 0.2s; }
.showcase-slide.active .showcase-content-left .showcase-desc { transition-delay: 0.3s; }
.showcase-slide.active .showcase-content-left .showcase-action-group { transition-delay: 0.4s; }

.showcase-visual-right {
    flex: 1.2;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.showcase-counter {
    font-family: var(--font-display);
    color: var(--red);
    font-size: 1.2rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: block;
    position: relative;
}
.showcase-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 800;
    color: var(--black);
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.03);
}
.showcase-desc {
    font-family: var(--font-body);
    font-size: clamp(16px, 1.2vw, 20px);
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 90%;
}
/* Desktop: Action Group Layout */
.showcase-action-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
}
.showcase-action-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 100%;
    flex-wrap: nowrap;
}
.showcase-action-group .showcase-shop-btn {
    align-self: center !important;
    margin: 15px auto 0 !important; /* Override default margin */
}

.showcase-price-box {
    display: inline-flex;
    align-items: baseline; /* Align baseline for symbol and value */
    background: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(239, 111, 46, 0.15);
    border: 1px solid rgba(239, 111, 46, 0.1);
}
.price-symbol {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--red);
    margin-right: 6px;
    font-family: var(--font-display); /* Same font family as value */
}
.price-value {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--black);
    font-family: var(--font-display);
}
.shop-flavor-btn {
    display: inline-block;
    padding: 18px 45px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--red) 0%, #b21222 100%);
    color: #fff !important;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(178, 18, 34, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.shop-flavor-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(178, 18, 34, 0.5);
}

@media (max-width: 991px) {
    .showcase-split-layout {
        flex-direction: column-reverse;
        text-align: center;
        gap: 20px;
        width: 100%;
        padding: 20px 15px;
    }
    .showcase-visual-right {
        min-height: 300px;
        margin-top: 30px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .showcase-product-img {
        width: 260px !important;
        height: 260px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    .showcase-slide.active .showcase-product-img {
        transform: scale(1.05) translateY(0) rotate(0deg) !important;
    }
    .showcase-content-left {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .showcase-desc {
        max-width: 100%;
    }
    /* Mobile: Action layout */
    .showcase-action-group {
        align-items: center;
        gap: 15px;
    }
    .showcase-action-row {
        justify-content: space-between;
        gap: 15px;
    }
    .showcase-title {
        font-size: clamp(24px, 6vw, 36px);
    }
    .price-value, .price-symbol {
        font-size: 2.2rem;
    }
    .shop-flavor-btn {
        padding: 15px 30px;
        font-size: 1rem;
    }
}
@media (max-width: 576px) {
    .showcase-visual-right {
        min-height: 250px;
        margin-top: 15px;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .showcase-circle {
        width: 220px !important;
        height: 220px !important;
    }
    .showcase-product-img {
        width: 205px !important;
        height: 205px !important;
        object-fit: cover !important;
        border-radius: 50% !important;
    }
    .showcase-slide.active .showcase-product-img {
        transform: scale(1.05) translateY(0) rotate(0deg) !important;
    }
    .showcase-nav-arrows {
        top: 220px !important;
    }
    .showcase-arrow {
        width: 32px !important;
        height: 32px !important;
    }
    .showcase-arrow svg {
        width: 16px !important;
        height: 16px !important;
    }
}

/* =============================================
   MOBILE VIEW - SHOWCASE & HERO FIXES
   ============================================= */
@media (max-width: 768px) {
    /* Stack the side-by-side layout into a single column */
    .showcase-slide {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 20px;
        min-height: auto;
    }

    /* Make both sides take full width */
    .showcase-content-left,
    .showcase-visual-right {
        width: 100% !important;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    /* Shrink the massive desktop headings */
    .showcase-title {
        font-size: clamp(32px, 8vw, 42px) !important;
        line-height: 1.2;
        margin-bottom: 15px;
    }

    .showcase-desc {
        font-size: 16px;
        margin-bottom: 25px;
        padding: 0 10px;
    }

    /* Scale down the product image */
    .showcase-product-img {
        width: 80vw !important;
        max-width: 300px;
        height: auto !important;
        margin-top: 30px;
    }

    /* Center buttons and stack vertically */
    .showcase-action-group {
        justify-content: center !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100%;
        flex-wrap: wrap;
        gap: 15px;
    }
}

/* =============================================
   PREMIUM CTA BUTTON DESIGN
   ============================================= */
.shop-flavor-btn,
.showcase-shop-btn,
.btn-premium {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 45px !important;
    font-family: var(--font-body) !important;
    font-size: clamp(14px, 1.2vw, 18px) !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.12em !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--red) 0%, #9e101b 100%) !important;
    border: 2px solid transparent !important;
    border-radius: 50px !important;
    box-shadow: 0 10px 25px rgba(178, 18, 34, 0.4), inset 0 2px 5px rgba(255,255,255,0.2) !important;
    text-decoration: none !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    z-index: 1;
}

.shop-flavor-btn::before,
.showcase-shop-btn::before,
.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    z-index: -1;
}

.shop-flavor-btn:hover,
.showcase-shop-btn:hover,
.btn-premium:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow: 0 15px 35px rgba(178, 18, 34, 0.6), inset 0 2px 5px rgba(255,255,255,0.3) !important;
    background: linear-gradient(135deg, #e3182b 0%, #8a0c18 100%) !important;
    color: #ffffff !important;
}

.shop-flavor-btn:hover::before,
.showcase-shop-btn:hover::before,
.btn-premium:hover::before {
    left: 150%;
}
