@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
    
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
}

/* ==========================================================================
   1. CUSTOM FONTS & GLOBAL STRUCTURAL BASIS
   ========================================================================== */
@font-face {
    font-family: 'Gendisa Demo';
    src: url('/assets/fonts/GendisaDemoRegular.ttf') format('truetype'),
         url('../fonts/GendisaDemoRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    background: #ffffff;
    height: 100vh;
}

.ai-trigger-pill {
    display: none;
}

/* Mobile top icons — hidden on desktop */
.mobile-top-icons {
    display: none;
}

.app-layout {
    display: flex;
    height: 100vh;
    flex-direction: row; /* Default side-by-side for desktop */
}

.ai-mobile-top-icons {
    display: none;
}

/* ==========================================================================
   2. SINGLE UNIFIED MOBILE MEDIA QUERY ENGINE (MAX-WIDTH: 768px)
   ========================================================================== */
@media screen and (max-width: 768px) {
    body {
        height: auto !important;
    }
    
    .app-layout {
        display: flex;
        flex-direction: column !important;
        position: relative; 
        padding-top: 0;
        height: auto !important;
    }

    /* FIXED MOBILE NAVBAR HEADER */
    .top-bar {
        position: fixed !important;
        height: 70px !important;
        padding: 0 16px !important;
        background-color: #ffffff !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1001 !important;
        box-shadow: none !important;
        border: none !important;
    }

    /* Title stacked 3 lines, compact size on mobile */
    .index-title h1 {
        font-family: 'Gendisa Demo', serif !important;
        font-size: 13px !important;
        letter-spacing: 2px !important;
        line-height: 1.15 !important;
        text-shadow: none !important;
        color: #800000 !important;
        white-space: normal !important;
        text-transform: uppercase !important;
    }

    /* Keep <br> tags — show title on 3 lines */
    .index-title h1 .title-br {
        display: inline !important;
    }

    .index-title h1 .title-word + .title-word::before {
        content: none;
    }

    .top-left-logo {
        height: 36px !important;
        width: auto;
    }

    /* Hide desktop icons on mobile */
    .top-bar .top-icons {
        display: none !important;
    }

    /* Mobile: cart + user icon pair */
    .mobile-top-icons {
        display: flex !important;
        align-items: center;
        gap: 4px;
        flex-shrink: 0;
    }

    .mobile-cart-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: #800000;
        font-size: 18px;
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-cart-btn:active { background: #fdf0f0; }

    .mobile-user-btn {
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border-radius: 50%;
        color: #800000;
        font-size: 18px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .mobile-user-btn:active { background: #fdf0f0; }

    /* Profile dropdown anchored to mobile user btn */
    .mobile-user-btn .profile-dropdown {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: auto;
        min-width: 160px;
        border-radius: 12px;
        box-shadow: 0 8px 24px rgba(128,0,0,0.16);
        z-index: 1100;
    }

    .mobile-user-btn .profile-dropdown.open {
        display: block;
    }

    /* MOBILE HERO BANNER RESPONSIVENESS */
    .hero-section {
        margin-top: 70px !important; 
        background: transparent !important; 
        height: auto !important;
        padding-top: 0 !important; 
        aspect-ratio: 16 / 9 !important; 
        position: relative;
        width: 100%;
        overflow: hidden;
        padding: 0 !important;
    }

    .hero-slideshow-container {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1;
    }

    .slide-item {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important; 
        background-repeat: no-repeat !important;
        background-position: center bottom !important; 
    }

    /* MIDDLE DIVIDER ORDER BUTTON */
    .mid-action-divider {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        background-color: #ffffff !important; 
        padding: 15px 0 !important; 
        margin: 0 !important;
    }

    .explore-btn-overlay {
        position: relative !important;
        left: auto !important;
        transform: none !important;
        display: inline-flex !important;
        padding: 10px 24px !important;
        font-size: 12px !important;
    }

    /* MAIN PRODUCT PANEL CONTAINER SETUP */
    .main-panel {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
        order: -1; 
    }

    .top-picks-section {
        padding: 30px 0 30px 0 !important;
    }

    .top-picks-section h2,
    .top-picks-section hr {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .explore-more-container {
        padding: 0 16px !important;
    }

    /* ── MOBILE HORIZONTAL SCROLL STRIP ── */
    .product-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 12px !important;
        padding: 8px 16px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: visible !important;
        -webkit-overflow-scrolling: touch !important;
        scroll-snap-type: x mandatory !important;
        /* Hide scrollbar but keep scrollable */
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }

    .product-row::-webkit-scrollbar {
        display: none !important;
    }

    /* Each card: fixed uniform size, never shrinks */
    .product-row .product-card {
        flex: 0 0 160px !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        height: 280px !important;
        min-height: 280px !important;
        max-height: 280px !important;

        background: #ffffff !important;
        padding: 8px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
       

        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
    }

    .product-row .product-card img {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;

        margin-bottom: 8px !important;
        flex-shrink: 0 !important;
    }

    .product-row .product-card h4 {
        font-size: 12px !important;
        line-height: 16px !important;
        font-weight: 600 !important;
        color: #4C5C2D !important;
        margin: 0 0 3px 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
        display: block !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
    }

    .product-row .product-card p {
        font-size: 13px !important;
        font-weight: 700 !important;
        color: #800000 !important;
        margin: 0 0 3px 0 !important;
        padding: 0 !important;
        line-height: 17px !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }

    .product-row .product-card span,
    .product-row .product-card .sold-count,
    .product-row .product-card text {
        font-size: 10px !important;
        color: #666666 !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-top: auto !important;
        line-height: 13px !important;
        display: block !important;
        flex-shrink: 0 !important;
        width: 100% !important;
    }

    /* AI MOBILE DRAWER CONTROL PANEL */
    .ai-panel {
        width: 100% !important;
        height: auto !important;
        padding: 40px 20px !important; 
        background: #800000 !important;
        position: relative;
        order: 2; 
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
        margin-bottom: 0 !important;
    }

    .ai-content {
        display: block !important; 
    }

    /* INTERACTIVE ELEMENTS FROM OLD DUPLICATES CLOSED PROPERLY */
    .ai-mobile-top-icons {
        display: flex;
        gap: 12px;
        position: absolute;
        top: 10px;
        right: 10px;
        align-items: center;
        z-index: 10;
    }

    .top-bar .top-icons {
        display: none;
    }

    .login-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 14px;
        border-radius: 20px;
        background: #800000;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
    }

    .login-btn:hover {
        background: #ff8686;
    }

    .customize {
        display: none !important;
    }
    /* About section image: prevent awkward tall crop on short phones */
    .about-image img {
        height: auto !important;
        max-height: 40vh !important;
    }

    /* HOME TOP PICKS: fixed card size in horizontal scroll strip */
    .product-row .product-card-home {
        flex: 0 0 160px !important;
        width: 160px !important;
        min-width: 160px !important;
        max-width: 160px !important;
        height: auto !important;
        overflow: hidden !important;
        scroll-snap-align: start !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .product-row .product-card-home img {
        width: 100% !important;
        height: 200px !important;
        min-height: 200px !important;
        max-height: 200px !important;
        object-fit: cover !important;
        flex-shrink: 0 !important;
    }

} /* <--- Media Query Closed Perfectly Here! No more bleeding into Desktop rules */

/* ==========================================================================
   3. TABLET SPECIFIC VIEWPORTS (769px to 1024px)
   ========================================================================== */
@media (min-width: 769px) and (max-width: 1024px) {
    .ai-trigger-pill {
        position: absolute;
        top: 16px;
        left: 80%;
        transform: translateX(-50%);
    }
}

@media (min-width: 1025px) {
    .ai-trigger-pill {
        display: none; 
    }
}

/* ==========================================================================
   4. DESKTOP VIEWPORT SPECIFIC EXPERIENCES (GLOBAL STYLES)
   ========================================================================== */
.ai-panel {
    width: 26%;
    background: #800000;
    padding: 40px 30px;
    position: sticky;
    top: 0;
    right: 0;      
    left: auto;    
    order: 1;      
    z-index: 100;
}

.ai-content h1 {
    font-size: 36px;
    color: #4C5C2D;
    margin-bottom: 30px;
}

.ai-content h3 {
    font-size: 20px;
    color: #4C5C2D;
}

.ai-input {
    background: #6A7E3F;
    border-radius: 50px; 
    padding: 5px 5px 5px 15px; 
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.ai-input input {
    border: none;
    outline: none;
    flex: 1;
    padding: 10px 0; 
    background: transparent; 
    color: #fff;
    font-size: 14px;
}

.ai-input input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 9px;
}

.ai-input button {
    border: none;
    background: #800000;
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    margin-left: -10px;
}

.ai-tags {
    margin-top: 20px;
}

.ai-tags button {
    background: #fff;
    color: #000;
    border: none;
    padding: 8px 10px;
    border-radius: 20px;
    margin: 5px 5px 0 0;
    font-size: 12px;
}

a[href="customize.php"] {
    text-decoration: none !important; 
    color: inherit; 
    display: block; 
}

.customize {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: flex-start; 
    width: 100%;
    margin-top: 20px; 
    background: transparent; 
    text-decoration: none !important;
}

.customize-video {
    position: relative; 
    width: 100%;
    height: 125px; 
    object-fit: cover;
    border-radius: 10px; 
    border-bottom-left-radius: 0%;
    border-bottom-right-radius: 0%;
    margin-bottom: -15px;
    display: block;
}

.customize-btn {
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #6A7E3F;
    color: #fff !important;
    padding: 12px 0; 
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.customize-btn:hover{
    background-color: #da7c7c;
}

#vee-chat-window {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 360px;
    height: 550px;
    z-index: 99999 !important; 
    background: white;
    border: 1px solid #d9868d;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease-in-out;
}

.vee-chat-hidden { 
    opacity: 0; 
    transform: translateY(100px) scale(0.8); 
    pointer-events: none; 
}

.vee-chat-header {
    background: #d9868d;
    color: white;
    padding: 15px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
}

.vee-chat-body { 
    flex-grow: 1; 
    overflow-y: auto; 
    padding: 15px; 
}

.chat-product-card {
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 10px;
    padding: 10px;
}

.chat-product-card img {
    width: 50px; 
    height: 50px; 
    border-radius: 8px; 
    object-fit: cover;
}

.ai-box {
    display: flex;
    flex-direction: column;
    max-height: 420px; 
    overflow: hidden;
    border-radius: 10px;
    background-image: url('/assets/images/ai_back5.png');
    padding: 30px 25px;
}

#ai-product-results {
    flex-grow: 1;
    overflow-y: auto;
    overflow-x: hidden;
    margin-top: 10px;
    padding-right: 5px;
    margin-bottom: 10px;
}

#ai-product-results::-webkit-scrollbar {
    width: 3px;
}

#ai-product-results::-webkit-scrollbar-thumb {
    background: #d9868d;
    border-radius: 10px;
}

#ai-message {
    font-size: 0.85rem;
    max-height: 80px;
    overflow-y: auto;
    margin-bottom: 5px;
}

#ai-interaction-area {
    margin-top: auto;
    flex-shrink: 0;
}

/* ==========================================================================
   DESKTOP MAIN VIEWPORT CATALOG CONTAINER
   ========================================================================== */
.main-panel {
    width: 68%;
    background: #fff;
    overflow-y: auto;
    flex: 1;
    height: 100vh;
    padding: 0 !important; 
    margin: 0;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center !important;
    padding: 20px 60px !important;
    background-color: white !important; 
    border: none !important;
    box-shadow: none !important;
    position: absolute; 
    top: 0;
    left: 0;
    width: 100%;
    height: 150px !important;
    z-index: 1000 !important; 
}

.index-title {
    text-align: left;
    line-height: 1.1 !important;
}

/* Desktop-only: scoped so it cannot override the mobile media query above */
@media (min-width: 769px) {
    .index-title h1 {
        font-family: 'Gendisa Demo', serif !important;
        font-size: 40px !important;
        font-weight: 500;
        color: #800000 !important;
        text-transform: uppercase;
        letter-spacing: 2px;
        margin: 0 !important;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
    }
}

.logo-section {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.top-left-logo {
    height: 65px !important;
    width: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0px 2px 8px rgba(0,0,0,0.15));
}

.top-icons {
    display: flex;
    align-items: center;
    gap: 28px !important;
    margin-top: 0 !important;
}

.top-icons a, 
.top-icons .user-icon, 
.noti-icon-link, 
.cart-icon-link {
    text-decoration: none !important;
    color: #800000 !important; 
    display: inline-flex;
    align-items: center;
    transition: transform 0.2s ease, color 0.2s ease;
    filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.3));
}

.top-icons a:hover, 
.top-icons .user-icon:hover {
    color: #ffcccc !important; 
    transform: scale(1.05);
}

.noti-icon-link { color: #800000; }
.noti-icon-link:hover { color: #fff; }
.cart-icon-link {
    color: #800000;
    text-decoration: none;
    transition: 0.3s;
}
.cart-icon-link:hover { color: #800000; }

.top-icons i {
    font-size: 18px;
    cursor: pointer;
}

.user-icon {
    position: relative;
    color: #800000;
}

.profile-dropdown {
    position: absolute;
    top: 15px;               
    right: 0;
    background: #fff;
    border-radius: 12px;
    min-width: 180px;
    padding: 8px 0;          
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
    display: none;
    z-index: 9999;           
}

.profile-dropdown a {
    display: block;
    padding: 14px 18px;      
    font-size: 14px;
    text-decoration: none;
    color: #333;
    cursor: pointer;
}

.profile-dropdown a:hover { background: #f5f5f5; }
.user-icon:hover .profile-dropdown { display: block; }

/* DESKTOP BANNER LAYOUTS */
.hero-section {
    position: relative;
    width: 100%;
    height: 85vh !important; 
    box-sizing: border-box;
    overflow: hidden;
    padding: 0 !important;
}

.mid-action-divider {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff !important; 
    padding: 30px 0 !important; 
    margin: 0 !important;
}

.explore-btn-overlay {
    position: relative !important; 
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: max-content;        
    transform: none !important;  
    left: auto !important;       
    background: #800000;       
    color: #ffffff !important;
    padding: 12px 36px !important;        
    border: none;
    border-radius: 5px;        
    font-weight: 700;
    font-size: 14px;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 20px rgba(128, 0, 0, 0.15); 
    transition: all 0.25s ease-in-out;
    cursor: pointer;
}

.explore-btn-overlay:hover {
    background: #600000 !important;       
    transform: translateY(-2px) !important; 
    box-shadow: 0 8px 25px rgba(128, 0, 0, 0.25);
}

.hero-slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; 
}

.slide-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: bottom center !important; 
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; 
}

.slide-item.active { opacity: 1; }

.delivery-bar {
    max-width: 1000px;
    padding: 20px;
    margin-top: -50px !important;
    position: relative;
    z-index: 10; 
}

.delivery-box {
    background: #f5f5f5;
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 15px;
}

.delivery-box i { color: #6c757d; font-size: 18px; }
.delivery-box .label { font-weight: 500; }
.delivery-select { border: none; background: transparent; outline: none; font-weight: 500; }
.delivery-date { border: none; background: transparent; outline: none; }

/* SYSTEM DYNAMIC INTERACTIVE LOCK BUTTON SYSTEM */
#occasionBtn {
    background-color: #D96868 !important; 
    color: #fff !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition: all 0.3s ease;
    position: relative;
}

#occasionBtn:hover {
    background-color: #da7c7c !important;
    transform: translateY(-2px);
}

#occasionBtn.btn-locked {
    background-color: #eee !important; 
    color: #999 !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

#occasionBtn.btn-locked::after {
    content: "Please select your Delivery Location first!";
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #ae012d;
    color: #fff;
    padding: 6px 12px;
    font-size: 11px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

#occasionBtn.btn-locked:hover::after {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   DESKTOP 3-COLUMN HIGHLIGHT CATALOG GRID
   ========================================================================== */
.top-picks-section {
    padding: 40px 20px;
    text-align: center;
    background-color: #800000;
}

.top-picks-section h2 {
    color: #ffffff;
    font-family: 'Gendisa Demo';
}

.top-picks-section hr { color: #ffffff; }

.product-row {
    font-family: 'DM Sans', sans-serif;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    justify-items: center;
    gap: 5px;
    margin-bottom: 30px;
    width: 100% !important;
    box-sizing: border-box;
}

.product-row .product-card {
    width: 350px;
    height: 500px;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.product-row .product-card:hover { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.product-row .product-card h4 { color: #4C5C2D; }
.product-row .product-card p { color: #000000; font-family: 'DM Sans', sans-serif; }

.product-row .product-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    margin-bottom: 12px;
}

.explore-more-container { text-align: center; width: 100%; margin-top: 20px; }
.explore-btn-more {
    display: inline-block; 
    padding: 12px 30px;
    background-color: #800000; 
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}
.explore-btn-more:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ==========================================================================
   FOOTER, BRAND STATEMENTS, AND MODAL SYSTEMS
   ========================================================================== */
.about-section { background: #ffffff; padding: 60px 40px; }
.about-text h1 { font-family: 'Gendisa Demo', serif !important; font-size: 48px; font-weight: 600; color: #800000; }
.about-text p { color: #6A7E3F; line-height: 1.8; }
.about-image img { width: 75%; max-width: 75%; margin: 0 auto 30px; display: block; height: 50vh; object-fit: cover; }
.main-img { box-shadow: 0 15px 30px rgba(0,0,0,0.1); }
/* Styling layout matrix for the mini gallery cards below about text */
/* Container Box Background Canvas Element */
.about-gallery-card-frame {
    background-color: transparent;
    border-radius: 24px;
    position: relative;
}
.about-gallery-card-frame h1 {
    color:#800000;
    text-align: center;
    justify-content: center;
    font-family: 'Gendisa Demo', serif !important;
}


/* ============================================================
   GALLERY TRIO ROW — 3 columns: auto-scroll | static | auto-scroll
   ============================================================ */
.gallery-trio-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 10px 0;
}

.gallery-slot {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Crossfade container — fixed size, slides stack on top of each other */
.gallery-auto-crossfade {
    position: relative;
    width: 150px;
    height: 190px;
}

.gallery-cf-slide {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-cf-slide.active {
    opacity: 1;
}

/* ============================================================
   EXPANDED REVIEWS CARD — all reviews visible in a 2-col grid
   ============================================================ */
.reviews-expanded-card {
    margin-top: 32px;
    background: #ffffff;
    border-radius: 20px;
    padding: 28px 28px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.09);
    border: 1px solid rgba(128,0,0,0.08);
}

.reviews-expanded-header {
    text-align: center;
    margin-bottom: 20px;
}

.reviews-expanded-header h4 {
    font-family: 'Gendisa Demo', serif;
    font-size: 22px;
    color: #800000;
    margin-bottom: 4px;
}

.reviews-subtitle {
    font-size: 13px;
    color: #888;
    margin: 0;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.review-tile {
    background: #fdf8f8;
    border-radius: 14px;
    padding: 16px;
    border-left: 3px solid #800000;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-tile .stars {
    margin-bottom: 2px;
}

.review-tile p {
    font-size: 13px;
    color: #444;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
}

.reviewer-name {
    font-size: 11px;
    color: #999;
    font-style: italic;
}

/* Mobile: gallery stacks vertically (static), reviews single column */
@media (max-width: 768px) {
    .gallery-trio-row {
        flex-direction: column;
        gap: 14px;
    }

    .gallery-auto-crossfade {
        width: 140px;
        height: 175px;
    }

    .about-sub-gallery--center {
        width: 160px;
        height: 200px;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .reviews-expanded-card {
        margin-top: 20px;
        padding: 20px 16px;
    }
}

/* Shared gallery image style */
.about-sub-gallery {
    width: 150px;
    height: 190px;
    border-radius: 16px;
    overflow: hidden;
}

.about-sub-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================================
   TEXT + ICON GALLERY CARDS
   ============================================================ */
.gallery-card-text {
    width: 150px;
    height: 190px;
    border-radius: 16px;
    background: linear-gradient(145deg, #800000, #5c0000);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 18px 14px;
    box-shadow: 0 8px 24px rgba(128,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.12);
    gap: 6px;
}

.gallery-card-text--olive {
    background: linear-gradient(145deg, #4C5C2D, #3a4720);
    box-shadow: 0 8px 24px rgba(76,92,45,0.25);
}

.gallery-slot-center {
    width: 240px !important;
    height: 240px !important;
    border-radius: 20px;
    background: linear-gradient(160deg, #800000, #3d0000);
    box-shadow: 0 12px 32px rgba(128,0,0,0.3);
    border: 2px solid rgba(255,255,255,0.15);
    gap: 8px;
}
.gallery-card-text--center{
   
     color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    
    
}

.gallery-card-icon {
    font-size: 32px;
    line-height: 1;
}

.gallery-card-icon--lg {
    font-size: 44px;
}

.gallery-card-label {
    font-family: 'Gendisa Demo', serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    line-height: 1.2;
}

.gallery-card-label--lg {
    font-size: 20px;
    letter-spacing: 1px;
}

.gallery-card-desc {
    font-size: 10px;
    color: rgba(255,255,255,0.72);
    line-height: 1.4;
    font-weight: 400;
}

.gallery-card-tag {
    margin-top: 4px;
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Stars component — shared across reviews */
.stars {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2px;
    margin-bottom: 4px;
}

.stars i {
    font-size: 13px;
    color: #f5b942;
}

/* Smooth fading class for dynamic review updates */
#dynamicReviewText {
    transition: opacity 0.6s ease-in-out;
    opacity: 1;
}

#dynamicReviewText.fade-out {
    opacity: 0;
}
.floating-box {
    position: absolute;
    background: white;
    padding: 15px 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-size: 14px;
    font-family: 'DM Sans', sans-serif !important; 
}
.members { top: 40px; right: 40px; text-align: center; }
.members h4 { margin: 0; font-weight: bold; }
.reviews { bottom: 30px; left: 30px; }

.site-footer { background: #6A7E3F; color: #eee; padding: 60px 20px 30px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 40px; }
.footer-logo { font-size: 22px; margin-bottom: 10px; }
.footer-col h4 { margin-bottom: 15px; font-size: 18px; }
.footer-col p { color: #ccc; font-size: 14px; line-height: 1.6; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: #ccc; font-size: 14px; transition: 0.3s; }
.footer-col ul li a:hover { color: #800000; }
.social-icons { margin-top: 15px; flex-wrap: wrap; }
.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; background: #333; border-radius: 50%;
    margin-right: 10px; color: white; font-size: 16px; transition: 0.3s;
}
.social-icons a:hover { background: #ff5fa2; }
.footer-divider { margin: 40px 0 20px; border-color: #333; }
.copyright { text-align: center; font-size: 13px; color: #aaa; }
.footer-hours { margin-top: 10px; font-size: 14px; color: #ccc; }

.delivery-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 9999; }
.delivery-box { background: white; width: 300px; padding: 20px; border-radius: 10px; margin: 15% auto; text-align: center; }