:root {
    /* Color Palette */
    --clr-bg: #F7F3EE;
    --clr-primary: #2D3A2D;
    --clr-accent: #C5A47E;
    --clr-text-main: #2D2D2D;
    --clr-text-muted: #5D5D5D;
    --clr-white: #FFFFFF;
    --clr-glass: rgba(255, 255, 255, 0.4);
    --clr-black: #000000;
    --clr-cta: #F5A623;

    /* Typography */
    --ff-heading: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;

    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-padding: 80px 24px;
    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    font-family: var(--ff-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('assets/img-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.5;
    z-index: -1;
    pointer-events: none;
    /* Removed filter: blur on mobile for performance */

    /* Critical fix: fixed background on mobile causes major flickering */
    background-attachment: scroll;
}

@media (min-width: 1024px) {
    body::before {
        filter: blur(5px);
        background-attachment: fixed;
    }
}

.main-container {
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    position: relative;
    z-index: 1;
    margin: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    padding-bottom: 0;
    overflow: hidden;

    /* STATIONARY TOP BOUNDARY WITH ROUNDED CORNERS */
    /* By adding 'round' to the inset, the clip itself stays rounded.
       As scroll increases, the clip moves down the element, but stays fixed in the viewport. */
    clip-path: inset(var(--scroll-y, 0px) 0 0 0 round 12px 12px 0 0);
}

@media (min-width: 1024px) {
    .main-container {
        margin: 40px;
        border-radius: 24px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        /* Re-enabling fixed top for PC with desktop-specific radius */
        clip-path: inset(var(--scroll-y, 0px) 0 0 0 round 24px 24px 0 0);
    }
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Scrolled State */
.header.scrolled {
    padding: 10px 0;
}

/* Animations Helper */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header & Nav */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 4000;
    /* Above overlay */
    padding: 10px 0;
    /* Matches top margin of container */
    transition: var(--transition);
}

.header .container {
    padding: 0;
    max-width: none;
}

.header .nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 24px;
    /* Increased horizontal to 24px, reduced vertical to 8px */
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 0 auto;
    width: calc(100% - 32px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-primary);
    cursor: pointer;
    transition: var(--transition);
    margin-left: 12px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    z-index: 3000;
    /* Above overlay */
}

.mobile-menu-toggle .hamburger,
.mobile-menu-toggle .close-icon {
    display: flex;
    transition: var(--transition);
}

.mobile-menu-toggle .close-icon {
    display: none;
}

.mobile-menu-toggle.is-active .hamburger {
    display: none;
}

.mobile-menu-toggle.is-active .close-icon {
    display: flex;
}

.mobile-menu-toggle:hover {
    color: var(--clr-accent);
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}

@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex;
    }
}


@media (min-width: 1024px) {
    .header {
        padding: 10px 0;
    }

    .header .nav {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 10px 48px;
    }
}

.logo {
    font-family: var(--ff-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
}

.logo span {
    color: var(--clr-accent);
}

.nav-links {
    display: none;
    /* Mobile first */
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
        gap: 32px;
    }

    .nav-links a {
        text-decoration: none;
        color: var(--clr-text-main);
        font-weight: 500;
        font-size: 15px;
        transition: var(--transition);
        position: relative;
        padding-bottom: 3px;
        display: inline-block;
    }

    .nav-links a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0%;
        height: 2px;
        border-radius: 2px;
        background: var(--clr-accent);
        /* Replaced gradient with solid color */
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links a:hover {
        color: var(--clr-text-main);
        transform: scale(1.07);
    }

    .nav-links a:hover::after {
        width: 100%;
    }
}

/* Utilities */
.desktop-only {
    display: none !important;
}

@media (min-width: 1024px) {
    .desktop-only {
        display: flex !important;
    }
}

.mobile-only {
    display: block !important;
}

@media (min-width: 1024px) {
    .mobile-only {
        display: none !important;
    }
}

.header .nav-btn {
    display: none !important;
}

@media (min-width: 1024px) {
    .header .nav-btn {
        display: inline-flex !important;
    }
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 45, 0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition);
    padding: 35px 16px 20px;
    /* 35px is approx half header height, 16px is header side margin */
}

.card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
}

.mobile-menu-overlay.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-card {
    width: 100%;
    max-width: 280px;
    padding: 60px 24px 32px;
    /* Added top padding for spacing from toggle icon area */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    position: relative;
    transform: translateY(-10px);
    /* Subtle fade in from top-right area */
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 20px;
    background: var(--clr-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.mobile-menu-overlay.is-active .mobile-menu-card {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.mobile-nav-links a:not(.btn) {
    font-family: var(--ff-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
    display: inline-block;
}

.mobile-nav-links a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 3px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--clr-accent), var(--clr-primary));
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-links a:not(.btn):hover {
    color: var(--clr-primary);
    transform: scale(1.07);
}

.mobile-nav-links a:not(.btn):hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 32px;
    border-radius: 100px;
    font-family: var(--ff-heading);
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--clr-cta);
    color: var(--clr-white);
    box-shadow: 0 8px 16px rgba(45, 58, 45, 0.15);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(45, 58, 45, 0.2);
    background-color: var(--clr-primary);
    border: 1px solid var(--clr-white);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
}

.btn-secondary:hover {
    background-color: var(--clr-white);
    color: var(--clr-primary);
    border: 1px solid var(--clr-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
}

.nav-btn {
    padding: 10px 24px;
    font-size: 14px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 90px;
    padding-bottom: 60px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-image: url('assets/img-hero.png');
    background-repeat: no-repeat;
    background-position: calc(50% + 300px) 50%;
    background-size: 40% auto;
}

@media (max-width: 1023px) {
    .hero {
        padding-top: 90px;
        padding-bottom: 60px;
        background-position: calc(50% + 100px) 72%;
        background-size: 70% auto;
        min-height: auto;
    }
}

.hero-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: flex-start;
    /* Align contents to the left */
    text-align: left;
}

.hero-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--clr-white);
    padding: 8px 16px;
    border-radius: 100px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--clr-primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: inline-flex;
}

.hero-title {
    font-family: var(--ff-heading);
    font-size: 36px;
    line-height: 1.1;
    color: var(--clr-primary);
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--clr-text-muted);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
    /* Prevents buttons from stretching to full width */
}

.hero-actions .btn {
    width: 50%;
    /* Make them half as wide */
    min-width: 200px;
    /* But keep a reasonable minimum for readability */
}

.hero-trust {
    margin-top: 48px;
    display: flex;
    justify-content: flex-start;
    /* Align trust items to the left */
    align-items: center;
    gap: 20px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.trust-val {
    font-weight: 700;
    font-family: var(--ff-heading);
    font-size: 20px;
    color: var(--clr-primary);
}

.trust-label {
    font-size: clamp(9px, 2.5vw, 12px);
    /* Allow shrinking on mobile */
    color: var(--clr-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    /* Prevent wrapping to second line */
}

.trust-divider {
    width: 1px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Product Visuals */
.hero-visual {
    width: 100%;
    position: relative;
}

.product-wrapper {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    z-index: 1;
}

.product-placeholder {
    width: 100%;
    padding-bottom: 125%;
    /* Ratio for bottle style */
    background: var(--clr-white);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.product-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.95);
}

.product-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: none;
    /* Removed glow gradient */
    z-index: -1;
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .hero-grid {
        display: grid;
        grid-template-columns: 1.2fr 1fr;
        text-align: left;
        align-items: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-actions {
        flex-direction: row;
        width: auto;
    }

    .hero-trust {
        justify-content: flex-start;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

.slide-up {
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-actions.slide-up {
    animation-delay: 0.4s;
}

.hero-trust.fade-in {
    animation-delay: 0.6s;
}

/* About Product Section */
.about {
    padding: 60px 0;
    position: relative;
    z-index: 10;
    scroll-margin-top: 50px;
}

.section-header {
    max-width: 700px;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--ff-heading);
    font-size: clamp(32px, 5vw, 42px);
    color: var(--clr-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

.ingredients-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    row-gap: 120px;
    margin-top: 80px;
}

.ingredient-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    padding: 80px 32px 40px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.ingredient-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(197, 164, 126, 0.3);
}

.ingredient-icon {
    width: 160px;
    /* Enlarged ~2x */
    height: 160px;
    position: absolute;
    top: -80px;
    /* Halfway above the card */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: var(--transition);
}

.ingredient-card:hover .ingredient-icon {
    transform: translateX(-50%) translateY(-10px) scale(1.05);
}

.ingredient-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(15px 30px 40px rgba(0, 0, 0, 0.35));
}

.ingredient-name {
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.ingredient-desc {
    font-size: 15px;
    color: var(--clr-text-muted);
    line-height: 1.6;
}

/* Animation classes */
.animate-ready {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-ready.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.6s ease-out;
}

.animate-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Adjustments */
@media (max-width: 1023px) {
    .about {
        padding: 60px 0;
    }

    .ingredients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        row-gap: 80px;
        margin-top: 60px;
    }

    .ingredient-card {
        padding: 60px 16px 30px;
        text-align: center;
        align-items: center;
    }

    .ingredient-icon {
        width: 110px;
        height: 110px;
        top: -55px;
    }

    .ingredient-name {
        font-size: 16px;
    }

    .ingredient-desc {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Delivery Section */
.delivery {
    padding: 60px 0;
    position: relative;
    scroll-margin-top: 50px;
}

.delivery .section-header {
    margin-bottom: 32px;
}

.delivery-card {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    border-radius: var(--border-radius);
    overflow: hidden;
    min-height: 380px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.06);
}

.delivery-image {
    background: linear-gradient(135deg, rgba(197, 164, 126, 0.2) 0%, rgba(45, 58, 45, 0.08) 100%);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    min-height: 500px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delivery-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    padding: 20px;
    /* Add some padding so it doesn't touch edges */
}

.delivery-content {
    padding: 48px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 16px;
}

.delivery-content .btn {
    min-width: 200px;
}

.delivery-title {
    font-family: var(--ff-heading);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1.2;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);
}

.delivery-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--clr-accent);
    letter-spacing: 0.01em;
    text-shadow: 0 1px 1px rgba(45, 58, 45, 0.05);
}

.delivery-text {
    font-size: 15px;
    color: var(--clr-text-muted);
    line-height: 1.7;
    max-width: 480px;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
}

@media (max-width: 1023px) {
    .delivery-card {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: auto;
        background: rgba(197, 164, 126, 0.05);
        /* Solid tint instead of gradient */
        min-height: 480px;
        align-items: center;
        padding: 24px 0;
        position: relative;
        overflow: visible;
    }

    .delivery-image {
        grid-column: 1 / 3;
        grid-row: 1;
        background: none;
        border-right: none;
        border-bottom: none;
        height: 100%;
        min-height: 300px;
        z-index: 1;
        pointer-events: none;
    }

    .delivery-image img {
        padding: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .delivery-content {
        grid-column: 2 / 4;
        grid-row: 1;
        background: rgba(255, 255, 255, 0.75);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid var(--clr-accent);
        border-radius: 20px;
        padding: 24px 16px;
        margin-right: 12px;
        z-index: 2;
        gap: 12px;
    }

    .delivery-title {
        font-size: 20px;
        line-height: 1.1;
    }

    .delivery-subtitle {
        font-size: 13px;
    }

    .delivery-text {
        font-size: 13px;
        line-height: 1.4;
    }

    .delivery-content .btn {
        min-width: 100%;
        height: 44px;
        font-size: 14px;
    }
}

/* Catalog Section */
.catalog {
    padding: 60px 0;
    position: relative;
    scroll-margin-top: 50px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-card {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--border-radius);
    position: relative;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.product-card:hover {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(197, 164, 126, 0.3);
}

.product-visual,
.product-details {
    display: contents;
    /* Allows direct children of containers to be siblings in product-card flex context */
}

.product-image {
    order: 1;
    width: 100%;
    aspect-ratio: 5 / 3;
    background: var(--clr-bg);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.product-image img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: var(--transition);
    filter: drop-shadow(10px 15px 25px rgba(0, 0, 0, 0.15));
}

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

.product-name {
    order: 2;
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-primary);
    margin: 32px 32px 12px;
    line-height: 1.3;
}

.product-short {
    order: 3;
    font-size: 14px;
    color: var(--clr-text-muted);
    margin: 0 32px 20px;
    line-height: 1.5;
}

.product-features {
    order: 4;
    list-style: none;
    margin: 0 32px 10px;
}

.product-features li {
    font-size: 14px;
    color: var(--clr-text-main);
    padding-left: 24px;
    position: relative;
    margin-bottom: 8px;
}

.product-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--clr-accent);
    font-weight: bold;
}

.product-disclaimer {
    order: 5;
    font-size: 11px;
    color: var(--clr-text-muted);
    text-align: left;
    margin: 10px 32px 20px;
    opacity: 0.7;
    font-style: italic;
}

.product-price-box {
    order: 6;
    background: rgba(45, 58, 45, 0.03);
    padding: 20px;
    border-radius: 20px;
    margin: auto 32px 24px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.price-main {
    font-family: var(--ff-heading);
    font-size: 26px;
    font-weight: 800;
    color: var(--clr-primary);
}

.price-per {
    font-size: 15px;
    color: var(--clr-text-muted);
    font-weight: 500;
}

.product-btn {
    order: 7;
    margin: 0 32px 32px;
}

.product-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--clr-primary);
    color: var(--clr-white);
    padding: 6px 16px;
    border-radius: var(--border-radius);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1023px) {
    .catalog {
        padding: 60px 0;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-card {
        flex-direction: row;
        padding: 16px;
        gap: 16px;
        align-items: stretch;
    }

    .product-visual,
    .product-details {
        display: flex;
        /* Restore flex context for mobile grouping */
        flex-direction: column;
    }

    .product-visual {
        flex: 0 0 40%;
        max-width: 40%;
    }

    .product-details {
        flex: 1;
        justify-content: space-between;
    }

    .product-image {
        aspect-ratio: 1 / 1;
        border-radius: 20px;
        margin-bottom: 12px;
        overflow: visible;
        /* Allow image to pop out */
        position: relative;
        background: transparent;
        /* Remove background on mobile */
    }

    .product-image img {
        width: 110%;
        height: 110%;
        max-width: none;
        object-fit: contain;
        transform: none;
    }

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

    .product-name {
        margin: 0 0 8px 0;
        font-size: 18px;
    }

    .product-short {
        margin: 0 -8px 12px 0;
        /* Reduced right padding effect */
        font-size: 13px;
        display: block;
        /* Removed line clamp */
        overflow: visible;
    }

    .product-features {
        display: block;
        margin: 0 -8px 12px 0;
        /* Reduced right padding effect */
    }

    .product-features li {
        font-size: 11px;
        margin-bottom: 4px;
        padding-left: 12px;
        /* Text closer to checkmarks */
    }

    .product-disclaimer {
        margin: 0 0 12px 0;
        font-size: 9px;
        white-space: nowrap;
        opacity: 0.6;
    }

    .product-price-box {
        margin: 0;
        padding: 10px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .price-main {
        font-size: 16px;
    }

    .price-per {
        font-size: 10px;
    }

    .product-btn {
        margin: auto 0 0 0;
        height: 40px;
        font-size: 13px;
        padding: 0 16px;
    }

    .product-badge {
        left: 20px;
        transform: translateY(-50%);
        font-size: 9px;
        padding: 4px 12px;
    }
}

/* Contacts Section */
.contacts {
    padding: 60px 0 160px;
    /* Increased bottom padding for visual breathing room */
    position: relative;
    scroll-margin-top: 50px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 32px;
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(197, 164, 126, 0.3);
}

.contact-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-primary);
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    color: var(--clr-accent);
    background: rgba(255, 255, 255, 1);
}

.contact-info {
    flex: 1;
}

.contact-title {
    font-family: var(--ff-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 4px;
}

.contact-text {
    font-size: 14px;
    color: var(--clr-text-muted);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .contact-card {
        flex-direction: column;
        padding: 24px 12px;
        text-align: center;
        gap: 16px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        margin: 0 auto;
    }

    .contact-icon svg {
        width: 20px;
        height: 20px;
    }

    .contact-title {
        font-size: 16px;
    }

    .contact-text {
        font-size: 11px;
        line-height: 1.3;
    }
}

.footer {
    width: 100%;
    position: relative;
    z-index: 15;
    padding-bottom: 40px;
}

.footer-island {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    gap: 16px;
    padding: 8px 24px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 10;
}

@media (max-width: 1023px) {
    .main-container {
        margin-bottom: 16px;
        /* Disappear at the level of the middle of the header on mobile (+16px shift) */
        clip-path: inset(calc(var(--scroll-y, 0px) + 16px) 0 0 0 round 16px 16px 0 0);
    }

    .footer {
        margin-top: -65px;
        /* Pull up to sit exactly at the container's bottom edge */
        padding-bottom: 32px;
        position: relative;
        z-index: 15;
    }

    .footer-island {
        padding: 8px 12px 8px 24px;
        /* Reduced right padding, kept left at 24px */
        width: calc(100% - 32px);
        /* Matches container width */
        margin: 0 auto;
        border-radius: 16px;
        /* All corners rounded as requested */
        background: rgba(255, 255, 255, 0.8);
        /* Reverting to header-like glass */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
}

@media (min-width: 1024px) {
    .footer {
        margin-top: -72px;
        /* Overlap effect: Pull half of footer up over container */
        padding-bottom: 80px;
    }

    .footer-island {
        padding: 10px 48px;
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        border-radius: 16px;
    }
}

.footer .logo {
    font-size: 24px;
    /* Exactly as header */
}

.footer-message {
    font-family: var(--ff-body);
    font-weight: 400;
    font-size: clamp(10px, 3vw, 15px);
    /* Shrinks on small screens */
    color: var(--clr-primary);
    opacity: 0.8;
    white-space: nowrap;
    /* Forces text to stay in one line */
}

/* Order Form Modal */
.order-form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 45, 0.4);
    /* 40% opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    /* Increased priority */
    display: none;
    /* Hide by default */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.order-form-overlay.is-active {
    display: flex;
    /* Show when active */
    opacity: 1;
}

.order-form-card {
    width: 90%;
    max-width: 500px;
    padding: 40px;
    border-radius: 24px;
    position: relative;
    transform: scale(0.9);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
    /* Glass effect with more transparency */
}

.order-form-overlay.is-active .order-form-card {
    transform: scale(1);
}

.order-form-close {
    background: rgba(45, 58, 45, 0.05);
    border: 1px solid rgba(45, 58, 45, 0.1);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--clr-primary);
    transition: var(--transition);
}

.order-form-close:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: rotate(90deg);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-logo-group {
    display: flex;
    align-items: baseline;
    gap: 16px;
}

.modal-logo {
    font-family: var(--ff-heading);
    font-size: 26px;
    /* Slightly larger to compensate for modal context */
    font-weight: 700;
    color: var(--clr-primary);
    text-decoration: none;
    pointer-events: none;
}

.modal-logo span {
    color: var(--clr-accent);
}

.form-title {
    font-family: var(--ff-heading);
    font-size: 24px;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 0;
    line-height: 1;
}

.product-selection-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
    align-items: center;
}

.product-image-column {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    /* Fixed container height to prevent shifting */
}

.product-preview-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.form-label-main {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-primary);
    margin-bottom: 6px;
    margin-left: 4px;
}

.radio-group {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px 10px;
    /* Reduced padding to fit more text */
    transition: var(--transition);
}

.radio-label:hover {
    background: rgba(45, 58, 45, 0.03);
}

.radio-label input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--clr-accent);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.radio-custom::after {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--clr-accent);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radio-label input:checked+.radio-custom {
    background: var(--clr-accent);
    border-color: var(--clr-accent);
}

.radio-label input:checked+.radio-custom::after {
    background: white;
    transform: translate(-50%, -50%) scale(1);
}

.radio-label input:checked~.radio-text {
    color: var(--clr-primary);
    font-weight: 600;
}

.radio-label:has(input:checked) {
    background: rgba(197, 164, 126, 0.05);
}

.radio-text {
    font-size: 15px;
    color: var(--clr-text-main);
    transition: var(--transition);
}

.order-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--clr-primary);
    margin-left: 4px;
}

.label-hint {
    font-size: 11px;
    font-weight: 400;
    color: var(--clr-text-muted);
    opacity: 0.7;
    margin-left: 4px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 10px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.8);
    font-family: var(--ff-body);
    font-size: 15px;
    transition: var(--transition);
    color: var(--clr-text-main);
    width: 100%;
}

.phone-input-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding-left: 10px;
    transition: var(--transition);
    width: 100%;
}

.phone-input-group:focus-within {
    border-color: var(--clr-accent);
    background: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.1);
}

.phone-prefix {
    font-family: var(--ff-body);
    font-size: 15px;
    color: var(--clr-text-main);
    font-weight: 400;
    margin-right: 2px;
    user-select: none;
    line-height: 1.2;
}

.phone-input-group input#phone {
    border: none;
    background: none;
    padding: 12px 0;
    box-shadow: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--clr-accent);
    background: var(--clr-white);
    box-shadow: 0 0 0 4px rgba(197, 164, 126, 0.1);
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--clr-primary);
    border-bottom: 2px solid var(--clr-primary);
    rotate: 45deg;
    pointer-events: none;
}

.form-group select {
    appearance: none;
    cursor: pointer;
    padding-right: 40px;
}

.form-group textarea {
    resize: none;
    min-height: 100px;
}

.char-counter {
    font-size: 12px;
    color: var(--clr-text-muted);
    text-align: right;
    margin-top: 4px;
}

.submit-btn {
    width: 100%;
    margin-top: 8px;
}

/* Mobile Adjustments for Form */
@media (max-width: 1023px) {
    .order-form-overlay {
        align-items: center;
        padding: 0;
    }

    .order-form-card {
        width: calc(100% - 32px);
        margin: 40px auto;
        height: calc(100vh - 80px);
        max-height: calc(100vh - 80px);
        border-radius: 20px;
        padding: 3vh 24px;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .order-form {
        gap: clamp(8px, 1.5vh, 16px);
        display: flex;
        flex-direction: column;
    }

    .product-selection-section {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
        margin-bottom: 2vh;
    }

    .product-image-column {
        height: 120px;
    }

    .modal-header {
        margin-bottom: clamp(16px, 3.5vh, 32px);
    }


    .modal-logo {
        font-size: 24px;
    }

    .form-title {
        font-size: 18px;
    }

    .form-group label {
        font-size: clamp(12px, 1.8vh, 14px);
        margin-bottom: clamp(2px, 0.5vh, 6px);
    }

    .form-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 16px;
    }

    .form-group input,
    .form-group select,
    .form-group textarea,
    .phone-input-group input#phone {
        width: 100%;
        padding: clamp(8px, 1.2vh, 14px) 10px;
        font-size: clamp(12px, 1.8vh, 14px);
    }

    .radio-text {
        font-size: clamp(12px, 1.8vh, 14px);
    }

    .phone-input-group {
        padding-left: 10px;
    }

    .phone-input-group input#phone {
        padding-left: 0;
    }

    .order-form-close {
        width: clamp(36px, 5vh, 44px);
        height: clamp(36px, 5vh, 44px);
    }

    .hero-trust {
        gap: 12px;
        /* Reduce gap on mobile to save space */
    }

    .submit-btn {
        margin-top: clamp(8px, 2vh, 20px);
        padding: clamp(12px, 2vh, 18px);
        font-size: clamp(14px, 2vh, 16px);
    }

    .char-counter {
        font-size: 10px;
        margin-top: 2px;
    }
}

/* Success Modal Styles */
.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 58, 45, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.success-overlay.is-active {
    display: flex;
    opacity: 1;
}

.success-card {
    width: 90%;
    max-width: 400px;
    padding: 48px 32px;
    border-radius: 24px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.6);
}

.success-overlay.is-active .success-card {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(45, 58, 45, 0.05);
    color: #2D3A2D;
    /* Primary green matches company style */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon svg {
    color: #4CAF50;
    /* Vibrant green for the checkmark */
}

.success-title {
    font-family: var(--ff-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    line-height: 1.6;
    color: var(--clr-text-muted);
    margin-bottom: 32px;
}

.success-btn {
    width: 100%;
    padding: 16px;
    font-size: 16px;
}

@media (max-width: 1023px) {
    .success-card {
        padding: 40px 24px;
    }

    .success-title {
        font-size: 24px;
    }

    .success-message {
        font-size: 14px;
    }
}