/* Thorwaves - Main Stylesheet (clinical PEMF / medical-catalog inspired layout) */

@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;0,700;1,400&display=swap');

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

:root {
    --primary-color: #0b6dad;
    --primary-dark: #085a92;
    --secondary-color: #0d9488;
    --accent-soft: #e0f2fe;
    --success-color: #0d9488;
    --warning-color: #f59e0b;
    --danger-color: #dc2626;
    --dark-color: #0f2942;
    --light-color: #f4f8fb;
    --border-color: #d8e3ec;
    --text-body: #334155;
    --text-muted: #64748b;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-body);
    line-height: 1.65;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Trust strip (catalog-style top bar) */
.trust-strip {
    background: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    color: #94a3b8;
}

.trust-strip-shell {
    padding: 0;
}

.trust-strip-toggle {
    display: none;
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
    font: inherit;
}

.trust-strip-toggle-inner {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem 20px;
    box-sizing: border-box;
    min-height: 48px;
}

.trust-strip-toggle-icon {
    flex-shrink: 0;
    color: #7dd3fc;
    font-size: 15px;
}

.trust-strip-toggle-label {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trust-strip-chevron {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    border-right: 2px solid #94a3b8;
    border-bottom: 2px solid #94a3b8;
    transform: rotate(45deg);
    margin-top: -4px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-strip.trust-strip--open .trust-strip-chevron {
    transform: rotate(-135deg);
    margin-top: 4px;
    border-color: #e2e8f0;
}

.trust-strip-toggle:hover .trust-strip-toggle-label,
.trust-strip-toggle:focus-visible .trust-strip-toggle-label {
    color: #fff;
}

.trust-strip-toggle:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: -2px;
}

.trust-strip-collapse {
    overflow: hidden;
}

.trust-strip-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.25rem 2rem;
    padding: 0.65rem 20px;
}

.trust-strip-inner span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

.trust-strip-inner i {
    color: #7dd3fc;
    font-size: 14px;
}

@media (max-width: 991px) {
    .trust-strip-toggle {
        display: block;
    }

    .trust-strip-collapse {
        max-height: 0;
        opacity: 0;
        transition: max-height 0.35s ease, opacity 0.2s ease;
    }

    .trust-strip.trust-strip--open .trust-strip-collapse {
        max-height: 220px;
        opacity: 1;
    }

    .trust-strip-inner {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        padding-top: 0.25rem;
        padding-bottom: 0.75rem;
    }
}

@media (min-width: 992px) {
    .trust-strip-toggle {
        display: none !important;
    }

    .trust-strip-collapse {
        max-height: none !important;
        opacity: 1 !important;
    }
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 1px 0 rgba(15, 41, 66, 0.08);
    position: sticky;
    top: 0;
    z-index: 200;
}

.navbar .container.navbar-inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    gap: 12px 16px;
}

/* Mobile menu toggle (hidden on wide screens) */
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
    color: var(--dark-color);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.navbar-toggle:hover {
    background: var(--light-color);
    border-color: var(--primary-color);
}

.navbar-toggle:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.navbar-toggle-bars {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.navbar-toggle-bars::before,
.navbar-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.2s ease, top 0.2s ease;
}

.navbar-toggle-bars::before {
    top: -7px;
}

.navbar-toggle-bars::after {
    top: 7px;
}

.navbar.navbar--open .navbar-toggle-bars {
    background: transparent;
}

.navbar.navbar--open .navbar-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

.navbar.navbar--open .navbar-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.navbar-collapse {
    flex: 0 1 auto;
    min-width: 0;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-shrink: 1;
}

.navbar-tagline {
    font-size: clamp(0.7rem, 1.35vw, 0.95rem);
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
    letter-spacing: 0.02em;
    max-width: min(22rem, 42vw);
}

button.navbar-tagline--video-trigger {
    font-family: inherit;
    font-size: clamp(0.7rem, 1.35vw, 0.95rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    color: inherit;
    max-width: min(22rem, 42vw);
}

button.navbar-tagline--video-trigger:hover {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

button.navbar-tagline--video-trigger:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Brand video (dialog opened from navbar tagline) */
body.brand-video-modal-open {
    overflow: hidden;
}

.brand-video-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.brand-video-modal[hidden] {
    display: none !important;
}

.brand-video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: #000;
    cursor: pointer;
}

.brand-video-modal-panel {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: none;
    background: #000;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.brand-video-modal-close {
    position: fixed;
    top: max(12px, env(safe-area-inset-top, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 402;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.brand-video-modal-close:hover {
    background: rgba(255, 255, 255, 0.24);
}

.brand-video-modal-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.brand-video-modal-video {
    display: block;
    flex: 1;
    width: 100%;
    min-height: 0;
    max-height: 100%;
    object-fit: cover;
    border-radius: 0;
    background: #000;
}

.brand-video-modal:fullscreen,
.brand-video-modal:-webkit-full-screen {
    background: #000;
}

.brand-video-modal:fullscreen .brand-video-modal-panel,
.brand-video-modal:-webkit-full-screen .brand-video-modal-panel {
    min-height: 100%;
    height: 100%;
}

.navbar-brand a.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand a.logo .site-logo-img {
    height: 64px;
    width: auto;
    max-width: 320px;
    object-fit: contain;
    display: block;
}

.navbar-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 18px;
    row-gap: 10px;
    max-width: 100%;
    min-width: 0;
}

.navbar-menu > li {
    flex-shrink: 0;
}

.navbar-menu a {
    text-decoration: none;
    color: var(--text-body);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s;
}

.navbar-menu a:hover, .navbar-menu a.active {
    color: var(--primary-color);
}

.navbar-menu .cart-link a {
    position: relative;
}

.navbar-menu .badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--danger-color);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.btn-login {
    padding: 8px 18px;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    box-sizing: border-box;
}

.btn-login:hover {
    background: var(--accent-soft);
    color: var(--primary-dark);
}

.btn-signup {
    padding: 8px 18px;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
    font-weight: 600;
    white-space: nowrap;
    display: inline-block;
    box-sizing: border-box;
}

.btn-signup:hover {
    background: var(--accent-soft);
    color: var(--primary-dark);
}

.dropdown {
    position: relative;
    z-index: 500;
}

.dropdown-toggle {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    list-style: none;
    min-width: 190px;
    display: none;
    box-shadow: 0 4px 16px rgba(15, 41, 66, 0.12);
    margin-top: 0;
    padding: 6px 0;
    z-index: 1100;
}

/* Invisible bridge so moving from toggle to links does not leave :hover gap */
.dropdown-menu::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -10px;
    height: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.dropdown-open .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 16px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.dropdown-menu li a:hover {
    background: var(--light-color);
    color: var(--primary-color);
}

/* Hero — clinical landing */
.hero.hero--clinical {
    background: #000;
    color: #fff;
    padding: 0;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.hero.hero--clinical::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 55% at 70% 20%, rgba(255,255,255,0.14) 0%, transparent 50%),
        linear-gradient(180deg, transparent 60%, rgba(15,41,66,0.25) 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 4.5rem 20px 3rem;
}

/* Home — Shopify / HealthyLine Support–style stacked hero (light headline + wide photo) */
.hero.hero--landing-support {
    position: relative;
    background: #000;
    color: #e2e8f0;
    text-align: center;
    padding: 0;
    overflow: hidden;
}

.hero-support-top {
    position: relative;
    z-index: 1;
    max-width: 820px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 2.25rem) 20px clamp(2.25rem, 5vw, 3rem);
}

.hero-support-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 1rem;
}

.hero.hero--landing-support .hero-support-eyebrow {
    color: #94a3b8;
}

.hero-support-heading {
    font-size: clamp(1.85rem, 4.8vw, 2.65rem);
    font-weight: 700;
    line-height: 1.18;
    margin: 0 0 0.85rem;
    letter-spacing: -0.025em;
    color: #0f172a;
}

.hero-support-sub {
    margin: 0 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #334155;
}

.hero-support-lead {
    margin: 0 auto 1.25rem;
    max-width: 38rem;
    font-size: 1.0625rem;
    line-height: 1.68;
    color: #475569;
}

.hero-support-cta-line {
    margin: 0 auto 1.75rem;
    max-width: 36rem;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #64748b;
}

.hero-support-cta-line a {
    color: var(--primary-color);
    font-weight: 600;
    text-underline-offset: 3px;
}

.hero-support-cta-line a:hover {
    text-decoration: underline;
}

.hero-actions.hero-actions--landing-support {
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.hero.hero--landing-support .hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.45);
    color: #f1f5f9;
}

.hero.hero--landing-support .hero-actions .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
}

.hero-support-media {
    position: relative;
    z-index: 1;
    padding: clamp(1rem, 2.5vw, 1.5rem) 0 clamp(0.75rem, 2vw, 1.25rem);
    background-color: #000;
}

.hero-support-media .container {
    max-width: 1100px;
}

.hero-support-figure {
    margin: 0;
    padding: 0;
}

/* Home hero: overlay loop video (≈1/8 of main image area; hero ref 1024×682) */
.hero-support-photo-stack {
    position: relative;
    display: block;
}

.home-hero-pip-video {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 6;
    /* ~1/8 of hero area by width; flush to first image top-right (matches .hero-support-photo radius) */
    width: 38.47%;
    min-width: 168px;
    overflow: visible;
    pointer-events: auto;
    border-radius: 0 10px 0 10px;
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.12) inset;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: #000;
}

.home-hero-pip-video-el {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 10px 0 0;
}

.hero-support-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #000;
}

/* Dark / high-contrast hero artwork (e.g. PEMF AI LLM infographic) */
.hero-support-photo--dark {
    box-shadow:
        0 24px 56px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    border-color: rgba(255, 255, 255, 0.12);
    background: #000;
}

/* Home hero: same arrow controls as product detail gallery */
.hero-support-figure .hero-home-carousel-viewport {
    border-radius: 10px;
    overflow: hidden;
    background-color: #000;
}

.hero-support-figure .hero-home-carousel-viewport .hero-support-photo {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}

.home-hero-carousel:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 10px;
}

.hero-stats.hero-stats--landing-support {
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: none;
}

.hero.hero--landing-support .stat-block {
    border-right-color: rgba(255, 255, 255, 0.12);
}

.hero.hero--landing-support .stat-block strong {
    color: #f1f5f9;
}

.hero.hero--landing-support .stat-block span {
    color: #94a3b8;
}

.hero-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
}

.hero--clinical .hero-copy h1 {
    font-size: clamp(2rem, 5vw, 2.85rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-lead {
    font-size: 1.2rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
    margin-bottom: 2rem;
    max-width: 38rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.hero-stats {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.65);
    border-top: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(8px);
}

.hero-stats-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
}

.stat-block {
    padding: 1.35rem 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.stat-block:last-child {
    border-right: none;
}

.stat-block strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
    color: #fff;
}

.stat-block span {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.75);
}

/* Generic hero (inner pages fallback; exclude landing layout) */
.hero:not(.hero--clinical):not(.hero--landing-support) {
    background: #000;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero:not(.hero--clinical):not(.hero--landing-support) .hero-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
}

.hero:not(.hero--clinical):not(.hero--landing-support) .hero-content p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.92;
}

.hero.hero--clinical .hero-content {
    padding: 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
    font-weight: 600;
    text-align: center;
    font-family: inherit;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(11, 109, 173, 0.35);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(11, 109, 173, 0.4);
}

.btn-hero-secondary {
    background: transparent;
    color: #fff !important;
    border: 2px solid rgba(255,255,255,0.85) !important;
    box-shadow: none;
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.15);
    border-color: #fff !important;
}

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

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

.btn-lg {
    padding: 16px 32px;
    font-size: 18px;
}

.btn-large {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
    display: block;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
}

/* Featured Products */
.featured-products {
    padding: 72px 20px;
    background: #000;
}

.featured-products .section-heading h2 {
    color: #f1f5f9;
}

.featured-products .section-subtitle {
    color: #94a3b8;
}

.section-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-heading h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: var(--dark-color);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 16px;
}

.section-heading h2::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 1.125rem;
    line-height: 1.6;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.25s, transform 0.25s;
    box-shadow: 0 2px 12px rgba(15, 41, 66, 0.06);
    background: #fff;
}

.product-card:hover {
    box-shadow: 0 16px 40px rgba(15, 41, 66, 0.12);
    transform: translateY(-3px);
}

.product-image {
    position: relative;
    height: 250px;
    background: linear-gradient(180deg, var(--accent-soft) 0%, var(--light-color) 100%);
    overflow: hidden;
}

/* Home featured grid only — black backdrop behind product photos */
.featured-products .product-image {
    background: #000;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.product-image-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: -2px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: middle;
}

.product-image-link:hover img {
    opacity: 0.96;
}

.badge-category {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--dark-color);
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.product-info {
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-sku {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.product-detail .product-header .product-sku {
    margin-bottom: 8px;
}

.product-description {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.product-price {
    margin-bottom: 15px;
}

.price {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions a, .product-actions button {
    flex: 1;
}

/* Benefits Section */
.benefits {
    background: var(--light-color);
    padding: 72px 20px;
    border-top: 1px solid var(--border-color);
}

.benefits .section-heading {
    margin-bottom: 48px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    text-align: left;
    padding: 28px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(15, 41, 66, 0.06);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--secondary-color);
    transition: box-shadow 0.25s;
}

.benefit-card:hover {
    box-shadow: 0 12px 28px rgba(15, 41, 66, 0.1);
}

.benefit-icon {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.benefit-card h3 {
    margin-bottom: 10px;
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.15rem;
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #000;
    color: #e2e8f0;
    padding: 48px 20px 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 18px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.footer-section p {
    color: rgba(226,232,240,0.85);
    line-height: 1.65;
}

.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 22px;
    margin-top: 8px;
    text-align: center;
    color: rgba(226,232,240,0.65);
    font-size: 14px;
}

/* Auth Pages */
.auth-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    padding: 40px 20px;
}

.auth-container {
    width: 100%;
    max-width: 400px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.auth-box h1 {
    margin-bottom: 30px;
    text-align: center;
    color: var(--dark-color);
}

.auth-form {
    margin-bottom: 20px;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-footer p {
    margin-bottom: 10px;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

.form-readonly {
    background: var(--light-color);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 109, 173, 0.15);
}

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

.alert {
    padding: 15px 20px;
    border-radius: 4px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

/* Product Detail */
.breadcrumb {
    padding: 20px;
    background: var(--light-color);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.product-detail {
    padding: 40px 20px;
}

.product-detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.main-product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-gallery--multi:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
    border-radius: 8px;
}

.product-gallery-viewport {
    position: relative;
}

.product-gallery-viewport .main-product-image {
    display: block;
}

.product-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: var(--dark-color);
    box-shadow: 0 2px 14px rgba(15, 41, 66, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.product-gallery-nav:hover {
    background: #fff;
    color: var(--primary-color);
    box-shadow: 0 4px 18px rgba(15, 41, 66, 0.22);
}

.product-gallery-nav:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.product-gallery-nav--prev {
    left: 12px;
}

.product-gallery-nav--next {
    right: 12px;
}

.product-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.product-gallery-thumb {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    background: #f1f5f9;
}

.product-gallery-thumb.is-selected {
    border-color: var(--primary-color);
}

.product-gallery-thumb img {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: cover;
    vertical-align: middle;
}

.product-header h1 {
    margin-bottom: 15px;
}

.badge-category-large {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 20px;
}

.price-large {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stock-status {
    color: var(--success-color);
    font-weight: 600;
}

.product-features-section h3,
.product-specifications-section h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 8px 0;
    color: #666;
}

.features-list i {
    color: var(--success-color);
    margin-right: 10px;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.spec-item {
    padding: 10px;
    background: var(--light-color);
    border-radius: 4px;
    font-size: 14px;
}

.quantity-selector {
    margin-bottom: 20px;
}

.quantity-selector label {
    display: inline-block;
    margin-right: 10px;
    font-weight: 600;
}

.quantity-selector input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.product-actions-section {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    align-items: center;
}

.product-actions-section form {
    flex: 1;
}

.product-detail-login-hint {
    width: 100%;
    margin: 0 0 4px;
    font-size: 15px;
    color: var(--text-muted);
}

/* Cart Page */
.cart-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.empty-cart {
    text-align: center;
    padding: 60px 20px;
}

.empty-cart i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.cart-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

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

.cart-table th {
    background: var(--light-color);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.cart-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.item-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.quantity-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-input {
    width: 60px;
    padding: 6px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.cart-summary {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.summary-row.total {
    border-bottom: none;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
}

/* Checkout */
.checkout-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.checkout-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.form-large {
    background: white;
}

.payment-methods {
    display: flex;
    gap: 20px;
    margin: 20px 0;
}

.payment-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    flex: 1;
}

.payment-option input {
    width: auto;
}

.checkout-summary {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    height: fit-content;
}

.summary-items {
    margin-bottom: 20px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    font-weight: bold;
    padding-top: 20px;
}

/* Order Confirmation */
.order-confirmation {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.confirmation-box {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
}

.confirmation-icon {
    font-size: 64px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.order-details {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
    margin: 30px 0;
    text-align: left;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.detail-row:last-child {
    border-bottom: none;
}

.items-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.items-table th {
    background: var(--light-color);
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
}

.items-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.confirmation-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Orders Page */
.orders-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.no-orders {
    text-align: center;
    padding: 60px 20px;
}

.no-orders i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.orders-table th {
    background: var(--light-color);
    padding: 15px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid var(--border-color);
}

.orders-table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: #dcfce7;
    color: #166534;
}

.badge-pending {
    background: #fef3c7;
    color: #92400e;
}

.badge-paid {
    background: #dcfce7;
    color: #166534;
}

.badge-processing {
    background: #dbeafe;
    color: #0c4a6e;
}

.badge-shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.badge-delivered {
    background: #dcfce7;
    color: #166534;
}

.badge-cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.badge-failed {
    background: #fee2e2;
    color: #991b1b;
}

.badge-refunded {
    background: #fce7f3;
    color: #831843;
}

.badge-danger {
    background: #fee2e2;
    color: #991b1b;
}

.badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.badge-secondary {
    background: #f1f5f9;
    color: #475569;
}

.badge-muted {
    background: #e2e8f0;
    color: #64748b;
}

.btn-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

/* Profile Page */
.profile-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.profile-tabs {
    background: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.tab-content h2 {
    margin-bottom: 30px;
}

.tab-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
}

hr {
    margin: 40px 0;
    border: none;
    border-top: 2px solid var(--border-color);
}

/* About Page */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.about-section h1 {
    text-align: center;
    margin-bottom: 40px;
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 8px;
}

.about-text h2 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.about-text h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.about-list, .product-list {
    list-style: none;
    margin-left: 0;
}

.about-list li, .product-list li {
    margin-bottom: 12px;
    padding-left: 30px;
    position: relative;
}

.about-list li:before, .product-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
}

/* Team Page */
.team-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.team-section h1 {
    text-align: center;
    margin-bottom: 12px;
}

.team-section-lead {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 2.5rem;
    color: #64748b;
    line-height: 1.65;
}

.team-subheading {
    font-size: 1.35rem;
    color: var(--dark-color);
    margin: 2.5rem 0 1.25rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    margin-top: 0.5rem;
}

.team-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem 1.5rem 1.75rem;
    box-shadow: 0 4px 18px rgba(15, 41, 66, 0.06);
}

.team-photo-wrap {
    margin-bottom: 1rem;
}

.team-photo-wrap--photo {
    position: relative;
    width: min(254px, 100%);
    aspect-ratio: 254 / 338;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(15, 41, 66, 0.1);
    background: #0f172a;
}

.team-photo-wrap--photo .team-photo-link {
    position: absolute;
    inset: 0;
    display: block;
    text-decoration: none;
    color: inherit;
}

.team-photo-wrap--photo .team-photo-link:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    z-index: 1;
    border-radius: 8px;
}

.team-photo-wrap--photo .team-photo-link .team-photo-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.team-photo-wrap--photo .team-photo-link:hover .team-photo-img {
    opacity: 0.94;
}

.team-card-actions {
    margin: 1rem 0 0;
}

/* Team founder detail */
.team-founder-page {
    padding: 0 20px 60px;
    max-width: 900px;
    margin: 0 auto;
}

.team-founder-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.team-founder-photo {
    position: relative;
    width: min(254px, 100%);
    aspect-ratio: 254 / 338;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(15, 41, 66, 0.12);
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.12);
    background: #0f172a;
}

.team-founder-photo-img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.team-founder-intro h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.65rem, 4vw, 2.1rem);
    color: var(--dark-color);
}

.team-founder-role {
    margin: 0 0 1rem;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.05rem;
}

.team-founder-lead {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.65;
    color: #475569;
}

.team-founder-prose p {
    margin: 0 0 1.15rem;
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #334155;
}

.team-founder-back {
    margin: 2.5rem 0 0;
}

@media (max-width: 768px) {
    .team-founder-header {
        grid-template-columns: 1fr;
    }

    .team-founder-photo {
        margin-left: auto;
        margin-right: auto;
    }
}

.team-photo-placeholder {
    aspect-ratio: 4 / 5;
    max-height: 280px;
    margin: 0 auto;
    border-radius: 10px;
    background: linear-gradient(145deg, #e2e8f0 0%, #f1f5f9 50%, #cbd5e1 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #475569;
    border: 1px dashed rgba(71, 85, 105, 0.35);
}

.team-photo-placeholder-initials {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary-color);
}

.team-photo-placeholder-caption {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.team-name {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    color: var(--dark-color);
}

.team-role {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary-color);
}

.team-bio {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.65;
    color: #64748b;
}

.team-advisors {
    margin-top: 2.75rem;
    padding: 1.5rem 1.25rem;
    background: var(--light-color);
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.team-advisors .team-subheading {
    margin-top: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.team-advisors-text {
    margin: 0;
    color: #64748b;
    line-height: 1.7;
    font-size: 1.02rem;
}

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

/* Contact Page */
.contact-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.contact-section h1 {
    text-align: center;
    margin-bottom: 10px;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-form-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
}

.contact-info {
    background: var(--light-color);
    padding: 30px;
    border-radius: 8px;
}

.contact-info h3 {
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    min-width: 30px;
}

.info-item h4 {
    margin-bottom: 5px;
}

.info-item p {
    color: #666;
    font-size: 14px;
}

/* FAQ Page */
.faq-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.faq-section h1 {
    text-align: center;
    margin-bottom: 40px;
}

.faq-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: #64748b;
    font-size: 1.05rem;
}

.faq-content {
    background: white;
}

.faq-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-color);
    margin-bottom: 10px;
    cursor: pointer;
}

.faq-question i {
    transition: transform 0.3s;
}

.faq-answer {
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq-item.open .faq-answer {
    display: block;
}

.faq-item.open .faq-question i {
    transform: rotate(90deg);
}

/* Products Listing */
.products-section {
    padding: 40px 20px;
}

.products-header {
    text-align: center;
    margin-bottom: 40px;
}

.products-header h1 {
    margin-bottom: 20px;
}

.products-filter {
    background: var(--light-color);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.filter-form {
    display: flex;
    gap: 15px;
    align-items: end;
}

.filter-group {
    flex: 1;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.filter-group input, .filter-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
}

.no-products {
    text-align: center;
    padding: 60px 20px;
    background: var(--light-color);
    border-radius: 8px;
}

/* Checkout — saved shipping picker */
.shipping-mode-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    margin-bottom: 1.25rem;
}

.shipping-mode-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    color: var(--dark-color);
}

.saved-addresses-list {
    margin-bottom: 1.5rem;
}

.saved-address-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem 1rem;
    margin-bottom: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.saved-address-card:has(input:checked) {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(11, 109, 173, 0.12);
}

.saved-address-card input[type="radio"] {
    margin-top: 0.35rem;
}

.saved-address-body {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-body);
}

.new-address-fields {
    display: none;
    padding-top: 0.5rem;
}

.new-address-fields.is-visible {
    display: block;
}

.new-address-heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.form-group-inline-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.badge-default-address {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: var(--accent-soft);
    color: var(--primary-dark);
    border-radius: 4px;
}

/* Profile — shipping addresses */
.profile-section-note {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 15px;
}

.shipping-address-profile-list {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
}

.shipping-address-profile-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: #fff;
}

.shipping-address-profile-card-body {
    flex: 1;
    min-width: 200px;
    font-size: 15px;
    line-height: 1.55;
}

.shipping-address-profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

form.inline-form {
    display: inline-block;
    margin: 0;
}

.h-add-address {
    font-size: 1.15rem;
    margin: 1.5rem 0 1rem;
}

.shipping-address-add-form {
    margin-bottom: 0.5rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.page-link {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s;
}

.page-link:hover, .page-link.active {
    background: var(--primary-color);
    color: white;
}

/* Mid-width: stack menu under brand when drawer is not used (992px+) */
@media (max-width: 1100px) and (min-width: 992px) {
    .navbar-inner {
        flex-wrap: wrap;
    }

    .navbar-collapse {
        flex: 1 0 100%;
        width: 100%;
    }

    .navbar-menu {
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-start;
        padding-top: 8px;
        border-top: 1px solid var(--border-color);
    }

    .navbar-tagline {
        max-width: min(18rem, 58vw);
    }

    .navbar-brand a.logo .site-logo-img {
        height: 52px;
    }
}

/* Mobile: hamburger + collapsible drawer (saves vertical space) */
@media (max-width: 991px) {
    .navbar-inner {
        flex-wrap: wrap;
    }

    .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .navbar-brand a.logo .site-logo-img {
        height: 48px;
        max-width: min(200px, 48vw);
    }

    .navbar-tagline,
    button.navbar-tagline--video-trigger {
        max-width: calc(100vw - 140px);
        font-size: 0.72rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .navbar-toggle {
        display: inline-flex;
    }

    .navbar-collapse {
        flex: 1 0 100%;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.38s ease, opacity 0.22s ease;
        border-top: 1px solid transparent;
        margin-top: 0;
    }

    .navbar.navbar--open .navbar-collapse {
        max-height: min(88vh, 640px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        opacity: 1;
        border-top-color: var(--border-color);
        margin-top: 6px;
        padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
    }

    .navbar-menu {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        width: 100%;
        max-width: none;
        padding: 4px 0 8px;
        border-top: none;
    }

    .navbar-menu > li {
        flex-shrink: 0;
        border-bottom: 1px solid rgba(15, 41, 66, 0.07);
    }

    .navbar-menu > li:last-child {
        border-bottom: none;
    }

    .navbar-menu a {
        display: block;
        padding: 14px 6px;
        font-size: 16px;
    }

    .navbar-menu .btn-login,
    .navbar-menu .btn-signup {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .navbar .dropdown {
        width: 100%;
    }

    .navbar .dropdown-toggle {
        display: block;
        width: 100%;
        box-sizing: border-box;
        padding: 14px 6px;
    }

    .navbar .dropdown-menu {
        position: static;
        display: none;
        margin: 0 0 8px 10px;
        padding: 4px 0;
        min-width: 0;
        width: calc(100% - 14px);
        border: none;
        border-left: 3px solid var(--accent-soft);
        border-radius: 0;
        box-shadow: none;
    }

    .navbar .dropdown-menu::before {
        display: none;
    }

    .navbar .dropdown.dropdown-open .dropdown-menu {
        display: block;
    }

    .navbar .dropdown:not(.dropdown-open) .dropdown-menu {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .navbar-toggle {
        display: none !important;
    }

    .navbar-collapse {
        max-height: none !important;
        overflow: visible !important;
        opacity: 1 !important;
        flex: 0 1 auto !important;
        width: auto !important;
        border-top: none !important;
        margin-top: 0 !important;
        padding-bottom: 0 !important;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-inner {
        padding-top: 3rem;
        padding-bottom: 2rem;
    }

    .hero-actions.hero-actions--landing-support .btn-lg {
        width: 100%;
        max-width: 320px;
    }

    .hero-stats-inner {
        grid-template-columns: 1fr;
    }

    .stat-block {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding: 1rem 20px;
    }

    .stat-block:last-child {
        border-bottom: none;
    }

    .hero.hero--landing-support .stat-block {
        border-bottom-color: rgba(255, 255, 255, 0.12);
    }

    .hero-content h1,
    .hero:not(.hero--clinical):not(.hero--landing-support) .hero-content h1 {
        font-size: 32px;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
        text-align: center;
    }

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .product-detail-content {
        grid-template-columns: 1fr;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .checkout-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .filter-form {
        flex-direction: column;
    }
}
