/* ==========================================================================
   1. RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Montserrat", sans-serif;
    line-height: 1.7;
    color: #2c3e35; /* Deep slate green/charcoal */
    background-color: #fcfaf6; /* Soft warm cream background */
    padding: 40px 20px;
}

/* ==========================================================================
   2. HEADER & LOGO SECTION
   ========================================================================== */
header {
    width: 100%;
    margin: 0 auto 20px auto;
    text-align: center;
    position: relative; /* Context helper for button styling alignment */
}

/* ==========================================================================
   UPDATED LOGO STYLES (Replaces the text branding styles)
   ========================================================================== */
.logo-container {
    padding: 0px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo-img {
    max-width: 450px;       /* Sets an optimal maximum size for desktop viewports */
    width: 100%;            /* Allows the image to scale down cleanly on tight viewports */
    height: auto;           /* Maintains correct image aspect proportions */
    display: block;
    transition: transform 0.3s ease;
}

/* Tighten up mobile spacing adjustments around the new image container */
@media (max-width: 900px) {
    .logo-container {
        padding: 10px 20px;
    }
    .brand-logo-img {
        max-width: 320px;   /* Slightly more compact sizing constraint for mobile platforms */
    }
}

.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: #3d5a4c;
    font-family: "Montserrat", sans-serif; /* Matches website body typography */
    font-size: 1.1rem; /* Slightly smaller to accommodate the word text */
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 10px;
    line-height: 1;
    outline: none;
}

/* ==========================================================================
   3. NAVIGATION MENU (PC Layout)
   ========================================================================== */
nav {
    margin-top: 25px;
    border-top: 1px solid #e1dad0;
    border-bottom: 1px solid #e1dad0;
    padding: 15px 0;
    width: 100%;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
}

nav li {
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #5a6e60;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s;
    padding-bottom: 4px;
}

nav a:hover,
nav a.active {
    color: #2c3e35;
    border-bottom: 2px solid #3d5a4c;
}

/* ==========================================================================
   4. MAIN LAYOUT CONTAINER (Centered 85% Width)
   ========================================================================== */
.main-content {
    width: 85%;
    max-width: 1400px;
    margin: 0 auto !important;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(61, 90, 76, 0.06);
    padding: 40px;
}

.profile-container,
.detail-container,
.detail-row {
    display: flex;
    gap: 60px;
    align-items: flex-start; /* Aligns image and text nicely at the top */
    width: 100%;
}

.profile-photo,
.detail-image-cell {
    flex: 0 0 450px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.profile-photo {
    aspect-ratio: 1 / 1;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.detail-image-box img {
    width: 100%;
    height: auto;
    display: block;
}

.profile-text,
.detail-info-cell {
    flex: 1;
}

.tagline {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #7d9082;
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
}

.profile-text h2,
.product-detail-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 2.8rem;
    color: #3d5a4c;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 25px;
}

.profile-text p {
    margin-bottom: 20px;
    font-size: 1.05rem;
    font-weight: 300;
    color: #4a5550;
}

blockquote {
    font-family: "Cormorant Garamond", serif;
    font-style: italic;
    font-size: 1.4rem;
    color: #5a6e60;
    border-left: 3px solid #7d9082;
    padding-left: 20px;
    margin: 30px 0;
}

/* ==========================================================================
   5. PRODUCT DETAIL SPECIFICS
   ========================================================================== */
.product-detail-price {
    font-size: 1.5rem;
    color: #2c3e35;
    font-weight: 500;
    margin-bottom: 25px;
    border-bottom: 1px solid #e1dad0;
    padding-bottom: 15px;
}

.section-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7d9082;
    margin-bottom: 8px;
    display: block;
    font-weight: 600;
}

.section-label-lg {
    font-size: 1.05rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.ingredients-box {
    background: #fdfcfb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.ingredients-list {
    margin: 0;
}

.uses-box {
    background: #fdfcfb;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 30px;
}

.uses-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.uses-list li {
    padding: 8px 0;
    border-bottom: 1px solid #e1dad0;
    color: #5a6e60;
    font-size: 0.95rem;
    font-weight: 300;
}

.uses-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ingredient-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #e1dad0;
}

.ingredient-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.ingredient-name {
    flex: 0 0 40%;
    font-weight: 600;
    color: #2c3e35;
    font-size: 0.95rem;
}

.ingredient-desc {
    flex: 1;
    margin: 0;
    color: #5a6e60;
    font-size: 0.95rem;
    font-weight: 300;
}

/* ==========================================================================
   6. SHOP SYSTEM & DYNAMIC GRID (PC Layout: 4 Columns)
   ========================================================================== */
.shop-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
    width: 100%;
}

.sidebar-filter {
    flex: 0 0 260px;
    background-color: #fdfcfb;
    border: 1px solid #e1dad0;
    border-radius: 8px;
    padding: 25px;
    position: sticky;
    top: 20px;
}

.filters-label {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.5rem;
    color: #3d5a4c;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e1dad0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group-spaced {
    margin-top: 20px;
}

.filter-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7d9082;
    font-weight: 600;
}

.filter-group select {
    font-family: "Montserrat", sans-serif;
    font-size: 0.9rem;
    padding: 12px;
    border: 1px solid #e1dad0;
    border-radius: 4px;
    background-color: #fff;
    color: #2c3e35;
    outline: none;
    cursor: pointer;
    width: 100%;
}

.products-display-area {
    flex: 1;
}

.grid-container-dynamic {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.product-card-dynamic {
    flex: 0 1 calc(20% - 19.2px);
    background: #ffffff;
    border: 1px solid #e1dad0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}

.product-card-dynamic:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 15px rgba(61, 90, 76, 0.1);
}

.product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-img-holder {
    width: 100%;
    aspect-ratio: 2 / 4;
    background: #f4f6f5;
    overflow: hidden;
}

.product-img-holder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 20px;
    text-align: center;
}

.product-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #7d9082;
    margin-bottom: 5px;
    display: block;
}

.product-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 1.4rem;
    color: #3d5a4c;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
}

.product-price {
    font-weight: 500;
    color: #2c3e35;
    font-size: 1.1rem;
}

.no-results {
    text-align: center;
    width: 100%;
    padding: 60px 0;
    color: #7d9082;
    font-style: italic;
}

/* ==========================================================================
   7. BUTTONS & CALL TO ACTION
   ========================================================================== */
.cta-group {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    transition: all 0.3s;
    text-align: center;
}

.btn-primary {
    background-color: #3d5a4c;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2c3e35;
}

.btn-secondary {
    background-color: transparent;
    color: #3d5a4c;
    border: 1px solid #3d5a4c;
}

.btn-secondary:hover {
    background-color: #f4f6f5;
}

/* ==========================================================================
   8. MOBILE RESPONSIVE OVERRIDES (Activates below 900px)
   ========================================================================== */
@media (max-width: 900px) {
    body {
        padding: 15px 10px;
    }

    .main-content {
        width: 95%;
        padding: 30px 15px;
    }

    /* --- Show the Hamburger Trigger Button --- */
    .hamburger-btn {
        display: inline-block;
        margin-top: 15px;
    }

    /* --- Re-architect Nav Bar into an Accordion Drawer Overlap --- */
    nav {
        display: none; /* Hide drawer by default */
        margin-top: 15px;
        border: 1px solid #e1dad0;
        border-radius: 6px;
        background-color: #fdfcfb;
        padding: 10px 0;
    }

    /* Activates via JavaScript click toggle hook */
    nav.nav-open {
        display: block;
    }

    nav ul {
        flex-direction: column; /* Stacks links item by item vertically */
        gap: 0;
    }

    nav li {
        display: block;
        width: 100%;
    }

    nav a {
        display: block;
        padding: 12px 20px;
        font-size: 0.9rem;
        border-bottom: 1px dashed #e1dad0;
    }

    nav li:last-child a {
        border-bottom: none;
    }

    nav a:hover,
    nav a.active {
        background-color: #f4f6f5;
        border-bottom: 1px dashed #e1dad0; /* Avoids clipping jump frames */
    }

    /* --- Grid & Content Flow Rescaling --- */
    .product-card-dynamic {
        flex: 0 1 calc(50% - 12px) !important; /* Locks 2-wide columns neatly */
    }

    .profile-container,
    .detail-container,
    .detail-row,
    .shop-container {
        flex-direction: column;
        gap: 30px;
    }

    .profile-photo,
    .detail-image-cell,
    .sidebar-filter {
        flex: none;
        width: 100%;
        position: static;
    }

    .profile-photo {
        aspect-ratio: 1 / 1;
    }

    .detail-image-cell {
        max-width: 320px;
        margin: 0 auto;
    }

    .ingredient-item {
        flex-direction: column;
        gap: 2px;
    }

    .ingredient-name {
        flex: none;
    }

    .cta-group {
        flex-direction: column;
        gap: 10px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 550px) {
    .brand-title {
        font-size: 2.3rem;
    }

    .brand-subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .grid-container-dynamic {
        gap: 12px;
    }

    .product-img-holder {
        aspect-ratio: 2 / 4;
    }

    .product-title {
        font-size: 1.2rem;
    }
}
