/* ============================================
   COMBED & COOL - Main Stylesheet
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 124, 98, 0.25);
    border-radius: 40px;
    transition: background 0.25s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 124, 98, 0.55);
}

::-webkit-scrollbar-thumb:active {
    background: rgba(74, 124, 98, 0.75);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

:root {
    --primary-dark: #2f5a45;
    --primary: #4a7c62;
    --primary-light: #8fb29e;
    --brand-navy: #002663;
    --brand-green: #69b514;
    --accent: #4a7c62;
    --bg-light: #eef5f0;
    --bg-white: #fbfdfb;
    --bg-cream: #f2f7f3;
    --text-dark: #1d3529;
    --text-gray: #50645a;
    --text-light: #7d9288;
    --border-color: #cddbd3;
    --border-light: #e1ebe5;
    --success: #3f7f5d;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Bebas Neue', sans-serif;
    --font-description: 'Roboto', sans-serif;
    --font-ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --mobile-tabbar-height: 72px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Legal: brand-language disclaimer (attorney review, Aug 14 2026). Required on every page. */
.legal-disclaimer {
    margin: 0;
    padding: 6px 16px;
    font-size: 11px;
    line-height: 1.5;
    text-align: center;
    color: var(--text-light);
    background: var(--bg-cream);
    border-bottom: 1px solid var(--border-light);
}

@media (min-width: 769px) {
    body {
        --page-max-width: 1672px;
        width: min(100%, var(--page-max-width));
        margin-inline: auto;
    }
}

h1,
h2,
h3,
h4,
h5,
h6,
.home-hero-title {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0.02em;
}

p:not(.product-price):not(.product-price-main):not(.bestseller-price):not(.price):not(.item-price):not(.summary-item-price):not(.error-code) {
    font-family: var(--font-description);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.ui-icon {
    display: block;
    width: 20px;
    height: 20px;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
}

img.logo-img {
    width: auto;
    max-width: 120px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.footer .logo-img {
    height: 40px;
    max-width: 128px;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    border: none;
    outline: none;
}

button {
    cursor: pointer;
}

.container {
    /* display: contents; */
    position: relative;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.logo-wordmark {
    display: none;
}

.header-announcement {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 6px 16px;
    background: var(--primary-dark);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.6px;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}

.header .navbar-nav {
    align-items: center;
}

.header .navbar-nav > .nav-item > .nav-link {
    white-space: nowrap;
}

/* CMS toolbar visible — push sticky header below it on non-home pages */
html.cms-toolbar-expanded .header {
    top: var(--cms-toolbar-offset, 46px);
}

.header-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 10px 32px;
    width: 100%;
    /* max-width: 1440px; */
    margin: 0 auto;
    gap: 24px;
}

.header-inner > .navbar-brand.logo {
    justify-self: start;
}

.header-inner > .site-main-nav {
    grid-column: 2;
    justify-self: center;
}

.header-inner > .header-actions {
    justify-self: end;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.navbar-brand.logo {
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
}

.header .navbar-collapse {
    flex: 1 1 auto;
    justify-content: center;
}

.header .navbar-nav {
    gap: 8px;
    margin: 0 auto;
}

.header .navbar-nav > .nav-item > .nav-link {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    padding: 8px 14px;
    color: var(--text-dark);
}

.header .navbar-nav > .nav-item > .nav-link:hover,
.header .navbar-nav > .nav-item > .nav-link.active,
.header .navbar-nav > .nav-item > .nav-link.show {
    color: var(--primary-dark);
}

.header .navbar-nav > .nav-item > .nav-link.active::after {
    bottom: -2px;
    height: 2px;
    background: var(--primary-dark);
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
}

.header .header-action-btn {
    color: var(--brand-navy);
}

.header .header-action-btn svg {
    width: 22px;
    height: 22px;
}

.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.logo-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Bootstrap navbar theme overrides */
.header .navbar {
    padding: 0;
}

.header .navbar-toggler {
    border: none;
    padding: 0;
}

.header .navbar-toggler:focus {
    box-shadow: none;
}

.header .navbar-toggler:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 3px;
}

.header .navbar-toggler-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.header .nav-link {
    font-weight: 500;
    color: var(--text-gray);
}

.header .navbar-nav > .nav-item > .nav-link {
    position: relative;
}

.header .navbar-nav > .nav-item > .nav-link.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}

.header .nav-link:hover,
.header .nav-link.active,
.header .nav-link.show {
    color: var(--primary-dark);
}

.header .nav-link.header-action-btn,
.header .btn.btn-link.header-action-btn {
    color: var(--brand-navy);
    text-decoration: none;
}

.header .dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
}

.header .dropdown-item {
    font-size: 14px;
    color: var(--text-gray);
}

.header .dropdown-item:hover,
.header .dropdown-item:focus,
.header .dropdown-item.active {
    color: var(--primary-dark);
    background: var(--bg-cream);
}

.header-inner {
    width: 100%;
}

.header-action-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.header-action-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
}

.header-action-btn .header-icon-image {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.mobile-menu-toggle,
.mobile-menu-strip,
.mobile-menu-backdrop,
.mobile-menu-drawer {
    display: none;
}

.home-header .home-logo-dark {
    display: none;
}

.site-main-nav {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    align-items: center;
}

.site-main-nav-viewport {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 28px;
    scroll-behavior: smooth;
    scrollbar-color: var(--border-color) transparent;
    scrollbar-width: thin;
}

.site-main-nav-scroll {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    min-width: 100%;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.5vw, 24px);
}

.site-main-nav-control {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    width: 26px;
    height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-white);
    color: var(--brand-navy);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(26, 58, 46, 0.12);
    transform: translateY(-50%);
}

.site-main-nav-control[hidden] {
    display: none;
}

.site-main-nav-control--prev {
    left: 0;
}

.site-main-nav-control--next {
    right: 0;
}

.site-main-nav-control svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.site-main-nav-control:hover,
.site-main-nav-control:focus-visible {
    border-color: var(--brand-green);
    color: var(--brand-green);
}

.site-main-nav-control:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 2px;
}

.site-main-nav-control:disabled {
    cursor: default;
    opacity: 0.35;
}

.site-main-nav-viewport::-webkit-scrollbar {
    height: 6px;
}

.site-main-nav-viewport::-webkit-scrollbar-track {
    background: transparent;
}

.site-main-nav-viewport::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--border-color);
}

.site-main-nav-viewport::-webkit-scrollbar-thumb:hover {
    background: var(--brand-green);
}

.site-main-nav a {
    position: relative;
    flex: 0 0 auto;
    padding: 8px 0;
    color: var(--brand-navy);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.site-main-nav a span {
    display: none;
}

.site-main-nav a:hover,
.site-main-nav a:focus-visible,
.site-main-nav a.is-active {
    color: var(--brand-green);
}

.site-main-nav a.is-active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: '';
}

.cart-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-count-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: white;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    margin-left: 6px;
}

/* Homepage header logo (hidden until scrolled) */
.home-header-logo {
    display: flex;
    align-items: center;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

.home-header-logo img {
    width: auto;
    height: 70px;
    object-fit: contain;
}

/* Mobile action menu trigger */
.home-header-actions-trigger {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    color: currentColor;
}

.home-header-actions-trigger svg {
    width: 22px;
    height: 22px;
}

/* Mobile action panel */
.home-header-actions-panel {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 1001;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.home-header-actions-panel-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    max-width: 1440px;
    margin: 0 auto;
}

.home-header-action-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    transition: background-color 0.15s ease;
}

.home-header-action-item:hover,
.home-header-action-item:focus-visible {
    background: var(--bg-cream);
    color: var(--primary-dark);
}

.home-header-action-item:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: -2px;
}

.home-header-action-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.5;
    flex-shrink: 0;
}

.home-header-action-item .cart-count-inline {
    margin-left: auto;
}

.home-header-action-lang {
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
}

.home-header-action-lang .lang-switcher {
    width: 100%;
    padding: 8px 12px;
    font-size: 14px;
}

.about-page .features,
.fabric-page .features {
    padding: 80px 0;
    background: var(--bg-cream);
}

.about-page .features .section-title,
.fabric-page .features .section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    text-align: center;
}

.about-page .features .section-subtitle,
.fabric-page .features .section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 48px;
}

.about-page .features-grid,
.fabric-page .features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.about-page .features-grid > .feature-item,
.fabric-page .features-grid > .feature-item {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    padding: 40px 28px;
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
}

.about-page .features-grid > .feature-item:hover,
.fabric-page .features-grid > .feature-item:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.about-page .feature-icon,
.fabric-page .feature-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    background: var(--bg-cream);
    border-radius: var(--radius-md);
    color: var(--primary);
}

.about-page .feature-icon svg,
.about-page .feature-icon .ui-icon,
.fabric-page .feature-icon svg,
.fabric-page .feature-icon .ui-icon {
    width: 28px;
    height: 28px;
    max-width: 100%;
    max-height: 100%;
}

.about-page .feature-title,
.fabric-page .feature-title {
    display: block;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-size: 18px;
    font-weight: 600;
}

.about-page .feature-desc,
.fabric-page .feature-desc {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}

.about-page .feature-bullets,
.fabric-page .feature-bullets {
    width: 100%;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    text-align: left;
}

.about-page .feature-bullets li,
.fabric-page .feature-bullets li {
    position: relative;
    padding: 6px 0 6px 20px;
    color: var(--text-gray);
    font-size: 13px;
}

.about-page .feature-bullets li::before,
.fabric-page .feature-bullets li::before {
    position: absolute;
    top: 12px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    content: '';
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary-dark);
    color: white;
}

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

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

.btn-secondary:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--primary-dark);
    color: var(--primary-dark);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--primary-dark);
    color: white;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    margin-top: 16px;
    max-width: 300px;
}

.footer-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.footer-newsletter input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: white;
    font-size: 14px;
}

.footer-newsletter input::placeholder {
    color: rgba(255,255,255,0.5);
}

.footer-newsletter .btn {
    margin-top: 12px;
    width: 100%;
    background: white;
    color: var(--primary-dark);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.footer-social a:hover {
    background: rgba(255,255,255,0.2);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-dark);
    text-align: center;

}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.text-center {
    text-align: center;
}

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mt-40 { margin-top: 40px; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 991px) {
    .header-inner {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 12px 16px;
        max-width: none;
        gap: 12px;
    }

    .header .navbar-brand {
        margin-right: auto;
    }

    .header .navbar-brand .logo-img {
        width: auto;
        max-width: 92px;
        height: 60px;
    }

    .header .navbar-collapse {
        flex-basis: 100%;
        flex-grow: 1;
        width: 100%;
        padding: 12px 0 8px;
        border-top: 1px solid var(--border-color);
        margin-top: 8px;
        justify-content: flex-start;
    }

    .header .navbar-collapse > .navbar-nav {
        width: 100%;
    }

    .header .navbar-nav {
        gap: 0;
        margin: 0;
    }

    .header .navbar-nav > .nav-item > .nav-link {
        padding: 12px 0;
        font-size: 13px;
    }

    .header .dropdown-menu {
        background: var(--bg-cream);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-sm);
        padding: 8px 0;
        margin: 4px 0 8px;
    }

    .header .dropdown-item {
        padding: 8px 16px;
    }

    .header .header-actions {
        gap: 14px;
    }

    .header .header-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .header .navbar-toggler {
        width: 42px;
        height: 38px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 1024px) {
    .about-page .features-grid,
    .fabric-page .features-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .about-page .features,
    .fabric-page .features {
        padding: 60px 0;
    }

    .about-page .features-grid,
    .fabric-page .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-page .features .section-title,
    .fabric-page .features .section-title {
        font-size: 24px;
    }

    .about-page .features-grid > .feature-item,
    .fabric-page .features-grid > .feature-item {
        padding: 32px 20px;
    }
}

/* Language Switcher */
.lang-switcher {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--brand-navy);
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    min-width: 80px;
}

.lang-switcher:focus {
    box-shadow: none;
    border-color: var(--primary);
}

/* ============================================
   PRELOADER
   ============================================ */
#preloader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.loader {
    position: relative;
    width: 60px;
    height: 60px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: spin 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.loader-ring:nth-child(1) {
    border-top-color: var(--primary-dark);
    animation-delay: -0.45s;
}

.loader-ring:nth-child(2) {
    width: 44px;
    height: 44px;
    top: 8px;
    left: 8px;
    border-top-color: var(--primary);
    animation-delay: -0.3s;
}

.loader-ring:nth-child(3) {
    width: 28px;
    height: 28px;
    top: 16px;
    left: 16px;
    border-top-color: var(--primary-light);
    animation-delay: -0.15s;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-dark);
    text-transform: uppercase;
}

.loader-text span {
    color: var(--primary);
}

/* ============================================
   MOBILE PAGE NAVIGATION
   ============================================ */
.mobile-page-header {
    display: none;
}

/* ============================================
   MOBILE BOTTOM NAVIGATION
   ============================================ */
.mobile-tabbar {
    display: none;
}

@media (max-width: 991px) {
    body {
        padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
    }

    .customer-page .mobile-page-header {
        display: flex;
        min-height: 52px;
        align-items: center;
        padding: 4px 16px;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border-light);
    }

    .customer-page .mobile-back-link {
        display: inline-flex;
        min-height: 44px;
        align-items: center;
        gap: 8px;
        padding: 8px 4px;
        color: var(--text-dark);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.2px;
    }

    .customer-page .mobile-back-link svg {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }

    .customer-page .mobile-back-link:hover,
    .customer-page .mobile-back-link:focus-visible {
        color: var(--primary-dark);
    }

    .customer-page .mobile-back-link:focus-visible {
        outline: 2px solid var(--primary-light);
        outline-offset: 2px;
        border-radius: var(--radius-sm);
    }

    .customer-page .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .customer-page .btn,
    .customer-page input:not([type='hidden']),
    .customer-page select {
        min-height: 44px;
    }

    .customer-page textarea {
        min-height: 112px;
    }

    .mobile-tabbar {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 999;
        display: flex;
        min-height: var(--mobile-tabbar-height);
        padding: 8px 8px env(safe-area-inset-bottom);
        background: rgba(250, 249, 246, 0.98);
        border-top: 1px solid var(--border-light);
        box-shadow: 0 -4px 18px rgba(26, 58, 46, 0.08);
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }

    .mobile-tabbar-list {
        display: flex;
        width: 100%;
        align-items: stretch;
        justify-content: space-around;
    }

    .mobile-tabbar-item {
        position: relative;
        display: flex;
        flex: 1 1 20%;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 4px 2px;
        color: var(--text-light);
        font-size: 10px;
        line-height: 1.2;
        text-align: center;
        transition: color 0.2s ease;
    }

    .mobile-tabbar-item:hover,
    .mobile-tabbar-item:focus-visible,
    .mobile-tabbar-item.is-active {
        color: var(--primary-dark);
    }

    .mobile-tabbar-item:focus-visible {
        outline: 2px solid var(--primary-light);
        outline-offset: -2px;
        border-radius: var(--radius-sm);
    }

    .mobile-tabbar-icon {
        position: relative;
        display: inline-flex;
        width: 23px;
        height: 23px;
        align-items: center;
        justify-content: center;
    }

    .mobile-tabbar-icon svg,
    .mobile-tabbar-icon .ui-icon {
        width: 22px;
        height: 22px;
    }

    .mobile-tabbar-item.is-active .mobile-tabbar-icon {
        transform: translateY(-1px);
    }

    .mobile-tabbar-label {
        max-width: 100%;
        overflow: hidden;
        font-weight: 600;
        letter-spacing: 0.3px;
        text-overflow: ellipsis;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-tabbar-count {
        position: absolute;
        top: -5px;
        right: -8px;
        display: inline-flex;
        width: auto;
        min-width: 16px;
        height: 16px;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
        background: var(--primary);
        border-radius: 8px;
        color: #fff;
        font-size: 9px;
        font-weight: 700;
        line-height: 1;
    }
}

@media (min-width: 992px) {
    .header {
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #fff;
        box-shadow: 0 8px 18px rgba(0, 38, 99, 0.1);
        overflow: hidden;
    }

    .header .navbar {
        min-height: 76px;
    }

    .header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 76px;
        padding: 12px 28px;
        gap: 32px;
    }

    .header-inner > .site-main-nav {
        grid-column: 2;
        justify-self: stretch;
        width: 100%;
    }

    .header .navbar-brand.logo {
        color: var(--brand-navy);
        gap: 12px;
    }

    .header .navbar-brand.logo .logo-img {
        width: 44px;
        height: 44px;
        max-width: none;
        filter: none;
    }

    .header .logo-wordmark {
        display: inline-block;
        color: var(--brand-navy);
        font-family: var(--font-ui);
        font-size: 17px;
        font-weight: 700;
        letter-spacing: 2px;
        line-height: 1;
        white-space: nowrap;
    }

    .header .site-main-nav-scroll {
        gap: clamp(22px, 2.5vw, 42px);
    }

    .header .site-main-nav a,
    .header .header-action-btn,
    .header .nav-link.header-action-btn,
    .header .btn.btn-link.header-action-btn,
    .header .lang-switcher {
        color: var(--brand-navy) !important;
    }

    .header .header-action-btn svg {
        stroke: currentColor;
    }

    .header .site-main-nav a {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .header .site-main-nav a:hover,
    .header .site-main-nav a:focus-visible,
    .header .site-main-nav a.is-active {
        color: var(--brand-green) !important;
    }

    .header .header-actions {
        gap: 16px;
    }

    .header .header-action-btn svg {
        width: 23px;
        height: 23px;
    }

    .header .lang-switcher {
        border-color: var(--border-color);
        background: #fff;
    }

    .header .cart-count {
        background: var(--brand-green);
        color: #fff;
    }
}

@media (max-width: 991px) {
    :root {
        --mobile-header-height: 64px;
        --mobile-menu-strip-height: 40px;
        --mobile-page-header-height: 52px;
    }

    body {
        padding-top: calc(var(--mobile-header-height) + var(--mobile-menu-strip-height));
    }

    body.customer-page {
        padding-top: calc(var(--mobile-header-height) + var(--mobile-menu-strip-height) + var(--mobile-page-header-height));
    }

    body.mobile-menu-open {
        overflow: hidden;
    }

    .header,
    .home-page .home-header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        z-index: 1000;
        background: #fff;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 4px 18px rgba(0, 38, 99, 0.08);
    }

    html.cms-toolbar-expanded .header,
    #cms-top ~ .home-header {
        top: var(--cms-toolbar-offset, 46px) !important;
    }

    .header-inner {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        height: var(--mobile-header-height);
        align-items: center;
        padding: 8px 16px;
        gap: 12px;
    }

    .header .navbar-brand.logo {
        position: absolute;
        top: 50%;
        left: 50%;
        /* Above the stretched menu toggle and action row so the whole logo links home. */
        z-index: 4;
        margin: 0;
        transform: translate(-50%, -50%);
    }

    .header .navbar-brand .logo-img {
        width: auto;
        max-width: 112px;
        height: 32px;
    }

    .home-header .home-logo-light {
        display: none;
    }

    .home-header .home-logo-dark {
        display: block;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        z-index: 3;
        width: auto;
        min-width: 34px;
        height: 34px;
        flex: 1 1 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 5px;
        padding: 7px 4px;
        border: 0;
        background: transparent;
        color: var(--brand-navy);
        cursor: pointer;
    }

    .mobile-menu-toggle span {
        display: block;
        width: 22px;
        height: 1.5px;
        background: currentColor;
        transition: transform 0.25s ease, opacity 0.25s ease;
    }

    .mobile-menu-toggle[aria-expanded='true'] span:nth-child(1) {
        transform: translateY(6.5px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded='true'] span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle[aria-expanded='true'] span:nth-child(3) {
        transform: translateY(-6.5px) rotate(-45deg);
    }

    .site-main-nav {
        display: none;
    }

    .header-actions,
    .home-page .home-header .header-actions {
        z-index: 3;
        display: flex;
        flex: 1 1 0;
        justify-content: flex-end;
        align-items: center;
        gap: 10px;
        margin-left: 0;
    }

    .header .header-action-btn,
    .home-page .home-header .header-action-btn {
        display: flex !important;
        width: 24px;
        height: 34px;
        align-items: center;
        justify-content: center;
        color: var(--brand-navy);
    }

    .header .header-action-btn svg,
    .home-page .home-header .header-action-btn svg {
        width: 20px;
        height: 20px;
    }

    .mobile-menu-strip {
        position: fixed;
        top: calc(var(--cms-toolbar-offset, 0px) + var(--mobile-header-height));
        right: 0;
        left: 0;
        z-index: 999;
        display: block;
        height: var(--mobile-menu-strip-height);
        overflow: hidden;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-white);
    }

    .mobile-menu-strip-inner {
        display: flex;
        height: 100%;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        padding: 0 10px;
        scrollbar-width: none;
        white-space: nowrap;
    }

    .mobile-menu-strip-inner::-webkit-scrollbar {
        display: none;
    }

    .mobile-menu-strip a {
        display: inline-flex;
        height: 36px;
        min-height: 36px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        box-sizing: border-box;
        border: 1px solid var(--border-light);
        border-radius: 18px;
        background: var(--bg-cream);
        color: var(--brand-navy);
        font-family: var(--font-heading);
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 1px;
        line-height: 1;
        text-transform: uppercase;
    }

    .mobile-menu-strip a:active,
    .mobile-menu-strip a:focus-visible {
        color: var(--brand-green);
    }

    .customer-page .mobile-page-header {
        position: fixed;
        top: calc(var(--cms-toolbar-offset, 0px) + var(--mobile-header-height) + var(--mobile-menu-strip-height));
        right: 0;
        left: 0;
        z-index: 998;
        display: flex;
        min-height: var(--mobile-page-header-height);
        align-items: center;
        padding: 4px 16px;
        border-bottom: 1px solid var(--border-light);
        background: var(--bg-white);
        box-shadow: 0 2px 10px rgba(26, 58, 46, 0.05);
    }

    .customer-page .mobile-back-link {
        min-height: 44px;
        padding: 8px 4px;
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: block;
        background: rgba(17, 35, 27, 0.42);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }

    .mobile-menu-drawer {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1101;
        display: block;
        width: min(86vw, 360px);
        overflow-y: auto;
        padding: 22px 24px 32px;
        background: var(--bg-white);
        box-shadow: 12px 0 36px rgba(17, 35, 27, 0.18);
        transform: translateX(-105%);
        transition: transform 0.3s ease;
    }

    body.mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    body.mobile-menu-open .mobile-menu-drawer {
        transform: translateX(0);
    }

    .mobile-menu-drawer-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 24px;
        border-bottom: 1px solid var(--border-light);
        color: var(--primary-dark);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: 2px;
        text-transform: uppercase;
    }

    .mobile-menu-close {
        width: 36px;
        height: 36px;
        border: 0;
        background: transparent;
        color: var(--text-dark);
        font-size: 28px;
        font-weight: 300;
        line-height: 1;
    }

    .mobile-menu-drawer-nav {
        display: flex;
        flex-direction: column;
        padding-top: 12px;
    }

    .mobile-menu-drawer-nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 17px 0;
        border-bottom: 1px solid var(--border-light);
        color: var(--text-dark);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .mobile-menu-drawer-nav a span {
        color: var(--primary);
        font-size: 20px;
        font-weight: 400;
    }

    .mobile-menu-language {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border-light);
    }

    .mobile-menu-language label {
        color: var(--text-dark);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1.2px;
        text-transform: uppercase;
    }

    .mobile-menu-language-select {
        width: auto;
        min-height: 44px;
        border-color: var(--border-color);
        color: var(--brand-navy);
        font-size: 16px;
    }
}


/* Keep all five navigation labels readable on narrow phones. */
@media (max-width: 375px) {
    :root {
        --mobile-tabbar-height: 68px;
    }

    body {
        padding-bottom: calc(var(--mobile-tabbar-height) + env(safe-area-inset-bottom));
    }

    .mobile-tabbar {
        min-height: 60px;
        padding: 6px 2px env(safe-area-inset-bottom);
    }

    .mobile-tabbar-item {
        gap: 2px;
        padding: 2px 0;
        font-size: 8px;
    }

    .mobile-tabbar-icon {
        width: 21px;
        height: 21px;
    }

    .mobile-tabbar-icon svg,
    .mobile-tabbar-icon .ui-icon {
        width: 20px;
        height: 20px;
    }

    .mobile-tabbar-label {
        overflow: visible;
        letter-spacing: 0;
        text-overflow: clip;
        white-space: nowrap;
    }

    .mobile-tabbar-count {
        top: -3px;
        right: -6px;
        min-width: 14px;
        height: 14px;
        padding: 0 3px;
        font-size: 8px;
    }

    .header-actions,
    .home-page .home-header .header-actions {
        gap: 4px;
    }

    .header .header-action-btn,
    .home-page .home-header .header-action-btn {
        width: 18px;
    }

    .header .header-action-btn svg,
    .home-page .home-header .header-action-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (min-width: 992px) {
    .mobile-menu-strip {
        position: relative;
        z-index: 1;
        display: block;
        min-height: 44px;
        border-top: 1px solid var(--border-light);
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-white);
    }

    .mobile-menu-strip .mobile-menu-strip-inner {
        display: flex;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        gap: clamp(18px, 2.4vw, 34px);
        padding: 0 32px;
    }

    .mobile-menu-strip a {
        display: inline-flex;
        height: 36px;
        min-height: 36px;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        padding: 0 18px;
        box-sizing: border-box;
        border: 1px solid var(--border-light);
        border-radius: 18px;
        background: var(--bg-cream);
        color: var(--brand-navy);
        font-family: var(--font-heading);
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 1.1px;
        line-height: 1;
        text-transform: uppercase;
        white-space: nowrap;
    }

    .mobile-menu-strip a:hover,
    .mobile-menu-strip a:focus-visible {
        color: var(--brand-green);
    }
}

/* ============================================
   BRAND STORY PAGE POLISH
   ============================================ */

.about-page .hero-banner-content,
.fabric-page .hero-banner-content,
.sustain-page .hero-banner-content {
    padding-top: 12px;
}

.about-page .hero-banner-content::after,
.fabric-page .hero-banner-content::after,
.sustain-page .hero-banner-content::after {
    display: block;
    width: 48px;
    height: 3px;
    margin: 28px auto 0;
    border-radius: 999px;
    background: var(--primary);
    content: '';
}

.hero-banner-kicker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
    line-height: 1.3;
    text-transform: uppercase;
}

.hero-banner-kicker span:nth-child(2) {
    color: var(--primary-light);
}

.about-page h2,
.fabric-page h2,
.sustain-page h2 {
    position: relative;
    padding-bottom: 16px;
}

.about-page h2::after,
.fabric-page h2::after,
.sustain-page h2::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 36px;
    height: 2px;
    border-radius: 999px;
    background: var(--primary);
    content: '';
    transform: translateX(-50%);
}

.about-page .feature-icon,
.fabric-page .feature-icon,
.sustain-page .feature-icon,
.fabric-page .spec-icon,
.sustain-page .spec-icon {
    transition: var(--transition);
}

.about-page .feature-item:hover .feature-icon,
.fabric-page .feature-item:hover .feature-icon,
.sustain-page .feature-item:hover .feature-icon,
.fabric-page .spec-item:hover .spec-icon,
.sustain-page .spec-item:hover .spec-icon {
    box-shadow: 0 0 0 5px rgba(143, 178, 158, 0.2), var(--shadow-sm);
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .hero-banner-kicker {
        margin-bottom: 14px;
        font-size: 9px;
        letter-spacing: 1.8px;
    }

    .about-page .hero-banner-content::after,
    .fabric-page .hero-banner-content::after,
    .sustain-page .hero-banner-content::after {
        margin-top: 22px;
    }
}
