/* MidwifePlus unified storefront design system */
:root {
    --brand-primary: #d9aa32;
    --brand-primary-light: #f0ca67;
    --brand-dark: #173b35;
    --brand-text: #44534f;
    --brand-ink: #102b27;
    --brand-sage: #dce8df;
    --brand-sage-soft: #eef4ef;
    --brand-gold-soft: #fbf3dc;
    --bg-cream: #fbf8f0;
    --bg-beige: #f2ecdf;
    --bg-light: #ffffff;
    --gray-100: #f4f6f5;
    --gray-200: #e4e9e6;
    --gray-300: #d1d9d5;
    --gray-400: #81908b;
    --gray-500: #66756f;
    --gray-600: #52615c;
    --gray-700: #384843;
    --radius-card: 22px;
    --radius-button: 12px;
    --section-padding: 88px 0;
    --container-max-width: 1240px;
    --container-padding: 0 24px;
    --font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --shadow-light: 0 8px 30px rgba(23, 59, 53, 0.07);
    --shadow-medium: 0 18px 52px rgba(23, 59, 53, 0.13);
    --focus-ring: 0 0 0 4px rgba(217, 170, 50, 0.22);
}

html { scroll-padding-top: 130px; overflow-x: clip; }

body {
    padding-top: 118px;
    font-family: var(--font-family);
    color: var(--brand-text);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.site-main { min-height: 45vh; }

.skip-link {
    position: fixed;
    top: 8px;
    left: 12px;
    z-index: 3000;
    padding: 10px 16px;
    border-radius: 10px;
    background: #fff;
    color: var(--brand-dark);
    font-weight: 800;
    transform: translateY(-150%);
    transition: transform .2s ease;
}

.skip-link:focus { transform: translateY(0); }

h1, h2, .section-title, .page-title, .auth-title, .product-title-detail {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: -.02em;
    color: var(--brand-ink);
}

h3, h4, h5, h6 { color: var(--brand-ink); }
p { color: var(--brand-text); }
a { text-underline-offset: 3px; }

:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid rgba(217, 170, 50, .75);
    outline-offset: 3px;
}

.container { width: 100%; }

.brand-bar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1100;
    height: 36px;
    background: var(--brand-dark);
    color: #f8f4e8;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .025em;
}

.brand-bar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(24px, 6vw, 78px);
}

.brand-bar span { display: inline-flex; align-items: center; gap: 7px; }
.brand-bar svg { width: 14px; height: 14px; color: var(--brand-primary-light); }

/* Header and navigation */
.navbar,
.navbar.scrolled {
    top: 36px;
    height: 82px;
    padding: 0;
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(23, 59, 53, .08);
    box-shadow: 0 8px 30px rgba(23, 59, 53, .07);
    backdrop-filter: blur(16px);
}

.navbar > .container { max-width: var(--container-max-width); padding: 0 24px; }
.nav-brand a { gap: 11px; }
.nav-brand .logo,
.navbar.scrolled .nav-brand .logo { width: 45px; height: 45px; }
.nav-brand .brand-name { font-family: var(--font-family); font-size: 1.17rem; font-weight: 800; color: var(--brand-ink); }
.nav-brand .brand-name .brand-name-primary { color: #b47c00; }
.nav-brand .brand-name .brand-name-shop { color: var(--brand-dark); }
.nav-menu { gap: 4px; }

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--gray-600);
    font-size: .91rem;
    font-weight: 700;
}

.nav-link::after { display: none; }
.nav-link:hover { color: var(--brand-dark); background: var(--brand-sage-soft); }
.nav-link.active { color: var(--brand-dark); background: var(--brand-gold-soft); }

.nav-icon-btn,
.mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-200);
    border-radius: 50%;
    background: #fff;
    color: var(--brand-dark);
    box-shadow: 0 4px 15px rgba(23, 59, 53, .05);
}

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

.nav-icon-btn:hover,
.mobile-menu-toggle:hover { background: var(--brand-gold-soft); border-color: #ead69d; transform: translateY(-1px); }
.btn-login { border-radius: 999px; padding: 10px 17px; background: var(--brand-dark); color: #fff; font-weight: 700; }
.btn-login:hover { background: var(--brand-ink); color: #fff; }
.cart-badge { background: #be3e4d; color: #fff; border: 2px solid #fff; box-shadow: none; animation: none; }

.mobile-menu {
    top: 118px;
    padding: 20px;
    background: rgba(255, 255, 255, .98);
    border-top: 1px solid var(--gray-200);
}

.mobile-nav-link { border-radius: 14px; font-weight: 700; }
.mobile-nav-link.active { background: var(--brand-gold-soft); color: var(--brand-dark); }

/* Buttons */
.btn {
    min-height: 46px;
    padding: 12px 22px;
    border-radius: 999px;
    font-family: var(--font-family);
    font-size: .91rem;
    font-weight: 800;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, #e6bd50, #d39c1d);
    color: #173027;
    box-shadow: 0 8px 20px rgba(190, 137, 14, .2);
}

.btn-primary:hover { background: linear-gradient(135deg, #efcb6c, #d9a62e); color: #102b27; transform: translateY(-2px); box-shadow: 0 12px 28px rgba(190, 137, 14, .26); }
.btn-secondary { background: #fff; color: var(--brand-dark); border: 1px solid rgba(255,255,255,.7); }
.btn-secondary:hover { background: var(--brand-sage-soft); color: var(--brand-dark); }
.btn-outline { border: 1px solid #bac9c3; background: transparent; color: var(--brand-dark); }
.btn-outline:hover { background: var(--brand-dark); border-color: var(--brand-dark); color: #fff; }
.btn-block { width: 100%; }

/* Home hero */
.hero-slider { padding: 0 !important; background: var(--brand-ink); }
.slides, .slide-content { min-height: clamp(560px, 68vh, 700px); }
.slide { isolation: isolate; background-position: center !important; }
.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(10, 31, 28, .94) 0%, rgba(13, 37, 33, .78) 38%, rgba(16, 43, 39, .2) 69%, rgba(16, 43, 39, .08) 100%);
}

.slide-content { grid-template-columns: minmax(0, 650px) 1fr; padding: 72px 0 90px; }
.slide-text, .slide.active .slide-text { max-width: 650px; animation: none; }
.slide-text::before {
    content: 'Thoughtful care, chosen with expertise';
    display: inline-flex;
    margin-bottom: 18px;
    padding: 7px 12px;
    border: 1px solid rgba(240, 202, 103, .4);
    border-radius: 999px;
    background: rgba(23, 59, 53, .55);
    color: #f4d981;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.slide-title { max-width: 620px; margin-bottom: 20px; color: #fff; font-family: var(--font-display); font-size: clamp(3.25rem, 5vw, 5rem); font-weight: 400; line-height: 1.02; text-shadow: 0 4px 30px rgba(0,0,0,.25); }
.slide-subtitle { max-width: 610px; margin-bottom: 30px; color: rgba(255,255,255,.86); font-size: 1.08rem; line-height: 1.75; text-shadow: none; }
.slide-buttons { gap: 12px; }
.slide-buttons .btn { min-width: 158px; }
.slide-buttons .btn-secondary { background: rgba(255,255,255,.11); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(8px); }
.slide-buttons .btn-secondary:hover { background: #fff; color: var(--brand-dark); }
.slider-arrow { width: 46px; height: 46px; background: rgba(255,255,255,.88); box-shadow: none; }
.slider-arrow:hover { background: var(--brand-primary-light); transform: scale(1.04); }
.slider-dots { bottom: 26px; gap: 8px; }
.dot { width: 8px; height: 8px; background: rgba(255,255,255,.45); }
.dot.active { width: 28px; background: var(--brand-primary-light); }

/* Section rhythm */
.categories, .featured-products, .products, .how-it-works, .testimonials { padding: var(--section-padding); }
.categories { background: var(--bg-cream); }
.products, .featured-products { background: #fff; }
.how-it-works { background: var(--brand-sage-soft); }
.testimonials { background: linear-gradient(180deg, #fff 0%, var(--bg-cream) 100%); }
.section-title { position: relative; margin: 0 auto 48px; font-size: clamp(2.25rem, 4vw, 3.35rem); text-align: center; }
.section-title::after { content: ''; display: block; width: 54px; height: 3px; margin: 16px auto 0; border-radius: 3px; background: var(--brand-primary); }

.categories-heading { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.categories-heading .section-title { margin-bottom: 14px; }
.categories-heading .section-title::after { display: none; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    color: #8a6818;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}
.section-intro { margin: 0; color: var(--gray-600); font-size: 1rem; line-height: 1.75; }
.categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.2vw, 28px); }
.category-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    border: 1px solid rgba(23, 59, 53, .1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(23, 59, 53, .08);
    color: inherit;
    text-align: left;
    text-decoration: none;
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}
.category-card:hover {
    transform: translateY(-7px);
    border-color: rgba(217, 170, 50, .55);
    box-shadow: 0 22px 50px rgba(23, 59, 53, .15);
}
.category-card:focus-visible { outline: 3px solid rgba(217, 170, 50, .72); outline-offset: 4px; }
.category-card .category-image {
    position: relative;
    width: 100%;
    height: auto;
    margin: 0;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 0;
    background: linear-gradient(145deg, var(--brand-sage-soft), var(--brand-gold-soft));
}
.category-card .category-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.category-card:hover .category-image img { transform: scale(1.045); }
.category-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(10, 33, 29, .18));
    pointer-events: none;
}
.category-card .category-icon { width: 54px; height: 54px; color: var(--brand-primary); }
.category-content { display: flex; min-height: 230px; padding: clamp(22px, 2.4vw, 30px); flex: 1; flex-direction: column; align-items: flex-start; }
.category-label {
    margin-bottom: 9px;
    color: #8a6818;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .1em;
    line-height: 1.3;
    text-transform: uppercase;
}
.category-title { margin: 0 0 10px; color: var(--brand-dark); font-family: var(--font-display); font-size: clamp(1.5rem, 2vw, 1.78rem); font-weight: 400; line-height: 1.2; }
.category-text { min-height: 0; margin: 0 0 24px; color: var(--gray-600); font-size: .92rem; line-height: 1.7; }
.category-action {
    display: inline-flex;
    margin-top: auto;
    align-items: center;
    gap: 9px;
    color: var(--brand-primary);
    font-size: .86rem;
    font-weight: 800;
    line-height: 1.4;
}
.category-action svg { width: 17px; height: 17px; transition: transform .25s ease; }
.category-card:hover .category-action svg { transform: translateX(4px); }

.catalogue-empty-state {
    max-width: 720px;
    margin: 0 auto;
    padding: clamp(38px, 6vw, 64px) clamp(24px, 5vw, 56px);
    border: 1px solid rgba(23, 59, 53, .1);
    border-radius: 24px;
    background: linear-gradient(145deg, rgba(238, 245, 240, .78), rgba(255, 249, 232, .88));
    box-shadow: 0 14px 40px rgba(23, 59, 53, .08);
    text-align: center;
}
.catalogue-empty-icon {
    display: grid;
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    place-items: center;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(23, 59, 53, .1);
    color: var(--brand-primary);
}
.catalogue-empty-icon svg { width: 30px; height: 30px; }
.catalogue-empty-state h3 { margin: 0 0 12px; color: var(--brand-dark); font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.25rem); font-weight: 400; line-height: 1.2; }
.catalogue-empty-state p { max-width: 560px; margin: 0 auto 26px; color: var(--gray-600); line-height: 1.75; }
.catalogue-empty-state .btn { min-width: 190px; }

.products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-card);
    background: #fff;
    box-shadow: 0 5px 24px rgba(23,59,53,.06);
}
.product-card:hover { transform: translateY(-6px); border-color: #d7c486; box-shadow: var(--shadow-medium); }
.product-card .product-image { height: 285px; border-radius: 21px 21px 0 0; background: var(--gray-100); overflow: hidden; }
.product-card .product-image img { border-radius: 0; transition: transform .55s ease; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-card .product-info { display: flex; flex: 1; flex-direction: column; padding: 23px; }
.product-category { color: #8a6818; font-size: .7rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.product-title { margin: 7px 0 9px; font-family: var(--font-family); font-size: 1.08rem; font-weight: 800; line-height: 1.42; }
.product-description { color: var(--gray-500); line-height: 1.6; }
.product-price { margin-top: auto; color: var(--brand-dark); }
.product-price .current-price { color: var(--brand-dark); font-size: 1.35rem; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 12px; }
.product-actions .btn { min-height: 42px; padding: 9px 12px; font-size: .79rem; }
.badge-sale, .product-badge, .badge { border-radius: 999px; background: var(--brand-dark); color: #fff; }

.steps-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step-card { position: relative; padding: 30px 22px; border: 1px solid rgba(23,59,53,.08); border-radius: 20px; background: rgba(255,255,255,.72); text-align: left; }
.step-card .step-icon { width: 52px; height: 52px; margin: 0 0 22px; border-radius: 16px; background: var(--brand-gold-soft); color: var(--brand-dark); }
.step-card .step-icon svg { width: 23px; height: 23px; }
.step-card h3 { font-size: 1.05rem; }
.step-card p { margin: 0; color: var(--gray-600); font-size: .87rem; }

.testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial-card { padding: 30px; border: 1px solid var(--gray-200); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-light); }
.testimonial-rating { margin-bottom: 20px; }
.testimonial-rating .star { color: #c5cfc9; fill: transparent; }
.testimonial-rating .star.filled { color: #d3a021; fill: #d3a021; }
.testimonial-text { color: var(--brand-text); font-family: var(--font-display); font-size: 1.14rem; font-style: normal; line-height: 1.65; }
.testimonial-author { display: flex; flex-direction: column; gap: 2px; }
.testimonial-author span { color: #8a6818; font-weight: 700; }
.value-card, .category-card, .product-card, .testimonial-card { animation: none; }

/* Catalog and product detail */
.products-header, .page-hero {
    padding: 66px 0;
    background: radial-gradient(circle at 82% 12%, rgba(217,170,50,.22), transparent 28%), linear-gradient(135deg, #173b35, #0d2925);
}
.products-header h1, .page-hero h1 { font-family: var(--font-display); font-size: clamp(2.65rem, 5vw, 4rem); font-weight: 400; }
.products-header .header-description, .page-hero-subtitle { color: rgba(255,255,255,.76); }
.products-section { padding-bottom: 80px; }
.products-layout { grid-template-columns: 248px minmax(0, 1fr); gap: 30px; }
.products-sidebar { top: 138px; border: 1px solid var(--gray-200); border-radius: 18px; box-shadow: var(--shadow-light); }
.category-list a { border-radius: 12px; }
.category-list a.active { background: var(--brand-dark); color: #fff; }
.category-list a.active .count { color: #fff; background: rgba(255,255,255,.16); }
.filter-select, .sort-select { border-color: var(--gray-300); border-radius: 12px; }
.products-toolbar { border-radius: 16px; }
.pagination a, .pagination span { border-radius: 10px; }

.product-breadcrumb { background: var(--bg-cream); }
.product-detail-grid { gap: clamp(34px, 5vw, 70px); }
.product-gallery { top: 138px; }
.main-image-container { border: 1px solid var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-light); }
.main-image-container img { height: min(560px, 62vw); }
.thumbnail-item { border-radius: 14px; }
.thumbnail-item.active { border-color: var(--brand-primary); }
.product-info-detail { padding-top: 8px; }
.product-category-link { color: #87630d; font-weight: 800; }
.product-title-detail, .product-title-main { font-family: var(--font-display); font-size: clamp(2.35rem, 4vw, 3.7rem); font-weight: 400; line-height: 1.08; }
.product-price-detail .current-price, .product-price-detail { color: var(--brand-dark); }
.product-summary { margin: 22px 0; color: var(--gray-600); font-size: 1rem; line-height: 1.75; }
.product-details-copy { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.product-details-copy h2 { margin-bottom: 16px; font-family: var(--font-display); font-size: 1.7rem; font-weight: 400; }
.product-options, .quantity-section, .product-actions-detail, .product-meta { border-color: var(--gray-200); }
.option-btn.selected, .color-option.selected { border-color: var(--brand-dark); box-shadow: var(--focus-ring); }
.add-to-cart-btn { background: var(--brand-dark); color: #fff; border-radius: 999px; }
.add-to-cart-btn:hover { background: var(--brand-ink); }

/* Informational pages */
.page-section { padding: 82px 0; }
.page-section.bg-light { background: var(--brand-sage-soft); }
.page-section.bg-warm { background: var(--bg-cream); }
.section-header h2, .about-intro-content h2 { font-family: var(--font-display); font-weight: 400; }
.value-card, .feature-card, .contact-card, .info-card, .policy-content, .faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-light); }
.about-image-placeholder { background: linear-gradient(135deg, var(--brand-dark), #42675f); }
.value-icon, .feature-icon, .contact-icon { background: var(--brand-gold-soft); color: var(--brand-dark); }
.faq-question:hover, .faq-item.active .faq-question { color: var(--brand-dark); }

/* Forms, authentication, checkout and profile */
.form-input, .form-select, .form-textarea, .filter-select, .stripe-element,
input[type='text'], input[type='email'], input[type='password'], input[type='tel'], input[type='number'], textarea, select {
    border-color: var(--gray-300);
    border-radius: 12px;
    font-family: var(--font-family);
}

.form-input:focus, .form-select:focus, .form-textarea:focus, .filter-select:focus,
input:focus, textarea:focus, select:focus { border-color: #c29422; box-shadow: var(--focus-ring); outline: none; }
.form-label { color: var(--brand-ink); font-weight: 700; }

.auth-section { min-height: calc(100vh - 118px); padding: 56px 0 72px; background: radial-gradient(circle at 12% 12%, rgba(217,170,50,.17), transparent 30%), var(--brand-sage-soft); }
.auth-section > .container { display: flex; justify-content: center; }
.auth-card { border: 1px solid rgba(23,59,53,.08); border-radius: 26px; box-shadow: var(--shadow-medium); }
.auth-header::before { width: 48px; height: 5px; margin-bottom: 24px; border-radius: 999px; background: var(--brand-primary); box-shadow: none; }
.auth-title { font-size: 2.25rem; }
.auth-link, .forgot-link, .terms-link { color: #76550b; font-weight: 700; }
.auth-form .form-input { min-height: 51px; }

.checkout-progress { background: var(--brand-sage-soft); }
.checkout-section { padding: 52px 0 82px; background: #f8faf9; }
.checkout-layout { grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 34px; }
.checkout-layout .form-section, .summary-card { border: 1px solid var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-light); }
.checkout-layout .section-header { text-align: left; margin: 0 0 28px; }
.checkout-layout .section-header h2, .summary-title { font-family: var(--font-display); font-weight: 400; }
.summary-card { top: 138px; }
.stripe-badge, .security-info, .trust-signals { border-radius: 14px; background: var(--brand-sage-soft); }
.btn-checkout { min-height: 54px; }

.profile-section { background: #f8faf9; }
.profile-card, .content-section, .overview-card, .order-card, .wishlist-card, .support-card { border: 1px solid var(--gray-200); border-radius: var(--radius-card); box-shadow: var(--shadow-light); }
.profile-sidebar { top: 138px; }
.profile-nav .nav-item.active { background: var(--brand-dark); color: #fff; }
.profile-nav .nav-item:hover { background: var(--brand-sage-soft); color: var(--brand-dark); }

/* Cart and notices */
.cart-overlay { background: rgba(7,25,22,.56); backdrop-filter: blur(3px); }
.cart-sidebar { width: min(430px, 100vw); right: min(-430px, -100vw); border-left: 1px solid var(--gray-200); box-shadow: -20px 0 60px rgba(7,25,22,.18); }
.cart-header { padding: 22px 24px; }
.cart-header h3 { margin: 0; font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; }
.close-cart { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gray-200); border-radius: 50%; background: #fff; }
.notification { border: 1px solid var(--gray-200); border-radius: 16px; }

/* Footer */
.footer-main { padding: 68px 0 54px; background: linear-gradient(145deg, #173b35, #0d2925); }
.footer-grid { grid-template-columns: 1.8fr .8fr .8fr 1fr 1.25fr; gap: 38px; }
.footer-logo-brand {
    display: inline-flex;
    width: fit-content;
    padding: 12px;
    align-self: flex-start;
    border: 1px solid rgba(217, 170, 50, .24);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 12px 28px rgba(8, 31, 27, .22);
}
.footer-logo { display: block; width: clamp(124px, 10vw, 146px); height: auto; max-width: 100%; object-fit: contain; }
.footer-brand-name { color: var(--brand-primary-light); font-family: var(--font-display); font-size: 1.55rem; font-weight: 400; }
.footer-heading { font-size: .82rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.footer-heading::after { background: var(--brand-primary); }
.footer-links a, .footer-tagline, .newsletter-text, .footer-contact .contact-item a { color: rgba(255,255,255,.68); }
.footer-links a:hover, .footer-contact .contact-item:hover a { color: var(--brand-primary-light); }
.newsletter-input-group { border-radius: 999px; }
.newsletter-btn { border-radius: 999px; background: var(--brand-primary-light); }
.footer-bottom { background: #0a211e; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media (max-width: 1024px) {
    .categories-grid, .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .categories-grid .category-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .categories-grid .category-card:last-child:nth-child(odd) .category-image { aspect-ratio: 21 / 8; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-newsletter { grid-column: span 2; }
    .checkout-layout { grid-template-columns: 1fr; }
    .summary-card { position: static; }
}

@media (max-width: 768px) {
    :root { --section-padding: 64px 0; --container-padding: 0 18px; }
    body { padding-top: 108px; }
    html { scroll-padding-top: 118px; }
    .brand-bar { height: 32px; }
    .brand-bar-inner { justify-content: center; }
    .brand-bar-inner span:not(:first-child) { display: none; }
    .navbar, .navbar.scrolled { top: 32px; height: 76px; }
    .navbar > .container { padding: 0 16px; }
    .nav-brand .logo, .navbar.scrolled .nav-brand .logo { width: 39px; height: 39px; }
    .nav-brand .brand-name { display: inline; font-size: 1rem; }
    .footer-logo-brand { align-self: center; }
    .footer-logo { width: 126px; }
    .mobile-menu-toggle { display: inline-flex; }
    .mobile-menu { top: 108px; }
    .slides, .slide-content { min-height: 590px; }
    .slide { background-position: 64% center !important; }
    .slide::before { background: linear-gradient(90deg, rgba(10,31,28,.95), rgba(10,31,28,.82) 62%, rgba(10,31,28,.48)); }
    .slide-content { display: flex; align-items: center; padding: 58px 0 90px; text-align: left; }
    .slide-text { max-width: 520px; }
    .slide-title { font-size: clamp(2.7rem, 12vw, 3.7rem); }
    .slide-subtitle { font-size: 1rem; }
    .slide-buttons { align-items: stretch; justify-content: flex-start; flex-direction: row; }
    .slide-buttons .btn { width: auto; min-width: 0; }
    .slider-nav { display: none; }
    .categories-grid, .products-grid, .testimonials-grid { grid-template-columns: 1fr 1fr !important; gap: 16px; }
    .categories-heading { margin-bottom: 34px; }
    .category-content { min-height: 215px; padding: 22px; }
    .product-card .product-image { height: 230px; }
    .product-actions { grid-template-columns: 1fr; }
    .products-layout { grid-template-columns: 1fr; }
    .products-sidebar { position: static; padding: 16px; }
    .products-sidebar .sidebar-section { margin-bottom: 16px; }
    .products-sidebar .sidebar-title { margin-bottom: 10px; padding-bottom: 8px; }
    .products-sidebar .category-list { display: flex; gap: 8px; margin: 0 -4px; padding: 4px; overflow-x: auto; scrollbar-width: thin; }
    .products-sidebar .category-list li { flex: 0 0 auto; margin: 0; }
    .products-sidebar .category-list a { gap: 12px; padding: 10px 13px; white-space: nowrap; }
    .product-detail-grid { grid-template-columns: 1fr; }
    .product-gallery { position: static; }
    .main-image-container img { height: min(520px, 100vw); }
    .page-section { padding: 64px 0; }
    .auth-section { min-height: calc(100vh - 108px); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-newsletter { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
    :root { --section-padding: 54px 0; --container-padding: 0 16px; }
    .nav-brand .brand-name { display: inline; max-width: 150px; font-size: .9rem; white-space: nowrap; }
    .nav-actions { gap: 7px; }
    .nav-auth-buttons { display: none; }
    .slides, .slide-content { min-height: 610px; }
    .slide-text::before { font-size: .64rem; letter-spacing: .05em; }
    .slide-title { font-size: 2.65rem; }
    .slide-buttons { flex-direction: column; }
    .slide-buttons .btn { width: 100%; }
    .section-title { margin-bottom: 34px; font-size: 2.35rem; }
    .categories-grid, .products-grid, .testimonials-grid, .steps-grid { grid-template-columns: 1fr !important; }
    .categories-grid .category-card:last-child:nth-child(odd) { grid-column: auto; }
    .categories-grid .category-card:last-child:nth-child(odd) .category-image,
    .category-card .category-image { aspect-ratio: 16 / 10; }
    .categories-heading { margin-bottom: 28px; }
    .categories-heading .section-title { margin-bottom: 12px; }
    .section-intro { font-size: .94rem; }
    .category-content { min-height: 0; padding: 21px 20px 23px; }
    .category-text { margin-bottom: 20px; }
    .catalogue-empty-state { padding: 34px 20px; border-radius: 20px; }
    .catalogue-empty-icon { width: 62px; height: 62px; border-radius: 19px; }
    .product-card .product-image { height: 285px; }
    .product-actions { grid-template-columns: 1fr 1fr; }
    .step-card { text-align: center; }
    .step-card .step-icon { margin: 0 auto 20px; }
    .products-header, .page-hero { padding: 48px 0; }
    .checkout-layout .form-section, .summary-card, .auth-card { padding: 22px 18px; }
    .checkout-layout .form-row, .auth-form .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-logo-brand { padding: 10px; border-radius: 17px; }
    .footer-logo { width: 112px; }
    .footer-brand, .footer-newsletter { grid-column: auto; }
    .footer-bottom-content { align-items: flex-start; text-align: left; }
}
