﻿/* =============================================
   TEA LEAF — tea.css
   Color: White + #2E7D32 Green Theme
   ============================================= */

/* ========== VARIABLES ========== */
:root {
    --green: #00331f;
    --green-light: #014d2f;
    --green-pale: #eaf3ef;
    --green-mid: #00331f;
    --green-dark: #001a10;
    --white: #ffffff;
    --off-white: #f9fbf9;
    --text-dark: #1a1a1a;
    --text-gray: #555555;
    --border: rgba(0, 51, 31, 0.15);
    --shadow: rgba(0, 51, 31, 0.1);
    --font-body: "Inter", sans-serif;
    --font-display: "Playfair Display", serif;
}

/* ========== RESET ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    background-color: var(--white);
    color: var(--text-dark);
    font-family: var(--font-body);
}

body {
    padding-top: 72px;
}

a {
    text-decoration: none;
}

/* ========== ANIMATIONS ========== */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cardPop {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(18px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes imgFade {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* ========== ORGANIC REVEAL (Growth Effect) ========== */
.reveal {
    opacity: 1;
    transform: translateY(30px) scale(0.95) rotate(-deg);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}



    .reveal.active {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

/* ========== LUXURY HERO ANIMATIONS ========== */

@keyframes slowZoom {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes luxuryLeafFloat {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: var(--leaf-opacity, 0.6);
    }

    80% {
        opacity: var(--leaf-opacity, 0.6);
    }

    100% {
        transform: translate(var(--leaf-drift, 120px), -105vh) rotate(var(--leaf-rotation, 720deg)) scale(1);
        opacity: 0;
    }
}

@keyframes goldDustTwinkle {
    0% {
        transform: translateY(0) scale(0.5);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
        transform: translateY(-15vh) scale(1.2);
    }

    40% {
        transform: translateY(-30vh) scale(0.6);
    }

    60% {
        opacity: 0.8;
        transform: translateY(-45vh) scale(1.4);
    }

    80% {
        transform: translateY(-60vh) scale(0.7);
    }

    100% {
        transform: translateY(-85vh) scale(1);
        opacity: 0;
    }
}

@keyframes steamRise {
    0% {
        transform: translateY(0) scale(1) translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 0.4;
    }

    100% {
        transform: translateY(-200px) scale(2.5) translateX(20px);
        opacity: 0;
    }
}

.hero-video,
.hero-mini-img {
    animation: slowZoom 25s ease-in-out infinite;
    will-change: transform;
}

.hero-mini {
    position: relative;
    height: 35vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 5;
}

.hero-animation-overlay {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.luxury-leaf {
    position: absolute;
    bottom: -100px;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.65,20 8.13,20C15.83,20 20,15.83 20,8.13C20,7.65 19.87,7.14 19.7,6.66L22,5.71L21.34,3.82C16.17,5.9 10,8 8,17C15,15 17,8 17,8Z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17,8C8,10 5.9,16.17 3.82,21.34L5.71,22L6.66,19.7C7.14,19.87 7.65,20 8.13,20C15.83,20 20,15.83 20,8.13C20,7.65 19.87,7.14 19.7,6.66L22,5.71L21.34,3.82C16.17,5.9 10,8 8,17C15,15 17,8 17,8Z'/%3E%3C/svg%3E");
    mask-size: contain;
    mask-repeat: no-repeat;
    background-color: currentColor;
    animation: luxuryLeafFloat linear infinite;
    will-change: transform;
}

.gold-particle {
    position: absolute;
    bottom: 0;
    background: #c9a03d;
    border-radius: 50%;
    filter: blur(0.5px);
    animation: goldDustTwinkle ease-in-out infinite;
    will-change: transform;
}

.steam-particle {
    position: absolute;
    bottom: 15%;
    width: 120px;
    height: 120px;
    background: radial-gradient( circle, rgba(245, 230, 211, 0.45) 0%, transparent 75% );
    border-radius: 50%;
    animation: steamRise ease-out infinite;
    will-change: transform, opacity;
}

/* ========== TRENDY FILTER BAR ========== */
.trendy-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px 20px;
    background: var(--white);
    position: sticky;
    top: 72px;
    z-index: 900;
    border-bottom: 1px solid var(--border);
}

    .trendy-bar .filter-btn {
        border: 1px solid var(--border);
        color: var(--text-gray);
        background: transparent;
        border-radius: 50px;
        padding: 8px 22px;
        font-size: 11px;
        font-weight: 500;
        font-family: var(--font-body);
        text-transform: uppercase;
        letter-spacing: 1.2px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

.mobile-filter-row {
    display: none;
    background: var(--white);
    padding: 15px 20px;
    position: sticky;
    top: 130px; /* Positioned below trendy-bar */
    z-index: 899;
}

.trendy-bar .filter-btn:hover,
.trendy-bar .filter-btn.active {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.mobile-filter-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-dark);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    gap: 6px;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

@media (max-width: 900px) {
    .trendy-bar {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--green-light) transparent;
    }

    .mobile-filter-row {
        display: flex;
    }

    .trendy-bar .filter-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .trendy-bar::-webkit-scrollbar {
        height: 6px;
    }

    .trendy-bar::-webkit-scrollbar-thumb {
        background: var(--green-light);
        border-radius: 8px;
    }

    .trendy-bar::-webkit-scrollbar-track {
        background: transparent;
    }

    .mobile-filter-toggle {
        display: flex;
        width: 100%;
        white-space: nowrap;
    }
}

/* ========== MAIN LAYOUT ========== */
.main-section {
    display: flex;
    gap: 0;
    min-height: 100vh;
}

/* ========== SIDEBAR FILTER ========== */
.sidebar-filter {
    width: 210px;
    min-width: 210px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--white);
    margin-left: 20px; /* Removed vertical margins to ensure 'top' property works as expected with sticky positioning */
    padding: 24px 18px;
    position: sticky;
    top: 150px;
    align-self: flex-start;
    height: fit-content;
    z-index: 100;
}

@media (max-width: 900px) {
    .sidebar-filter {
        display: none;
    }
}

.filter-section-title {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px;
}

.filter-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 12px 0;
}

.filter-group {
    margin-bottom: 4px;
}

    .filter-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 12px;
        color: var(--text-gray);
        cursor: pointer;
        padding: 4px 0;
        transition: color 0.2s;
    }

        .filter-group label:hover {
            color: var(--green);
        }

    .filter-group input[type="radio"],
    .filter-group input[type="checkbox"] {
        accent-color: var(--green);
        cursor: pointer;
        width: 14px;
        height: 14px;
    }

.price-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-field {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .price-field label {
        font-size: 11px;
        font-weight: 600;
        color: var(--green);
        cursor: default;
    }

    .price-field input {
        width: 100%;
        border: 1px solid var(--border);
        border-radius: 4px;
        padding: 6px 10px;
        font-size: 12px;
        color: var(--text-dark);
        background: var(--off-white);
        outline: none;
        font-family: var(--font-body);
        transition: border-color 0.2s;
    }

        .price-field input:focus {
            border-color: var(--green);
        }

.apply-btn {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    font-family: var(--font-body);
    cursor: pointer;
    margin-top: 15px;
    letter-spacing: 1.5px;
    transition: all 0.3s;
}

    .apply-btn:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
        box-shadow: 0 4px 14px var(--shadow);
    }

/* ========== PRODUCTS AREA ========== */
.products-area {
    flex: 1;
    content-visibility: auto;
    contain-intrinsic-size: 1px 1000px;
    padding: 40px 30px 60px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 40px;
    animation: fadeSlideIn 0.6s ease-out;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
}

    .section-header h2 {
        font-family: var(--font-display);
        font-size: 24px;
        font-weight: 600;
        color: var(--text-dark);
        white-space: nowrap;
        margin: 0;
        letter-spacing: 0.5px;
    }

.tag-pill {
    color: var(--text-gray);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    white-space: nowrap;
    text-transform: uppercase;
}

.section-underline {
    display: none;
}

/* ========== PRODUCT CARDS ========== */
.cards-wrapper {
    display: block;
}

#cards-wrapper {
    scroll-margin-top: 150px;
}

/* ---- Category section ---- */
.category-section {
    margin-bottom: 48px;
}

    .category-section:last-child {
        margin-bottom: 0;
    }

.category-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    gap: 12px;
}

.category-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.category-card-img-wrapper {
    width: 120px;
    height: 120px;
    max-width: 120px;
    aspect-ratio: 1 / 1;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--green-pale);
    border: 1px solid var(--border);
}

.category-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.category-card:hover .category-card-img {
    transform: scale(1.1);
}

.category-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.category-icon-img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

/* Vertical Video Micro-Highlight */
.vertical-video-micro {
    width: 80px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 4px 12px var(--shadow);
    background: var(--green-dark);
}

    .vertical-video-micro video {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

.experience-img {
    width: 100%;
    height: 200px; /* Set a fixed height for uniformity */
    /* Removed aspect-ratio as fixed height and width:100% define the dimensions */
    object-fit: cover;
}

.category-header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-all-link {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
    letter-spacing: 1px;
    transition: all 0.2s;
}

    .view-all-link:hover {
        color: var(--green-dark);
        text-decoration: underline;
    }

.category-title {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 700;
    color: var(--green-dark);
    margin: 0 0 2px;
}

.category-desc {
    font-size: 12px;
    color: var(--text-gray);
    margin: 0;
    font-style: italic;
}

.category-count {
    background: var(--green);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Scroll wrapper for horizontal mobile sliding */
.category-scroll-wrapper {
    position: relative;
}

.scroll-arrow {
    display: none; /* Desktop hidden */
}

/* Cards grid inside each category */
.category-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.card-item {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    text-align: center;
    box-shadow: none;
    transition: all 0.3s ease;
    cursor: pointer;
    opacity: 1; /* Ensure cards are visible */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

    .card-item::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, var(--green-pale) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.3s;
        border-radius: 12px;
        pointer-events: none;
    }

    .card-item:hover {
        transform: translateY(-4px);
        border-color: var(--green);
        box-shadow: 0 10px 30px var(--shadow);
    }

        .card-item:hover::before {
            opacity: 1;
        }

    .card-item img {
        width: 100%;
        height: 200px;
        object-fit: cover;
        border-radius: 2px;
        display: block;
        transition: transform 0.4s ease;
        position: relative;
        z-index: 1;
        background: var(--off-white);
        opacity: 1; /* Ensure images are visible */
    }

        .card-item img.is-fallback {
            object-fit: contain;
            padding: 14px;
        }

    .card-item:hover img {
        transform: scale(1.04);
    }

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 3;
}

    .card-badge.new-badge {
        background: var(--green-light);
        left: auto;
        right: 12px;
    }


    /*for sales */
.sale-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--green);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    z-index: 3;
}



.card-item h5,
.card-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 15px 0 8px;
    position: relative;
    z-index: 1;
    min-height: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--font-display);
    letter-spacing: 0.3px;
}

.card-stars {
    color: #f9a825;
    font-size: 12px;
    letter-spacing: 1px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
    min-height: 18px;
}

.card-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin: 2px 0 4px;
    position: relative;
    z-index: 1;
}

.desc {
    color: var(--text-gray);
    font-size: 11px;
    text-align: left;
    font-weight: 300;
    min-height: 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.price-col {
    min-width: 82px;
    text-align: right;
}

.price {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.original-price {
    font-size: 12px;
    color: var(--text-gray);
    text-decoration: line-through;
    display: block;
    text-align: right;
}

.card-buttons {
    display: flex;
    gap: 10px;
    position: relative;
    z-index: 1;
    margin-top: 15px;
}

.buy-btn {
    flex: 1;
    background: var(--green);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .buy-btn:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
    }

.cart-btn {
    flex: 1;
    background: transparent;
    color: var(--green);
    border: 1px solid var(--green);
    border-radius: 4px;
    padding: 10px 5px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
    text-transform: uppercase;
}

    .cart-btn:hover {
        background: var(--green);
        color: white;
        border-color: var(--green);
    }

/* ========== EMPTY STATE ========== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
    width: 100%;
}

    .empty-state .empty-icon {
        font-size: 56px;
        margin-bottom: 12px;
        opacity: 0.5;
    }

    .empty-state p {
        font-size: 16px;
    }

/* ========== MOBILE FILTER DRAWER ========== */
.filter-drawer-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9998;
}

.filter-drawer {
    position: fixed;
    right: -320px;
    top: 0;
    bottom: 0;
    width: 300px;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    padding: 24px 20px;
    box-shadow: -4px 0 28px rgba(0, 0, 0, 0.18);
    transition: right 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid var(--green);
}

.filter-drawer-body {
    padding-top: 10px;
}

.filter-drawer.open {
    right: 0;
}

.filter-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .filter-drawer-header h5 {
        font-family: var(--font-display);
        color: var(--green);
        font-size: 1.2rem;
    }

.drawer-close-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--green);
    transition: all 0.2s;
}

    .drawer-close-btn:hover {
        background: var(--green);
        color: white;
        border-color: var(--green);
    }

/* ========== CART SIDEBAR ========== */
.cart-sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 19998;
}

.cart-sidebar {
    position: fixed;
    right: -420px;
    top: 0;
    bottom: 0;
    width: 380px;
    max-width: 100vw;
    background: var(--white);
    z-index: 19999;
    display: flex;
    flex-direction: column;
    box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
    transition: right 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-left: 3px solid var(--green);
}

    .cart-sidebar.open {
        right: 0;
    }

.cart-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 2px solid var(--border);
    background: var(--green-pale);
}

    .cart-sidebar-header h5 {
        font-family: var(--font-display);
        color: var(--green-dark);
        font-size: 1.2rem;
        font-weight: 700;
    }

.cart-close-btn {
    background: none;
    border: 2px solid var(--border);
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: var(--green);
    transition: all 0.2s;
}

    .cart-close-btn:hover {
        background: var(--green);
        color: white;
        border-color: var(--green);
    }

/* Cart body */
.cart-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    /* Ensures body scrolls independently and never bleeds under footer */
    min-height: 0;
}

.cart-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--text-gray);
}

    .cart-empty .cart-empty-icon {
        font-size: 52px;
        margin-bottom: 10px;
    }

    .cart-empty p {
        font-size: 15px;
    }

/* Cart item */
.cart-item-row {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
}

.cart-item-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 3px;
}

.cart-item-meta {
    font-size: 11px;
    color: var(--text-gray);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 13px;
    font-weight: 700;
    color: var(--green-dark);
}

.cart-qty-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.qty-btn {
    width: 26px;
    height: 26px;
    border: 2px solid var(--border);
    border-radius: 6px;
    background: var(--off-white);
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.2s;
}

    .qty-btn:hover {
        background: var(--green);
        color: white;
        border-color: var(--green);
    }

.qty-display {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 20px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: #e53935;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s;
}

    .remove-item-btn:hover {
        background: #ffebee;
    }

/* Cart footer */
.cart-sidebar-footer {
    flex-shrink: 0;
    /* never shrinks — always at the bottom */
    padding: 14px 18px;
    border-top: 2px solid var(--border);
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
}

    .cart-subtotal span:last-child {
        color: var(--green);
    }

.checkout-btn {
    display: block;
    width: 100%;
    background: var(--green);
    color: white;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 13px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

    .checkout-btn:hover {
        background: var(--green-dark);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 6px 18px var(--shadow);
    }

.clear-cart-btn {
    width: 100%;
    background: none;
    border: 2px solid #e53935;
    color: #e53935;
    border-radius: 10px;
    padding: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.25s;
}

    .clear-cart-btn:hover {
        background: #ffebee;
    }

/* ========== PRODUCT QUICK-VIEW MODAL ========== */
.product-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 29999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.product-modal-content {
    background: white;
    border-radius: 4px;
    padding: 40px 30px;
    width: 100%;
    max-width: 430px;
    position: relative;
    box-shadow: 0 20px 50px var(--shadow);
    border: 1px solid var(--border);
    animation: fadeSlideIn 0.3s ease-out;
}

.modal-close-btn {
    position: absolute;
    top: 14px;
    right: 16px;
    background: var(--green-pale);
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

    .modal-close-btn:hover {
        background: var(--green);
        color: white;
    }

.modal-title {
    font-family: var(--font-display);
    color: var(--text-dark);
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.modal-stars {
    color: #f9a825;
    font-size: 14px;
    margin-bottom: 6px;
}

.modal-price {
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

    .modal-price .old-price {
        font-size: 13px;
        color: #aaa;
        font-weight: 400;
        text-decoration: line-through;
    }

    .modal-price .discount-tag {
        font-size: 12px;
        background: var(--green);
        color: white;
        padding: 2px 10px;
        border-radius: 50px;
    }

.modal-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.modal-section {
    margin-bottom: 18px;
}

.modal-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.modal-option-btn {
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-gray);
    border-radius: 50px;
    padding: 8px 20px;
    font-size: 11px;
    font-weight: 500;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s;
}

    .modal-option-btn:hover,
    .modal-option-btn.active {
        background: var(--green);
        border-color: var(--green);
        color: white;
    }

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.modal-btn {
    flex: 1;
    padding: 13px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid var(--green);
}

.modal-btn-cancel {
    background: white;
    color: var(--green);
}

    .modal-btn-cancel:hover {
        background: var(--green-pale);
    }

.modal-btn-confirm {
    background: var(--green);
    color: white;
}

    .modal-btn-confirm:hover {
        background: var(--green-dark);
        transform: translateY(-1px);
    }

/* ========== TOAST NOTIFICATION ========== */
.toast-notif {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--green);
    color: white;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-body);
    box-shadow: 0 8px 28px var(--shadow);
    z-index: 39999;
    animation: fadeSlideIn 0.3s ease-out;
    max-width: 320px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 575px) {
    /* Mobile-only slider logic for categories and signature collection */
    .category-cards-grid,
    .signature-grid {
        display: flex !important;
        flex-wrap: nowrap;
        display: block !important;
        overflow: visible !important;
        touch-action: pan-y; /* Block horizontal swipe, allow vertical scroll */
        padding: 10px 0 25px;
        position: relative;
        width: 100%;
        min-height: 420px;
    }

        .category-cards-grid::-webkit-scrollbar,
        .signature-grid::-webkit-scrollbar {
            display: none;
        }

        .category-cards-grid .card-item {
            display: none; /* Hide all cards by default on mobile */
            width: 100%;
            max-width: 340px;
            margin: 0 auto;
        }

            .category-cards-grid .card-item.active-mobile {
                display: flex; /* Only show the active card */
                animation: fadeSlideIn 0.3s ease-out;
            }

    .scroll-arrow {
        display: flex !important;
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 44px; /* Slightly larger arrows for easier tapping */
        height: 44px;
        background: var(--green);
        color: white;
        border: none;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
        z-index: 200; /* Extremely high z-index */
        opacity: 0.95;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
        pointer-events: auto;
        cursor: pointer;
    }

        .scroll-arrow:active {
            transform: translateY(-50%) scale(0.9);
            opacity: 1;
        }

        .scroll-arrow.prev {
            left: 8px; /* Position arrows slightly inside the edge */
        }

        .scroll-arrow.next {
            right: 8px; /* Position arrows slightly inside the edge */
        }

    /* Signature Collection Mobile Optimization */
    .signature-grid {
        display: block !important;
        position: relative;
        padding: 10px 0 40px !important;
        min-height: 400px;
        overflow: hidden !important;
        touch-action: pan-y !important;
    }

        .signature-grid > div {
            display: none;
        }

            .signature-grid > div.active-mobile {
                display: block !important;
                animation: fadeSlideIn 0.3s ease-out;
            }

        .signature-grid .product-card {
            width: 100%;
            max-width: 320px;
            margin: 0 auto;
        }
}

/* Related Products Grid - Desktop/Tablet Base */
.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .card-item {
        max-width: 100%;
    }

        .card-item img {
            height: 160px;
        }

    /* Adjust hero-mini height for mobile on tea.html */
    .hero-mini {
        height: 35vh; /* Reduced height for a "mini" effect on mobile */
    }

    /* Shop by Category alignment fix - only affecting the circular images */
    .category-card-img-wrapper {
        width: 120px;
        max-width: 120px; /* Limit its maximum size */
        height: 120px;
        aspect-ratio: 1 / 1; /* Force a square shape */
        margin: 0 auto 15px; /* Ensure centering */
        border-radius: 50%; /* Ensure it's circular */
        overflow: hidden; /* Hide parts of the image outside the circle */
        background: var(--green-pale); /* Fallback background */
    }

    .category-card-title {
        font-size: 14px !important;
        text-align: center; /* Ensure title is centered */
    }

    .category-card {
        display: flex; /* Ensure flex properties apply */
        flex-direction: column;
        align-items: center; /* Center content horizontally */
        width: 100%;
    }
}

/* Tablet Specific Adjustments (iPad Air, iPad Mini) */
@media (max-width: 1024px) {
    .related-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Only apply slider behavior to Related Products on Mobile (Small Screens) */
@media (max-width: 576px) {
    .related-grid {
        display: block !important;
        overflow: visible !important;
        touch-action: pan-y;
        padding: 10px 0;
        position: relative;
    }

    .related-card {
        display: none !important; /* Hide by default on mobile */
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        border: 1px solid var(--border);
        background: white;
        border-radius: 4px;
    }

        .related-card.active-mobile {
            display: flex !important;
            flex-direction: column;
            animation: fadeSlideIn 0.3s ease-out;
        }

    .related-products .scroll-arrow {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .category-cards-grid {
        grid-template-columns: 1fr;
    }

    .products-area {
        padding: 18px 10px 40px;
    }

    .cart-sidebar {
        width: 100%;
        right: -100%;
    }

    .filter-drawer {
        width: 100%;
        right: -100%;
    }
}

@media (min-width: 1400px) {
    .main-section {
        max-width: 1440px;
        margin: 0 auto;
    }
}

/* ============================================================
   EXTRACTED INLINE STYLES
   ============================================================ */

/* Navbar */
.navbar-search button .material-symbols-outlined {
    font-size: 20px;
}

.mobile-menu-btn .material-symbols-outlined {
    font-size: 22px;
    display: flex;
}

#cartCountBadge {
    display: none;
}

/* Filter & Sidebar */
#mobileFilterToggle .material-symbols-outlined {
    font-size: 18px;
    display: flex;
}

.filter-group.spacing-helper,
.price-input-group.spacing-helper {
    margin-bottom: 12px;
}

/* Product Cards & Modals */

/* Cart Sidebar & Empty States */
#cartSidebarFooter {
    display: none;
}

.cart-empty-hint {
    font-size: 13px;
    margin-top: 6px;
    color: #aaa;
}

/* ========== CUSTOM CURSOR ========== */
@media (pointer: fine) {
    body {
        cursor: none !important;
    }

    a,
    button,
    input,
    select,
    textarea,
    .card-item,
    .category-card,
    .qty-btn,
    .filter-btn,
    .product-card {
        cursor: none !important;
    }

    .custom-cursor {
        width: 24px;
        height: 24px;
        position: fixed;
        top: 0;
        left: 0;
        pointer-events: none;
        z-index: 100000;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background-color: rgba(0, 51, 31, 0.1);
        border: 1px solid var(--green);
        transition: transform 0.15s ease-out, background-color 0.3s, border-color 0.3s;
        transform: translate(-50%, -50%);
    }

.custom-cursor::after {
            content: "";
            width: 16px;
            height: 16px;
            background-image: url("../../assets/icons8-leaf-50.png");
            background-size: contain;
            background-repeat: no-repeat;
            filter: drop-shadow(0 0 1px rgba(255, 255, 255, 0.8));
            display: block;
            transition: transform 0.2s ease;
}

        .custom-cursor.active {
            transform: translate(-50%, -50%) scale(1.3);
            background-color: transparent;
            border-color: var(--green);
        }

            .custom-cursor.active::after {
                transform: rotate(317deg) scale(1.2);
            }
}

/* CHECKOUT MOBILE CENTERING */
@media (max-width: 992px) {
    .checkout-layout {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .checkout-forms-col,
    .checkout-summary-col {
        width: 100%;
        max-width: 650px; /* Constrains the width to keep the "card" look on tablets */
        margin: 0 auto;
        padding: 0 15px;
    }
}






