/* Newline — Premium Organic Design System (Terra) */

:root {
    /* Colors */
    --primary: #4a7c59;
    /* Forest Green */
    --primary-container: #78a886;
    --primary-light: #8ecf9e;
    --primary-dark: #2a6038;

    --background: #faf6f0;
    /* Warm Cream */
    --surface: #faf6f0;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #f5f1ea;
    --surface-container: #f0ece4;
    --surface-container-high: #eae6de;
    --surface-container-highest: #e4e0d8;

    --on-background: #2e3230;
    /* Charcoal with green/yellow undertone */
    --on-surface: #2e3230;
    --on-surface-variant: #4a4e4a;

    --secondary: #6b6358;
    /* Warm Earthy Gray/Brown */
    --secondary-container: #f0e8db;

    --tertiary: #705c30;
    /* Warm Amber */
    --tertiary-container: #c4a66a;

    --outline-variant: #c4c8bc;
    --error: #b83230;
    --white: #ffffff;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(46, 50, 48, 0.04);
    --shadow-md: 0 4px 20px rgba(46, 50, 48, 0.06);
    --shadow-lg: 0 8px 32px rgba(46, 50, 48, 0.08);
    --shadow-hover: 0 12px 40px rgba(74, 124, 89, 0.12);

    /* Roundness */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito Sans', sans-serif;
    color: var(--on-background);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Proxima Nova Bold — Local Font */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../Proxima-Nova-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Proxima Nova Black — Local Font */
@font-face {
    font-family: 'Proxima Nova';
    src: url('../Proxima-Nova-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Typography */
h1,
h2,
h3,
h4,
.font-headline {
    font-family: 'Proxima Nova', 'Nunito Sans', sans-serif;
    font-weight: 700;
    color: var(--on-background);
    line-height: 1.25;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    color: var(--on-surface-variant);
    margin-bottom: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--surface-container-low);
}

::-webkit-scrollbar-thumb {
    background: var(--outline-variant);
    border-radius: var(--radius-sm);
    border: 2px solid var(--surface-container-low);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* Layout Elements */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--surface-container-lowest);
    color: var(--primary);
    border: 1px solid var(--outline-variant);
}

.btn-secondary:hover {
    background-color: var(--surface-container-low);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Top Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: transparent;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.8rem 0;
    box-shadow: var(--shadow-sm);
    background-color: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

.logo {
    justify-self: start;
}

.logo a {
    display: block;
    text-decoration: none;
    transition: var(--transition);
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
    transition: var(--transition);
}

/* By default show the white logo (for transparent header) */
.logo img.logo-transparent {
    display: block;
}

.logo img.logo-scrolled {
    display: none;
}

/* When header is scrolled (cream background), switch to dark logo */
.navbar.scrolled .logo img.logo-transparent {
    display: none;
}

.navbar.scrolled .logo img.logo-scrolled {
    display: block;
}

.navbar.scrolled .logo img {
    height: 40px;
}

@media (max-width: 768px) {
    .logo img {
        height: 38px;
    }

    .navbar.scrolled .logo img {
        height: 34px;
    }
}

.nav-links {
    justify-self: center;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.12);
    padding: 0.3rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.navbar.scrolled .nav-links {
    background: rgba(74, 124, 89, 0.08);
    border-color: rgba(74, 124, 89, 0.12);
}

.nav-links a,
.nav-links .dropdown {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    position: relative;
    z-index: 2;
}

/* Default state (Transparent nav - White text, Green active/hover on White pill) */
.nav-links a {
    color: var(--white) !important;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--primary) !important;
    /* #4a7c59 */
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Scrolled state (Light nav - Green text, White active/hover on Green pill) */
.navbar.scrolled .nav-links a {
    color: var(--primary) !important;
}

.navbar.scrolled .nav-links a.active,
.navbar.scrolled .nav-links a:hover {
    color: var(--white) !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

/* Keep dropbtn active/hover color when hovering the dropdown content */
.dropdown:hover .dropbtn {
    color: var(--primary) !important;
}

.navbar.scrolled .dropdown:hover .dropbtn {
    color: var(--white) !important;
}

/* Force white text on active dropbtn in scrolled state (products page) */
.navbar.scrolled .nav-links .dropdown .dropbtn.active {
    color: var(--white) !important;
}

/* When nav is hovered, pill slides to hovered item — active item reverts to default color */
.navbar.scrolled .nav-links:hover a.active {
    color: var(--primary) !important;
}

.navbar.scrolled .nav-links:hover .dropdown .dropbtn.active {
    color: var(--primary) !important;
}

/* But if directly hovering the active item itself, pill is still behind it — keep white */
.navbar.scrolled .nav-links a.active:hover {
    color: var(--white) !important;
}

.navbar.scrolled .nav-links .dropdown:hover .dropbtn.active {
    color: var(--white) !important;
}

/* Same logic for transparent nav state */
.nav-links:hover a.active {
    color: var(--white) !important;
}

.nav-links a.active:hover {
    color: var(--primary) !important;
}

/* Sliding Nav Indicator */
.nav-indicator {
    position: absolute;
    background-color: var(--white);
    border-radius: 9999px;
    transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
    pointer-events: none;
    box-shadow: var(--shadow-sm);
    opacity: 0;
}

.navbar.scrolled .nav-indicator {
    background-color: var(--primary);
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
}

.nav-lang {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
    transition: var(--transition);
}

.navbar.scrolled .nav-lang {
    color: var(--primary);
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--surface-container-lowest);
    min-width: 220px;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md);
    border: 1px solid var(--outline-variant);
    z-index: 1001;
    overflow: visible;
    /* changed from hidden to allow pseudo-element bridge */
    padding: 0.5rem 0;
    opacity: 0;
    transition: var(--transition);
}

.dropdown-content::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
    background: transparent;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateX(-50%) translateY(4px);
}

.nav-links .dropdown-content a,
.navbar.scrolled .nav-links .dropdown-content a {
    color: var(--primary) !important;
    padding: 10px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 0;
    transition: background-color 0.2s ease;
}

.nav-links .dropdown-content a:not(:last-child) {
    border-bottom: 1px solid rgba(74, 124, 89, 0.12);
}

.nav-links .dropdown-content a:hover,
.navbar.scrolled .nav-links .dropdown-content a:hover {
    background-color: var(--surface-container-low) !important;
    color: var(--primary) !important;
}

/* Dynamic Hero Section */
.new-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, #92d7ff, #4a7c59);
    /* fallback gradient */
    transition: background 0.8s ease;
}

.new-hero-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 640px;
    /* spacing clearance for the 600px centered card */
    align-items: center;
    width: 100%;
    padding: 0 5%;
}

/* Left Column */
.hero-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 1.5rem;
    z-index: 10;
}

.hero-left .hero-tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: var(--tertiary);
    /* Gold brand accent */
}

.hero-product-title {
    font-family: 'Proxima Nova', 'Nunito Sans', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--white);
}

.hero-product-dosage {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.hero-client-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    max-width: 440px;
    margin-top: 2rem;
}

/* Center Column */
.hero-center {
    position: absolute;
    left: 50%;
    top: 52%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
}

.hero-image-leaves-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Decorative leaf animations */
.leaf {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.04);
    border-radius: 0 100% 0 100%;
    transform: rotate(45deg);
    transition: transform 1s ease-in-out;
}

.leaf-1 {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(30deg);
}

.leaf-2 {
    width: 150px;
    height: 150px;
    top: 10%;
    left: 10%;
    transform: rotate(-15deg);
    opacity: 0.7;
}

.leaf-3 {
    width: 120px;
    height: 120px;
    bottom: 10%;
    right: 10%;
    transform: rotate(75deg);
    opacity: 0.5;
}

.hero-product-image-wrap {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    border-radius: 40px;
    overflow: hidden;
    backdrop-filter: blur(15px);
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transition: transform 0.5s ease;
}

.hero-product-image-wrap::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 82%;
    height: 82%;
    background-image: url('../images/logo2.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.30;
    filter: blur(8px);
    pointer-events: none;
    z-index: 1;
}

.hero-product-image-wrap:hover {
    transform: scale(1.03);
}

.hero-product-image-wrap img {
    position: relative;
    z-index: 2;
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.3));
}

/* Right Column */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-self: end;
    z-index: 10;
}

.hero-options-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
}

.hero-options-row {
    display: flex;
    gap: 0.8rem;
}

.option-pill {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: transparent;
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

/* Hero Nutrition Table styling */
.hero-nutrition-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.10);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.30);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-nutrition-table td {
    padding: 1rem 1.25rem;
    text-align: left;
}

.hero-nutrition-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-nutrition-table tr:last-child {
    border-bottom: none;
}

.hero-nutrition-table td:last-child {
    text-align: right;
    font-weight: 800;
    color: rgb(255, 255, 255);
    /* Newline Gold accent color */
}

.hero-nutrition-table tr.hero-nutrition-more td.hero-nutrition-more-td {
    text-align: center !important;
    padding: 0.65rem 1rem !important;
    background: rgba(255, 255, 255, 0.12);
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-nutrition-table tr.hero-nutrition-more:hover td.hero-nutrition-more-td {
    background: rgba(255, 255, 255, 0.22);
}

.hero-nutrition-more-notice {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff8e7;
}

/* Floating Contact Button */
.floating-contact-btn {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    background-color: var(--white);
    color: var(--primary);
    padding: 0.85rem 2.2rem;
    border-radius: 9999px;
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-transform: lowercase;
    border: 1px solid rgba(74, 124, 89, 0.1);
}

.floating-contact-btn:hover {
    transform: translateY(-5px) scale(1.06);
    box-shadow: 0 18px 35px rgba(74, 124, 89, 0.25);
}

/* Category Filter Bar / Search */
.filter-search-section {
    padding: 3rem 0;
    background-color: var(--background);
}

.filter-bar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.2rem;
    background-color: var(--surface-container-low);
    border: 1px solid var(--surface-container-high);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper input {
    width: 100%;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    padding: 0.8rem 1rem 0.8rem 2.8rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--on-background);
    outline: none;
    transition: var(--transition);
}

.search-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

.search-wrapper .material-symbols-outlined {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--on-surface-variant);
    font-size: 1.25rem;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    width: 100%;
    justify-content: center;
}

.filter-pill {
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid var(--outline-variant);
    background-color: var(--surface-container-lowest);
    color: var(--on-surface-variant);
    transition: var(--transition);
}

.filter-pill:hover {
    background-color: var(--surface-container-high);
    color: var(--primary);
}

.filter-pill.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}

/* Products Section & Bento Grids */
.products {
    position: relative;
    padding: 2.5rem 0 5rem 0;
    background-color: var(--background);
    overflow: hidden;
}

.products::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/logo2.png');
    background-repeat: repeat;
    background-size: 140px auto;
    background-position: center;
    opacity: 0.60;
    pointer-events: none;
    z-index: 0;
}

.products .container {
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
}

.section-header p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 2rem;
}

/* Product Slider Container & Buttons */
.product-slider-container {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.product-slider-viewport {
    overflow: hidden;
    width: 100%;
    padding: 12px 0;
    margin: -12px 0;
}

.product-slider-container .product-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-slider-viewport .product-card {
    flex: 0 0 calc((100% - 6rem) / 4);
    /* 4 columns */
}

@media (max-width: 1024px) {
    .product-slider-viewport .product-card {
        flex: 0 0 calc((100% - 4rem) / 3);
        /* 3 columns */
    }
}

@media (max-width: 768px) {
    .product-slider-viewport .product-card {
        flex: 0 0 calc((100% - 2rem) / 2);
        /* 2 columns */
    }
}

@media (max-width: 480px) {
    .product-slider-viewport .product-card {
        flex: 0 0 100%;
        /* 1 column */
    }
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--surface-container-lowest);
    border: 1px solid rgba(196, 200, 188, 0.5);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-50%) scale(1.08);
    box-shadow: var(--shadow-hover);
}

.slider-btn.prev-btn {
    left: -27px;
}

.slider-btn.next-btn {
    right: -27px;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide on mobile if they overflow, or adjust placement */
@media (max-width: 1340px) {
    .slider-btn.prev-btn {
        left: -10px;
    }

    .slider-btn.next-btn {
        right: -10px;
    }
}

@media (max-width: 768px) {
    .slider-btn {
        width: 44px;
        height: 44px;
    }

    .slider-btn.prev-btn {
        left: -5px;
    }

    .slider-btn.next-btn {
        right: -5px;
    }
}

/* Premium Card */
.product-card {
    background-color: var(--surface-container-low);
    border: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    animation: cardFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Static base border overlay */
.product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: rgba(196, 200, 188, 0.35);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 4;
    transition: background 0.3s ease;
}

/* Dynamic cursor glow border overlay */
.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: radial-gradient(250px circle at var(--mouse-x, -9999px) var(--mouse-y, -9999px),
            rgba(74, 124, 89, 0.95),
            transparent 65%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.product-card:hover::before {
    background: rgba(196, 200, 188, 0.5);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

/* Kids Product Cards & Peeking Vector Graphics Styling */
.product-card.is-kids-product {
    border: 2px solid rgba(255, 179, 0, 0.45) !important;
    background: linear-gradient(180deg, rgba(255, 248, 225, 0.55) 0%, var(--surface-container-low) 100%) !important;
    position: relative;
    overflow: visible;
}

.product-image-wrapper {
    position: relative;
    z-index: 1;
}

.kids-peeking-vectors {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

/* Rainbow peeking top-left of image frame */
.kids-peek-top-left {
    position: absolute;
    top: -12px;
    left: 22px;
    width: 65px;
    height: 40px;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 112, 67, 0.25));
    transition: transform 0.4s ease;
}

/* Teddy peeking right side of image frame */
.kids-peek-side-right {
    position: absolute;
    top: 25px;
    right: -8px;
    width: 58px;
    height: 58px;
    z-index: 1;
    filter: drop-shadow(0 3px 6px rgba(255, 167, 38, 0.3));
    transition: transform 0.4s ease;
}

/* Star peeking bottom-left of image frame */
.kids-peek-bottom-left {
    position: absolute;
    bottom: -8px;
    left: 8px;
    width: 32px;
    height: 32px;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.35));
    transition: transform 0.4s ease;
}

.product-card.is-kids-product:hover .kids-peek-top-left {
    transform: translateY(-4px) scale(1.08);
}

.product-card.is-kids-product:hover .kids-peek-side-right {
    transform: translateX(4px) rotate(6deg) scale(1.08);
}

.product-card.is-kids-product:hover .kids-peek-bottom-left {
    transform: scale(1.2) rotate(15deg);
}

/* Vector wave doodle behind title */
.kids-title-bg-vector {
    position: absolute;
    bottom: 2px;
    left: -4px;
    right: -4px;
    height: 18px;
    width: calc(100% + 8px);
    pointer-events: none;
    z-index: 1;
}

.product-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--tertiary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 800;
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.product-image-container {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--surface-container-low);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1.2rem 1.2rem 0 1.2rem;
    border-radius: var(--radius-md);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-info {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    color: var(--tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 800;
    margin-bottom: 0.6rem;
}

.product-title {
    font-size: 1.35rem;
    margin-bottom: 0.8rem;
    color: var(--primary);
    line-height: 1.3;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-desc {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    margin-bottom: 1.8rem;
    min-height: 4.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-family: 'Literata', serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--on-surface);
}

.product-action-btn {
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.product-action-btn:hover {
    background-color: var(--primary-dark);
    transform: scale(1.05);
}

.product-action-btn .material-symbols-outlined {
    font-size: 1.2rem;
}

/* About / Brand Philosophy Section */
.about {
    padding: 4rem 0;
    background-color: var(--surface-container-low);
    position: relative;
    overflow: hidden;
}

/* Soft ambient blur spots */
.about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background-color: rgba(120, 168, 134, 0.15);
    filter: blur(80px);
    border-radius: 50%;
    z-index: 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 5rem;
    row-gap: 1rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.about-image-wrapper {
    position: relative;
}

.about-image {
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

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

.about-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 260px;
    display: none;
    /* Desktop override */
}

.about-badge-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.about-badge-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.about-badge-icon .material-symbols-outlined {
    font-size: 1.25rem;
}

.about-badge-header h4 {
    font-size: 0.95rem;
    font-weight: 700;
}

.about-badge p {
    font-size: 0.8rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.about-text-tag {
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    margin-bottom: 1rem;
    display: block;
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2.5rem 0 0.5rem 0;
}

.about-stat-item h4 {
    font-size: 2.2rem;
    color: var(--tertiary);
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.about-stat-item p {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.about-certifications {
    grid-column: 1 / -1;
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(196, 200, 188, 0.4);
    width: 100%;
}

.about-certifications-title {
    font-family: 'Proxima Nova', sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

/* Contact Section & Form */
.contact {
    padding: 7rem 0;
    background-color: var(--background);
}

.contact-container {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 5rem;
}

.contact-info h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
}

.contact-info-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1rem 1.2rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    transition: var(--transition);
}

.contact-info-card:hover {
    transform: translateY(-5px) scale(1.03);
    background-color: var(--surface-container-lowest);
    border-color: rgba(74, 124, 89, 0.2);
    box-shadow: 0 12px 30px rgba(74, 124, 89, 0.12);
}

.contact-info-icon {
    width: 46px;
    height: 46px;
    background-color: var(--surface-container);
    border-radius: var(--radius-md);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-info-card:hover .contact-info-icon {
    background-color: var(--primary);
    color: var(--white);
}

.contact-info-details h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.contact-info-details p {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.contact-form {
    background-color: var(--surface-container-low);
    border: 1px solid rgba(196, 200, 188, 0.4);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.contact-form:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 45px rgba(74, 124, 89, 0.15);
    border-color: rgba(74, 124, 89, 0.3);
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--on-background);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.15);
}

/* Footer */
footer {
    background-color: var(--surface-container-lowest);
    border-top: 1px solid var(--outline-variant);
    color: var(--on-background);
    padding: 2.5rem 0 1.5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 2.5rem;
    margin-bottom: 1.8rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-brand {
    margin-bottom: 0.6rem;
}

.footer-brand img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-desc {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.footer-col h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-col ul a {
    text-decoration: none;
    color: var(--on-surface-variant);
    font-size: 0.85rem;
    transition: var(--transition);
}

.footer-col ul a:hover {
    color: var(--primary);
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid var(--surface-container-high);
    padding-top: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--on-surface-variant);
    margin: 0;
}

.footer-admin-link a {
    color: var(--outline-variant);
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
}

.footer-admin-link a:hover {
    color: var(--primary);
}

/* Products.html Sidebar Specific Styles */
.products-layout {
    display: flex;
    gap: 2.5rem;
    margin-top: 2.5rem;
    margin-bottom: 6rem;
}

.products-sidebar {
    width: 320px;
    flex-shrink: 0;
    align-self: flex-start;
    position: sticky;
    top: 100px;
    background-color: var(--surface-container-low);
    border: 1px solid rgba(196, 200, 188, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-title {
    font-size: 1.3rem;
    color: var(--tertiary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(196, 200, 188, 0.4);
    padding-bottom: 0.6rem;
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-menu-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0.75rem 1.2rem;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
    white-space: nowrap;
}

.sidebar-menu-btn:hover {
    background-color: var(--surface-container);
    color: var(--primary);
}

.sidebar-menu-btn.active {
    background-color: rgba(74, 124, 89, 0.12);
    color: var(--primary);
    font-weight: 700;
}

.sidebar-menu-btn .material-symbols-outlined {
    font-size: 1.1rem;
}

.sidebar-filter-group {
    margin-top: 2rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(196, 200, 188, 0.4);
}

.sidebar-filter-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.filter-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    user-select: none;
}

.filter-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 1px solid var(--outline-variant);
    border-radius: 4px;
    background-color: var(--surface-container-lowest);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.filter-checkbox:checked {
    background-color: var(--primary);
    border-color: var(--primary);
}

.filter-checkbox::after {
    content: 'check';
    font-family: 'Material Symbols Outlined';
    font-size: 0.9rem;
    color: var(--white);
    display: none;
}

.filter-checkbox:checked::after {
    display: block;
}

.products-content {
    flex-grow: 1;
}

.products-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(196, 200, 188, 0.4);
}

.product-count-tag {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    background-color: var(--surface-container-low);
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    border: 1px solid rgba(74, 124, 89, 0.2);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
}

.product-count-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--primary);
}

.products-content .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
}

.products-header-desc {
    margin-bottom: 2rem;
}

/* Modal specific styling */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(46, 50, 48, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
}

.modal-content {
    background-color: var(--surface-container-lowest);
    border: 1px solid var(--outline-variant);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 1100px;
    position: relative;
    box-shadow: var(--shadow-lg);
    max-height: 90vh;
    overflow-y: auto;
    animation: modalShow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalShow {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    cursor: pointer;
    color: var(--on-surface-variant);
    z-index: 10;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary);
}

/* Product Details Modal - 2-Column Grid Layout */
.product-details-content {
    padding: 3.5rem;
    max-width: 1250px;
}

.details-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 3rem;
    align-items: start;
}

.details-main-col {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.details-header-info .product-category {
    font-size: 0.85rem;
    color: var(--tertiary);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.3rem;
}

.details-header-info .product-title {
    font-size: 2rem;
    color: var(--primary);
    line-height: 1.25;
    margin: 0;
}

.details-image-col {
    background-color: var(--surface-container-low);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    cursor: zoom-in;
    position: relative;
}

.details-image-col img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    transition: transform 0.15s ease-out;
    transform-origin: center center;
    pointer-events: none;
}

.details-image-gallery {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.3rem;
}

.details-thumb-box {
    width: 68px;
    height: 68px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    border: 2.5px solid transparent;
    opacity: 0.65;
    transition: all 0.25s ease;
    flex-shrink: 0;
    background-color: var(--surface-container-low);
    box-shadow: var(--shadow-sm);
}

.details-thumb-box:hover {
    opacity: 0.95;
    transform: translateY(-2px);
}

.details-thumb-box.active {
    opacity: 1;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74, 124, 89, 0.25);
}

.details-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.details-main-col .product-desc {
    font-size: 1.02rem;
    color: var(--on-surface-variant);
    line-height: 1.7;
    margin: 0;
}

.details-nutrition-col {
    background-color: var(--surface-container-low);
    border: 1px solid rgba(196, 200, 188, 0.4);
    padding: 1.8rem;
    border-radius: var(--radius-lg);
}

.details-nutrition-col h3 {
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(196, 200, 188, 0.5);
    padding-bottom: 0.6rem;
    color: var(--primary);
}

.nutrition-table {
    width: 100%;
    border-collapse: collapse;
}

.nutrition-table td {
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(196, 200, 188, 0.3);
    font-size: 0.9rem;
    color: var(--on-surface-variant);
}

.nutrition-table td:last-child {
    text-align: right;
    font-weight: 700;
    color: var(--on-surface);
}

.nutrition-table tr:last-child td {
    border-bottom: none;
}

/* Mobile Menu Toggle button default hidden */
.mobile-menu-toggle {
    display: none;
}

/* Responsive Overrides */
@media (min-width: 992px) {
    .hero-highlight {
        display: block;
    }

    .about-badge {
        display: block;
    }

    /* Product Details Modal - Desktop Enhancements */
    .modal-content.product-details-content {
        max-width: 1280px !important;
    }

    .product-details-content .details-grid {
        grid-template-columns: 1.45fr 1fr !important;
        gap: 3rem !important;
    }

    .details-image-col {
        padding: 0 !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        height: auto !important;
        min-height: unset !important;
    }

    .details-image-col img {
        max-height: none !important;
        height: 100% !important;
        width: 100% !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: cover !important;
    }

    .details-nutrition-col {
        padding: 2.2rem !important;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 2.8rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .about-content,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-badge {
        right: 0;
        bottom: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        margin-bottom: 1.5rem;
        padding: 1.2rem;
    }

    .sidebar-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .sidebar-menu {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.6rem !important;
    }

    .sidebar-menu-btn {
        width: auto !important;
        padding: 0.5rem 1rem !important;
        border-radius: 9999px !important;
        background-color: var(--surface-container-highest) !important;
        border: 1px solid var(--outline-variant) !important;
        font-size: 0.85rem !important;
        justify-content: center !important;
    }

    .sidebar-menu-btn .material-symbols-outlined {
        display: none !important;
    }

    .sidebar-menu-btn.active {
        background-color: var(--primary) !important;
        color: var(--white) !important;
        border-color: var(--primary) !important;
    }

    .details-grid {
        grid-template-columns: 1fr 1.2fr;
    }

    .details-nutrition-col {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
        z-index: 1005 !important;
    }

    .nav-content {
        grid-template-columns: 1fr auto !important;
        padding: 0 1.2rem !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: none !important;
        border: none !important;
        color: var(--white) !important;
        font-size: 1.8rem !important;
        cursor: pointer !important;
        z-index: 1002 !important;
        padding: 0.5rem !important;
        margin-left: 0.5rem !important;
        transition: var(--transition) !important;
    }

    .navbar.scrolled .mobile-menu-toggle {
        color: var(--primary) !important;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: 80% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--surface-container-lowest) !important;
        box-shadow: var(--shadow-lg) !important;
        padding: 5rem 1.5rem 2rem 1.5rem !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        z-index: 1001 !important;
        gap: 0.5rem !important;
        overflow-y: auto !important;
        border-radius: 0 !important;
        border: none !important;
        backdrop-filter: none !important;
    }

    .nav-links.active {
        right: 0 !important;
    }

    /* Hide dynamic nav-indicator capsule on mobile */
    .nav-indicator {
        display: none !important;
    }

    /* Force mobile drawer links to always be green on light cream background */
    .nav-links a,
    .navbar.scrolled .nav-links a,
    .nav-links:hover a,
    .navbar.scrolled .nav-links a:hover {
        color: var(--primary) !important;
        background: transparent !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        border-radius: var(--radius-md) !important;
        width: 100% !important;
        padding: 0.8rem 1.2rem !important;
        display: block !important;
        text-align: left !important;
        box-shadow: none !important;
        transform: none !important;
    }

    /* Active link styling on mobile */
    .nav-links a.active,
    .navbar.scrolled .nav-links a.active,
    .nav-links:hover a.active,
    .navbar.scrolled .nav-links:hover a.active {
        background-color: rgba(74, 124, 89, 0.12) !important;
        color: var(--primary) !important;
    }

    /* Dropdown containers on mobile - Reset desktop inline-capsule styling */
    .nav-links .dropdown {
        width: 100% !important;
        display: block !important;
        position: relative !important;
        padding: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

    .nav-links .dropdown .dropbtn {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Prevent Ürünlerimiz button from turning white on hover/click/active on mobile */
    .nav-links .dropdown .dropbtn,
    .navbar.scrolled .nav-links .dropdown .dropbtn,
    .nav-links .dropdown:hover .dropbtn,
    .navbar.scrolled .nav-links .dropdown:hover .dropbtn,
    .nav-links .dropdown .dropbtn:hover,
    .navbar.scrolled .nav-links .dropdown .dropbtn:hover,
    .nav-links .dropdown .dropbtn.active,
    .navbar.scrolled .nav-links .dropdown .dropbtn.active {
        color: var(--primary) !important;
        background: transparent !important;
    }

    /* Chevron arrow indicator for the accordion dropbtn on mobile */
    .nav-links .dropdown .dropbtn::after {
        content: 'expand_more';
        font-family: 'Material Symbols Outlined';
        font-size: 1.2rem;
        margin-left: auto;
        display: inline-block;
        transition: transform 0.3s ease;
    }

    .nav-links .dropdown .dropbtn.active-accordion::after {
        transform: rotate(180deg);
    }

    .nav-links .dropdown-content {
        position: relative !important;
        left: 0 !important;
        top: 0 !important;
        transform: none !important;
        display: none !important;
        /* collapsed by default */
        opacity: 0 !important;
        box-shadow: none !important;
        border: none !important;
        background: transparent !important;
        padding: 0.2rem 0 0.2rem 1.5rem !important;
        pointer-events: auto !important;
        width: 100% !important;
        transition: all 0.3s ease !important;
    }

    .nav-links .dropdown-content.open {
        display: block !important;
        opacity: 1 !important;
    }

    .nav-links .dropdown-content a,
    .navbar.scrolled .nav-links .dropdown-content a,
    .nav-links .dropdown-content a:hover,
    .navbar.scrolled .nav-links .dropdown-content a:hover {
        padding: 0.5rem 0 !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        color: var(--primary) !important;
        border: none !important;
        background: transparent !important;
        display: block !important;
        width: 100% !important;
        text-align: left !important;
    }

    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1000 !important;
        /* Layered below the navbar (1005) but above content */
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .mobile-menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Keep font sizes modest on phones */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.6rem !important;
    }

    .section-header h2 {
        font-size: 1.8rem !important;
    }

    .hero-client-text,
    .about-text p,
    .contact-info p,
    .products-header-desc {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }

    /* Scaling certificate cards to fit mobile row nicely */
    .cert-card {
        width: 135px !important;
        height: 95px !important;
        padding: 0.8rem 0.5rem !important;
        gap: 0.4rem !important;
    }

    .cert-card span.material-symbols-outlined {
        font-size: 1.6rem !important;
    }

    .cert-card span:not(.material-symbols-outlined) {
        font-size: 0.7rem !important;
    }

    .form-row {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.8rem !important;
    }

    .form-group {
        margin-bottom: 0.8rem !important;
    }

    .form-group input {
        padding: 0.75rem 1rem !important;
        font-size: 0.85rem !important;
    }

    .form-group label {
        font-size: 0.75rem !important;
        margin-bottom: 0.3rem !important;
    }

    .contact-form {
        padding: 1.5rem 1rem !important;
    }

    footer {
        padding: 1.5rem 0 1rem 0 !important;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .footer-grid .footer-col:first-child {
        grid-column: span 2 !important;
    }

    .footer-col h4 {
        margin-bottom: 0.4rem !important;
    }

    .footer-desc {
        margin-bottom: 0.4rem !important;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: 0.8rem !important;
    }

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

    .details-nutrition-col {
        grid-column: span 1;
    }

    .product-details-content {
        padding: 2rem;
    }

    /* Mobile Product Cards Custom Layout */
    .product-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem !important;
    }

    .product-desc {
        display: none !important;
    }

    .product-card {
        border-radius: var(--radius-md) !important;
    }

    .product-info {
        padding: 0.8rem !important;
    }

    .product-title {
        font-size: 0.9rem !important;
        margin-bottom: 0.3rem !important;
    }

    .product-category {
        font-size: 0.7rem !important;
    }

    .product-footer {
        margin-top: 0.5rem !important;
    }

    .product-footer .btn {
        padding: 0.5rem !important;
        font-size: 0.8rem !important;
    }

    /* Transform homepage slider to 2x2 static grid layout on mobile */
    .product-slider-viewport {
        overflow: visible !important;
    }

    .product-slider-container .product-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        flex-wrap: wrap !important;
        gap: 0.8rem !important;
        transform: none !important;
    }

    .product-slider-viewport .product-card {
        flex: 0 1 auto !important;
        width: 100% !important;
    }

    /* Display only 4 products (2x2) on mobile homepage */
    .product-slider-container .product-card:nth-child(n+5) {
        display: none !important;
    }

    /* Hide slider controls on mobile */
    .product-slider-container .slider-btn {
        display: none !important;
    }

    /* Contact Section Mobile Spacing & Layout */
    .contact {
        padding: 2rem 0 !important;
    }

    .contact-info-items {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 0.8rem !important;
    }

    .contact-info-card {
        min-width: 100px !important;
        background-color: var(--surface-container-low) !important;
        border: 1px solid var(--outline-variant) !important;
    }

    /* Address card on a separate line (full-width) */
    .contact-info-card:nth-child(1) {
        flex: 1 1 100% !important;
        width: 100% !important;
        padding: 0.8rem 1rem !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        text-align: left !important;
        gap: 0.8rem !important;
    }

    /* Phone and Email cards side-by-side below the address */
    .contact-info-card:nth-child(2),
    .contact-info-card:nth-child(3) {
        flex: 1 1 45% !important;
        padding: 0.6rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0.4rem !important;
    }

    .contact-info-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .contact-info-icon .material-symbols-outlined {
        font-size: 1.1rem !important;
    }

    .contact-info-details h4 {
        font-size: 0.85rem !important;
        margin-bottom: 0.2rem !important;
    }

    .contact-info-details p {
        font-size: 0.72rem !important;
        word-break: break-word !important;
        line-height: 1.3 !important;
    }
}

/* Responsive Queries for New Hero Layout */
@media (max-width: 1024px) {
    .new-hero-container {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .hero-center {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 450px;
        height: 450px;
        margin: 0 auto;
    }

    .hero-product-image-wrap {
        width: 450px;
        height: 450px;
    }

    .hero-right {
        grid-column: span 2;
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    .new-hero {
        padding-top: 0.5rem;
        padding-bottom: 1rem;
    }

    .new-hero-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-left {
        align-items: center;
    }

    .hero-product-title {
        font-size: 2.5rem;
    }

    .hero-product-dosage {
        display: none !important;
    }

    .hero-client-text {
        display: none !important;
    }

    .hero-center {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        width: 320px;
        height: 320px;
        margin: 1.5rem auto;
    }

    .hero-product-image-wrap {
        width: 320px;
        height: 320px;
    }

    .hero-right {
        display: none !important;
    }

    .floating-contact-btn {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.7rem 1.6rem;
    }
}

/* About Us Certifications */
.cert-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
    border-color: var(--primary-container) !important;
    background-color: var(--surface-container) !important;
}