/* ===== Nord Bite — Viking theme ===== */
:root {
  --bg: #12100d;
  --bg-2: #1a1712;
  --panel: #211c15;
  --panel-2: #2a231a;
  --border: #3a3125;
  --copper: #c98a4b;
  --copper-bright: #e0a866;
  --red: #8b2a2a;
  --red-dark: #5e1414;
  --parchment: #ecdcc0;
  --text: #d9cbb2;
  --muted: #9a8b73;
  --ok: #7fb069;
  --warn: #d9a24b;
  --bad: #c85c5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(1200px 500px at 50% -100px, rgba(139, 42, 42, 0.14), transparent 70%),
    radial-gradient(900px 400px at 100% 100%, rgba(201, 138, 75, 0.06), transparent 60%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
}

h1, h2, h3, .brand-name { font-family: 'Russo One', 'Manrope', sans-serif; letter-spacing: 0.03em; }

img { max-width: 100%; display: block; }
a { color: var(--copper); }
button { font-family: inherit; cursor: pointer; }
input { font-family: inherit; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 16, 13, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 14px; padding: 10px 0; }
.logo { width: 54px; height: 54px; flex: 0 0 auto; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand { flex: 1 1 auto; min-width: 0; }
.brand-name { font-size: 1.35rem; color: var(--parchment); }
.brand-name .accent { color: var(--copper); }
.brand-tag { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.lang-switch { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--border); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: none; background: transparent; color: var(--muted);
  font-weight: 700; font-size: 0.78rem; padding: 6px 10px; border-radius: 999px;
  transition: all .15s;
}
.lang-switch button.active { background: var(--red); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.lang-switch button:not(.active):hover { color: var(--parchment); }
.header-actions { display: flex; align-items: center; gap: 7px; }
.header-action {
  min-height: 38px; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 11px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--text); background: var(--panel); text-decoration: none;
  font-size: .78rem; font-weight: 800; white-space: nowrap;
}
button.header-action { font-family: inherit; }
.header-action:hover { border-color: var(--copper); color: var(--copper-bright); }
.cart-badge {
  min-width: 19px; height: 19px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 99px; background: var(--red); color: #fff; font-size: .66rem; padding: 0 5px;
}
.cart-badge.empty { background: var(--border); color: var(--muted); }

/* ---------- test banner ---------- */
.test-banner {
  display: none; text-align: center; font-size: 0.8rem; font-weight: 700;
  background: repeating-linear-gradient(45deg, #6b5416, #6b5416 12px, #57430f 12px, #57430f 24px);
  color: #ffe9b0; padding: 6px 12px;
}
.test-banner.show { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 60%;
  filter: brightness(0.32) saturate(1.1);
}
.hero-inner { position: relative; padding: 56px 0 60px; text-align: center; }
.hero-badge {
  display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--copper-bright); border: 1px solid rgba(201, 138, 75, 0.45); border-radius: 999px;
  padding: 6px 16px; margin-bottom: 18px; background: rgba(18, 16, 13, 0.55);
}
.hero h1 { font-size: clamp(1.6rem, 4.5vw, 2.6rem); color: var(--parchment); text-shadow: 0 3px 14px rgba(0,0,0,.7); margin-bottom: 14px; }
.hero p { max-width: 640px; margin: 0 auto; color: #cfc0a5; text-shadow: 0 2px 8px rgba(0,0,0,.8); font-size: 1.02rem; }
.welcome-copy { display: grid; gap: 14px; max-width: 640px; margin: 0 auto; }
.hero .welcome-copy p:first-child { color: #ecdfc8; font-size: 1.08rem; }
.hero .welcome-copy p:nth-child(n+3) { font-size: .93rem; }
.hero .welcome-copy p:nth-child(3) { padding-top: 14px; border-top: 1px solid rgba(201,138,75,.28); }
.rune-divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 26px auto 0; color: var(--red); opacity: .9; }
.rune-divider::before, .rune-divider::after { content: ''; height: 1px; width: min(120px, 25vw); background: linear-gradient(90deg, transparent, var(--red)); }
.rune-divider::after { background: linear-gradient(270deg, transparent, var(--red)); }

/* ---------- sections ---------- */
.section { padding: 40px 0 8px; }
.section-title { display: flex; align-items: center; gap: 12px; color: var(--parchment); font-size: 1.25rem; margin-bottom: 20px; }
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.section-title .rune { color: var(--red); font-size: 1rem; }

/* ---------- product cards ---------- */
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-actions .btn { min-width: 180px; }
#productsSection { scroll-margin-top: 20px; }
.telegram-community { margin-top: 24px; padding: 22px; display: flex; align-items: center; gap: 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.telegram-community > div { flex: 1; }
.telegram-community h3 { font-size: 1rem; margin-bottom: 5px; }
.telegram-community p { color: var(--muted); font-size: .87rem; }
.community-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #19384a; color: #99d7f4; font-size: 1.5rem; flex-shrink: 0; }
.stock-label { margin: 3px 0 10px; font-size: .82rem; font-weight: 700; color: #b7e0a5; }
.stock-label.unavailable, .stock-note { color: #f2c393; font-size: .8rem; line-height: 1.5; }
.stock-note:empty { display: none; }
.card.out-of-stock .card-img { filter: saturate(.5); }
.card button:disabled { opacity: .4; cursor: not-allowed; }
.stock-note { margin: 8px 0; }
.dispatch-info { text-align: left; border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--panel); margin: 16px 0; font-size: .86rem; line-height: 1.6; }
.dispatch-info[hidden] { display: none; }
.dispatch-info p { margin-top: 7px; color: var(--muted); }
.dispatch-info strong { color: var(--parchment); }
.order-item.stock-short { border-left: 3px solid #d59752; padding-left: 9px; }
.order-item .oi-stock { display: block; color: #f2c393; }
.btn:disabled { cursor: not-allowed; opacity: .5; }
@media (max-width: 620px) { .telegram-community { align-items: flex-start; flex-wrap: wrap; gap: 12px; } .telegram-community .btn { width: 100%; } }
.combo-offer {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin: -5px 0 22px; padding: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(201,138,75,.18), transparent 42%),
    linear-gradient(145deg, var(--panel-2), var(--panel));
  border: 1px solid rgba(201,138,75,.48); border-radius: var(--radius); box-shadow: var(--shadow);
}
.combo-offer[hidden] { display: none; }
.combo-copy h3 { margin: 5px 0 7px; color: var(--parchment); font-size: 1.2rem; }
.combo-copy > p { color: var(--text); font-size: .9rem; line-height: 1.5; }
.combo-badge {
  display: inline-block; color: var(--copper-bright); font-size: .68rem; font-weight: 900;
  letter-spacing: .12em; text-transform: uppercase;
}
.combo-flavors-wrap { margin-top: 12px; }
.combo-flavors-label { display: block; margin-bottom: 7px; color: var(--muted); font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.combo-flavors { display: flex; flex-wrap: wrap; gap: 6px; }
.combo-flavors span {
  padding: 5px 9px; color: var(--parchment); background: rgba(201,138,75,.09);
  border: 1px solid rgba(201,138,75,.28); border-radius: 999px; font-size: .72rem;
}
.combo-action { min-width: 205px; display: flex; flex-direction: column; align-items: stretch; gap: 7px; text-align: right; }
.combo-meta { color: var(--muted); font-size: .75rem; }
.combo-price { color: var(--copper-bright); font-size: 1.35rem; }
.combo-button { width: 100%; margin-top: 3px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.price-badge {
  position: absolute; right: 10px; bottom: 10px;
  background: var(--red); color: #fff; font-weight: 800; font-size: 0.85rem;
  padding: 6px 12px; border-radius: 999px; box-shadow: 0 3px 10px rgba(0,0,0,.5);
  border: 1px solid rgba(255,255,255,.18);
}
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card-body h3 { color: var(--parchment); font-size: 1.05rem; }
.card-desc { color: var(--muted); font-size: 0.88rem; }
.opt-label { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--copper); margin-bottom: 6px; }
.weight-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.weight-btns button {
  background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; transition: all .15s;
}
.weight-btns button.active { background: var(--copper); border-color: var(--copper); color: #241505; }
.weight-btns button:not(.active):hover { border-color: var(--copper); }

.custom-weight { display: flex; align-items: center; gap: 8px; }
.custom-weight input {
  width: 110px; background: var(--bg-2); border: 1px solid var(--border); color: var(--parchment);
  border-radius: 10px; padding: 9px 12px; font-size: 0.95rem; font-weight: 700;
}
.custom-weight input:focus { outline: none; border-color: var(--copper); }
.hint { font-size: 0.72rem; color: var(--muted); }
.hint.error { color: var(--bad); font-weight: 700; }

.qty-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.stepper button { width: 38px; height: 38px; border: none; background: transparent; color: var(--copper); font-size: 1.25rem; font-weight: 800; }
.stepper button:hover { background: rgba(201,138,75,.12); }
.stepper input { width: 48px; text-align: center; border: none; background: transparent; color: var(--parchment); font-weight: 800; font-size: 1rem; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.line-total { text-align: right; }
.line-total .amount { font-family: 'Russo One', sans-serif; color: var(--copper-bright); font-size: 1.3rem; }
.line-total .label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px; font-weight: 800; font-size: 0.95rem;
  padding: 13px 20px; transition: all .18s; text-decoration: none;
}
.btn-add { background: linear-gradient(180deg, #a03434, var(--red-dark)); color: #ffe9d9; border: 1px solid #b25050; width: 100%; }
.btn-add:hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn-add.flash { background: linear-gradient(180deg, #4c7a3d, #35592a); border-color: #6f9c5e; }
.product-actions { display: grid; grid-template-columns: 1fr; gap: 9px; margin-top: auto; }
.btn-buy {
  background: linear-gradient(180deg, var(--copper-bright), #a5652a);
  color: #241505; border: 1px solid #e8bd85; width: 100%;
}
.btn-buy:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-add:disabled, .btn-buy:disabled { opacity: .65; cursor: wait; }

/* ---------- order panel ---------- */
.order-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px; margin-top: 34px;
}
.checkout-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; }
.checkout-head .section-title { flex: 1; }
.btn-small { padding: 7px 11px; font-size: .78rem; white-space: nowrap; }
.checkout-mode-note {
  padding: 10px 13px; margin: -4px 0 14px; border-radius: 10px;
  background: rgba(201,138,75,.08); border: 1px solid rgba(201,138,75,.3);
  color: var(--text); font-size: .82rem;
}
.order-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.order-item {
  display: flex; align-items: center; gap: 12px; background: var(--bg-2);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; font-size: 0.92rem;
}
.order-item .oi-name { flex: 1; color: var(--parchment); font-weight: 600; }
.order-item .oi-name small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.order-item .oi-qty { color: var(--muted); font-size: .82rem; }
.order-item .oi-sum { font-weight: 800; color: var(--copper-bright); white-space: nowrap; }
.order-item .oi-del {
  width: 28px; height: 28px; border-radius: 8px; background: rgba(200,92,92,.08);
  border: 1px solid rgba(200,92,92,.28); color: var(--bad); font-size: 1rem;
}
.cart-qty {
  display: inline-flex; align-items: center; border: 1px solid var(--border);
  border-radius: 8px; overflow: hidden; background: var(--panel);
}
.cart-qty button { width: 28px; height: 28px; border: 0; background: transparent; color: var(--copper); font-weight: 800; }
.cart-qty button:hover { background: rgba(201,138,75,.1); }
.cart-qty b { min-width: 25px; text-align: center; color: var(--parchment); font-size: .8rem; }
.order-empty { color: var(--muted); font-size: 0.92rem; text-align: center; padding: 10px 0 4px; }
.cart-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 10px; }
.text-button { border: 0; background: none; color: var(--bad); font-size: .72rem; text-decoration: underline; }
.order-summary { border-top: 1px dashed var(--border); padding-top: 10px; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: .9rem; }
.summary-row span { color: var(--muted); }
.summary-row small { color: var(--muted); font-size: .7rem; }
.summary-row b { color: var(--parchment); white-space: nowrap; }
.discount-row span, .discount-row b { color: #b7e0a5; }
.coupon-box { padding: 7px 0 5px; }
.coupon-toggle {
  border: 0; background: none; color: var(--copper-bright); padding: 2px 0;
  font: inherit; font-size: .82rem; font-weight: 800; text-decoration: underline;
}
.coupon-form { display: flex; align-items: stretch; gap: 7px; margin-top: 8px; flex-wrap: wrap; }
.coupon-form[hidden] { display: none; }
.coupon-form input {
  min-width: 180px; flex: 1; background: var(--bg-2); color: var(--parchment);
  border: 1px solid var(--border); border-radius: 9px; padding: 9px 11px;
  font: inherit; text-transform: uppercase; letter-spacing: .04em;
}
.coupon-form input:focus { outline: none; border-color: var(--copper); }
.coupon-remove {
  border: 0; background: none; color: var(--bad); font: inherit;
  font-size: .76rem; font-weight: 700; text-decoration: underline; padding: 0 4px;
}
.coupon-message { min-height: 1.15em; margin-top: 6px; color: var(--muted); font-size: .74rem; }
.coupon-message.success { color: #b7e0a5; }
.coupon-message.error { color: #ffb4b4; }

.order-total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--border); padding-top: 12px; margin-top: 7px;
}
.order-total-row .label { font-weight: 700; color: var(--parchment); }
.order-total-row .value { font-family: 'Russo One', sans-serif; font-size: 1.6rem; color: var(--copper-bright); }

.charge-approx { text-align: right; font-size: 0.82rem; color: var(--muted); margin-top: 6px; }
.charge-approx b { color: var(--parchment); }

/* ---------- contact form ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--copper); }
.field input {
  background: var(--bg-2); border: 1px solid var(--border); color: var(--parchment);
  border-radius: 10px; padding: 11px 13px; font-size: 0.95rem;
}
.field input:focus { outline: none; border-color: var(--copper); }
.field input.invalid { border-color: var(--bad); }
.field-wide { grid-column: 1 / -1; }
.delivery-title { margin-top: 28px; }
.delivery-title .required-badge {
  font-family: 'Manrope', sans-serif; font-size: .62rem; text-transform: uppercase;
  letter-spacing: .07em; color: #f2c4c4; background: rgba(139,42,42,.3);
  border: 1px solid rgba(200,92,92,.45); border-radius: 99px; padding: 3px 8px;
}
.delivery-hint { font-size: .78rem; line-height: 1.55; }

.pay-row { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.btn-pay {
  background: linear-gradient(180deg, var(--copper-bright), #a5652a);
  color: #241505; font-size: 1.1rem; padding: 16px 24px; border: 1px solid #e8bd85;
  box-shadow: 0 6px 20px rgba(201, 138, 75, 0.25);
}
.btn-pay:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
.btn-pay:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(.2); }
.btn-pay.is-loading:disabled { cursor: wait; opacity: .7; }
.pay-methods { text-align: center; font-weight: 700; font-size: 0.85rem; color: var(--parchment); }
.secure-note { text-align: center; font-size: 0.75rem; color: var(--muted); }
.account-checkout-note {
  text-align: center; font-size: .76rem; color: var(--muted);
  border-top: 1px solid var(--border); padding-top: 9px; margin-top: 2px;
}
.account-checkout-note a { font-weight: 800; }
.form-error { display: none; text-align: center; color: #ffb4b4; background: rgba(139,42,42,.25); border: 1px solid var(--red); border-radius: 10px; padding: 10px 14px; font-weight: 700; font-size: .9rem; }
.form-error.show { display: block; }

/* ---------- about / footer ---------- */
.about-grid { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 26px; align-items: start; }
.about-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); }
.about-text { color: var(--text); max-width: 720px; white-space: pre-line; font-size: 0.95rem; }
@media (max-width: 720px) { .about-grid { grid-template-columns: 1fr; } }
.site-footer { margin-top: 48px; border-top: 1px solid var(--border); padding: 26px 0 34px; text-align: center; color: var(--muted); font-size: 0.85rem; }
.footer-contacts { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; margin: 10px 0; }
.footer-contacts a { font-weight: 700; }
.footer-contact-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 16px 0; }
.footer-contact-actions .footer-contacts { align-items: center; margin: 0; }
.footer-contact-actions .btn { min-height: 44px; }
.footer-contact-actions > .btn { width: auto; min-width: 220px; }
@media (max-width: 480px) {
  .footer-contact-actions > .btn, .footer-contact-actions .footer-contacts, .footer-contact-actions .footer-contacts .btn { width: 100%; }
}
.footer-links { margin: 8px 0 2px; }
.footer-links a { color: var(--muted); font-size: 0.82rem; text-decoration: underline; }
.footer-links a:hover { color: var(--copper); }
/* бейджи платёжных систем (требование договора эквайринга) */
.pay-badges { display: flex; gap: 10px; justify-content: center; align-items: center; margin: 10px 0 4px; }
.pay-badge { display: inline-flex; align-items: center; gap: 4px; background: #f6f4ef; border-radius: 6px; padding: 4px 10px; font-size: 0.72rem; font-weight: 800; letter-spacing: .02em; }
.badge-visa { color: #1a1f71; font-style: italic; font-family: Georgia, serif; }
.badge-mc { color: #222; }
.badge-mc i { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.badge-mc i:first-child { background: #eb001b; margin-right: -9px; }
.badge-mc i + i { background: #f79e1b; opacity: .9; }
.badge-mc b { font-weight: 700; font-size: 0.7rem; text-transform: lowercase; }
.badge-prostir { color: #00494e; }
.footer-brand { font-family: 'Russo One', sans-serif; color: var(--copper); margin-top: 6px; letter-spacing: .06em; }

/* ---------- receipt page ---------- */
.receipt-wrap { max-width: 640px; margin: 30px auto 60px; padding: 0 16px; }
.status-banner { border-radius: var(--radius); padding: 14px 18px; text-align: center; font-weight: 800; font-size: 1.05rem; margin-bottom: 18px; border: 1px solid; }
.status-banner.paid, .status-banner.completed { background: rgba(127, 176, 105, .12); border-color: var(--ok); color: #b7e0a5; }
.status-banner.pending, .status-banner.processing { background: rgba(217, 162, 75, .1); border-color: var(--warn); color: #f0cd93; }
.status-banner.declined, .status-banner.expired, .status-banner.payment_error { background: rgba(200, 92, 92, .12); border-color: var(--bad); color: #f0b0b0; }
.status-banner.refunded, .status-banner.refund_processing { background: rgba(150,150,170,.1); border-color: #889; color: #ccd; }

.receipt {
  background: linear-gradient(180deg, #f4e9d3, #eaddc2);
  color: #2c2415; border-radius: 12px; padding: 26px 26px 20px;
  box-shadow: var(--shadow); position: relative;
  font-size: 0.95rem;
}
.receipt::before, .receipt::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background-image: radial-gradient(circle at 8px -2px, transparent 7px, #f4e9d3 8px);
  background-size: 16px 10px; top: -8px; transform: rotate(180deg);
}
.receipt::after { top: auto; bottom: -8px; transform: none; background-image: radial-gradient(circle at 8px -2px, transparent 7px, #eaddc2 8px); }
.receipt-head { display: flex; align-items: center; gap: 14px; border-bottom: 2px solid #2c2415; padding-bottom: 14px; margin-bottom: 14px; }
.receipt-head img { width: 58px; height: 58px; object-fit: contain; }
.receipt-head .r-brand { font-family: 'Russo One', sans-serif; font-size: 1.3rem; color: #3d2c12; }
.receipt-head .r-sub { font-size: 0.72rem; letter-spacing: .1em; text-transform: uppercase; color: #7a6640; }
.receipt-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; color: #5c4d30; margin-bottom: 12px; }
.receipt-meta b { color: #2c2415; }
.receipt table { width: 100%; border-collapse: collapse; margin: 6px 0 10px; }
.receipt th { text-align: left; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .06em; color: #7a6640; border-bottom: 1px solid #b8a582; padding: 5px 4px; }
.receipt td { padding: 7px 4px; border-bottom: 1px dashed #c9b590; }
.receipt td.num, .receipt th.num { text-align: right; white-space: nowrap; }
.receipt-summary-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: .85rem; color: #5c4d30; }
.receipt-summary-line small { color: #7a6640; font-size: .7rem; }
.receipt-discount { color: #42713a; font-weight: 800; }
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; font-family: 'Russo One', sans-serif; font-size: 1.25rem; color: #3d2c12; border-top: 2px solid #2c2415; padding-top: 10px; margin-top: 4px; }
.receipt-charged { text-align: right; font-size: 0.82rem; color: #7a6640; margin-top: 4px; }
.receipt-charged b { color: #3d2c12; }
.receipt-contact { margin-top: 12px; font-size: 0.85rem; color: #5c4d30; }
.receipt-contact b { color: #2c2415; }
.receipt-status-line { margin-top: 8px; font-weight: 800; }
.receipt-footer-note { margin-top: 14px; text-align: center; font-size: 0.8rem; color: #7a6640; font-style: italic; }

.receipt-note { margin: 18px 0; text-align: center; color: var(--text); font-size: 0.95rem; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; }
.receipt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.btn-ghost { background: var(--panel-2); color: var(--parchment); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--copper); color: var(--copper-bright); }
.btn-tg { background: linear-gradient(180deg, #2f9fd8, #1e7bb0); color: #fff; border: 1px solid #57bce8; grid-column: 1 / -1; }
.btn-tg:hover { filter: brightness(1.1); }
.center-link { display: block; text-align: center; margin-top: 20px; color: var(--muted); }

/* ---------- client account ---------- */
.account-wrap { max-width: 900px; margin: 32px auto 70px; padding: 0 16px; }
.account-hero { margin-bottom: 22px; }
.account-hero h1 { color: var(--parchment); font-size: clamp(1.45rem, 4vw, 2rem); margin-bottom: 5px; }
.account-hero p { color: var(--muted); }
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.auth-card, .account-panel {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px;
}
.auth-card h2, .account-panel h2 { color: var(--parchment); font-size: 1.05rem; margin-bottom: 14px; }
.auth-card form { display: flex; flex-direction: column; gap: 11px; }
.auth-card .btn { margin-top: 4px; }
.auth-message { display: none; border-radius: 9px; padding: 9px 12px; font-size: .82rem; font-weight: 700; }
.auth-message.show { display: block; }
.auth-message.error { color: #ffb4b4; border: 1px solid var(--red); background: rgba(139,42,42,.2); }
.account-toolbar {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  margin-bottom: 18px; padding: 12px 15px; border-radius: 12px;
  background: var(--panel); border: 1px solid var(--border);
}
.account-email { color: var(--parchment); font-weight: 800; overflow-wrap: anywhere; }
.account-stack { display: flex; flex-direction: column; gap: 18px; }
.account-cart-list { display: flex; flex-direction: column; gap: 8px; }
.account-cart-row, .account-order {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 11px; padding: 12px 14px;
}
.account-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; }
.account-cart-row b { color: var(--copper-bright); white-space: nowrap; }
.account-panel-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 13px; }
.account-panel-head h2 { margin-bottom: 0; }
.order-group + .order-group { margin-top: 20px; }
.order-group h3 { color: var(--copper); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 9px; }
.account-order + .account-order { margin-top: 9px; }
.account-order-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.account-order-ref { color: var(--parchment); font-weight: 800; }
.account-order-date { color: var(--muted); font-size: .75rem; }
.account-order-total { margin-left: auto; color: var(--copper-bright); font-weight: 800; }
.account-order-items { color: var(--muted); font-size: .82rem; margin: 8px 0; }
.account-order-discount { color: #b7e0a5; font-size: .78rem; font-weight: 800; margin: -3px 0 8px; }
.account-order-meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.account-order-shipping { color: var(--muted); font-size: .76rem; }
.account-empty { color: var(--muted); text-align: center; padding: 16px 8px; }
.account-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 18px; }
.status-pill { border: 1px solid; border-radius: 99px; padding: 3px 8px; font-size: .69rem; font-weight: 800; }
.status-pill.paid, .status-pill.completed { color: #b7e0a5; border-color: var(--ok); background: rgba(127,176,105,.1); }
.status-pill.pending, .status-pill.processing { color: #f0cd93; border-color: var(--warn); background: rgba(217,162,75,.1); }
.status-pill.declined, .status-pill.expired, .status-pill.payment_error { color: #f0b0b0; border-color: var(--bad); background: rgba(200,92,92,.1); }
.status-pill.refunded, .status-pill.refund_processing { color: #ccd; border-color: #889; background: rgba(150,150,170,.08); }

/* ---------- misc ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--panel-2); color: var(--parchment); border: 1px solid var(--copper);
  padding: 12px 22px; border-radius: 12px; font-weight: 700; opacity: 0; transition: all .3s; z-index: 100;
  box-shadow: var(--shadow);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

@media (max-width: 640px) {
  .combo-offer { grid-template-columns: 1fr; gap: 16px; padding: 17px; }
  .combo-action { min-width: 0; text-align: left; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .receipt-actions { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .hero-inner { padding: 40px 0 44px; }
  .header-inner { flex-wrap: wrap; }
  .header-actions { margin-left: auto; order: 2; }
  .lang-switch { order: 3; margin-left: auto; }
  .header-action > span:not(:first-child) { display: none; }
  .product-actions { grid-template-columns: 1fr; }
  .order-item { flex-wrap: wrap; }
  .order-item .oi-name { flex-basis: calc(100% - 40px); }
  .order-item .oi-sum { margin-left: auto; }
  .checkout-head { flex-direction: column; }
  .checkout-head .section-title { width: 100%; margin-bottom: 6px; }
  .auth-grid { grid-template-columns: 1fr; }
  .account-toolbar { align-items: flex-start; flex-direction: column; }
  .account-order-total { width: 100%; margin-left: 0; }
}

@media (max-width: 420px) {
  .receipt { padding: 20px 12px 16px; font-size: .86rem; }
  .receipt th, .receipt td { padding-left: 2px; padding-right: 2px; }
  .receipt th { letter-spacing: 0; }
}

@media print {
  body { background: #fff; }
  .site-header, .status-banner, .receipt-note, .receipt-actions, .center-link, .test-banner, .toast { display: none !important; }
  .receipt { box-shadow: none; }
  .receipt-wrap { margin: 0 auto; }
  .receipt .receipt-note { display: block !important; }
}

/* The saved receipt is light paper: keep fulfilment information readable in PNG/PDF. */
.receipt .receipt-note, .receipt .dispatch-info {
  background: rgba(105, 75, 35, .06);
  color: #3d3020;
  border: 1px solid rgba(105, 75, 35, .22);
  box-shadow: none;
}
.receipt .dispatch-info p, .receipt .dispatch-info strong { color: #3d3020; }
