/* Aleksani Handmade, тема "Мъх и корк". Layout: светли секции на ширина до 1200px, тъмен футър. */
:root {
  --bg: #f1ede4;
  --card: #fbf8f1;
  --band: #e3e7d6;
  --ink: #2f3a2d;
  --muted: #4d5a49;
  --moss: #4f6b45;
  --moss-dark: #3d5535;
  --gold: #c9a56a;
  --gold-soft: #e0c48e;
  --pink: #d9a6b6;
  --line: #ddd8c8;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Nunito", "Segoe UI", system-ui, sans-serif;
  --script: "Marck Script", "Segoe Script", cursive;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.55 var(--sans); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--moss); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.wrap.tight { padding-top: 28px; padding-bottom: 28px; }
.muted { color: var(--muted); }
.script { font-family: var(--script); font-weight: 400; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }

/* Header */
.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { padding: 12px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 26px; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand span { font-family: var(--script); font-weight: 400; font-size: 1.15em; color: var(--moss); }

.cart-link { background: var(--ink); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; flex: none; }
.cart-link b { background: var(--gold-soft); color: var(--ink); border-radius: 999px; min-width: 22px; padding: 0 6px; text-align: center; font-size: .85rem; }
.brand { white-space: nowrap; }
.nav { display: flex; align-items: center; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-weight: 600; font-size: 1rem; }
.nav-links a { color: var(--ink); text-decoration: none; padding-bottom: 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a[aria-current="page"] { border-bottom-color: var(--moss); }
.mobile-only, .menu-btn, .nav-scrim { display: none; }

/* Mobile menu: burger + slide-in panel */
@media (max-width: 1100px) {
  .top .wrap { gap: 12px; flex-wrap: nowrap; }
  .menu-btn { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); cursor: pointer; flex: none; }
  .bars { display: grid; gap: 5px; width: 22px; }
  .bars i { display: block; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease, width .25s ease; }
  .bars i:nth-child(2) { width: 70%; justify-self: end; }
  .menu-btn:hover .bars i:nth-child(2) { width: 100%; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(360px, 88vw); background: var(--card); flex-direction: column; align-items: stretch; padding: 18px 22px 26px; box-shadow: -18px 0 40px rgba(47,58,45,.18); transform: translateX(105%); visibility: hidden; transition: transform .3s ease, visibility 0s linear .3s; overflow-y: auto; }
  .nav.open { transform: none; visibility: visible; transition: transform .3s ease; }
  .mobile-only { display: flex; }
  .nav-head { align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .nav-head .brand { margin: 0; font-size: 1.3rem; }
  .nav-close { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; position: relative; }
  .nav-close span::before, .nav-close span::after { content: ""; position: absolute; left: 11px; right: 11px; top: 50%; height: 2.5px; border-radius: 2px; background: var(--ink); }
  .nav-close span::before { transform: rotate(45deg); }
  .nav-close span::after { transform: rotate(-45deg); }
  .nav-links { flex-direction: column; flex-wrap: nowrap; gap: 0; }
  .nav-links a { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; padding: 14px 4px 14px 14px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .nav-links a:hover { border-bottom-color: var(--line); background: var(--bg); }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--line); border-left-color: var(--moss); color: var(--moss); }
  .nav-foot { flex-direction: column; gap: 10px; margin-top: auto; padding-top: 24px; }
  .nav-foot .script { font-size: 1.7rem; color: var(--moss); text-align: center; margin-top: 6px; }
  .nav-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(47,58,45,.45); opacity: 0; transition: opacity .3s ease; }
  .nav-scrim.show { opacity: 1; }
  .nav-scrim[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 420px) {
  .top .wrap { padding-left: 16px; padding-right: 16px; gap: 8px; }
  .brand { font-size: 1.12rem; }
  .cart-link { padding: 7px 10px; font-size: .88rem; gap: 6px; }
  .menu-btn { width: 42px; height: 42px; }
}

/* Buttons */
.btn { display: inline-block; font: 700 1rem var(--sans); text-align: center; text-decoration: none; cursor: pointer; border-radius: 12px; padding: 12px 22px; border: 2px solid var(--moss); background: var(--moss); color: #fff; transition: background-color .2s ease, color .2s ease; }
.btn:hover { background: var(--moss-dark); border-color: var(--moss-dark); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.gold { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--ink); }
.btn.light { background: transparent; border-color: #f1ede4; color: #f1ede4; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero and bands */
.hero { background: var(--band); }
.hero .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.hero-text .script { font-size: 2.1rem; color: var(--moss); }
.hero-text h1 { margin: 0; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 32em; margin: 0; }
.hero-art { flex: 1 1 300px; max-width: 460px; border-radius: 24px; overflow: hidden; }
.hero.dark { background: var(--ink); color: #f1ede4; }
.hero.dark .script { color: var(--gold-soft); }
.hero.dark .lead { color: #cfd6c4; }
.band { background: var(--band); }
.pagehead { background: var(--band); }
.pagehead .wrap { padding-top: 34px; padding-bottom: 34px; }
.crumb { color: var(--muted); font-size: .95rem; margin-bottom: 6px; }
.crumb a { color: var(--muted); }
.pagehead h1 { margin: 0 0 6px; }

/* Grids and cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.tile, .card, .box { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.tile { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--moss); }
.tile div { padding: 14px 16px; }
.tile strong { font-family: var(--serif); font-size: 1.2rem; display: block; }
.tile span { color: var(--muted); font-size: .95rem; }
.card { display: flex; flex-direction: column; }
.card-img { aspect-ratio: 4 / 3; background: var(--band); overflow: hidden; }
.card-img svg, .card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-cat { margin: 0; font-size: .8rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.card-title { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; margin: 0; }
.card-desc { color: var(--muted); font-size: .95rem; margin: 0; flex: 1; }
.price { font-weight: 800; font-variant-numeric: tabular-nums; }
.box { padding: 18px; }
.box h3 { margin-bottom: 4px; }
.cols { display: flex; flex-wrap: wrap; gap: 18px; }
.cols > * { flex: 1 1 240px; }
.split { display: flex; flex-wrap: wrap; gap: 36px; align-items: center; }
.split > * { flex: 1 1 340px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { font: 700 .95rem var(--sans); border-radius: 999px; padding: 8px 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--moss); border-color: var(--moss); color: #fff; }
.notice { background: var(--card); border: 1px solid var(--line); border-left: 6px solid var(--gold); border-radius: 12px; padding: 14px 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 22px; counter-reset: s; }
.steps li { flex: 1 1 220px; display: flex; gap: 12px; counter-increment: s; }
.steps li::before { content: counter(s); flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-weight: 800; }
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 1rem; }
.sample { background: var(--band); border-radius: 18px; padding: 22px; display: flex; justify-content: center; }
.sample div { background: #fff; border-radius: 6px; padding: 22px; text-align: center; box-shadow: 0 8px 20px rgba(47,58,45,.12); width: 100%; max-width: 260px; }
.sample .script { font-size: 1.8rem; line-height: 1.2; display: block; }
.sample .script + .script { color: var(--ink); }
.sample .script:first-child { color: var(--moss); }
.faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq details p { margin: 8px 0 0; color: var(--muted); }

/* Forms */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label, fieldset legend { font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.pair { display: flex; flex-wrap: wrap; gap: 14px; }
.pair .field { flex: 1 1 200px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; cursor: pointer; }
.opt input { margin-top: 5px; }
.opt small { display: block; color: var(--muted); font-size: .93rem; }
.error { color: #9b2c1f; font-weight: 700; margin: 0; }
.hint { color: var(--muted); font-size: .93rem; margin: 0; }

/* Cart page */
.cart-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.cart-layout > .box:first-child { flex: 1 1 360px; }
.cart-layout > .box:last-child { flex: 1 1 420px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; }
.thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: var(--band); }
.thumb svg, .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cart-name { font-weight: 800; line-height: 1.25; }
.cart-sub { color: var(--muted); font-size: .93rem; font-variant-numeric: tabular-nums; }
.qty { display: flex; gap: 6px; align-items: center; }
.qty button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.qty span { min-width: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.total { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.paybox { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 18px; display: flex; gap: 14px; align-items: center; z-index: 40; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast a { color: var(--gold-soft); font-weight: 800; }
.toast[hidden] { display: none; }

/* Footer */
.foot { background: var(--ink); color: #f1ede4; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 28px; padding-top: 40px; padding-bottom: 20px; }
.foot .wrap > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 6px; }
.foot a { color: #f1ede4; text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot .script { font-size: 1.9rem; color: var(--gold-soft); }
.foot .small { max-width: 1200px; margin: 0 auto; padding: 0 24px 24px; color: #cfd6c4; font-size: .88rem; }

/* Legal text */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.6em; }
.legal li { margin-bottom: .4em; }
.fill { background: #fff3c4; padding: 0 4px; border-radius: 4px; }
@media (max-width: 340px) { .top .brand > span { display: none; } }

/* Christmas bar */
.xmas { background: var(--ink); color: #f1ede4; font-size: .93rem; }
.xmas[hidden] { display: none; }
.xmas .wrap { padding: 7px 24px; text-align: center; }
.xmas a { color: #f1ede4; text-decoration: none; }
.xmas a:hover { text-decoration: underline; }
.xmas strong { color: var(--gold-soft); }

/* Card links */
.card-img { display: block; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { text-decoration: underline; }
.budget { margin-top: -10px; }

/* Product page */
.pagehead.slim .wrap { padding-top: 14px; padding-bottom: 14px; }
.pagehead.slim .crumb { margin: 0; }
.product { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; }
.product-img { flex: 1 1 360px; max-width: 580px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--band); border: 1px solid var(--line); }
.product-img svg, .product-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.product-info h1 { margin: 0; }
.product-price { font-size: 1.5rem; font-weight: 800; margin: 0; font-variant-numeric: tabular-nums; }
.facts { list-style: none; padding: 16px 0 0; margin: 4px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); }
.facts strong { color: var(--ink); margin-right: 6px; }

/* Map */
.map-layout { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; }
.map { flex: 2 1 380px; min-height: 300px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); position: relative; background: #e9e4d6; }
.map-static, .map-static svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-layout > .box { flex: 1 1 280px; display: flex; flex-direction: column; justify-content: center; }

/* Account link in the header */
.nav-links a.nav-account { color: var(--moss); }
@media (min-width: 1101px) { .nav-links a.nav-account { border: 1.5px solid var(--moss); border-radius: 999px; padding: 4px 14px; } .nav-links a.nav-account:hover, .nav-links a.nav-account[aria-current="page"] { background: var(--moss); color: #fff; border-bottom-color: var(--moss); } }

/* Login */
.auth { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.auth > form { flex: 1 1 340px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .97rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--moss); }

/* Profile */
.profile-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.profile-head h1 { margin: 0; }
.profile-head p { margin: 4px 0 0; }
.profile-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.orders { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.orders > h2 { margin: 0; }
.profile-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.order-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.order-card header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.order-card h3 { margin: 0; font-variant-numeric: tabular-nums; }
.pill { border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 800; white-space: nowrap; }
.pill.ok { background: #dfe8d6; color: #2f4a28; }
.pill.wait { background: #f4e5c4; color: #6b4d12; }
.pill.done { background: #e4e1d8; color: #3f3d36; }
.pill.off { background: #f3dcd8; color: #8a2a1e; }
.table-wrap { overflow-x: auto; }
.order-card table { width: 100%; border-collapse: collapse; font-size: .97rem; }
.order-card th, .order-card td { text-align: left; padding: 7px 0; border-bottom: 1px solid var(--line); }
.order-card thead th { font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.order-card tfoot tr:last-child th { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 12px !important; }
.order-meta { margin: 0; display: grid; gap: 6px; }
.order-meta div { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.order-meta dt { font-weight: 800; }
.order-meta dt::after { content: ":"; }
.order-meta dd { margin: 0; color: var(--muted); }
.danger summary { font-weight: 800; cursor: pointer; }
.danger form { margin-top: 12px; }
.btn.warn { background: #9b2c1f; border-color: #9b2c1f; }
.btn.warn:hover { background: #7f2318; border-color: #7f2318; }
.order-done .box { border-left: 6px solid var(--moss); }
