/* Публичен магазин. Администрацията ползва app.css. */
:root {
    --ink: #151716;
    --ink-2: #3b403d;
    --muted: #6a716d;
    --line: #e2e4e1;
    --line-2: #d0d4cf;
    --paper: #ffffff;
    --canvas: #f5f5f2;
    --soft: #eeefeb;
    --green: #0a7a4a;
    --green-dark: #07603a;
    --green-soft: #e6f3ec;
    --amber: #a15c00;
    --amber-soft: #fdf1dc;
    --red: #b3261e;
    --red-soft: #fbe9e7;
    --radius: 10px;
    --radius-sm: 6px;
    --shadow: 0 1px 2px rgba(0,0,0,.05), 0 6px 20px rgba(0,0,0,.05);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--canvas); }
/* Без българските локални форми на кирилицата (д като g, т като m), които системните шрифтове включват при lang="bg". */
body, input, select, textarea, button { font-feature-settings: "locl" 0; }
img { max-width: 100%; display: block; }
a { color: var(--green-dark); text-underline-offset: 2px; }
a:hover { color: var(--green); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 .6rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 .7rem; }
h3 { font-size: 1.02rem; margin: 1.4rem 0 .5rem; }
p { margin: 0 0 .9rem; }
code { font-size: .9em; background: var(--soft); padding: .1em .35em; border-radius: 4px; }
.muted { color: var(--muted); }
.fine { margin: .8rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.5; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 8px 14px; background: var(--ink); color: #fff; }
.skip-link:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
:focus-visible { outline: 3px solid rgba(10,122,74,.45); outline-offset: 2px; }

/* Форми */
label { display: block; margin: 0 0 14px; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
label > small:last-child { display: block; margin-top: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], select, textarea {
    display: block; width: 100%; margin-top: 5px; padding: 10px 12px; min-height: 44px;
    font: inherit; font-weight: 400; color: var(--ink); background: var(--paper);
    border: 1px solid var(--line-2); border-radius: var(--radius-sm);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(10,122,74,.15); }
input:disabled { background: var(--soft); color: var(--muted); }
fieldset { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; font: inherit; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.btn:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 1.02rem; }
.btn-block { width: 100%; }

.notice { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: .95rem; }
.notice-success { background: var(--green-soft); border-color: #b7dcc7; color: #0b4d31; }
.notice-error { background: var(--red-soft); border-color: #f1c3be; color: #7c1a14; }
.notice-info { background: #eef3fb; border-color: #cbd9ef; color: #1d3b6b; }

/* Горна лента и хедър */
.topline { background: var(--ink); color: #d7dad8; font-size: .82rem; }
.topline-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topline-perks { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topline-perks li::before { content: "✓"; margin-right: 6px; color: #8fd4ae; }
.topline-phone { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.topline-phone span { margin-left: 6px; font-weight: 400; color: #a9aeab; }
.topline-phone:hover { color: #fff; text-decoration: underline; }

.masthead { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-logo { width: 56px; height: 56px; border-radius: 50%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.08rem; letter-spacing: -.01em; }
.brand-text small { margin-top: 3px; color: var(--muted); font-size: .8rem; }
.site-search { position: relative; flex: 1; max-width: 560px; }
.site-search input { margin: 0; padding-right: 48px; background: var(--canvas); border-color: var(--line); }
.site-search button { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; display: grid; place-items: center; color: var(--ink-2); background: transparent; border: 0; border-radius: 4px; cursor: pointer; }
.site-search button:hover { background: var(--soft); }
.masthead-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.action-link { position: relative; display: flex; align-items: center; gap: 8px; padding: 9px 12px; color: var(--ink); font-weight: 600; font-size: .92rem; text-decoration: none; border-radius: var(--radius-sm); }
.action-link:hover { background: var(--soft); color: var(--ink); }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; display: inline-grid; place-items: center; color: #fff; background: var(--green); border-radius: 11px; font-size: .75rem; }

.catnav { border-top: 1px solid var(--line); }
.catnav-inner { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav-inner::-webkit-scrollbar { display: none; }
.catnav a { flex-shrink: 0; padding: 11px 12px; color: var(--ink-2); font-size: .9rem; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.catnav a:hover { color: var(--ink); }
.catnav a.active { color: var(--ink); font-weight: 600; border-bottom-color: var(--ink); }

.page { padding-top: 28px; padding-bottom: 64px; min-height: 60vh; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-lead { margin: -8px 0 20px; color: var(--muted); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; color: var(--muted); font-size: .86rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Начало */
.intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); gap: 28px; margin-bottom: 28px; padding: 36px 40px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.intro h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 12px; }
.intro-copy p { max-width: 620px; color: var(--ink-2); font-size: 1.05rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.intro-facts { display: grid; gap: 10px; align-content: center; margin: 0; padding: 0; list-style: none; }
.intro-facts li { display: grid; grid-template-columns: 150px 1fr; align-items: baseline; gap: 12px; padding: 14px 16px; background: var(--canvas); border-radius: var(--radius-sm); }
.intro-facts strong { font-size: 1.2rem; }
.intro-facts span { color: var(--muted); font-size: .92rem; }

.category-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 36px; }
.category-tiles a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.category-tiles a:hover { border-color: var(--ink-2); }
.category-tiles span { font-weight: 600; }
.category-tiles small { color: var(--muted); }

/* Каталог */
.catalog { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.filters { position: sticky; top: 140px; }
.filters-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.filters-box summary { display: none; }
.filters-inner { padding: 18px; }
.filters-box form { padding: 0; }
.legend { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.filter-cats { display: grid; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.filter-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; margin: 0 -8px; color: var(--ink); font-size: .92rem; text-decoration: none; border-radius: var(--radius-sm); }
.filter-cats a:hover { background: var(--canvas); }
.filter-cats a.active { font-weight: 700; background: var(--soft); }
.filter-cats small { color: var(--muted); font-weight: 400; }
.opt { display: flex; align-items: center; gap: 8px; margin: 0; padding: 5px 0; font-weight: 400; font-size: .92rem; color: var(--ink); cursor: pointer; }
.opt input { margin: 0; accent-color: var(--green); }
.opt small { margin-left: auto; color: var(--muted); }
.opt-check { margin: 0 0 16px; font-weight: 600; }
.filters select { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { margin: 0; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: 6px 11px; font-size: .85rem; font-weight: 500; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; }
.chip input:checked + span { color: #fff; background: var(--ink); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 3px solid rgba(10,122,74,.45); }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-range input { margin: 0; }
.reset { display: block; margin-top: 12px; text-align: center; font-size: .9rem; }
.filter-dot { display: inline-block; width: 8px; height: 8px; margin-left: 6px; background: var(--green); border-radius: 50%; vertical-align: middle; }

.results-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.results-head h1 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.listing-intro { max-width: 760px; margin: -4px 0 18px; color: var(--ink-2); }
.results-head p { margin: 2px 0 0; color: var(--muted); font-size: .9rem; }
.sort-form { display: flex; align-items: center; gap: 8px; }
.sort-form label { margin: 0; font-weight: 400; color: var(--muted); }
.sort-form select { width: auto; margin: 0; min-height: 40px; padding: 8px 10px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-product { display: flex; flex-direction: column; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card-product:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.card-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .85; padding: 18px; background: #fff; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.is-out .card-media img { opacity: .55; }
.no-photo { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: .88rem; background: var(--canvas); border-radius: var(--radius-sm); }
.card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.card-body h3 { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.35; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body h3 a:hover { text-decoration: underline; }
.card-specs { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; color: var(--muted); font-size: .82rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.card-foot form { margin: 0; }
.price { color: var(--ink); font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
.price-lg { font-size: 2rem; }
.btn-icon { display: grid; place-items: center; width: 42px; height: 42px; color: #fff; background: var(--green); border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.btn-icon:hover { background: var(--green-dark); }
.card-more { font-size: .88rem; font-weight: 600; }

.stock { display: inline-flex; align-items: center; gap: 6px; width: fit-content; font-size: .8rem; font-weight: 600; }
.stock::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.stock-good { color: var(--green); }
.stock-limited, .stock-last { color: var(--amber); }
.stock-out { color: var(--muted); }

.empty { padding: 40px 28px; text-align: center; background: var(--paper); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.empty h3 { margin-top: 0; font-size: 1.2rem; }
.empty p { max-width: 520px; margin: 0 auto 16px; color: var(--muted); }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; padding: 9px 12px; text-align: center; font-size: .92rem; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.pager a:hover { border-color: var(--ink-2); }
.pager .current { color: #fff; background: var(--ink); border-color: var(--ink); }
.pager .gap { background: transparent; border-color: transparent; }

/* Продукт */
.pdp { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 40px; align-items: start; }
.pdp-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / .9; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.pdp-main img { width: 100%; height: 100%; object-fit: contain; }
.pdp-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; margin-top: 10px; }
.pdp-thumbs button { aspect-ratio: 1; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pdp-thumbs button.active { border: 2px solid var(--ink); }
.pdp-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-info h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 6px; }
.pdp-model { color: var(--muted); }
.pdp-model strong { color: var(--ink); }
.pdp-buybox { margin: 18px 0; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.pdp-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pdp-buy { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.qty { display: flex; margin: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); overflow: hidden; }
.qty button { width: 40px; font-size: 1.2rem; color: var(--ink); background: var(--canvas); border: 0; cursor: pointer; }
.qty button:hover { background: var(--soft); }
.qty input { width: 56px; min-height: 50px; margin: 0; text-align: center; border: 0; border-radius: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.pdp-note { padding: 16px; background: var(--canvas); border-radius: var(--radius-sm); }
.pdp-note h2 { margin: 0 0 6px; font-size: 1.05rem; }
.pdp-note p:last-child { margin-bottom: 0; }
.pdp-note-ok { background: var(--green-soft); }
.notify-form { margin-top: 14px; }
.notify-form .btn { width: 100%; }
.pdp-perks { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pdp-perks li { padding: 12px 0; font-size: .92rem; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.pdp-perks strong { color: var(--ink); }
.pdp-details { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 40px; margin-top: 44px; padding-top: 8px; }
.pdp-details h2 { margin-top: 0; }
.prose { max-width: 74ch; color: var(--ink-2); line-height: 1.7; }
.pdp-specs dl { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.pdp-specs dl div { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.pdp-specs dl div:last-child { border-bottom: 0; }
.pdp-specs dt { color: var(--muted); }
.pdp-specs dd { margin: 0; word-break: break-word; }
.related { margin-top: 48px; }

/* Кошница и поръчка */
.checkout-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.cart-lines { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) 84px 110px 36px; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid var(--line); }
.cart-thumb { display: block; aspect-ratio: 1; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.cart-name a:hover { text-decoration: underline; }
.cart-name small { display: block; margin-top: 3px; color: var(--muted); font-size: .84rem; }
.cart-name .warn { color: var(--amber); }
.cart-qty { margin: 0; }
.cart-qty input { margin: 0; text-align: center; }
.cart-total { text-align: right; white-space: nowrap; }
.cart-remove { width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; color: var(--muted); background: transparent; border: 0; border-radius: 50%; cursor: pointer; }
.cart-remove:hover { color: var(--red); background: var(--red-soft); }
.cart-actions { padding: 14px 16px; text-align: right; }

.summary { position: sticky; top: 140px; padding: 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.summary h2 { margin: 0 0 14px; font-size: 1.15rem; }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: .94rem; }
.summary-row > span:last-child { text-align: right; color: var(--muted); }
.summary-item span { color: var(--ink-2); }
.summary-row strong { white-space: nowrap; }
.summary-total { margin: 6px 0 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.08rem; }
.summary-total span:first-child { font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-weight: 400; font-size: .88rem; line-height: 1.45; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }

.checkout-steps { display: grid; gap: 16px; }
.panel { padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.panel h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 1.12rem; }
.step { display: inline-grid; place-items: center; width: 28px; height: 28px; font-size: .86rem; color: #fff; background: var(--ink); border-radius: 50%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.span-2 { grid-column: 1 / -1; }
.choice-group { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin-bottom: 16px; }
.choice { position: relative; margin: 0; }
.choice input { position: absolute; left: 14px; top: 16px; accent-color: var(--green); }
.choice span { display: block; height: 100%; padding: 12px 14px 12px 40px; font-weight: 400; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; }
.choice strong { display: block; color: var(--ink); }
.choice small { display: block; margin-top: 2px; }
.choice input:checked + span { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); background: var(--green-soft); }
.pay-box { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; font-size: .94rem; color: var(--ink-2); background: var(--canvas); border-radius: var(--radius-sm); }
.pay-box strong { color: var(--ink); }

.order-done { max-width: 680px; margin: 10px auto 28px; text-align: center; }
.done-mark { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 16px; font-size: 1.7rem; color: #fff; background: var(--green); border-radius: 50%; }
.next-steps { display: grid; gap: 10px; margin: 22px 0; padding: 0; text-align: left; list-style: none; counter-reset: step; }
.next-steps li { position: relative; padding: 14px 16px 14px 54px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: step; }
.next-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; font-size: .84rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 50%; }
.order-panel { max-width: 760px; margin: 0 auto; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.panel-head h2 { margin: 0; }
.status { display: inline-block; padding: 4px 10px; font-size: .8rem; font-weight: 600; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.status-new { background: var(--amber-soft); color: var(--amber); }
.status-confirmed, .status-processing { background: #e8effa; color: #1d4f91; }
.status-shipped { background: #efe8fa; color: #5b2a91; }
.status-fulfilled { background: var(--green-soft); color: var(--green-dark); }
.status-cancelled { background: var(--red-soft); color: var(--red); }
.order-meta { margin: 0; font-size: .92rem; }
.order-meta div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.order-meta dt { color: var(--muted); }
.order-meta dd { margin: 0; }

/* Профил */
.auth { display: flex; justify-content: center; padding: 16px 0; }
.auth-form { width: 100%; max-width: 440px; padding: 30px; }
.auth-form h1 { margin-bottom: 6px; }
.auth-alt { margin: 16px 0 0; text-align: center; font-size: .94rem; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.account-grid > section > h2 { margin-top: 0; }
.order-list { display: grid; gap: 8px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.order-row:hover { border-color: var(--ink-2); color: var(--ink); }
.order-row > span { display: flex; flex-direction: column; gap: 2px; }
.order-row small { color: var(--muted); }
.order-row-end { align-items: flex-end; }

.error-page { max-width: 560px; margin: 40px auto; text-align: center; }
.error-code { margin: 0; font-size: 4rem; font-weight: 800; color: var(--line-2); line-height: 1; }

/* Информационни страници */
.doc { max-width: 860px; margin: 0 auto; }
.doc-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.doc-lead { font-size: 1.1rem; color: var(--ink-2); }
.doc section { margin-bottom: 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul, .doc ol { padding-left: 1.3rem; }
.doc li { margin-bottom: 6px; }
.doc-legal h2 { font-size: 1.15rem; scroll-margin-top: 150px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.doc-toc a { padding: 6px 10px; font-size: .84rem; color: var(--ink-2); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.doc-toc a:hover { border-color: var(--ink-2); }
.doc section[id] { scroll-margin-top: 150px; }
.about-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.about-cols h2 { margin-top: 0; }
.doc-note { margin: 24px 0; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: var(--radius-sm); }
.doc-note h2 { margin-top: 0; font-size: 1.05rem; }
.doc-note p:last-child { margin: 0; }
.company { margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.company div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: .94rem; }
.company div:last-child { border-bottom: 0; }
.company dt { color: var(--muted); }
.company dd { margin: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-bottom: 20px; }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; color: var(--ink); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card:hover { border-color: var(--ink-2); color: var(--ink); }
.contact-card span { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1.15rem; word-break: break-word; }
.contact-card small { color: var(--muted); }
.doc-wide { max-width: 1080px; }
.contact-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 12px; }
.contact-side { display: grid; gap: 12px; }
.contact-card-main { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-card-main:hover { color: #fff; border-color: var(--ink); background: #000; }
.contact-card-main span, .contact-card-main small { color: #b9bdbb; }
.contact-card-main strong { font-size: 1.5rem; }
.contact-form h2 { margin: 0 0 16px; }
.contact-form textarea { min-height: 130px; }
.contact-sent { padding: 20px 0; text-align: center; }
.contact-sent h2 { justify-content: center; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; }
.faq summary { padding: 14px 16px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 0; padding: 0 16px 14px; }
.steps-list { display: grid; gap: 10px; margin: 0 0 12px; padding: 0 !important; list-style: none; counter-reset: step; }
.steps-list li { position: relative; margin: 0; padding: 14px 16px 14px 54px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); counter-increment: step; }
.steps-list li::before { content: counter(step); position: absolute; left: 16px; top: 14px; display: grid; place-items: center; width: 26px; height: 26px; font-size: .84rem; font-weight: 700; color: #fff; background: var(--ink); border-radius: 50%; }
.bank-box { display: grid; gap: 0; margin: 10px 0 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bank-box div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.bank-box div:last-child { border-bottom: 0; }
.bank-box span { color: var(--muted); }
.bank-box strong { word-break: break-all; }
.withdrawal-form { margin: 12px 0; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-family: Georgia, "Times New Roman", serif; }
.withdrawal-form p { color: var(--ink); }
.table-wrap { overflow-x: auto; margin-bottom: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th, .data-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table th { font-size: .78rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); background: var(--canvas); }
.data-table tr:last-child td { border-bottom: 0; }

/* Футър */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); color: var(--ink-2); font-size: .92rem; }
.footer-service { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.footer-service div { display: flex; flex-direction: column; gap: 2px; }
.footer-service strong { color: var(--ink); }
.footer-service span { color: var(--muted); font-size: .86rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.3fr; gap: 28px; padding-top: 30px; padding-bottom: 36px; }
.footer-cols h2 { margin: 0 0 10px; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols li { margin-bottom: 6px; }
.footer-cols a { color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-company p { margin-bottom: 8px; line-height: 1.55; }

/* Адаптивност */
@media (max-width: 1400px) {
    .topline-phone span { display: none; }
}
@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .topline-perks li:nth-child(n+4) { display: none; }
}
@media (max-width: 900px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .topline-perks { gap: 14px; font-size: .78rem; }
    .topline-perks li:nth-child(n+3) { display: none; }
    .topline-phone span { display: none; }
    .masthead { position: static; }
    .masthead-inner { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-text strong { font-size: .98rem; }
    .site-search { order: 3; flex-basis: 100%; max-width: none; }
    .action-link { padding: 8px; }
    .catalog, .pdp, .pdp-details, .checkout-grid, .account-grid, .about-cols, .intro, .contact-layout { grid-template-columns: 1fr; }
    .intro { padding: 24px 20px; }
    .filters, .summary { position: static; }
    .filters-box summary { display: flex; align-items: center; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
    .filters-box summary::-webkit-details-marker { display: none; }
    .filters-box summary::after { content: "▾"; margin-left: auto; color: var(--muted); }
    .filters-box[open] summary { border-bottom: 1px solid var(--line); }
        .pdp { gap: 20px; }
    .footer-service { grid-template-columns: 1fr 1fr; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 15px; }
    .action-link span:not(.cart-count) { display: none; }
    .brand-text small { display: none; }
    .grid, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .card-media { padding: 10px; }
    .card-body { padding: 10px 12px 12px; }
    .card-body h3 { font-size: .9rem; }
    .price { font-size: 1.05rem; }
    .price-lg { font-size: 1.7rem; }
    .btn-icon { width: 38px; height: 38px; }
    .results-head { flex-direction: column; align-items: stretch; }
    .sort-form select { flex: 1; }
    .category-tiles { grid-template-columns: 1fr 1fr; }
    .intro-facts { display: none; }
    .topline-perks li:nth-child(2) { display: none; }
    .intro-facts li { grid-template-columns: 1fr; gap: 0; }
    .cart-line { grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 10px 12px; }
    .cart-remove { grid-column: 3; grid-row: 1; }
    .cart-qty { grid-column: 2; }
    .cart-total { grid-column: 2 / 4; grid-row: 2; }
    .cart-qty { grid-row: 2; grid-column: 1 / 2; }
    .form-grid { grid-template-columns: 1fr; }
    .panel { padding: 18px 16px; }
    .company div, .pdp-specs dl div { grid-template-columns: 1fr; gap: 2px; }
    .footer-cols { grid-template-columns: 1fr; gap: 18px; }
    .footer-service { grid-template-columns: 1fr; gap: 12px; }
    .page-head { flex-direction: column; gap: 6px; }
}
@media print {
    .topline, .masthead, .site-footer, .doc-toc, .btn { display: none !important; }
    body { background: #fff; }
    html.print-form body * { visibility: hidden; }
    html.print-form .withdrawal-form, html.print-form .withdrawal-form * { visibility: visible; }
    html.print-form .withdrawal-form { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
}
.withdrawal { margin-top: 18px; scroll-margin-top: 150px; }
