*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}
.header-inner {
    max-width: 1400px; margin: 0 auto;
    padding: 0 48px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
}
.header-end {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.header-search {
    display: inline-flex;
    align-items: center;
    height: 34px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
    flex-shrink: 1;
    min-width: 0;
}
.header-search input[type="search"] {
    border: none;
    outline: none;
    padding: 0 10px;
    height: 100%;
    width: 150px;
    max-width: 40vw;
    font-size: var(--fs-sm);
    background: transparent;
    color: var(--text);
}
.header-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 100%;
    border: none;
    background: transparent;
    color: var(--text);
    cursor: pointer;
}
.header-search button:hover { background: var(--border); }
.header-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 34px;
    padding: 0 10px 0 8px;
    background: #fff;
    color: #101820;
    border: 1px solid #101820;
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    transition: background .2s, border-color .2s;
    flex-shrink: 0;
}
.header-cart-btn:hover {
    background: #f3f4f6;
    opacity: 1;
}
.header-cart-icon {
    flex-shrink: 0;
    display: block;
    width: 17px;
    height: 17px;
}
.header-cart-label { line-height: 1; }
.header-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-text);
    font-size: 9px;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,.12);
}
.cart-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #101820;
    color: #fff;
    border-radius: calc(var(--radius) + 2px);
    box-shadow: 0 12px 32px rgba(16, 24, 32, .25);
    font-size: 14px;
    transition: opacity .35s ease, transform .35s ease;
}
.cart-toast a {
    color: #fff;
    font-weight: 600;
    text-decoration: underline;
    font-size: 13px;
}
.cart-toast--hide {
    opacity: 0;
    transform: translateX(-50%) translateY(12px);
    pointer-events: none;
}
.mobile-nav-cart-link {
    font-weight: 700;
    background: #f3f4f6;
}
.brand {
    font-size: 13px; font-weight: 500; letter-spacing: 3px;
    text-transform: uppercase; color: var(--header-text);
}
.brand img { height: 36px; width: auto; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 8px 12px; color: var(--header-text); transition: opacity .2s;
}
.nav a:hover { opacity: .6; }
.nav-dashboard-link,
.mobile-nav-panel .nav-dashboard-link {
    background: #ffffff;
    color: #101820 !important;
    border: 2px solid #101820;
    border-radius: var(--radius);
    margin-left: 4px;
}
.nav-dashboard-link:hover,
.mobile-nav-panel .nav-dashboard-link:hover {
    opacity: 1;
    background: #f3f4f6;
}

/* Header user profile menu */
.nav-user-menu { position: relative; margin-left: 0; }
.nav-user-toggle {
    display: inline-flex; align-items: center; gap: 6px;
    height: 34px; padding: 0 10px 0 4px;
    background: #fff; color: #101820;
    border: 1px solid #101820; border-radius: var(--radius);
    cursor: pointer; font-family: var(--font-body);
    transition: background .2s, border-color .2s;
}
.nav-user-toggle:hover { background: #f3f4f6; }
.nav-user-avatar {
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--primary); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 9px; font-weight: 700; letter-spacing: .3px; flex-shrink: 0;
}
.nav-user-avatar-lg { width: 36px; height: 36px; font-size: 12px; }
.nav-user-name {
    font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase;
    max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-weight: 600;
}
.nav-user-caret { font-size: 9px; opacity: .55; }
.nav-user-dropdown {
    display: none; position: absolute; top: calc(100% + 6px); right: 0;
    min-width: 200px; background: var(--bg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(16, 24, 32, .1);
    border-radius: calc(var(--radius) + 2px); overflow: hidden; z-index: 130;
}
.nav-user-menu.open .nav-user-dropdown { display: block; }
.nav-user-dropdown-head {
    display: flex; align-items: center; gap: 10px;
    padding: 12px; border-bottom: 1px solid var(--border);
    background: #fafafa;
}
.nav-user-dropdown-head strong {
    display: block; font-size: 12px; font-weight: 600; color: var(--text);
    margin-bottom: 2px;
}
.nav-user-dropdown-head span {
    display: block; font-size: 11px; color: var(--text-muted);
    max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-user-dropdown a {
    display: block; padding: 10px 12px;
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    border-bottom: 1px solid var(--border); transition: background .15s;
    font-weight: 500;
}
.nav-user-dropdown a:last-child { border-bottom: none; }
.nav-user-dropdown a:hover { background: #f3f4f6; opacity: 1; }
.nav-user-logout { color: #991b1b; }
.mobile-nav-user {
    display: flex; align-items: center; gap: 12px;
    padding: 16px 0; margin-bottom: 8px;
    border-bottom: 1px solid var(--border);
}
.mobile-nav-user strong { display: block; font-size: 14px; }
.mobile-nav-user span { font-size: 12px; color: var(--text-muted); }

.lang-switch { position: relative; z-index: 140; margin-left: 4px; }
.lang-switch-form { margin: 0; }
.lang-switch select {
    height: 34px; padding: 0 24px 0 10px; border: 1px solid var(--border);
    background: var(--bg); font-family: var(--font-body); font-size: 11px;
    border-radius: var(--radius); cursor: pointer;
    appearance: auto;
    min-width: 68px;
}

/* Hero Slider — soft inset panel, rounded image corners */
/* TEST A+B (2026-08-26): previous radius 18px, border .08, shadow .04/.08 — revert these 3 vars if rejected */
.hero {
    --hero-radius: 24px;
    --hero-edge: rgba(16, 24, 32, .38);
    --hero-lift:
        inset 0 1px 0 rgba(255, 255, 255, .42),
        inset 0 0 0 1px rgba(16, 24, 32, .10),
        0 6px 16px rgba(16, 24, 32, .13),
        0 26px 58px rgba(16, 24, 32, .24);
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 48px 12px;
    height: auto;
    overflow: visible;
    background: transparent;
    box-sizing: border-box;
}
/* Tighter gap between homepage banner and product section */
.hero + .section {
    padding-top: 36px;
}
.hero-slide {
    position: absolute;
    left: 48px;
    right: 48px;
    top: 20px;
    width: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
    overflow: hidden;
    border-radius: var(--hero-radius);
    border: 1px solid var(--hero-edge);
    box-shadow: var(--hero-lift);
    background: var(--bg, #fff);
}
.hero-slide.active {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    opacity: 1;
    pointer-events: auto;
}
.hero-slide picture,
.hero-slide img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    vertical-align: top;
    border-radius: var(--hero-radius);
}
.hero-slide-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
    border-radius: var(--hero-radius);
    overflow: hidden;
}
.hero-slide--link { cursor: pointer; }
.hero-overlay {
    position: absolute; inset: 0;
    background: none;
    pointer-events: none;
    border-radius: var(--hero-radius);
}
.hero-slide:has(.hero-content) .hero-overlay {
    background: linear-gradient(to top, rgba(0,0,0,.35) 0%, transparent 55%);
}
.hero-content {
    position: absolute; bottom: 72px; left: 40px; right: 40px;
    max-width: 700px; color: #fff;
    pointer-events: none;
}
.hero-content h1 {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 400; line-height: 1.1; margin-bottom: 16px;
}
.hero-content p { font-size: 16px; opacity: .85; margin-bottom: 32px; max-width: 480px; }
.hero-dots {
    position: absolute;
    bottom: 44px;
    left: 88px;
    display: flex;
    gap: 8px;
    z-index: 2;
}
.hero-dot {
    height: 2px; background: rgba(255,255,255,.35); cursor: pointer; transition: all .3s;
}
.hero-dot.active { background: #fff; width: 32px; }
.hero-dot:not(.active) { width: 8px; }

/* Buttons — white fill, black border, dark text */
.btn,
.btn-primary,
.btn-secondary,
.btn-danger,
label.btn {
    display: inline-flex; align-items: center; justify-content: center;
    height: 48px; padding: 0 32px;
    font-size: 11px; font-weight: 500; letter-spacing: 2px; text-transform: uppercase;
    border-radius: var(--radius); cursor: pointer; transition: all .2s;
    font-family: var(--font-body);
    background: #ffffff;
    color: #101820;
    border: 2px solid #101820;
    text-decoration: none;
}
/* display:inline-flex above would otherwise override the hidden attribute */
.btn[hidden],
.btn-primary[hidden],
.btn-secondary[hidden],
.btn-danger[hidden],
label.btn[hidden] {
    display: none !important;
}
.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-danger:hover,
label.btn:hover {
    background: #f3f4f6;
}
.btn-outline {
    background: #ffffff;
    color: #101820;
    border: 2px solid #101820;
}
.btn-outline:hover { background: #f3f4f6; }

/* Sections */
.section { max-width: 1400px; margin: 0 auto; padding: 80px 48px; }
.section-label {
    font-size: var(--fs-label); letter-spacing: 2px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 8px;
}
.section-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1); font-weight: 400; margin-bottom: 32px;
}
/* CMS page content */
.cms-content { max-width: 900px; margin: 0 auto; line-height: 1.8; font-size: var(--fs-body); }
.cms-content h1 {
    font-family: var(--font-heading); font-size: var(--fs-h1); font-weight: 400;
    margin: 1.5em 0 .75em;
}
.cms-content h2 {
    font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 400;
    margin: 1.5em 0 .75em;
}
.cms-content h3 {
    font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 400;
    margin: 1.5em 0 .75em;
}
.cms-content p { margin-bottom: 1em; color: var(--text); }
.cms-content ul, .cms-content ol { margin: 0 0 1em 1.5em; }
.cms-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1em 0; }
.cms-content a { text-decoration: underline; }
.divider { height: 1px; background: var(--border); margin-bottom: 48px; }

/* Products — Accessory gallery (file.difsan.de style) */
.gallery-toolbar { margin-bottom: 32px; }
.gallery-heading { font-size: var(--fs-h3); font-weight: 600; margin-bottom: 8px; color: var(--text); }
.gallery-sub { font-size: var(--fs-sm); color: var(--text-muted); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.gallery-item {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: var(--bg);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    display: flex;
    flex-direction: column;
}
.gallery-item:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(16, 24, 32, .08);
    transform: translateY(-2px);
}
.gallery-item-image {
    aspect-ratio: 1;
    background: #f4f5f6;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-placeholder { width: 100%; height: 100%; background: var(--border); }
.gallery-item-body {
    padding: 12px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.gallery-sku {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    color: var(--text-muted);
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.gallery-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery-price { font-size: 13px; color: var(--primary); font-weight: 600; margin-top: 2px; }
.gallery-btn {
    display: block;
    text-align: center;
    padding: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    color: var(--primary);
    background: #fafafa;
}
.gallery-item:hover .gallery-btn { background: var(--primary); color: var(--btn-text); }

/* Tema 2 — Accessory gallery (file.difsan.de/project/accessory-1) */
.accessory-page {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4px;
}
.accessory-project-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.accessory-project-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 600;
    margin: 0 0 10px;
    color: var(--text);
    letter-spacing: -0.02em;
}
.accessory-project-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px;
}
.accessory-code-badge {
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary);
    background: rgba(59, 130, 246, .08);
    padding: 3px 8px;
    border-radius: calc(var(--radius) + 2px);
}
.accessory-dot { opacity: .5; }
.accessory-project-desc {
    font-size: 15px;
    color: var(--text-muted);
    margin: 0;
    max-width: 640px;
    line-height: 1.5;
}
.accessory-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
}
.accessory-count-pill {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 999px;
}
.accessory-toolbar-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--secondary);
    text-decoration: none;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    background: var(--bg);
    transition: background .15s, border-color .15s;
}
.accessory-toolbar-link:hover {
    border-color: var(--secondary);
    background: rgba(59, 130, 246, .06);
}
.accessory-section-head { margin-bottom: 20px; }
.accessory-section-title {
    font-size: var(--fs-h3);
    font-weight: 600;
    margin: 0 0 6px;
    color: var(--text);
}
.accessory-section-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}
.accessory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
    gap: 16px;
}
.accessory-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    background: var(--bg);
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s, transform .15s;
}
.accessory-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 20px rgba(15, 23, 42, .08);
    transform: translateY(-1px);
}
.accessory-thumb-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
}
.accessory-thumb {
    aspect-ratio: 1;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.accessory-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}
.accessory-card:hover .accessory-thumb img {
    transform: scale(1.05);
    filter: brightness(1.06);
}
.accessory-thumb-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e2e8f0 0%, #f1f5f9 100%);
}
.accessory-path {
    padding: 8px 10px 0;
    font-size: 10px;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.accessory-meta-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 6px 10px 0;
    min-height: 36px;
    flex-wrap: wrap;
}
.accessory-sku {
    font-size: 11px;
    font-weight: 700;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    color: var(--secondary);
    letter-spacing: .3px;
}
.accessory-filename {
    font-size: 11px;
    color: var(--text-muted);
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}
.accessory-price-row {
    padding: 4px 10px 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}
.accessory-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    margin-top: auto;
}
.accessory-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background .15s, color .15s;
    border: none;
    background: #fafbfc;
    color: var(--text);
}
.accessory-btn--detail {
    border-right: 1px solid var(--border);
    color: var(--secondary);
}
.accessory-btn--buy {
    color: var(--btn-bg);
    background: rgba(37, 99, 235, .06);
}
.accessory-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
}
.layout-accessory .section-label,
.layout-accessory .section-title,
.layout-accessory .divider { display: none; }
.layout-accessory #products.section { padding-top: 32px; }

/* Legacy product grid fallback */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}
.product-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; margin-bottom: 16px; }
.product-card h3 {
    font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 400; margin-bottom: 4px;
}
.product-card .price { font-size: var(--fs-sm); color: var(--text-muted); }

/* Product engagement — likes, ratings, sale price */
.product-media-wrap { position: relative; }
.product-media-wrap img,
.product-card-visual img { display: block; width: 100%; }
.product-like-btn {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 10px; border: none; border-radius: 999px;
    background: rgba(255,255,255,.92); color: var(--text-muted);
    font-size: 12px; font-weight: 600; cursor: pointer;
    box-shadow: 0 2px 10px rgba(16,24,32,.12);
    transition: transform .15s, color .15s, background .15s;
}
.product-like-btn:hover { transform: scale(1.04); color: #c0392b; }
.product-like-btn.is-active { color: #e74c3c; }
.product-like-btn.is-active .product-like-icon { transform: scale(1.1); }
.product-like-icon { font-size: 14px; line-height: 1; transition: transform .15s; }
.product-card-visual { position: relative; margin-bottom: 0; overflow: hidden; }
.product-card-visual .product-card-image-link { display: block; }
.product-card-visual img {
    aspect-ratio: 4/5;
    object-fit: cover;
    transition: transform .3s ease, filter .3s ease;
}
.product-card--classic {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden;
    background: var(--bg);
    transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
}
.product-card--classic:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
    transform: translateY(-2px);
}
.product-card--classic:hover .product-card-visual img {
    transform: scale(1.05);
    filter: brightness(1.06);
}
.product-card-content { padding: 0 12px 0; }
.product-card-body {
    display: block;
    color: inherit;
    text-decoration: none;
    padding: 12px 0 8px;
}
.product-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--border);
    margin: 0 -12px;
}
.product-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .4px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background .15s, color .15s;
    background: #fafbfc;
    color: var(--text);
}
.product-card-btn--buy {
    border-right: 1px solid var(--border);
    color: var(--secondary);
}
.product-card-btn--cart {
    color: var(--btn-bg);
    background: rgba(16, 24, 32, .04);
}
.product-card-btn:hover {
    background: var(--btn-bg);
    color: var(--btn-text);
}
.product-card-body:hover h3 { color: var(--primary); }
.product-price-wrap {
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
    font-size: 14px; margin-top: 6px;
}
.product-price-wrap .price-current { color: var(--text); font-weight: 500; }
.product-price-wrap--sale .price-old {
    color: var(--text-muted); text-decoration: line-through; font-size: 13px;
}
.product-price-wrap--sale .price-new { color: var(--primary); font-weight: 600; font-size: 15px; }
.product-rating {
    display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
    margin-top: 6px; font-size: 12px; color: var(--text-muted);
}
.product-rating-stars .star { color: #ddd; letter-spacing: 1px; }
.product-rating-stars .star.is-filled { color: #f5b301; }
.product-rating-value { font-weight: 600; color: var(--text); }
.product-rating-count { opacity: .85; }
.accessory-thumb.product-media-wrap { overflow: hidden; }
.accessory-card-body { padding: 10px 4px 0; }
.accessory-product-name {
    font-family: var(--font-heading); font-size: 15px; font-weight: 500;
    margin: 0 0 4px; line-height: 1.35;
}
.accessory-card .product-price-wrap { margin-top: 4px; }
.accessory-card .product-rating--compact { margin-top: 2px; }
.product-detail-page .product-detail-gallery .product-media-wrap img {
    width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius);
}
.product-detail-thumbs { display: flex; gap: 8px; padding: 12px 0; flex-wrap: wrap; }
.product-detail-thumb {
    border: 1px solid var(--border); padding: 0; background: none;
    cursor: pointer; border-radius: var(--radius); overflow: hidden;
}
.product-detail-thumb img { width: 64px; height: 64px; object-fit: cover; display: block; }
.product-detail-videos { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.product-detail-video { width: 100%; max-height: 400px; border-radius: 8px; background: #000; }
.product-detail-specs { margin-top: 24px; }
.product-specs-title { font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 400; margin-bottom: 12px; }
.product-specs-table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
.product-specs-table th, .product-specs-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
.product-specs-table th { width: 38%; font-weight: 500; color: var(--text-muted); background: #fafbfc; }
.product-specs-table tr:last-child th, .product-specs-table tr:last-child td { border-bottom: none; }
[dir="rtl"] .product-specs-table th, [dir="rtl"] .product-specs-table td { text-align: right; }
.product-breadcrumb {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
    font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: 20px;
}
.product-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.product-breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.product-breadcrumb-sep { opacity: .5; }
.product-breadcrumb-current { color: var(--text); }
.product-detail-brand {
    font-size: var(--fs-sm); font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-muted); margin: 0 0 6px;
}
.product-detail-meta {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 8px 0 14px;
}
.product-detail-review-link, .product-detail-review-empty { font-size: var(--fs-sm); color: var(--text-muted); }
.product-detail-review-link:hover { color: var(--text); text-decoration: underline; }
.product-detail-sku { font-size: var(--fs-sm); color: var(--text-muted); margin: 0 0 16px; }
.product-detail-sku-label { font-weight: 500; }
.product-stock-status {
    display: inline-block; font-size: var(--fs-sm); font-weight: 600;
    margin: 0 0 16px; padding: 4px 10px; border-radius: var(--radius);
}
.product-stock-status.is-in { color: #0a7d33; background: #e8f6ed; }
.product-stock-status.is-low { color: #9a6700; background: #fff5e0; }
.product-stock-status.is-out { color: #b3261e; background: #fdecea; }
.product-return-policy {
    display: block; font-size: var(--fs-sm); margin: 0 0 16px;
}
.product-return-policy.is-returnable { color: #0a7d33; }
.product-return-policy.is-final { color: var(--text-muted); }
.product-wishlist-form { margin: 12px 0 0; }
.product-wishlist-btn.is-active { background: #101820; color: #fff; }
.product-wishlist-login {
    font-size: var(--fs-sm); color: var(--text-muted); text-decoration: underline;
}
.related-products-section { margin-top: 64px; }
.related-products-title {
    font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 400; margin: 0 0 24px;
}
.wishlist-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px;
}
.wishlist-card {
    border: 1px solid var(--border); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column; background: #fff;
}
.wishlist-card-media { display: block; aspect-ratio: 1 / 1; background: #f5f5f5; }
.wishlist-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wishlist-card-body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.wishlist-card-name { text-decoration: none; color: var(--text); font-weight: 500; font-size: var(--fs-sm); }
.wishlist-card-price { margin: 0; font-weight: 600; }
.wishlist-card-actions { display: flex; gap: 8px; align-items: center; margin-top: auto; flex-wrap: wrap; }
.wishlist-out { font-size: var(--fs-sm); color: #b3261e; }
.product-highlights { margin: 20px 0; padding-top: 16px; border-top: 1px solid var(--border); }
.product-highlights-title {
    font-family: var(--font-heading); font-size: var(--fs-h3); font-weight: 400; margin: 0 0 12px;
}
.product-highlights-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px;
}
.product-highlight-chip {
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 10px 12px; background: #fafbfc;
}
.product-highlight-label {
    display: block; font-size: var(--fs-label); color: var(--text-muted); margin-bottom: 4px;
}
.product-highlight-value { display: block; font-size: var(--fs-sm); font-weight: 600; color: var(--text); }
.product-info-panel {
    margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border);
}
.product-info-panel-title {
    font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 400; margin: 0 0 20px;
}
.product-info-tabs {
    display: flex; flex-wrap: wrap; gap: 0; border-bottom: 2px solid var(--border); margin-bottom: 0;
}
.product-info-tab {
    appearance: none; border: none; background: transparent;
    padding: 12px 20px; font-size: var(--fs-sm); font-weight: 600;
    color: var(--text-muted); cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.product-info-tab.is-active {
    color: var(--text); border-bottom-color: var(--primary);
}
.product-info-panels { border: 1px solid var(--border); border-top: none; background: #fff; }
.product-info-panel-body { display: none; padding: 4px 0; }
.product-info-panel-body.is-active { display: block; }
.product-description-block, .product-description-body {
    font-size: var(--fs-body); line-height: 1.7; color: var(--text);
}
.product-detail-info .product-rating { margin: 0; font-size: 14px; }
.product-detail-info .product-price-wrap { margin-bottom: 20px; font-size: 18px; }
.product-detail-cart { margin-top: 24px; }
.product-variant-picker { margin-bottom: 16px; }
.variant-option-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-option-btn {
    min-height: 44px;
    min-width: 48px;
    padding: 0 14px;
    border: 2px solid var(--border);
    background: #fff;
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--fs-sm);
    cursor: pointer;
}
.variant-option-btn:hover:not(:disabled) { border-color: var(--text); }
.variant-option-btn.is-active {
    border-color: var(--text);
    background: var(--text);
    color: #fff;
}
.variant-option-btn.is-disabled,
.variant-option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}
.product-variant-hint {
    margin: 8px 0 0;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.cart-variant-meta {
    display: block;
    margin-top: 4px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}
.product-reviews-section {
    margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--border);
    max-width: 720px;
}
.product-reviews-title {
    font-family: var(--font-heading); font-size: var(--fs-h2); font-weight: 400; margin-bottom: 20px;
}
.product-feedback-form {
    background: var(--background); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; margin-bottom: 28px;
}
.feedback-stars-input { display: flex; gap: 4px; margin: 8px 0 16px; }
.feedback-stars-input button {
    border: none; background: none; font-size: 26px; color: #ddd;
    cursor: pointer; padding: 0 2px; line-height: 1;
}
.feedback-stars-input button.is-selected { color: #f5b301; }
.product-feedback-notice { color: var(--text-muted); margin-bottom: 20px; }
.product-feedback-notice--published { color: var(--text); }
.product-review-own-badge {
    display: inline-block; margin-left: 8px; padding: 2px 8px;
    font-size: 11px; font-weight: 600; letter-spacing: 0.04em;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.product-review-item--own { background: rgba(0,0,0,0.02); padding: 12px; border-radius: var(--radius); }
.product-review-item {
    padding: 18px 0; border-bottom: 1px solid var(--border);
}
.product-review-head {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.product-review-stars .star { color: #ddd; }
.product-review-stars .star.is-filled { color: #f5b301; }
.product-review-date { margin-left: auto; font-size: 12px; color: var(--text-muted); }
.product-review-text { margin: 0; line-height: 1.6; color: var(--text); }
.product-reviews-empty { color: var(--text-muted); }
.store-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
    background: var(--primary); color: #fff; padding: 12px 20px; border-radius: 999px;
    font-size: 14px; z-index: 2000; opacity: 0; pointer-events: none;
    transition: opacity .25s, transform .25s;
}
.store-toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.product-modal-rating {
    display: flex; align-items: center; gap: 6px; margin: 6px 0 10px;
    font-size: 13px; color: var(--text-muted);
}
.product-modal-price .price-old { text-decoration: line-through; margin-right: 8px; color: var(--text-muted); }
.product-modal-price .price-new, .product-modal-price .price-current { font-weight: 600; font-size: 18px; }

/* Product detail modal */
.product-modal {
    position: fixed; inset: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.product-modal.open { opacity: 1; visibility: visible; }
.product-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(16, 24, 32, .55);
    backdrop-filter: blur(4px);
}
.product-modal-dialog {
    position: relative;
    background: var(--bg);
    border-radius: calc(var(--radius) + 6px);
    max-width: 920px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: modalIn .3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(.96) translateY(12px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.product-modal-close {
    position: absolute; top: 16px; right: 16px; z-index: 2;
    width: 40px; height: 40px; border: none; background: var(--bg);
    border-radius: 50%; font-size: 24px; line-height: 1;
    cursor: pointer; color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.product-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.product-modal-image-wrap {
    background: #f4f5f6;
    min-height: 320px;
}
.product-modal-image-wrap img {
    width: 100%; height: 100%;
    min-height: 320px;
    object-fit: cover;
}
.product-modal-info {
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.product-modal-info h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 400;
    line-height: 1.2;
}
.product-modal-price { font-size: 22px; font-weight: 600; color: var(--primary); }
.product-modal-desc { color: var(--text-muted); line-height: 1.6; font-size: var(--fs-sm); }
.product-modal-long-desc {
    display: block;
    color: var(--text); line-height: 1.75; font-size: var(--fs-body);
    margin-top: 4px;
    max-height: 200px; overflow-y: auto;
}
.product-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }

/* Category navigation */
.nav-categories { position: relative; }
.nav-categories-toggle {
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    padding: 8px 12px; color: var(--header-text); background: none; border: none;
    cursor: pointer; font-family: var(--font-body);
}
.nav-categories-menu {
    display: none; position: absolute; top: 100%; left: 0; min-width: 240px;
    background: var(--bg); border: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 120; padding: 8px 0;
}
.nav-categories.open .nav-categories-menu { display: block; }
.nav-categories-menu--tree {
    min-width: 280px;
    max-height: min(70vh, 480px);
    overflow-y: auto;
    padding: 10px 12px;
}
.nav-categories-menu--tree .category-sidebar-nav {
    border: none;
    padding: 0;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
}
.nav-categories-menu--tree .category-nav-row > a {
    padding: 8px 4px;
    font-size: 13px;
    letter-spacing: normal;
    text-transform: none;
    white-space: normal;
    color: var(--text);
}
.nav-categories-menu--tree .category-nav-leaf {
    white-space: normal;
}
.nav-categories-menu a {
    display: block; padding: 10px 16px; font-size: 12px; letter-spacing: 1px;
    text-transform: none; color: var(--text);
}
.nav-categories-menu a:hover { background: #f3f4f6; opacity: 1; }
.nav-sub-link { padding-left: 28px !important; font-size: 11px !important; color: var(--text-muted) !important; }
.nav-sub-link--nested { padding-left: 44px !important; }

.menu-toggle-store {
    display: none; background: #fff; border: 2px solid #101820; color: #101820;
    width: 44px; height: 44px; border-radius: var(--radius); cursor: pointer;
    font-size: 20px; align-items: center; justify-content: center;
}
.mobile-nav {
    display: none; position: fixed; inset: 0; z-index: 150;
    background: rgba(0,0,0,.4);
}
.mobile-nav.open { display: block; }
.mobile-nav-panel {
    position: absolute; top: 0; right: 0; width: min(320px, 88vw); height: 100%;
    background: var(--bg); padding: 24px; overflow-y: auto;
    border-left: 1px solid var(--border);
}
.mobile-nav-panel > a {
    display: block; padding: 14px 0; border-bottom: 1px solid var(--border);
    font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
}
.mobile-nav-categories {
    margin: 8px 0 16px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.mobile-nav-categories .category-sidebar-nav {
    border: none;
    padding: 0;
    position: static;
    max-height: none;
    overflow: visible;
    background: transparent;
}
.mobile-nav-categories .category-sidebar-nav h3 {
    margin-bottom: 10px;
}
.mobile-nav-categories .category-nav-row > a,
.mobile-nav-categories .category-nav-all,
.mobile-nav-categories .category-nav-leaf {
    text-transform: none;
    letter-spacing: normal;
    font-size: 14px;
    border-bottom: none;
    padding-top: 10px;
    padding-bottom: 10px;
}
.mobile-nav-categories .category-nav-toggle {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
}
.mobile-nav-categories .category-nav-toggle-spacer {
    width: 32px;
    flex-basis: 32px;
    height: 32px;
}
.mobile-nav-close {
    background: #fff; border: 2px solid #101820; color: #101820;
    width: 40px; height: 40px; border-radius: var(--radius); cursor: pointer;
    margin-bottom: 16px;
}
.category-sidebar {
    display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start;
}
.category-sidebar-nav {
    border: 1px solid var(--border); padding: 16px; border-radius: var(--radius);
    position: sticky; top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.category-sidebar-nav h3 {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    margin-bottom: 12px; color: var(--text-muted);
}
.category-sidebar-nav a.category-nav-all {
    display: block; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--border);
}
.category-sidebar-nav a.active { font-weight: 600; color: var(--text); }
.category-sidebar-nav a.is-parent-active { font-weight: 500; }
.category-nav-group { border-bottom: 1px solid var(--border); }
.category-nav-group:last-child { border-bottom: none; }
.category-nav-row {
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 42px;
}
.category-nav-toggle {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin: 0;
    padding: 0;
    border: 2px solid #101820;
    background: #fff;
    color: #101820;
    cursor: pointer;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.category-nav-toggle__icon {
    position: relative;
    display: block;
    width: 10px;
    height: 10px;
}
/* + icon via two bars; becomes − when open */
.category-nav-toggle__icon::before,
.category-nav-toggle__icon::after {
    content: '';
    position: absolute;
    background: currentColor;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.category-nav-toggle__icon::before {
    width: 10px;
    height: 2px;
}
.category-nav-toggle__icon::after {
    width: 2px;
    height: 10px;
}
.category-nav-group.is-open > .category-nav-row > .category-nav-toggle {
    background: #101820;
    color: #fff;
}
.category-nav-group.is-open > .category-nav-row > .category-nav-toggle .category-nav-toggle__icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) scaleY(0);
}
.category-nav-toggle:hover { background: #f5f6f7; }
.category-nav-group.is-open > .category-nav-row > .category-nav-toggle:hover {
    background: #101820;
    color: #fff;
}
.category-nav-toggle-spacer {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
}
.category-nav-row > a {
    flex: 1;
    padding: 10px 4px;
    font-size: 14px;
    min-width: 0;
}
.category-nav-mid { font-size: 13px; color: var(--text-muted); }
.category-nav-leaf {
    display: block;
    padding: 8px 4px 8px 36px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}
.category-nav-panel {
    display: none;
    padding: 0 0 6px 8px;
}
.category-nav-group.is-open > .category-nav-panel { display: block; }
.category-nav-panel .category-nav-group { border-bottom: none; }
.category-nav-panel .category-nav-row { min-height: 36px; }
.category-nav-panel--leaf { padding-left: 0; }
.category-page-desc {
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 720px;
}
.category-child-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin: 0 0 28px;
}
.category-child-card {
    display: block;
    padding: 16px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: inherit;
    text-decoration: none;
}
.category-child-card strong {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 400;
}
.category-child-card span {
    display: block;
    margin-top: 6px;
    font-size: var(--fs-sm);
    color: var(--text-muted);
}

/* Full product detail page */
.product-detail-page { max-width: 1100px; margin: 0 auto; }
.product-detail-back {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 32px;
}
.product-detail-back:hover { color: var(--text); }
.product-detail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.product-detail-gallery {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background: #f4f5f6;
}
.product-detail-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.product-detail-info h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1); font-weight: 400;
    margin: 8px 0 16px; line-height: 1.15;
}
.product-detail-info .price {
    font-size: 24px; font-weight: 600;
    color: var(--primary); margin-bottom: 24px;
}
.product-detail-info .desc {
    color: var(--text-muted); line-height: 1.8;
    margin-bottom: 32px; font-size: 15px;
}
.product-detail-info .long-desc {
    color: var(--text); line-height: 1.8;
    margin-bottom: 32px; font-size: 15px;
}
@media (max-width: 900px) {
    .product-modal-grid, .product-detail { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
}
.empty-state {
    text-align: center; padding: 80px 40px;
    border: 1px solid var(--border);
}
.empty-state svg { width: 48px; height: 48px; color: var(--accent); margin-bottom: 16px; }
.empty-state h3 { font-family: var(--font-heading); font-size: var(--fs-h2); margin-bottom: 8px; }
.empty-state p { color: var(--text-muted); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 40px 48px 24px; }
.footer-menu-bar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0 20px;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
    align-items: start;
}
.footer-column {
    min-width: 0;
}
.footer-column-title {
    font-size: var(--fs-nav);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin: 0 0 16px;
    opacity: .9;
}
.footer-column-links { display: flex; flex-direction: column; gap: 10px; }
.footer-column-links a {
    font-size: var(--fs-sm);
    letter-spacing: .5px;
    opacity: .75;
    text-decoration: none;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
    text-align: inherit;
    cursor: pointer;
    font-family: inherit;
}
.footer-column-links a:hover { opacity: 1; }
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,.08);
    padding-top: 16px;
}
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .8; }
.footer-links a:hover { opacity: 1; }
.footer-copy { font-size: var(--fs-sm); opacity: .5; }

/* Store modal (newsletter etc.) */
.store-modal {
    position: fixed; inset: 0; z-index: 1100;
    display: flex; align-items: center; justify-content: center;
    padding: 24px;
    opacity: 0; visibility: hidden;
    transition: opacity .25s, visibility .25s;
}
.store-modal.open { opacity: 1; visibility: visible; }
.store-modal-backdrop {
    position: absolute; inset: 0;
    background: rgba(16, 24, 32, .55);
    backdrop-filter: blur(4px);
}
.store-modal-dialog {
    position: relative;
    background: var(--bg);
    color: var(--text);
    border-radius: calc(var(--radius) + 6px);
    max-width: 480px;
    width: 100%;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 64px rgba(0,0,0,.2);
    animation: modalIn .3s ease;
}
.store-modal-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 40px; height: 40px; border: none; background: var(--bg);
    border-radius: 50%; font-size: 24px; line-height: 1;
    cursor: pointer; color: var(--text);
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
}
.store-modal-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 400;
    margin: 0 0 10px;
}
.store-modal-hint {
    font-size: var(--fs-sm);
    color: var(--text-muted);
    margin: 0 0 20px;
    line-height: 1.5;
}
.newsletter-modal-form .form-group { margin-bottom: 16px; }
.newsletter-modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}
.newsletter-modal-msg.is-error { color: #b42318; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.brand-name { font-size: 14px; letter-spacing: 2px; text-transform: uppercase; font-weight: 600; }
.brand img { display: block; }
.brand--logo .brand-name { display: none; }
.brand--name img { display: none; }

/* Forms */
.form-group { margin-bottom: 24px; }
.form-group label {
    display: block; font-size: 11px; letter-spacing: 1.5px;
    text-transform: uppercase; margin-bottom: 8px; font-weight: 500;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%; height: 52px; padding: 0 16px;
    border: 1px solid var(--border); border-radius: var(--radius);
    font-family: var(--font-body); font-size: 16px; background: var(--bg);
}
.password-field { position: relative; display: flex; align-items: center; }
.password-field-input,
.password-field input[type="password"],
.password-field input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 48px 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg);
    box-sizing: border-box;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.password-toggle-icon { display: flex; align-items: center; justify-content: center; line-height: 0; }
.password-toggle-icon--hide { display: none; }
.password-toggle--visible .password-toggle-icon--show { display: none; }
.password-toggle--visible .password-toggle-icon--hide { display: flex; }
.password-toggle:hover { background: var(--border); }
.form-group textarea { height: 140px; padding: 16px; resize: vertical; }

/* Control baseline: selects/inputs outside .form-group (toolbars, filters).
   :where() keeps specificity low so component classes still win. */
:where(.section) :where(select,
    input[type="text"], input[type="search"], input[type="number"], input[type="email"]) {
    height: 48px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    background: var(--bg);
    color: var(--text);
    box-sizing: border-box;
}
:where(.section) :where(select, input):focus {
    outline: none;
    border-color: var(--primary);
}

/* Products toolbar (search + sort) */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 32px;
}
.products-toolbar input[type="search"] {
    flex: 1;
    min-width: 200px;
    max-width: 360px;
}
.products-toolbar select {
    min-width: 170px;
    max-width: 240px;
    cursor: pointer;
}
.form-card { max-width: 560px; margin: 0 auto; padding: 48px; border: 1px solid var(--border); }
.checkout-payment-single,
.checkout-payment-note {
    margin: 0;
    min-height: var(--input-height, 52px);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: var(--fs-body);
    background: var(--bg);
}
.checkout-summary {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    display: grid;
    gap: 6px;
}
.checkout-summary-row {
    display: flex;
    justify-content: space-between;
    margin: 0;
}
.checkout-summary-discount { color: #0a7d33; }
.checkout-summary-total {
    margin-top: 8px;
    font-weight: 700;
    font-size: var(--fs-h3);
}
@media (max-width: 760px) {
    .checkout-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
.contact-company {
    max-width: 560px;
    margin: 0 auto 24px;
}
.contact-company__heading,
.contact-form-card__heading {
    font-family: var(--font-heading);
    font-size: var(--fs-h2);
    font-weight: 400;
    margin: 0 0 16px;
}
.contact-company__name {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 400;
    margin: 0 0 16px;
}
.contact-company__row {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 12px;
    margin: 0 0 12px;
    font-size: var(--fs-body);
    align-items: start;
}
.contact-company__label {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.contact-company__value {
    margin: 0;
    color: var(--text);
    white-space: pre-line;
}
.contact-company__phone {
    text-decoration: none;
    color: inherit;
}
.contact-company__phone:hover { text-decoration: underline; }
.contact-form-card { margin-top: 0; }
.contact-form-submit { width: 100%; }
.captcha-row { display: flex; gap: 12px; align-items: center; margin: 0 0 12px; flex-wrap: wrap; }
.captcha-row img,
.captcha-image {
    height: 72px; min-width: 240px; width: auto;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: #f1f5f9; object-fit: contain;
}
.btn-icon {
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    flex-shrink: 0;
}
.btn-icon:hover { background: var(--border); }
.captcha-widget { margin-bottom: 24px; }
.captcha-answer-input,
.form-group .captcha-row + input[type="text"] {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    background: var(--bg);
    box-sizing: border-box;
}
.captcha-answer-input:focus,
.form-group .captcha-row + input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.alert-error { background: #fee2e2; color: #991b1b; }
.alert-success { background: #dcfce7; color: #166534; }

.social-auth-block { margin: 0 0 8px; }
.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 560px) {
    .form-grid-2 { grid-template-columns: 1fr; }
}
.social-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0 24px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
}
.social-auth-divider::before,
.social-auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}
.social-auth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    margin-bottom: 28px;
}
.social-btn,
.social-btn-provider {
    width: 100%;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: var(--fs-body);
    font-weight: 500;
    border: 2px solid #101820;
    background: #fff;
    color: #101820;
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 0;
    transition: background 0.15s ease;
}
.social-btn:hover,
.social-btn-provider:hover {
    background: #f3f4f6;
    color: #101820;
}
.social-btn:focus-visible,
.social-btn-provider:focus-visible {
    outline: 2px solid #101820;
    outline-offset: 2px;
}
.social-btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.social-signup-help {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.social-signup-title {
    font-family: var(--font-heading);
    font-size: var(--fs-h3);
    font-weight: 400;
    margin: 0 0 12px;
    color: var(--text);
}
.social-signup-links {
    margin: 0 0 10px;
    font-size: var(--fs-body);
}
.social-signup-links a { text-decoration: underline; color: var(--primary); }

/* Account page */
.account-hero {
    background: var(--primary);
    color: #fff;
    padding: 48px 48px 56px;
}
.account-hero-inner {
    max-width: 1400px; margin: 0 auto;
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
}
.account-hero-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 2px solid rgba(255,255,255,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 600; letter-spacing: 1px; flex-shrink: 0;
}
.account-hero-text { flex: 1; min-width: 200px; }
.account-hero-label {
    font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
    opacity: .7; margin-bottom: 8px;
}
.account-hero-text h1 {
    font-family: var(--font-heading);
    font-size: var(--fs-h1);
    font-weight: 400; line-height: 1.15; margin-bottom: 6px;
}
.account-hero-email { font-size: var(--fs-sm); opacity: .75; }
.account-hero-stat {
    text-align: center; padding: 16px 28px;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: var(--radius); min-width: 100px;
}
.account-hero-stat strong {
    display: block; font-family: var(--font-heading);
    font-size: 32px; font-weight: 400; line-height: 1;
}
.account-hero-stat span {
    display: block; margin-top: 6px;
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7;
}
.account-page { padding-top: 48px; padding-bottom: 80px; }
.account-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    align-items: start;
}
.account-nav {
    position: sticky; top: 96px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    overflow: hidden; background: var(--bg);
}
.account-nav button {
    display: block; width: 100%; text-align: left;
    padding: 16px 20px; border: none; border-bottom: 1px solid var(--border);
    background: none; cursor: pointer; font-family: var(--font-body);
    font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); transition: background .15s, color .15s;
}
.account-nav button:last-child { border-bottom: none; }
.account-nav button:hover { background: #f8f9fa; color: var(--text); }
.account-nav button.active {
    background: var(--primary); color: #fff;
}
.account-panel { display: none; }
.account-panel.active { display: block; }
.account-card {
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    padding: 36px 40px;
    background: var(--bg);
    margin-bottom: 24px;
}
.account-card:last-child { margin-bottom: 0; }
.account-card-head { margin-bottom: 28px; }
.account-card-head h2 {
    font-family: var(--font-heading);
    font-size: var(--fs-h2); font-weight: 400; margin-bottom: 6px;
}
.account-card-head p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.account-card .btn { margin-top: 4px; }
.address-list { display: grid; gap: 16px; margin-bottom: 32px; }
.address-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 24px;
    background: #fafafa;
    transition: border-color .15s;
}
.address-card.default { border-color: var(--primary); background: #fff; }
.address-card-title {
    display: flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 14px; margin-bottom: 10px;
}
.address-badge {
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    padding: 3px 8px; border: 1px solid var(--primary);
    border-radius: var(--radius); color: var(--primary);
}
.address-card-body { font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.address-actions { margin-top: 14px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.address-actions form { display: inline; }
.address-actions a,
.address-actions button {
    font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
    background: none; border: none; cursor: pointer;
    text-decoration: underline; color: var(--primary); padding: 0;
    font-family: var(--font-body);
}
.address-form-title {
    font-family: var(--font-heading);
    font-size: 18px; margin-bottom: 20px; padding-top: 8px;
    border-top: 1px solid var(--border);
}
.account-orders-table { width: 100%; border-collapse: collapse; }
.account-orders-table th,
.account-orders-table td {
    text-align: left; padding: 14px 16px;
    border-bottom: 1px solid var(--border); font-size: 14px;
}
.account-orders-table th {
    font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase;
    color: var(--text-muted); font-weight: 600;
}
.order-status {
    display: inline-block; padding: 4px 10px;
    font-size: 10px; letter-spacing: 1px; text-transform: uppercase;
    border: 1px solid var(--border); border-radius: var(--radius);
}
.account-empty {
    text-align: center; padding: 48px 24px;
    color: var(--text-muted); font-size: 15px;
}
.account-form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.checkbox-row {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 24px; font-size: 14px;
}
.checkbox-row input { width: auto; height: auto; }

/* Cart page */
.cart-page .cart-table { width: 100%; border-collapse: collapse; }
.cart-page .cart-table th,
.cart-page .cart-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}
.cart-page .cart-table th { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.cart-product-cell { min-width: 200px; }
.cart-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}
.cart-product-link:hover span { color: var(--primary); }
.cart-product-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    flex-shrink: 0;
}
.cart-qty-controls {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.cart-qty-btn {
    width: 40px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--border-strong, #101820);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text, #101820);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.cart-qty-btn:hover { background: var(--bg-muted, #f5f5f5); }
.cart-qty-input {
    width: 64px;
    height: 44px;
    padding: 0 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 16px;
    text-align: center;
}
.cart-table-actions-col { width: 100px; text-align: right; }
.cart-remove-btn { min-width: 72px; }
.cart-form-actions { margin-top: 20px; }
.cart-summary {
    max-width: 400px;
    margin: 32px 0 0 auto;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    background: var(--bg);
}
.cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 10px;
    font-size: var(--fs-body);
}
.cart-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin: 4px 0 20px;
    font-size: 18px;
}
.cart-summary-total strong { font-size: 22px; font-weight: 600; }
.btn-full { width: 100%; display: block; text-align: center; box-sizing: border-box; }
.data-table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 768px) {
    .hero {
        --hero-radius: 20px;
        max-height: none;
        padding: 12px 16px 10px;
    }
    .hero + .section {
        padding-top: 28px;
    }
    .hero-slide {
        left: 16px;
        right: 16px;
        top: 12px;
        border-radius: var(--hero-radius);
    }
    .hero-slide picture,
    .hero-slide img,
    .hero-slide-link,
    .hero-overlay {
        border-radius: var(--hero-radius);
    }
    .header-inner, .section, .hero-content { padding-left: 24px; padding-right: 24px; }
    .hero-content { left: 20px; right: 20px; bottom: 52px; padding-left: 0; padding-right: 0; }
    .hero-dots { left: 36px; bottom: 36px; }
    .nav { display: none; }
    .header-search { display: none; }
    .header-cart-label { display: none; }
    .header-cart-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
    .menu-toggle-store { display: inline-flex; }
    .category-sidebar { grid-template-columns: 1fr; gap: 20px; }
    /* Mobile: keep on-page accordion (same as desktop) + hamburger drawer */
    .category-sidebar-nav {
        display: block;
        position: static;
        max-height: none;
        margin-bottom: 8px;
    }
    .category-nav-toggle {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
    .category-nav-toggle-spacer {
        width: 32px;
        flex-basis: 32px;
        height: 32px;
    }
    .category-nav-row { min-height: 44px; }
    .category-nav-row > a { font-size: 15px; }
    .form-card { padding: 24px; margin: 0 16px; }
    .contact-company { margin-left: 16px; margin-right: 16px; }
    .contact-company__row { grid-template-columns: 80px 1fr; }
    .section { padding: 48px 24px; }
    .product-detail { gap: 32px; }
    .account-hero { padding: 32px 24px 40px; }
    .account-hero-inner { gap: 20px; }
    .account-hero-avatar { width: 64px; height: 64px; font-size: 22px; }
    .account-layout { grid-template-columns: 1fr; gap: 24px; }
    .account-nav {
        position: static; display: flex; overflow-x: auto;
        border-radius: var(--radius);
    }
    .account-nav button {
        white-space: nowrap; border-bottom: none;
        border-right: 1px solid var(--border); flex-shrink: 0;
    }
    .account-nav button:last-child { border-right: none; }
    .account-card { padding: 24px 20px; }
    .cart-product-link { flex-direction: column; align-items: flex-start; }
    .cart-table-actions-col { width: auto; }
    .form-row { grid-template-columns: 1fr; }
    .footer-menu-bar { padding: 0 0 16px; }
    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        text-align: left;
    }
    .footer-column-links { align-items: flex-start; }
    .store-modal-dialog { padding: 28px 20px 22px; }
    .nav-user-name, .nav-user-caret { display: none; }
    .nav-user-toggle { padding: 0 8px 0 6px; }
    .accessory-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
    .accessory-toolbar { flex-direction: column; align-items: stretch; }
    .accessory-project-title { font-size: var(--fs-h1); }
}
@media (max-width: 520px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }
    .footer-column-links { align-items: center; }
}