:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --surface-3: #f1f5f9;
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --primary: #274472;
    --primary-dark: #1a3053;
    --primary-light: #e4eaf2;
    --accent: #4a6fa5;
    --danger: #dc2626;
    --border: #e2e8f0;
    --border-strong: #cbd5e1;
    --footer-bg: #0f172a;
    --footer-bg-deep: #020617;
    --footer-text: #cbd5e1;
    --footer-muted: #94a3b8;
    --radius: 12px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 2px 8px rgba(15, 23, 42, 0.05), 0 8px 28px rgba(15, 23, 42, 0.07);
    --shadow-lg: 0 8px 20px rgba(15, 23, 42, 0.08), 0 20px 48px rgba(15, 23, 42, 0.1);
    --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.04), 0 6px 24px rgba(15, 23, 42, 0.06);
    --font: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    --section-gap: 4.5rem;
    --section-gap-sm: 2.75rem;
    --header-height: 72px;
    --text-base: 1rem;
    --text-sm: 0.9375rem;
    --fab-size: 52px;
    --fab-gap: 0.75rem;
    --fab-offset: 1.25rem;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--text-base);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

.site-body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    min-width: 0;
}

a { color: var(--primary-dark); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 0;
}

.icon svg {
    display: block;
}

.text-link-icon,
.footer-links a,
.footer-note,
.footer-legal .footer-note,
.section-link,
.legal-nav a,
.auth-links a,
.search-clear-link,
.blog-card-category,
.blog-card-link,
.tutorial-link-cta,
.sidebar-ad a,
.blog-archive-year-link,
.pagination a,
.pagination span,
.category-list a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.container { width: min(1200px, calc(100% - 2.5rem)); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    max-width: 100%;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-height);
    padding: 0;
    min-width: 0;
}

.header-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-shrink: 0;
    min-width: 0;
}

.header-actions {
    display: none;
    align-items: center;
    gap: .5rem;
    flex-shrink: 0;
}

.nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 68, 114, 0.12);
}

.nav-toggle-icon {
    grid-area: 1 / 1;
    display: inline-flex;
}

.nav-toggle-close {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-open {
    display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-close {
    display: inline-flex;
}

.logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--text);
    text-decoration: none;
}

.logo-img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.logo-img-full {
    height: 44px;
}

.logo-img-short {
    height: 40px;
}

.header-search {
    flex: 1;
    max-width: 420px;
    min-width: 0;
}

.main-nav {
    display: flex;
    gap: .25rem;
    align-items: center;
    flex-shrink: 0;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .5rem .85rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--text-base);
    transition: background .15s ease, color .15s ease;
}

.nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.nav-link-accent {
    background: var(--primary);
    color: #fff !important;
}

.nav-link-accent:hover {
    background: var(--primary-dark);
    color: #fff !important;
}

.cart-link { position: relative; }
.cart-trigger {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.cart-trigger:hover {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 68, 114, 0.12);
}
.cart-badge {
    display: inline-grid;
    place-items: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 .35rem;
    margin-left: .35rem;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: .75rem;
    font-weight: 700;
}
.cart-badge-compact {
    position: absolute;
    top: -6px;
    right: -6px;
    margin-left: 0;
    min-width: 1.1rem;
    height: 1.1rem;
    font-size: .68rem;
}

.cart-flyout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, visibility .2s ease;
}
.cart-flyout-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cart-flyout {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    width: min(420px, 100vw);
    height: 100dvh;
    background: var(--surface);
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.12);
    transform: translateX(100%);
    transition: transform .25s ease;
}
.cart-flyout.is-open {
    transform: translateX(0);
}

body.cart-flyout-open {
    overflow: hidden;
}

.cart-flyout-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}
.cart-flyout-header h2 {
    margin: 0;
    font-size: 1.15rem;
}
.cart-flyout-close {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 10px;
    background: var(--surface-2);
    color: var(--muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.cart-flyout-close:hover {
    color: var(--text);
}

.cart-flyout-body {
    flex: 1;
    overflow: auto;
    padding: 1rem 1.25rem;
}
.cart-flyout-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}
.cart-flyout-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .75rem;
    padding-bottom: .85rem;
    border-bottom: 1px solid var(--border);
}
.cart-flyout-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}
.cart-flyout-item-image img {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.cart-flyout-item-name {
    display: block;
    color: var(--text);
    font-weight: 600;
    margin-bottom: .25rem;
}
.cart-flyout-item-meta {
    margin: 0 0 .5rem;
    color: var(--muted);
    font-size: .875rem;
}
.cart-flyout-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}
.cart-flyout-empty {
    color: var(--muted);
    margin: 0 0 1rem;
}

.cart-flyout-footer {
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
}
.cart-flyout-summary .summary-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .45rem;
    font-size: .925rem;
}
.cart-flyout-summary .summary-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: .75rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}
.cart-flyout-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
    margin-top: 1rem;
}
.cart-flyout-actions .btn {
    justify-content: center;
}

.cart-fab {
    position: fixed;
    right: var(--fab-offset);
    bottom: var(--fab-offset);
    z-index: 30;
    display: none;
    place-items: center;
    width: var(--fab-size);
    height: var(--fab-size);
    padding: 0;
    border: none;
    border-radius: 999px;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 24px rgba(39, 68, 114, 0.4);
    cursor: pointer;
}
.cart-fab .cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    margin-left: 0;
    background: #fff;
    color: var(--primary-dark);
}

.whatsapp-fab {
    position: fixed;
    right: var(--fab-offset);
    bottom: var(--fab-offset);
    z-index: 30;
    display: inline-grid;
    place-items: center;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: 999px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    transition: transform .15s ease, box-shadow .15s ease;
}

.whatsapp-fab:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37, 211, 102, 0.45);
}

.scroll-top-btn {
    position: fixed;
    right: var(--fab-offset);
    bottom: var(--fab-offset);
    z-index: 30;
    display: inline-grid;
    place-items: center;
    width: var(--fab-size);
    height: var(--fab-size);
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text-secondary);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease, border-color .15s ease, color .15s ease;
}

.scroll-top-btn.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

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

body.has-whatsapp .whatsapp-fab {
    bottom: calc(var(--fab-offset) + var(--fab-size) + var(--fab-gap));
}

@media (max-width: 768px) {
    .cart-fab {
        display: inline-grid;
    }

    .scroll-top-btn.is-visible {
        bottom: calc(var(--fab-offset) + var(--fab-size) + var(--fab-gap));
    }

    body.has-whatsapp .scroll-top-btn.is-visible {
        bottom: calc(var(--fab-offset) + (var(--fab-size) + var(--fab-gap)) * 2);
    }
}

.hero { padding: var(--section-gap-sm) 0 0; }

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.hero-content { max-width: 540px; }

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .85rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-light);
}

.eyebrow {
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .8rem;
    font-weight: 700;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .75rem; color: var(--text); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 48ch; line-height: 1.65; margin-bottom: 0; }

.hero-card, .payment-card, .category-card, .product-card, .order-summary, .login-card, .delivery-region, .promo-card, .trust-item, .shop-sidebar, .account-sidebar, .account-order-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
}

.hero-card { padding: 2rem; }
.hero-card h3 { margin-bottom: 1.25rem; font-size: 1.15rem; }

.section {
    padding: var(--section-gap) 0;
}

.section-compact {
    padding: var(--section-gap-sm) 0;
}

.section-alt {
    padding: var(--section-gap) 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-head-centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-subtitle {
    margin: .5rem 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 48ch;
}

.section-link {
    flex-shrink: 0;
    font-weight: 600;
    font-size: .925rem;
    white-space: nowrap;
    gap: .45rem;
}

.trust-strip {
    padding: 1.5rem 0 var(--section-gap-sm);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.trust-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
}

.trust-icon {
    display: inline-grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.trust-item strong {
    display: block;
    font-size: .925rem;
    color: var(--text);
    margin-bottom: .15rem;
}

.trust-item p {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.hero-actions, .cart-footer, .cart-summary, .summary-total {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.2rem;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(39, 68, 114, 0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(39, 68, 114, 0.35);
}
.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }
.btn-block { width: 100%; justify-content: center; }

.btn.is-loading,
.link-btn.is-loading {
    position: relative;
    pointer-events: none;
    cursor: wait;
}

.btn.is-loading > *,
.link-btn.is-loading > * {
    opacity: 0;
}

.btn.is-loading::after,
.link-btn.is-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1em;
    height: 1em;
    margin: -.5em 0 0 -.5em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
}

.btn-primary.is-loading {
    color: transparent;
}

.btn-primary.is-loading::after {
    border-color: #fff;
    border-right-color: transparent;
}

.btn-secondary.is-loading,
.link-btn.is-loading {
    color: transparent;
}

.btn-secondary.is-loading::after,
.link-btn.is-loading::after {
    border-color: var(--primary);
    border-right-color: transparent;
}

.btn-spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: btn-spin .65s linear infinite;
    flex-shrink: 0;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

form.is-submitting {
    pointer-events: none;
}

form.is-submitting .form-control:not([disabled]) {
    opacity: .85;
}

/* ── Form controls ── */
.form-label {
    display: block;
    margin-bottom: .35rem;
    color: var(--text);
    font-weight: 600;
    font-size: .925rem;
}

.form-control {
    display: block;
    width: 100%;
    padding: .75rem .9rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font: inherit;
    line-height: 1.4;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 68, 114, 0.15);
}

.form-control-qty {
    width: 5rem;
    max-width: 100%;
    text-align: center;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group.is-invalid .form-control {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.form-help {
    display: block;
    margin-top: .4rem;
    font-size: .875rem;
    color: var(--muted);
}

.form-errors {
    margin: .45rem 0 0;
    padding-left: 1.1rem;
    color: var(--danger);
    font-size: .875rem;
}

.checkout-form .form-group:last-of-type,
.payment-reference-form .form-group:last-of-type {
    margin-top: 1.25rem;
    margin-bottom: 0;
}

.payment-header {
    margin-top: 2.5rem;
}

.category-grid, .product-grid, .payment-grid {
    display: grid;
    gap: 1rem;
}

.category-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    color: var(--text);
    min-height: 160px;
}

.category-card-icon {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-light), #edf1f7);
    color: var(--primary-dark);
    font-weight: 800;
    font-size: 1.1rem;
}

.category-card h3 {
    margin-bottom: .5rem;
    font-size: 1.05rem;
}

.category-card p {
    color: var(--muted);
    margin: 0;
    font-size: .9rem;
    line-height: 1.5;
}

.product-image {
    display: block;
    overflow: hidden;
    background: var(--surface-2);
}
.product-image img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.product-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    font-size: 2rem;
    font-weight: 800;
    color: var(--muted);
    background: linear-gradient(135deg, #e2e8f0, #f8fafc);
}
.product-placeholder.large { min-height: 320px; font-size: 4rem; }

.category-card, .product-card {
    overflow: hidden;
}

.category-card:hover, .product-card:hover, .promo-card:hover, .trust-item:hover, .hero-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--border-strong);
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.15rem 1.25rem 1.35rem;
}

.product-body h3 {
    font-size: 1rem;
    margin-bottom: .35rem;
    line-height: 1.35;
}

.product-body h3 a { color: var(--text); }
.product-body h3 a:hover { color: var(--primary-dark); }

.product-body .btn {
    margin-top: auto;
    align-self: flex-start;
}
.product-category {
    color: var(--primary-dark);
    font-size: .85rem;
    margin: 0 0 .35rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.product-price { font-size: 1.15rem; font-weight: 800; margin: .5rem 0 1rem; color: var(--text); }
.product-price.large { font-size: 1.8rem; }

.shop-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.shop-sidebar {
    padding: 1rem;
    height: fit-content;
}

.shop-sidebar-heading {
    margin-top: 1.5rem;
    margin-bottom: 0;
    font-size: 1rem;
}

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

.search-form {
    display: flex;
    align-items: stretch;
    gap: .5rem;
}

.search-form input[type="search"],
.search-form input[type="number"],
.search-form select {
    width: 100%;
    padding: .65rem .85rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: #fff;
    color: var(--text);
    font-size: var(--text-base);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.search-form input[type="search"]:focus,
.search-form input[type="number"]:focus,
.search-form select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(39, 68, 114, 0.12);
}

.search-form-compact input[type="search"] {
    flex: 1;
    min-width: 0;
}

.btn-search {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .65rem 1rem;
    flex-shrink: 0;
}

.hero-search {
    margin: 1.25rem 0 1.5rem;
    max-width: 520px;
}

.product-page-search {
    margin-bottom: 1.25rem;
}

.product-inline-search {
    max-width: 560px;
}

.search-form-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-top: .75rem;
}

.filter-block {
    margin-bottom: 1rem;
}

.filter-label {
    display: block;
    margin-bottom: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.filter-price-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: .5rem;
    align-items: center;
}

.filter-price-sep {
    color: var(--muted);
    font-size: .9rem;
}

.filter-hint {
    margin: .4rem 0 0;
    font-size: .78rem;
    color: var(--muted);
}

.filter-check-label {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.filter-check-label input {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
}

.filter-actions {
    display: grid;
    gap: .5rem;
}

.search-form-blog {
    flex-wrap: wrap;
}

.search-form-blog .search-clear-link {
    width: 100%;
    font-size: .85rem;
    color: var(--muted);
    text-align: center;
}

.search-form-blog .search-clear-link:hover {
    color: var(--primary-dark);
}

.blog-sidebar-search {
    margin-bottom: .25rem;
}

.category-list { list-style: none; padding: 0; margin: .75rem 0 0; }
.category-list a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    width: 100%;
    padding: .55rem .75rem;
    border-radius: 10px;
    color: var(--muted);
}
.category-list a.active, .category-list a:hover {
    background: var(--surface-2);
    color: var(--text);
}
.category-list a.active {
    color: var(--primary-dark);
    font-weight: 600;
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

.product-gallery img {
    width: 100%;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.product-description { color: var(--muted); margin: 1rem 0 1.5rem; }
.stock-status,
.product-availability,
.product-stock-note { font-weight: 700; }

.product-availability {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    align-items: baseline;
    margin: .75rem 0 1rem;
    padding: .7rem .9rem;
    border-radius: 10px;
    background: var(--surface-2);
}

.product-availability.in-stock {
    color: var(--primary-dark);
}

.product-availability.out-of-stock {
    color: var(--danger);
    background: #fef2f2;
}

.product-availability-cap,
.product-stock-note {
    font-weight: 500;
    font-size: .88rem;
    color: var(--muted);
}

.product-stock-note.in-stock {
    color: var(--primary-dark);
}

.product-stock-note.out-of-stock {
    color: var(--danger);
}

.in-stock { color: var(--primary-dark); }
.out-of-stock { color: var(--danger); }

.delivery-row {
    font-weight: 600;
    color: var(--text);
}

.delivery-charge-note,
.delivery-charge-banner {
    margin: .5rem 0 0;
    font-size: .88rem;
    color: #9a3412;
}

.delivery-charge-banner-block {
    margin-bottom: 1.25rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.cart-qty-hint {
    display: block;
    font-size: .75rem;
    color: var(--muted);
    margin-top: .25rem;
}

.add-to-cart-form {
    display: flex;
    gap: .75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.add-to-cart-form .form-label {
    width: 100%;
    margin-bottom: 0;
}

.cart-table { display: grid; gap: .75rem; margin: 1.5rem 0; }
.cart-row {
    display: grid;
    grid-template-columns: 2fr minmax(120px, 160px) 120px 80px;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-card);
}

.cart-qty {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
}

.cart-qty .btn {
    width: 100%;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.cart-product span, .muted { color: var(--muted); }
.cart-footer { justify-content: space-between; margin-top: 1rem; }

.cart-auth-note {
    margin: .5rem 0 0;
    font-size: .85rem;
    line-height: 1.4;
}

.cart-summary {
    display: grid;
    gap: .25rem;
    margin-left: auto;
}

.checkout-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
}

.order-summary, .payment-card { padding: 1.25rem; }

.delivery-region {
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, var(--primary-light), #edf1f7);
    border-color: #c5d0e0;
}

.delivery-region h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
    color: var(--primary-dark);
}

.delivery-region dl {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: .35rem 1rem;
    margin: 0;
}

.delivery-region dt {
    color: var(--muted);
    font-weight: 600;
}

.delivery-region dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.delivery-note {
    margin: .75rem 0 0;
    font-size: .9rem;
    color: var(--muted);
}

.summary-row, .summary-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem 0;
}
.summary-row.muted-row { color: var(--muted); font-size: .925rem; }
.summary-row.discount-row { color: var(--primary-dark); font-weight: 600; }
.summary-total {
    border-top: 1px solid var(--border);
    margin-top: .75rem;
    padding-top: .75rem;
}

.site-footer {
    margin-top: auto;
    color: var(--footer-text);
}

.footer-main {
    background: linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-deep) 100%);
    padding: 3.5rem 0 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 2.5rem 2rem;
}

.footer-brand { max-width: 320px; }

.footer-brand-name {
    display: inline-block;
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.footer-brand-name:hover {
    color: #fff;
    opacity: 0.88;
}

.footer-tagline {
    margin: 0 0 1rem;
    color: var(--footer-muted);
    font-size: var(--text-base);
    line-height: 1.65;
}

.footer-brand .footer-address {
    margin: 0;
    color: var(--footer-text);
    font-size: var(--text-base);
    line-height: 1.6;
}

.footer-heading {
    margin: 0 0 1.15rem;
    color: #fff;
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .75rem;
}

.footer-links a {
    color: var(--footer-muted);
    font-size: var(--text-base);
    transition: color .15s ease;
}

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

.footer-note,
.footer-legal-item {
    color: var(--footer-muted);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.footer-legal .footer-registered {
    max-width: none;
}

.footer-bottom {
    background: var(--footer-bg-deep);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.15rem 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-bottom p {
    margin: 0;
    color: var(--footer-muted);
    font-size: var(--text-sm);
}

.footer-bottom-meta {
    color: var(--footer-text);
}

.footer-bottom-meta a {
    color: #a8b8d0;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

/* Checkout / order summary business info */
.footer-address {
    margin: .75rem 0 .35rem;
    color: var(--text-secondary);
    font-size: .875rem;
    line-height: 1.5;
}

.footer-gstin, .footer-cin {
    font-size: .875rem;
    color: var(--muted);
}

.footer-registered {
    margin: .75rem 0 0;
    font-size: .8rem;
    color: var(--muted);
    line-height: 1.45;
    max-width: 34ch;
}
.checkout-layout .footer-address,
.checkout-layout .footer-gstin,
.checkout-layout .footer-cin,
.checkout-layout .footer-registered {
    margin-top: 1rem;
}

.gst-note, .product-gst-note {
    font-size: .875rem;
    color: var(--muted);
}
.payment-seller-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: .875rem;
    color: var(--muted);
}
.payment-seller-info p {
    margin: 0 0 .35rem;
}
.product-gst-note { margin: -.5rem 0 .75rem; }

.coupon-form { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.coupon-input-row { display: flex; gap: .5rem; align-items: center; }
.coupon-input-row .form-control { flex: 1; }
.coupon-remove-form { margin-top: .5rem; }

.cart-product {
    display: flex;
    gap: .75rem;
    align-items: center;
}
.cart-thumb {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid var(--border);
    background: var(--surface-2);
}
.cart-row {
    grid-template-columns: minmax(200px, 2fr) minmax(120px, 160px) 100px 70px;
}

.section-tight,
.section-compact {
    padding: var(--section-gap-sm) 0;
}

.banner-carousel {
    padding-top: var(--section-gap-sm);
    padding-bottom: 0;
}

.carousel-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.banner-slide {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border);
    transition: box-shadow .22s ease, transform .22s ease;
}

.banner-slide:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.banner-slide-link {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: stretch;
    min-height: 320px;
    color: inherit;
    text-decoration: none;
}

.banner-slide-media {
    order: 2;
    min-height: 280px;
    background: var(--surface-3);
}

.banner-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.banner-slide-body {
    order: 1;
    display: flex;
    align-items: center;
    padding: clamp(1.75rem, 3vw, 2.75rem) clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.08) 0, transparent 45%),
        linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 58%, #315a8f 100%);
    color: #fff;
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .85rem;
    max-width: 34rem;
}

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

.banner-slide-body h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.banner-subtitle,
.banner-slide-body > .banner-content > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.55;
}

.banner-slide-body .rich-content,
.banner-slide-body .rich-content p {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(.95rem, 1.35vw, 1.05rem);
    line-height: 1.65;
}

.banner-slide-body .rich-content a {
    color: #fff;
    font-weight: 600;
}

.banner-cta {
    margin-top: .35rem;
    background: #fff;
    color: var(--primary-dark) !important;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}

.banner-slide:hover .banner-cta {
    background: var(--primary-light);
    color: var(--primary-dark) !important;
}

.banner-slide-body .btn {
    align-self: flex-start;
}

.announcement-bar {
    background: var(--footer-bg);
    color: #e2e8f0;
    font-size: .875rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.announcement-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.5rem;
    padding: .65rem 0;
    align-items: center;
}
.announcement-item { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; }
.announcement-link { color: var(--primary-light) !important; font-weight: 700; text-decoration: underline; }

.promo-badge {
    display: inline-block;
    padding: .15rem .45rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.announcement-bar .promo-badge { background: rgba(255,255,255,.2); color: #fff; }

.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.promo-card {
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.promo-card .promo-badge { position: absolute; top: .75rem; left: .75rem; z-index: 1; }
.promo-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.promo-body {
    padding: 1.15rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.promo-body .btn { margin-top: auto; align-self: flex-start; }
.promo-body h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.promo-body p { margin: 0 0 .75rem; color: var(--muted); }

.sidebar-ads { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sidebar-ads h3 { font-size: 1rem; margin-bottom: .75rem; }
.sidebar-ad {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .65rem;
    padding: .65rem 0;
    border-bottom: 1px solid var(--border);
}
.sidebar-ad img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border);
}
.sidebar-ad p { margin: .25rem 0; font-size: .875rem; color: var(--muted); }
.sidebar-ad a { font-size: .875rem; font-weight: 600; }

.payment-grid { grid-template-columns: 1fr 1fr; margin-top: 1.5rem; }
.payment-card.highlight {
    border-color: #a8b8d0;
    background: linear-gradient(180deg, #ffffff, var(--primary-light));
}
.payment-details { display: grid; grid-template-columns: 140px 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.payment-details dt { color: var(--muted); }
.payment-details dd { margin: 0; font-weight: 600; }
.qr-wrap { text-align: center; margin: 1rem 0; }
.qr-image { max-width: 240px; border-radius: 12px; border: 1px solid var(--border); }
.payment-reference { margin-top: 2rem; max-width: 520px; }

.payment-reference-submitted {
    max-width: 640px;
    margin-top: 1rem;
}

.payment-reference-submitted p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.payment-reference-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.5rem;
}

.payment-awaiting-note {
    margin: 1rem 0 .5rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #ffedd5;
    color: #9a3412;
    font-size: .92rem;
}

.flash { padding: .85rem 0; font-weight: 600; }
.flash-success { background: #ecfdf5; color: #047857; border-bottom: 1px solid #a7f3d0; }
.flash-error { background: #fef2f2; color: #b91c1c; border-bottom: 1px solid #fecaca; }

.empty-state { color: var(--muted); padding: 2rem 0; text-align: center; }

.cart-empty {
    display: grid;
    gap: 2.5rem;
    margin-top: 1rem;
}

.cart-empty-hero {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.cart-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
}

.cart-empty-hero h2 {
    margin-bottom: .75rem;
}

.cart-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.cart-empty-categories h3,
.cart-empty-featured h3 {
    margin-bottom: 1rem;
}

.cart-empty-sidebar {
    display: grid;
    gap: 1.25rem;
    align-content: start;
}

.cart-empty-sidebar-card {
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.cart-empty-sidebar-card h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.cart-empty-sidebar-card h3 {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.cart-empty-sidebar-card .eyebrow {
    margin-bottom: .35rem;
}

.cart-empty-sidebar-card .muted {
    margin: 0 0 1rem;
    line-height: 1.55;
}

.cart-empty-support .btn {
    margin-top: .25rem;
}

.cart-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.cart-steps li {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
}

.cart-step-num {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 700;
    font-size: .8rem;
}

.cart-steps strong {
    display: block;
    font-size: .925rem;
    margin-bottom: .15rem;
    color: var(--text);
}

.cart-steps p {
    margin: 0;
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.45;
}

.category-grid-compact {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

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

.verification-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--primary);
}

.verification-hint {
    margin-bottom: 1.25rem;
}

.verification-resend-form {
    text-align: left;
    margin-top: 1rem;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

.login-card {
    width: min(420px, 100%);
    padding: 2rem;
}

.login-card-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-card-brand h1 {
    margin: 0;
}

.login-card-brand .logo-img-short {
    height: 56px;
}

.login-card form,
.login-form {
    display: grid;
    gap: .75rem;
}

.link-btn {
    background: none;
    border: 0;
    color: var(--danger);
    cursor: pointer;
    padding: .35rem 0;
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    gap: .35rem;
}

.link-btn:hover {
    color: #b91c1c;
}

.auth-page {
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(480px, 100%);
}

.auth-links {
    margin-top: 1rem;
}

.auth-section {
    padding-top: var(--section-gap-sm);
    padding-bottom: var(--section-gap);
    background:
        radial-gradient(ellipse 80% 60% at 10% 0%, rgba(39, 68, 114, 0.12), transparent 55%),
        radial-gradient(ellipse 70% 50% at 90% 100%, rgba(74, 111, 165, 0.08), transparent 50%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 440px);
    gap: 2rem;
    align-items: stretch;
}

.auth-showcase {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    background-size: cover;
    background-position: center;
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.auth-showcase-has-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    pointer-events: none;
}

.auth-showcase-inner {
    position: relative;
    z-index: 1;
}

.auth-showcase-eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.auth-showcase-title {
    margin: 0.5rem 0 1rem;
    font-size: clamp(1.65rem, 3vw, 2.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    max-width: 16ch;
    color: #ffffff;
}

.auth-showcase-lead {
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 42ch;
}

.auth-benefits {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.9rem;
}

.auth-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
}

.auth-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    flex-shrink: 0;
}

.auth-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.75rem;
}

.auth-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: var(--text-sm);
    font-weight: 600;
}

.auth-showcase-visual {
    position: relative;
    z-index: 1;
    min-height: 7rem;
}

.auth-visual-card {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.18);
}

.auth-visual-card-a {
    width: 4.5rem;
    height: 4.5rem;
    left: 0;
    bottom: 0;
}

.auth-visual-card-b {
    width: 3.75rem;
    height: 3.75rem;
    left: 5.5rem;
    bottom: 2.5rem;
}

.auth-visual-card-c {
    width: 3.25rem;
    height: 3.25rem;
    left: 10rem;
    bottom: 0.5rem;
}

.auth-form-panel {
    display: flex;
    align-items: center;
}

.auth-form-card {
    width: 100%;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.auth-form-brand {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.auth-form-brand-logo .logo-img-short {
    height: 48px;
}

.auth-form-header {
    margin-bottom: 1.5rem;
}

.auth-form-header-centered {
    text-align: center;
}

.auth-form-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
}

.auth-form-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.auth-form-icon-mail {
    background: var(--primary-light);
    color: var(--primary);
}

.auth-form-header-centered .auth-form-icon {
    margin-left: auto;
    margin-right: auto;
}

.auth-alert {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
}

.auth-alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.auth-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.auth-form-footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.auth-form-footer-title {
    margin: 0 0 0.75rem;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.auth-steps {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.9rem;
    border-radius: var(--radius);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-size: var(--text-sm);
}

.auth-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.verification-hint {
    margin-bottom: 1rem;
    font-size: var(--text-sm);
}

.hp-wrap,
.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.captcha-group {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.captcha-group .form-help {
    margin: 0.5rem 0 0;
    font-size: var(--text-sm);
}

.profile-form,
.checkout-form {
    max-width: 520px;
}

.profile-note,
.checkout-profile-note {
    margin-top: 1rem;
    font-size: var(--text-sm);
}

.access-denied-card {
    text-align: center;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.form-control:disabled,
.form-control[readonly] {
    background: var(--surface-2);
    color: var(--muted);
    cursor: not-allowed;
}

.account-layout {
    display: grid;
    gap: 1.5rem;
}

.account-section {
    padding-top: 1.5rem;
    padding-bottom: 3rem;
}

.account-dashboard {
    display: grid;
    gap: 1.75rem;
}

.account-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow);
}

.account-hero-eyebrow {
    margin: 0 0 .35rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .82;
}

.account-hero-title,
.account-page-title {
    color: white;
    margin: 0 0 .5rem;
    font-size: clamp(1.65rem, 3vw, 2.15rem);
    line-height: 1.15;
}

.account-hero-lead,
.account-page-lead {
    margin: 0;
    max-width: 38rem;
    line-height: 1.55;
}

.account-hero-lead {
    color: rgba(255, 255, 255, .88);
}

.account-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.25rem;
}

.account-hero-actions .btn-secondary {
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .28);
    color: #fff;
}

.account-hero-actions .btn-secondary:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

.account-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    align-content: start;
}

.account-stat-card {
    display: grid;
    gap: .35rem;
    padding: 1rem 1.05rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
}

.account-stat-value {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1;
}

.account-stat-label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: rgba(255, 255, 255, .86);
}

.account-page-head {
    display: grid;
    gap: .35rem;
}

.account-page-head-split {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-back-link {
    display: inline-flex;
    margin-bottom: .65rem;
    font-size: .92rem;
}

.account-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-actions {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.account-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 1.5rem;
    align-items: start;
}

.account-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1rem);
    display: grid;
    gap: 1rem;
    padding: 1rem;
    height: fit-content;
}

.account-main {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.account-user-card {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: .85rem;
    border-radius: 14px;
    background: var(--primary-light);
}

.account-avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: .95rem;
    flex-shrink: 0;
}

.account-user-meta {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.account-user-name {
    font-size: .98rem;
    line-height: 1.2;
}

.account-user-email {
    font-size: .82rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-sidebar,
.account-order-card,
.account-panel,
.account-detail-card {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.account-panel,
.account-detail-card {
    padding: 1.25rem 1.35rem;
    border-radius: var(--radius-lg);
}

.account-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.account-panel-title {
    margin: 0 0 .25rem;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.account-panel-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: .92rem;
}

.account-sidebar,
.account-order-card {
    border-radius: var(--radius-lg);
}

.account-order-card {
    padding: 1.1rem 1.2rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.account-order-card:hover {
    border-color: var(--border-strong);
    box-shadow: var(--shadow);
}

.account-order-card-attention {
    border-color: #fcd34d;
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.account-nav {
    display: grid;
    gap: .35rem;
}

.account-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem .85rem;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: background .15s ease, color .15s ease;
}

.account-nav-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

.account-nav-link.active {
    background: var(--primary-light);
    color: var(--primary-dark);
    font-weight: 600;
}

.account-nav-link-muted {
    color: var(--muted);
}

.account-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    background: var(--surface-2);
    flex-shrink: 0;
}

.account-nav-link.active .account-nav-icon {
    background: rgba(39, 68, 114, .14);
    color: var(--primary);
}

.account-nav-text {
    display: grid;
    gap: .1rem;
    min-width: 0;
}

.account-nav-label {
    font-size: .95rem;
    line-height: 1.2;
}

.account-nav-hint {
    font-size: .78rem;
    color: var(--muted);
    line-height: 1.3;
}

.account-nav-link.active .account-nav-hint {
    color: var(--primary);
    opacity: .85;
}

.account-nav-badge {
    margin-left: auto;
    padding: .2rem .5rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: .72rem;
    font-weight: 800;
}

.account-sidebar-footer {
    padding-top: .35rem;
    border-top: 1px solid var(--border);
}

.account-orders {
    display: grid;
    gap: 1rem;
}

.account-order-head,
.account-order-foot {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.account-order-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .15rem;
}

.account-order-number {
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.account-order-date {
    margin: .25rem 0 0;
    font-size: .88rem;
}

.account-order-items {
    display: flex;
    align-items: center;
    gap: .85rem;
    margin: .85rem 0;
    padding: .75rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.account-order-thumbs {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.account-order-thumb {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-left: -.45rem;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid #fff;
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

.account-order-thumb:first-child {
    margin-left: 0;
}

.account-order-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-order-thumb-more {
    font-size: .72rem;
    font-weight: 700;
    color: var(--muted);
}

.account-order-summary {
    margin: 0;
    font-size: .92rem;
    line-height: 1.45;
}

.account-order-total {
    display: grid;
    gap: .15rem;
}

.account-order-total strong {
    font-size: 1.15rem;
}

.account-order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
}

.account-alert {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid transparent;
}

.account-alert p {
    margin: .25rem 0 0;
    font-size: .92rem;
    line-height: 1.45;
}

.account-alert-warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.account-alert-info {
    background: var(--primary-light);
    border-color: #c7d7ea;
    color: var(--primary-dark);
}

.account-alert .btn {
    margin-left: auto;
    flex-shrink: 0;
    align-self: center;
}

.account-empty {
    display: grid;
    justify-items: center;
    gap: .65rem;
    padding: 2.5rem 1rem;
    text-align: center;
}

.account-empty-icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface-2);
    color: var(--primary);
}

.account-empty h3 {
    margin: 0;
}

.account-profile-progress {
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.account-profile-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: .55rem;
    font-size: .92rem;
}

.account-profile-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
    margin-bottom: .55rem;
}

.account-profile-progress-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}

.account-form-section {
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.account-form-section:last-of-type {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
}

.account-form-section-title {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0 0 1rem;
    font-size: 1rem;
}

.account-form-actions {
    padding-top: .5rem;
}

.account-delivery-block p {
    margin: 0 0 .45rem;
}

.status-pill-lg {
    padding: .5rem .85rem;
    font-size: .82rem;
}

.account-order-meta,
.account-order-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.account-order-meta {
    margin-bottom: 1rem;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: .35rem .7rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: var(--surface-2);
    color: var(--muted);
}

.status-pending_payment { background: #fef3c7; color: #92400e; }
.status-awaiting_payment_confirmation { background: #ffedd5; color: #c2410c; }
.status-payment_received { background: var(--primary-light); color: var(--primary); }
.status-order_received { background: #e0e7ff; color: #4338ca; }
.status-accepted { background: #ede9fe; color: #5b21b6; }
.status-packed { background: #f3e8ff; color: #7e22ce; }
.status-dispatched { background: #cffafe; color: #0e7490; }
.status-in_transit { background: #bae6fd; color: #0369a1; }
.status-delivered { background: #dcfce7; color: #166534; }
.status-returned { background: #fce7f3; color: #9d174d; }
.status-cancelled { background: #fee2e2; color: #b91c1c; }
.status-processing { background: #ede9fe; color: #5b21b6; }
.status-shipped { background: #cffafe; color: #0e7490; }

.order-detail-grid {
    margin-top: 2rem;
}

.order-tracking {
    margin: 1.5rem 0 2rem;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.order-tracking h2 {
    margin: 0 0 1.25rem;
    font-size: 1.15rem;
}

.order-tracking-steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.order-tracking-step {
    display: grid;
    grid-template-columns: 1.25rem 1fr;
    gap: .85rem 1rem;
    position: relative;
    padding-bottom: 1.35rem;
}

.order-tracking-step:last-child {
    padding-bottom: 0;
}

.order-tracking-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: .5rem;
    top: 1.1rem;
    bottom: 0;
    width: 2px;
    background: var(--border);
}

.order-tracking-marker {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: .2rem;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: #fff;
    position: relative;
    z-index: 1;
}

.order-tracking-step--completed .order-tracking-marker {
    border-color: var(--primary);
    background: var(--primary);
}

.order-tracking-step--completed:not(:last-child)::before {
    background: var(--primary);
}

.order-tracking-step--current .order-tracking-marker {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(39, 68, 114, 0.15);
}

.order-tracking-step--terminal .order-tracking-marker {
    border-color: #b91c1c;
    background: #b91c1c;
}

.order-tracking-step--upcoming .order-tracking-content {
    opacity: .55;
}

.order-tracking-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem .75rem;
    margin-bottom: .25rem;
}

.order-tracking-head time {
    font-size: .82rem;
    color: var(--muted);
}

.order-tracking-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: .92rem;
}

.order-tracking-note {
    margin-top: .45rem !important;
    padding: .55rem .75rem;
    border-radius: 8px;
    background: var(--surface-2);
    color: var(--text) !important;
}

.order-shipment-card {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.order-shipment-card h3 {
    margin: 0 0 .75rem;
    font-size: 1rem;
}

.order-shipment-details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .35rem 1rem;
    margin: 0;
}

.order-shipment-details dt {
    color: var(--muted);
    font-size: .85rem;
}

.order-shipment-details dd {
    margin: 0;
    font-weight: 600;
}

.product-summary {
    margin: 1rem 0 1.25rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.product-quick-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: .75rem;
    margin: 1.25rem 0;
    padding: 0;
}

.product-quick-spec {
    padding: .85rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
}

.product-quick-spec dt {
    margin: 0 0 .2rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
}

.product-quick-spec dd {
    margin: 0;
    font-weight: 700;
    color: var(--text);
}

.product-detail-section {
    padding-top: 0;
}

.product-detail-tabs {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    background: var(--surface);
}

.product-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    padding: .75rem .75rem 0;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
}

.product-tab {
    padding: .75rem 1.1rem;
    border: none;
    border-radius: var(--radius) var(--radius) 0 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-weight: 600;
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
}

.product-tab:hover {
    color: var(--text);
}

.product-tab.is-active {
    background: var(--surface);
    color: var(--primary-dark);
    box-shadow: 0 -1px 0 var(--surface);
}

.product-tab-panel {
    padding: 1.75rem;
}

.product-tab-panel[hidden] {
    display: none;
}

.product-tab-content {
    color: var(--text-secondary);
    line-height: 1.75;
}

.rich-content {
    color: inherit;
    line-height: 1.75;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.rich-content > :first-child {
    margin-top: 0;
}

.rich-content > :last-child {
    margin-bottom: 0;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content pre {
    margin: 0 0 1rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5 {
    margin: 1.5rem 0 .75rem;
    color: var(--text);
    line-height: 1.3;
}

.rich-content ul,
.rich-content ol {
    padding-left: 1.35rem;
}

.rich-content li + li {
    margin-top: .35rem;
}

.rich-content a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.rich-content blockquote {
    padding-left: 1rem;
    border-left: 3px solid var(--primary-light);
    color: var(--muted);
}

.rich-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.9em;
    background: var(--surface-3);
    color: var(--primary-dark);
    padding: .15rem .4rem;
    border-radius: 5px;
}

.rich-content pre {
    margin: 0;
    padding: 1rem 1.15rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.55;
    white-space: pre;
    overflow-wrap: normal;
    word-break: normal;
    tab-size: 4;
    max-width: 100%;
}

.rich-content pre code {
    background: transparent;
    color: inherit;
    padding: 0;
    font-size: inherit;
    border-radius: 0;
}

.code-block {
    margin: 0 0 1.25rem;
    max-width: 100%;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    background: #0f172a;
    box-shadow: var(--shadow-sm);
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .55rem .85rem;
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.code-block-label {
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #94a3b8;
}

.code-block-copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .35rem .7rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    font: inherit;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.code-block-copy:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: #fff;
}

.code-block-copy.is-copied {
    background: rgba(34, 197, 94, 0.18);
    border-color: rgba(34, 197, 94, 0.45);
    color: #bbf7d0;
}

.code-block-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.rich-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0.75rem 0;
    border-radius: 8px;
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
}

.rich-content th,
.rich-content td {
    border: 1px solid var(--border-strong);
    padding: 0.65rem 0.85rem;
    text-align: left;
    vertical-align: top;
}

.rich-content th {
    background: var(--surface-3);
    color: var(--text);
    font-weight: 700;
}

.rich-content tr:nth-child(even) td {
    background: var(--surface-2);
}

.rich-content-inline {
    display: inline;
}

.auth-showcase-lead.rich-content {
    color: rgba(255, 255, 255, 0.92);
}

.auth-showcase-lead.rich-content a {
    color: #fff;
}

.product-tab-subheading {
    margin: 0 0 1rem;
    font-size: 1rem;
    color: var(--text);
}

.product-spec-table {
    display: grid;
    gap: .65rem;
    margin: 0 0 1.5rem;
}

.product-spec-table div {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1rem;
    padding-bottom: .65rem;
    border-bottom: 1px solid var(--border);
}

.product-spec-table dt {
    color: var(--muted);
    font-weight: 600;
}

.product-spec-table dd {
    margin: 0;
    font-weight: 600;
    color: var(--text);
}

.product-spec-list {
    margin: 0;
    padding-left: 1.2rem;
    display: grid;
    gap: .5rem;
}

.tutorial-link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.tutorial-link-card {
    display: grid;
    gap: .35rem;
    padding: 1.15rem 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.tutorial-link-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
    color: var(--text);
}

.tutorial-link-title {
    font-weight: 700;
    color: var(--text);
}

.tutorial-link-excerpt {
    color: var(--muted);
    font-size: var(--text-sm);
    line-height: 1.55;
}

.tutorial-link-cta {
    color: var(--primary-dark);
    font-weight: 600;
    font-size: var(--text-sm);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.blog-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    background: var(--surface);
    transition: box-shadow .22s ease, transform .22s ease;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.blog-card-image {
    display: block;
    overflow: hidden;
    background: var(--surface-2);
}

.blog-card-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .65rem;
    padding: 1.25rem;
}

.blog-card-badge {
    align-self: flex-start;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.blog-card-body h3 {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.35;
}

.blog-card-body h3 a {
    color: var(--text);
}

.blog-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: auto;
    padding-top: .5rem;
    font-size: var(--text-sm);
    color: var(--muted);
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 600;
    white-space: nowrap;
}

.tutorial-link-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.blog-article-header {
    margin-bottom: 2rem;
}

.blog-article-header .eyebrow a {
    font-weight: 600;
}

.blog-article-date,
.blog-article-excerpt {
    color: var(--muted);
}

.blog-article-excerpt {
    font-size: 1.1rem;
    line-height: 1.65;
}

.blog-article-image {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
}

.blog-article-image img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article-content,
.rich-content.blog-article-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
}

.share-feedback {
    margin: .65rem 0 0;
    color: var(--primary-dark);
    font-size: var(--text-sm);
    font-weight: 600;
}

.blog-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 2.5rem;
    align-items: start;
}

.blog-main {
    min-width: 0;
}

.blog-grid-main {
    grid-template-columns: 1fr;
}

.blog-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 1.25rem);
    display: grid;
    gap: 1.25rem;
}

.blog-sidebar-block {
    padding: 1.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-card);
}

.blog-sidebar-heading {
    margin: 0 0 1rem;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--muted);
}

.blog-sidebar-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .35rem;
}

.blog-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .5rem .65rem;
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.4;
    transition: background .15s ease, color .15s ease;
}

.blog-sidebar-link:hover,
.blog-sidebar-link.is-active {
    background: var(--surface-2);
    color: var(--primary-dark);
}

.blog-sidebar-count {
    flex-shrink: 0;
    min-width: 1.5rem;
    padding: .1rem .45rem;
    border-radius: 999px;
    background: var(--surface-3);
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
}

.blog-sidebar-post-link {
    display: block;
    font-weight: 500;
}

.blog-archive {
    display: grid;
    gap: 1rem;
}

.blog-archive-year-link {
    display: block;
    margin-bottom: .5rem;
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

.blog-archive-year-link.is-active,
.blog-archive-year-link:hover {
    color: var(--primary-dark);
}

.blog-archive-months {
    padding-left: .35rem;
}

.blog-card-category {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--primary-dark);
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

@media (max-width: 900px) {
    .header-inner {
        flex-direction: column;
        align-items: stretch;
        gap: .75rem;
        padding: .75rem 0;
    }

    .header-brand-row {
        width: 100%;
    }

    .header-actions {
        display: flex;
    }

    .site-header .logo-img-full {
        height: 38px;
    }

    .header-search {
        order: unset;
        flex: none;
        width: 100%;
        max-width: none;
    }

    .main-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: .25rem;
        padding-top: .25rem;
        border-top: 1px solid var(--border);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav .nav-cart-trigger {
        display: none;
    }

    .main-nav .nav-link {
        width: 100%;
        padding: .75rem .85rem;
        font-size: var(--text-base);
    }

    .hero-grid, .shop-layout, .product-detail, .checkout-layout, .payment-grid, .cart-row, .account-grid, .auth-shell {
        grid-template-columns: 1fr;
    }

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

    .account-sidebar {
        position: static;
    }

    .account-page-head-split {
        flex-direction: column;
    }

    .account-alert {
        flex-wrap: wrap;
    }

    .account-alert .btn {
        margin-left: 0;
        width: 100%;
    }

    .account-order-items {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-showcase {
        padding: 2rem 1.5rem;
    }

    .auth-showcase-title {
        max-width: none;
    }

    .auth-showcase-visual {
        min-height: 5rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }

    .cart-row { gap: .5rem; }

    .product-spec-table div {
        grid-template-columns: 1fr;
        gap: .25rem;
    }

    .product-tabs-nav {
        padding: .5rem .5rem 0;
    }

    .product-tab {
        flex: 1 1 auto;
        text-align: center;
        padding: .65rem .75rem;
    }

    .blog-layout {
        grid-template-columns: 1fr;
    }

    .blog-sidebar {
        position: static;
        order: -1;
    }

    .banner-slide-link {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .banner-slide-media {
        order: 1;
        min-height: 0;
    }

    .banner-slide-body {
        order: 2;
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .banner-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
        height: auto;
    }

    .banner-slide:hover {
        transform: none;
    }
}

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

    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (min-width: 901px) {
    .header-brand-row {
        flex-shrink: 0;
    }

    .header-inner {
        flex-wrap: nowrap;
    }
}

/* .legal-page {
    max-width: 760px;
} */

.legal-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.legal-nav a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
    font-weight: 500;
    font-size: .92rem;
}

.pagination-wrapper {
    margin-top: 2rem;
    display: grid;
    gap: .75rem;
}

.pagination-summary {
    margin: 0;
    color: var(--muted);
    font-size: var(--text-sm);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .45rem .75rem;
    border-radius: 8px;
    color: var(--muted);
    font-size: var(--text-sm);
    font-weight: 500;
}

.pagination a:hover {
    background: var(--surface-2);
    color: var(--text);
}

.pagination span.active {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
}

.pagination span:not(.active) {
    color: var(--border-strong);
}

.legal-nav a.is-active,
.legal-nav a:hover {
    color: var(--primary-dark);
}

.legal-content h1 {
    margin-bottom: .5rem;
}

.legal-updated {
    color: var(--muted);
    font-size: .9rem;
    margin-bottom: 1.5rem;
}

.legal-content h2 {
    margin: 1.5rem 0 .75rem;
    font-size: 1.1rem;
}

.legal-content p,
.legal-content li {
    color: var(--text-secondary);
    line-height: 1.7;
}

.legal-registered-office {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.legal-registered-office h2 {
    margin: 0 0 .5rem;
    font-size: 1rem;
}

.legal-registered-office p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

