:root {
    /* --- Fresh Mint Palette (Restored) --- */
    --bg-base: #F5FAFA;
    /* Cool white */
    --bg-surface: #FFFFFF;

    /* Accents */
    --accent-mint: #4ECDC4;
    --accent-teal: #2F9E96;
    --accent-dark: #1A2525;

    --text-main: #2C3E50;
    --text-soft: #7F8C8D;

    /* --- Glassmorphism --- */
    --glass-heavy: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.7);
    --blur-strength: 30px;

    /* --- Dimensions & Radius --- */
    --radius-pill: 100px;
    --radius-card: 24px;
    --container-width: 1300px;

    /* --- Typography --- */
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Floating Navigation --- */
.nav-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: var(--container-width);
    padding: 12px 30px;
    background: var(--glass-heavy);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: 0.4s ease;
}

.logo {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent-teal);
    letter-spacing: -1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--accent-mint);
}

.nav-actions {
    display: flex;
    gap: 15px;
}

.btn-icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-main);
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff6b6b;
    color: white;
    font-size: 0.7rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: none;
    /* Controlled by JS */
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.btn-icon-circle:hover {
    background: var(--accent-mint);
    color: white;
    border-color: var(--accent-mint);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 130px 20px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(245, 250, 250, 0.9) 0%,
            rgba(245, 250, 250, 0.5) 40%,
            var(--bg-base) 100%);
    z-index: -1;
}

.header-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    font-weight: 800;
    color: var(--accent-dark);
    /* Darker for contrast */
    margin-bottom: 25px;
    max-width: 900px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 50px;
}

.btn-mint-gradient {
    background: linear-gradient(135deg, var(--accent-mint), var(--accent-teal));
    color: white;
    padding: 14px 34px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 10px 20px rgba(47, 158, 150, 0.25);
    transition: 0.3s;
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-main);
    padding: 14px 34px;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ccc;
    transition: 0.3s;
}

.btn-mint-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(47, 158, 150, 0.4);
}

.btn-outline-dark:hover {
    background: white;
    border-color: white;
}


/* --- Modern Floating Search Bar --- */
.hero-search-bar {
    background: #ffffff;
    padding: 0;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    max-width: 750px;
    width: 95%;
    height: 64px;
    /* Optimal modern height */
    position: relative;
    z-index: 50;
    /* Ensure on top */
}

/* Explicit Divider */
.divider {
    width: 1px;
    height: 32px;
    background: #eee;
    margin: 0 10px;
}

/* --- Search Input Section --- */
.search-input-group {
    flex: 2;
    /* Takes most space */
    display: flex;
    align-items: center;
    padding-left: 25px;
    height: 100%;
}

.search-input-group:hover .group-icon {
    color: var(--accent-teal);
}

.group-icon {
    color: var(--accent-mint);
    font-size: 1.1rem;
    margin-right: 15px;
    transition: 0.3s;
}

.search-value {
    border: none;
    background: transparent;
    width: 100%;
    outline: none;
    color: var(--text-main);
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
}

.search-value::placeholder {
    color: #999;
    font-weight: 400;
}

/* --- Dropdown Triggers --- */
.custom-dropdown {
    flex: 1;
    height: 100%;
    position: relative;
    cursor: pointer;
    display: flex;
    /* Center trigger content flex */
    align-items: center;
    justify-content: center;
}

.dropdown-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
    transition: 0.2s;
    border-radius: var(--radius-pill);
    height: 80%;
    /* Inner pill */
}

.custom-dropdown:hover .dropdown-display {
    background: #f7fbfb;
}

.dropdown-display span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}

.dropdown-display i {
    font-size: 0.75rem;
    color: #ccc;
    margin-left: 8px;
    transition: 0.3s;
}

.custom-dropdown.active .dropdown-display i {
    transform: rotate(180deg);
}

/* --- Dropdown Menus --- */
.dropdown-options {
    position: absolute;
    top: 120%;
    right: 0;
    /* Align right */
    min-width: 200px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s;
    border: 1px solid #f0f0f0;
    z-index: 100;
}

.custom-dropdown.active .dropdown-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.d-option {
    padding: 10px 15px;
    border-radius: 8px;
    color: var(--text-main);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
}

.d-option:hover {
    background: #f7fbfb;
    color: var(--accent-teal);
}

/* --- Search Button --- */
.search-btn {
    width: 50px;
    height: 50px;
    background: var(--accent-teal);
    border-radius: 50%;
    color: white;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 7px;
    /* Space inside the bar */
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

.d-option {
    padding: 12px 18px;
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.d-option:hover {
    background: var(--accent-mint);
    /* Mint accent */
    color: white;
    transform: translateX(5px);
}

/* Icon positioning */
.search-group .fa-chevron-down {
    position: absolute;
    right: 25px;
    /* Align with padding */
    bottom: 22px;
    font-size: 0.75rem;
    color: var(--accent-mint);
    pointer-events: none;
    transition: 0.3s;
}

.search-group:hover .fa-chevron-down {
    transform: rotate(180deg);
    color: var(--accent-teal);
}

.search-btn {
    width: 64px;
    height: 64px;
    background: var(--accent-dark);
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.3);
}

.search-btn:hover {
    background: var(--accent-mint);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(78, 205, 196, 0.4);
}

/* --- Story / Icons --- */
.our-story-section {
    padding: 80px 20px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: var(--accent-dark);
}

.info-cards-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.info-card {
    padding: 20px;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background: #E0F7FA;
    /* Mint Soft */
    color: var(--accent-teal);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 1.8rem;
    margin: 0 auto 20px;
    transition: 0.3s;
}

.info-card:hover .icon-circle {
    transform: scale(1.1);
    background: var(--accent-mint);
    color: white;
}

.info-card h3 {
    margin-bottom: 5px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-soft);
}

/* --- Modern Product Section --- */
.products-section {
    padding: 100px 20px;
    background: white;
    /* Clean block */
}

.products-container-outer {
    max-width: var(--container-width);
    margin: 0 auto;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
}

/* Floating Card Style */
.product-card {
    background: white;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid #f0f0f0;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(47, 158, 150, 0.15);
    /* Mint tint shadow */
    border-color: var(--accent-mint);
}

.img-box {
    height: 300px;
    background: #F9F9F9;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: 0.5s;
    mix-blend-mode: multiply;
}

.product-card:hover .img-box img {
    transform: scale(1.1);
}

/* Floating Action Button */
.btn-add-cart {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    cursor: pointer;
}

.product-card:hover .btn-add-cart {
    opacity: 1;
    transform: translateY(0);
}

.btn-add-cart:hover {
    background: var(--accent-teal);
    color: white;
}

.p-details {
    padding: 20px;
}

.p-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-mint);
    margin-bottom: 5px;
}

.p-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 5px;
}

.p-price {
    font-size: 1rem;
    color: var(--text-soft);
    font-weight: 600;
}

/* --- Bento Categories (Gap Fixed + Redesigned) --- */
.bento-section {
    padding: 100px 20px;
}

.bento-grid {
    display: grid;
    /* Changed to 3 columns to perfectly fit the 3 category cards */
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 350px;
    gap: 25px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.bento-box {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Softened shadow */
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.bento-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Full Bleed Image */
.bento-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-box:hover img {
    transform: scale(1.1);
}

/* Modern Gradient Overlay for Text */
.bento-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
    z-index: 2;
}

.bento-box span {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    transform: translateY(0);
    transition: transform 0.4s;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    /* Manually positioning since overlay HTML isn't added yet, will do next step if needed, or rely on absolute positioning */
    position: absolute;
    bottom: 30px;
    left: 30px;
    z-index: 5;
}

.bento-box:hover span {
    transform: translateX(10px);
}

/* Feature Card (Full Width Banner) */
.bento-wide-teal {
    /* Spans all 3 columns now - No broken space! */
    grid-column: span 3;
    background: linear-gradient(120deg, var(--accent-teal), #1A5F5A, #0f3d3a);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    display: flex;
    flex-direction: row;
    /* Horizontal layout for wide card */
    justify-content: space-between;
    align-items: center;
    padding: 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* Left side content of banner */
.bento-content-left {
    z-index: 2;
    text-align: left;
}

.bento-wide-teal h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.bento-wide-teal p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* Right side icon of banner */
.bento-icon-large {
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.1);
    transform: rotate(-15deg);
    transition: 0.5s;
}

.bento-wide-teal:hover .bento-icon-large {
    transform: rotate(0deg) scale(1.1);
    color: rgba(255, 255, 255, 0.2);
}

/* Circle decoration */
.bento-wide-teal::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-wide-teal {
        grid-column: span 2;
        padding: 40px;
        flex-direction: column;
        text-align: center;
    }

    .bento-content-left {
        text-align: center;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 2.8rem;
    }

    .hero-buttons {
        flex-direction: row;
        /* Keep them side-by-side */
        width: 100%;
        justify-content: center;
        flex-wrap: nowrap;
        /* Prevent wrapping */
        gap: 8px;
        /* Tighter gap for mobile */
        padding: 0 10px;
    }

    .btn-mint-gradient,
    .btn-outline-dark {
        flex: 1 !important;
        padding: 12px 5px !important;
        /* Extremely tight for small screens */
        text-align: center !important;
        font-size: 0.75rem !important;
        /* Even smaller for ultra-small screens */
        white-space: nowrap !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hero-search-bar {
        height: auto;
        flex-direction: column;
        border-radius: 24px;
        padding: 15px;
        gap: 10px;
    }

    .divider {
        display: none;
    }

    .search-input-group {
        width: 100%;
        padding-left: 10px;
        border-bottom: 1px solid #eee;
        padding-bottom: 10px;
    }

    .custom-dropdown {
        width: 100%;
        justify-content: flex-start;
        border-bottom: 1px solid #eee;
        padding-bottom: 5px;
    }

    .dropdown-display {
        padding: 10px;
        height: auto;
    }

    .search-btn {
        width: 100%;
        border-radius: 15px;
        margin-left: 0;
        margin-right: 0;
        height: 50px;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-wide-teal {
        grid-column: span 1;
    }

    .nav-links {
        display: none;
    }

    .info-cards-row {
        grid-template-columns: 1fr;
    }

    .glass-nav {
        padding: 10px 20px;
    }

    .logo {
        font-size: 1.1rem;
    }
}


/* --- Footer --- */
.site-footer {
    background: var(--accent-dark);
    color: white;
    padding: 80px 20px;
    text-align: center;
    border-top-left-radius: 60px;
    border-top-right-radius: 60px;
}

.subscribe-box {
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    padding: 8px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.subscribe-box input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    padding: 10px 20px;
    min-width: 250px;
}

.subscribe-box button {
    background: var(--accent-mint);
    color: var(--accent-dark);
    border: none;
    padding: 10px 30px;
    border-radius: 40px;
    font-weight: 700;
    cursor: pointer;
}

/* Animations */
.pop-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.pop-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Highlight Utility */
.text-highlight {
    color: var(--accent-teal);
    background: linear-gradient(120deg, var(--accent-teal), #1A5F5A);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 600px) {
    .subscribe-box {
        flex-direction: column;
        width: 100%;
        border-radius: 20px;
        gap: 10px;
    }

    .subscribe-box input {
        min-width: 0;
        width: 100%;
        text-align: center;
    }


    /* Mobile Product Grid - 2 Columns (Forced) */
    .products-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        /* Explicitly 2 fractional units */
        gap: 10px !important;
        /* Tighter gap */
        padding: 0 5px;
        width: 100% !important;
        box-sizing: border-box;
    }

    .products-container-outer {
        padding: 0;
        /* Maximize width */
    }

    /* Compact Card for Mobile */
    .product-card {
        width: 100% !important;
        min-width: 0 !important;
        /* Critical for grid overflow prevention */
        border-radius: 12px;
        margin: 0 !important;
        /* Smaller radius */
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
        /* Lighter shadow */
    }

    .product-card .img-box {
        height: 150px;
        /* Much smaller image area */
        background: #fff;
        /* Clean white bg */
    }

    .product-card .img-box img {
        max-width: 90%;
        max-height: 90%;
    }

    .btn-add-cart {
        width: 32px;
        height: 32px;
        bottom: 8px;
        right: 8px;
        font-size: 0.9rem;
        opacity: 1 !important;
        transform: translateY(0) !important;
        background: var(--accent-mint);
        color: white;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .p-details {
        padding: 10px 12px;
    }

    .p-cat {
        font-size: 0.65rem;
        margin-bottom: 2px;
    }

    .p-title {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .p-price {
        font-size: 0.9rem;
    }
}

/* --- Mobile Menu Styles --- */
.nav-mobile-toggle {
    display: none;
    border: none;
    background: none;
    font-size: 1.5rem;
    color: var(--text-main);
    cursor: pointer;
}

.mobile-menu {
    display: none;
    /* Hidden on desktop by default */
}


@media (max-width: 900px) {
    .nav-mobile-toggle {
        display: block;
        order: 1;
    }

    .logo {
        order: 2;
    }

    .nav-actions {
        order: 3;
    }

    .nav-links {
        display: none;
        /* Desktop links stay hidden */
    }

    /* Mobile Dropdown Menu */
    .mobile-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 90%;
        background: var(--glass-heavy);
        backdrop-filter: blur(20px);
        border: 1px solid var(--glass-border);
        border-radius: 20px;
        display: none;
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
        z-index: 999;
        opacity: 0;
        transition: 0.3s ease;
    }

    .mobile-menu.active {
        display: flex;
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    .mobile-menu a {
        text-decoration: none;
        color: var(--text-main);
        font-weight: 600;
        font-size: 1.1rem;
        padding: 10px;
        border-radius: 10px;
        transition: 0.2s;
    }

    .mobile-menu a:hover {
        background: rgba(78, 205, 196, 0.1);
        color: var(--accent-mint);
    }
}