/* ==========================================================================
   OmniHolster - brand: black, grey, red.
   Two themes share one set of components: .store (dark storefront) and .admin (light back office).
   ========================================================================== */

:root {
    --red: #e11d2e;
    --red-dark: #b3121f;
    --red-soft: rgba(225, 29, 46, .14);
    --black: #0b0b0c;
    --radius: 6px;
    --font-display: 'Barlow Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
    --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.store {
    --bg: #0b0b0c;
    --surface: #16171a;
    --surface-2: #1f2024;
    --text: #eceef0;
    --muted: #9aa0a8;
    --line: #2c2f34;
    --input-bg: #0f1012;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
}

.admin {
    --bg: #eef0f2;
    --surface: #ffffff;
    --surface-2: #f5f6f8;
    --text: #16181b;
    --muted: #646a73;
    --line: #dcdfe4;
    --input-bg: #ffffff;
    --shadow: 0 1px 3px rgba(0, 0, 0, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--black);
    font-family: var(--font-body);
    line-height: 1.55;
}

.store, .admin {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0 0 1em; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
h1:focus, h1:focus-visible { outline: none; } /* Blazor moves focus to the h1 on navigation for screen readers */

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.section { padding-block: 3.5rem; }
.section-tight { padding-block: 2rem; }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .18em; color: var(--red); font-weight: 600; font-size: .95rem; margin-bottom: .4rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.section-head h2 { margin: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Buttons ----------------------------------------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .75rem 1.4rem; border: 2px solid transparent; border-radius: var(--radius);
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .05s;
    background: var(--surface-2); color: var(--text); line-height: 1.1;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-danger { background: transparent; border-color: var(--red); color: var(--red); }
.btn-danger:hover { background: var(--red); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: .4rem .8rem; font-size: .95rem; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-button:hover { color: var(--red); }

/* ---- Forms -------------------------------------------------------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1rem; }
.field > label, .label { font-size: .85rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; }
.field .hint { font-size: .8rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=search], input[type=number], input[type=tel], input:not([type]),
select, textarea {
    width: 100%; padding: .65rem .8rem; background: var(--input-bg); color: var(--text);
    border: 1px solid var(--line); border-radius: var(--radius); font: inherit; min-height: 2.6rem;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--red); }
input[type=checkbox], input[type=radio] { accent-color: var(--red); width: 1.1rem; height: 1.1rem; }
.check { display: flex; align-items: center; gap: .55rem; font-size: .95rem; color: var(--text); cursor: pointer; }
.validation-message, .field-error { color: #ff6b77; font-size: .85rem; }
.admin .validation-message, .admin .field-error { color: var(--red-dark); }
.validation-errors { color: #ff6b77; padding-left: 1.2rem; margin: 0 0 1rem; }
.admin .validation-errors { color: var(--red-dark); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-3 { grid-column: span 3; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: .5rem; }

/* ---- Notices / badges ------------------------------------------------------------------------------------- */
.notice { padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); margin-bottom: 1rem; }
.notice-success { border-color: #2f8f4e; background: rgba(47, 143, 78, .13); }
.notice-error { border-color: var(--red); background: var(--red-soft); }
.notice-info { border-color: #4f6f9c; background: rgba(79, 111, 156, .14); }
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.badge-sale { background: var(--red); border-color: var(--red); color: #fff; }
.badge-soldout { background: #000; color: #fff; border-color: #444; }
.badge-featured { background: transparent; border-color: var(--red); color: var(--red); }

/* ---- Header -------------------------------------------------------------------------------------------------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: .4rem 1rem; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 12, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.brand { text-decoration: none; color: #fff; flex: none; }
.logo { display: inline-flex; align-items: center; gap: .55rem; color: #fff; }
.logo-mark { width: 2rem; height: 2rem; flex: none; }
.logo-text { font-family: var(--font-display); font-weight: 700; font-size: 1.65rem; letter-spacing: .08em; line-height: 1; }
.logo-text span { color: var(--red); margin-left: .12em; }
.main-nav { display: flex; gap: .25rem; flex: 1; align-items: center; flex-wrap: wrap; }
.main-nav a { text-decoration: none; padding: .5rem .75rem; font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--silver, #c6cad0); border-bottom: 2px solid transparent; }
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; border-bottom-color: var(--red); }
.header-tools { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.header-search input { width: 12rem; min-height: 2.25rem; padding: .4rem .8rem; border-radius: 999px; background: var(--surface); }
.cart-link { position: relative; display: inline-flex; padding: .5rem; color: #fff; text-decoration: none; }
.cart-link:hover { color: var(--red); }
.cart-count { position: absolute; top: -.1rem; right: -.25rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .25rem; border-radius: 999px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: .5rem; flex-direction: column; gap: 5px; margin-left: auto; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; }

@media (max-width: 960px) {
    .header-inner { flex-wrap: wrap; gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem; }
    .nav-burger { display: flex; order: 2; }
    .header-tools { order: 3; margin-left: 0; }
    .brand { order: 1; }
    .main-nav { display: none; order: 4; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: .5rem; }
    .nav-toggle:checked ~ .main-nav { display: flex; }
    .header-search input { width: 9rem; }
}
@media (max-width: 560px) { .header-search { display: none; } .header-tools { margin-left: auto; order: 2; } .nav-burger { order: 3; margin-left: 0; } }

/* Shop dropdown: opens on hover or keyboard focus, no JavaScript */
.nav-drop { position: relative; }
.nav-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 16rem; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); padding: .4rem 0; z-index: 60; }
.nav-drop:hover .nav-menu, .nav-drop:focus-within .nav-menu { display: block; }
.main-nav .nav-menu a { display: block; padding: .55rem 1rem; font-size: 1rem; letter-spacing: .06em; border-bottom: 0; }
.main-nav .nav-menu a:hover { background: var(--surface-2); color: var(--red); }
@media (max-width: 960px) { .nav-menu { display: block; position: static; border: 0; box-shadow: none; background: transparent; padding: 0 0 0 1rem; } }

/* ---- Hero ------------------------------------------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, #2a2d33 0%, transparent 60%), linear-gradient(180deg, #121316, #0b0b0c); border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; top: -20%; right: 8%; width: 14rem; height: 160%; background: var(--red); transform: skewX(-22deg); opacity: .92; }
.hero::after { content: ""; position: absolute; top: -20%; right: calc(8% + 16rem); width: 2.5rem; height: 160%; background: #2b2e33; transform: skewX(-22deg); }
.hero-inner { position: relative; z-index: 1; padding: 6rem 0 6.5rem; max-width: 46rem; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.5rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { font-size: 1.15rem; color: #c3c7cd; max-width: 34rem; }
.hero .btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
@media (max-width: 720px) { .hero::before { right: -5rem; opacity: .35; } .hero::after { display: none; } .hero-inner { padding: 4rem 0; } }

.value-strip { background: var(--surface); border-bottom: 1px solid var(--line); }
.value-strip .container { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; padding-block: 1.25rem; }
.value { display: flex; gap: .75rem; align-items: center; font-size: .95rem; }
.value strong { display: block; font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: 1.1rem; }
.value svg { flex: none; color: var(--red); }

/* ---- Product cards ---------------------------------------------------------------------------------------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.25rem; }
.product-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: border-color .15s, transform .15s; }
.product-card:hover { border-color: var(--red); transform: translateY(-2px); }
.product-card .media { position: relative; aspect-ratio: 1 / 1; background: #1b1d21; overflow: hidden; }
.product-card .media img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badges { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.product-card .body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.product-card .cat { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.product-card .name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; line-height: 1.1; }
.price { font-weight: 700; font-size: 1.1rem; }
.price .was { color: var(--muted); font-weight: 400; text-decoration: line-through; margin-left: .4rem; font-size: .9em; }
.price .from { color: var(--muted); font-weight: 400; font-size: .8em; margin-right: .25em; }
.price.sale .now { color: var(--red); }
.product-card .price { margin-top: auto; padding-top: .4rem; }

.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.category-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 10rem; padding: 1.25rem; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(135deg, #24262b, #121316); overflow: hidden; transition: border-color .15s; }
.category-tile::after { content: ""; position: absolute; right: -1.2rem; top: -20%; width: 3rem; height: 140%; background: var(--red); transform: skewX(-22deg); opacity: .0; transition: opacity .2s, right .2s; }
.category-tile:hover { border-color: var(--red); }
.category-tile:hover::after { opacity: .9; right: 1.4rem; }
.category-tile h3 { margin: 0; position: relative; z-index: 1; }
.category-tile span { position: relative; z-index: 1; color: var(--muted); font-size: .9rem; }

/* ---- Shop listing ----------------------------------------------------------------------------------------- */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 2.25rem 1.75rem; }
.page-head h1 { margin-bottom: .2em; }
.page-head p { margin: 0; color: var(--muted); max-width: 40rem; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: .75rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--red); }
.shop-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; align-items: start; }
.filter-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; position: sticky; top: 6rem; }
.filter-box h4 { color: var(--muted); letter-spacing: .14em; margin-bottom: .6rem; }
.filter-list { list-style: none; margin: 0; padding: 0; }
.filter-list a { display: flex; justify-content: space-between; text-decoration: none; padding: .4rem .5rem; border-radius: 4px; color: var(--muted); }
.filter-list a:hover { color: var(--text); background: var(--surface-2); }
.filter-list a.active { color: #fff; background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.toolbar { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.toolbar form { display: flex; gap: .5rem; align-items: center; }
.toolbar select { width: auto; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 2.4rem; text-align: center; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; background: var(--surface); }
.pagination a:hover { border-color: var(--red); }
.pagination .current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }
.empty { text-align: center; padding: 3rem 1rem; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
@media (max-width: 860px) { .shop-layout { grid-template-columns: 1fr; } .filter-box { position: static; } .filter-list { display: flex; flex-wrap: wrap; gap: .4rem; } .filter-list a { border: 1px solid var(--line); } }

/* ---- Product detail --------------------------------------------------------------------------------------- */
.product-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.gallery-main { background: #1b1d21; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr)); gap: .6rem; margin-top: .6rem; }
.gallery-thumbs a { display: block; aspect-ratio: 1/1; border: 2px solid var(--line); border-radius: 4px; overflow: hidden; background: #1b1d21; opacity: .6; transition: opacity .15s, border-color .15s; }
.gallery-thumbs a:hover { opacity: 1; }
.gallery-thumbs a.active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buy-box h1 { margin-bottom: .25em; }
.buy-box .price { font-size: 1.6rem; margin-bottom: 1rem; display: block; }
.buy-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 1.25rem 0; }
.buy-row { display: grid; grid-template-columns: 6.5rem 1fr; gap: .75rem; align-items: end; }
.meta-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; font-size: .95rem; }
.meta-list li { display: flex; gap: .6rem; color: var(--muted); }
.meta-list strong { color: var(--text); min-width: 7rem; font-weight: 600; }
.prose { max-width: 46rem; }
.prose p { color: #c3c7cd; }
.prose h2 { margin-top: 1.8em; font-size: 1.6rem; }
.prose ul { color: #c3c7cd; padding-left: 1.2rem; }
.description { white-space: pre-line; color: #c3c7cd; }
@media (max-width: 860px) { .product-layout { grid-template-columns: 1fr; gap: 1.5rem; } }

/* ---- Cart / checkout --------------------------------------------------------------------------------------- */
.cart-layout, .checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2rem; align-items: start; }
.cart-line { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line:first-child { border-top: 1px solid var(--line); }
.cart-line .thumb { width: 5.5rem; aspect-ratio: 1/1; border-radius: 4px; overflow: hidden; background: #1b1d21; border: 1px solid var(--line); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.cart-line .title:hover { color: var(--red); }
.cart-line .variant { color: var(--muted); font-size: .9rem; }
.cart-line .controls { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }
.cart-line .controls input[type=number] { width: 4.5rem; min-height: 2.25rem; padding: .3rem .5rem; }
.cart-line .line-total { text-align: right; font-weight: 700; white-space: nowrap; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 6rem; }
.summary h3 { margin-bottom: 1rem; }
.summary-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.summary-row.total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.25rem; font-weight: 700; }
.summary-items { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; font-size: .92rem; }
.summary-items li { display: flex; justify-content: space-between; gap: .75rem; }
.summary-items small { color: var(--muted); display: block; }
.fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem .25rem; margin: 0 0 1.5rem; background: var(--surface); }
.fieldset legend { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; font-size: 1.15rem; padding: 0 .5rem; }
.confirm-box { text-align: center; padding: 2.5rem 1rem; }
.confirm-box .tick { width: 4rem; height: 4rem; margin: 0 auto 1rem; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: #fff; }
@media (max-width: 900px) { .cart-layout, .checkout-layout { grid-template-columns: 1fr; } .summary { position: static; } }
@media (max-width: 520px) { .cart-line { grid-template-columns: 4rem minmax(0, 1fr); } .cart-line .thumb { width: 4rem; } .cart-line .line-total { grid-column: 2; text-align: left; } .form-grid, .form-grid.cols-3 { grid-template-columns: 1fr; } .form-grid .span-2, .form-grid .span-3 { grid-column: auto; } }

/* ---- Footer -------------------------------------------------------------------------------------------------- */
.site-footer { background: #070708; border-top: 3px solid var(--red); margin-top: 4rem; padding-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-grid h4 { color: var(--muted); letter-spacing: .14em; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.footer-grid a { text-decoration: none; color: #c3c7cd; }
.footer-grid a:hover { color: var(--red); }
.footer-base { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-block: 1.25rem 1.5rem; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.footer-base a { color: var(--muted); text-decoration: none; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---- Contact / trade ---------------------------------------------------------------------------------------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2rem; align-items: start; }
.hero-short .hero-inner { padding: 3.5rem 0 4rem; }
.hero-short h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

/* ---- Auth card ----------------------------------------------------------------------------------------------- */
.auth-card { max-width: 26rem; margin: 4rem auto; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: var(--radius); padding: 2rem; }

/* ==========================================================================
   Back office
   ========================================================================== */
.admin { display: grid; grid-template-columns: 15rem minmax(0, 1fr); }
.admin-sidebar { background: var(--black); color: #c6cad0; display: flex; flex-direction: column; padding: 1.25rem 0; position: sticky; top: 0; height: 100vh; border-right: 3px solid var(--red); }
.admin-brand { display: flex; flex-direction: column; gap: .15rem; padding: 0 1.25rem 1.25rem; text-decoration: none; color: #fff; border-bottom: 1px solid #25272b; }
.admin-brand small { color: #8b9098; letter-spacing: .18em; text-transform: uppercase; font-size: .7rem; padding-left: 2.55rem; }
.admin-sidebar nav { display: flex; flex-direction: column; padding: 1rem 0; }
.admin-sidebar nav a, .admin-sidebar-foot a, .admin-sidebar-foot .link-button { display: block; padding: .6rem 1.25rem; text-decoration: none; color: #c6cad0; font-size: .95rem; border-left: 3px solid transparent; text-align: left; }
.admin-sidebar nav a:hover, .admin-sidebar-foot a:hover { color: #fff; background: #17181b; }
.admin-sidebar nav a.active, .admin-sidebar-foot a.active { color: #fff; background: #17181b; border-left-color: var(--red); }
.admin-sidebar-foot { margin-top: auto; border-top: 1px solid #25272b; padding-top: .75rem; font-size: .9rem; }
.admin-sidebar-foot .link-button { width: 100%; text-decoration: none; }
.admin-sidebar-foot .link-button:hover { color: var(--red); }
.admin-main { padding: 2rem 2.25rem 4rem; min-width: 0; }
.admin h1 { font-size: 2rem; margin-bottom: .25rem; }
.admin-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-head h1 { margin: 0; }
.admin-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.admin-card > h2, .admin-card > h3 { font-size: 1.25rem; margin-bottom: 1rem; }
.admin .btn { font-size: 1rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow); text-decoration: none; }
.stat .num { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: .55rem .75rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.admin-table td { padding: .65rem .75rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .actions { text-align: right; white-space: nowrap; }
.admin-table .thumb-sm { width: 2.75rem; height: 2.75rem; border-radius: 4px; object-fit: cover; background: #ddd; }
.admin-table a { color: inherit; font-weight: 600; text-decoration: none; }
.admin-table a:hover { color: var(--red); }
.admin .toolbar input, .admin .toolbar select { width: auto; min-width: 11rem; }
.pill { display: inline-block; padding: .15rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e4e6ea; color: #41464d; white-space: nowrap; }
.pill-pendingpayment { background: #fdf0d2; color: #8a5a00; }
.pill-paid { background: #d9efe0; color: #1d6b3a; }
.pill-processing { background: #dce8f8; color: #234d85; }
.pill-shipped { background: #e4dcf5; color: #4a2d8a; }
.pill-completed { background: #1d6b3a; color: #fff; }
.pill-cancelled, .pill-refunded { background: #f7d9dc; color: var(--red-dark); }
.pill-active { background: #d9efe0; color: #1d6b3a; }
.pill-hidden { background: #e4e6ea; color: #41464d; }
.pill-low { background: #fdf0d2; color: #8a5a00; }
.variant-table input { min-height: 2.2rem; padding: .3rem .5rem; }
.variant-table td { padding: .35rem .4rem; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.img-tile { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface-2); display: flex; flex-direction: column; }
.img-tile img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.img-tile .img-actions { display: flex; flex-wrap: wrap; gap: .35rem; padding: .5rem; align-items: center; justify-content: space-between; }
.img-tile.primary { border-color: var(--red); box-shadow: 0 0 0 2px var(--red-soft); }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.kv { display: grid; grid-template-columns: 9rem 1fr; gap: .35rem 1rem; font-size: .95rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.inline-form { display: inline; }
.admin-note { font-size: .85rem; color: var(--muted); }
@media (max-width: 900px) {
    .admin { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5rem 0; border-right: 0; border-bottom: 3px solid var(--red); }
    .admin-brand { border: 0; padding: .25rem 1rem; }
    .admin-brand small { display: none; }
    .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; padding: 0; }
    .admin-sidebar-foot { margin: 0 0 0 auto; border: 0; padding: 0; display: flex; flex-wrap: wrap; }
    .admin-main { padding: 1.25rem 1rem 3rem; }
}

/* ---- Blazor framework UI ----------------------------------------------------------------------------------- */
#blazor-error-ui { color-scheme: light only; background: #fff3cd; color: #111; bottom: 0; box-shadow: 0 -1px 2px rgba(0, 0, 0, .2); box-sizing: border-box; display: none; left: 0; padding: .6rem 1.25rem .7rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.blazor-error-boundary { background: var(--red-dark); padding: 1rem 1rem 1rem 1rem; color: white; }
.blazor-error-boundary::after { content: "An error has occurred."; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
