/* ============================================================
   Детски дрехи EV — дизайн система
   Топла, светла палитра. Тъмна тема съзнателно не се поддържа:
   снимките на дрехи се четат най-добре върху кремав фон.
   ============================================================ */

:root {
  --cream:        #fdf9f3;
  --surface:      #ffffff;
  --sand:         #f6efe4;
  --border:       #ece1d3;
  --border-strong:#dccbb4;

  --ink:          #2c2622;
  --muted:        #857b70;
  --faint:        #a89c8e;

  --rose:         #de5d6b;
  --rose-dark:    #c44557;
  --rose-soft:    #fdeef0;

  --mint:         #3f8f7c;
  --mint-soft:    #e8f5f1;

  --sun:          #f0a830;
  --sun-soft:     #fdf1dc;
  --sun-ink:      #8a5e0c;

  --radius:       16px;
  --radius-sm:    12px;
  --radius-pill:  999px;

  --shadow:       0 1px 2px rgba(44,38,34,.04), 0 8px 24px -12px rgba(44,38,34,.12);
  --shadow-lift:  0 2px 4px rgba(44,38,34,.05), 0 16px 40px -16px rgba(44,38,34,.2);

  --font: "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Nunito", var(--font);

  --page: 1280px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.15;
  margin: 0;
}

h1 { font-size: clamp(1.85rem, 1.4rem + 1.8vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--rose-dark); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--rose); color: #fff; padding: .75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0; font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Оформление ---------- */
.container {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }

main { flex: 1; }

.section       { padding-block: 3.5rem; }
.section-tight { padding-block: 2.5rem; }

/* ---------- Помощни ---------- */
.muted   { color: var(--muted); }
.small   { font-size: .875rem; }
.tiny    { font-size: .78rem; }
.bold    { font-weight: 700; }
.center  { text-align: center; }
.nowrap  { white-space: nowrap; }
.hide    { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tabular { font-variant-numeric: tabular-nums; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }

/* ---------- Бутони ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: .7rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

.btn-primary   { background: var(--rose); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--rose-dark); color: #fff; }

.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--sand); color: var(--ink); }

.btn-ghost     { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sand); color: var(--ink); }

.btn-danger    { background: var(--surface); color: var(--rose-dark); border-color: rgba(222,93,107,.4); }
.btn-danger:hover { background: var(--rose-soft); color: var(--rose-dark); }

.btn-lg  { padding: .9rem 1.9rem; font-size: 1rem; }
.btn-sm  { padding: .45rem 1rem; font-size: .85rem; }
.btn-block { width: 100%; }

.btn .icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Значки ---------- */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  border-radius: var(--radius-pill);
  padding: .25rem .65rem;
  font-size: .75rem; font-weight: 800; line-height: 1.4;
  background: var(--sand); color: var(--muted);
}
.badge-rose    { background: var(--rose); color: #fff; }
.badge-mint    { background: var(--mint-soft); color: var(--mint); }
.badge-sun     { background: var(--sun-soft); color: var(--sun-ink); }
.badge-outline { background: var(--surface); color: var(--muted); border: 1px solid var(--border); }

/* ---------- Карти ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.card-title { margin-bottom: 1rem; }

/* ---------- Съобщения ---------- */
.alert {
  display: flex; gap: .75rem; align-items: flex-start;
  border-radius: var(--radius-sm);
  padding: .9rem 1.1rem;
  font-size: .92rem; font-weight: 600;
  border: 1px solid transparent;
}
.alert-success { background: var(--mint-soft); color: var(--mint);      border-color: rgba(63,143,124,.25); }
.alert-error   { background: var(--rose-soft); color: var(--rose-dark); border-color: rgba(222,93,107,.3); }
.alert-info    { background: var(--sun-soft);  color: var(--sun-ink);   border-color: rgba(240,168,48,.3); }
.alert + .alert { margin-top: .6rem; }
.alert .icon { width: 1.2rem; height: 1.2rem; flex: none; margin-top: .1rem; }

/* ---------- Празни състояния ---------- */
.empty {
  border: 1px dashed var(--border-strong);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty p { color: var(--muted); margin-top: .5rem; }
.empty .btn { margin-top: 1.5rem; }

/* ============================================================
   ХЕДЪР
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253,249,243,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: .75rem;
  min-height: 72px; padding-block: .75rem;
}
.logo { display: flex; align-items: center; gap: .65rem; flex: none; }
.logo:hover { color: inherit; }
.logo-mark {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 14px;
  background: var(--rose); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem;
}
.logo-text { display: none; line-height: 1.2; }
@media (min-width: 480px) { .logo-text { display: block; } }
.logo-name { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; }
.logo-city { font-size: .7rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.main-nav { display: none; gap: .15rem; margin-left: .75rem; }
@media (min-width: 1100px) { .main-nav { display: flex; } }
.main-nav a {
  padding: .5rem .8rem; border-radius: var(--radius-pill);
  font-size: .92rem; font-weight: 700;
  transition: background-color .15s, color .15s;
}
.main-nav a:hover { background: var(--sand); color: var(--ink); }
.main-nav a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-dark); }

.header-search { display: none; position: relative; margin-left: auto; }
@media (min-width: 860px) { .header-search { display: block; } }
.header-search input {
  width: 200px; height: 42px;
  padding: 0 1rem 0 2.4rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); font-size: .9rem;
}
.header-search input:focus { border-color: var(--rose); outline: none; box-shadow: 0 0 0 3px rgba(222,93,107,.15); }
.header-search .icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--faint); pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
@media (min-width: 860px) { .header-actions { margin-left: .5rem; } }

.icon-btn {
  position: relative;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.icon-btn:hover { border-color: var(--border-strong); color: var(--ink); }
.icon-btn .icon { width: 1.25rem; height: 1.25rem; }

.cart-count {
  position: absolute; top: -3px; right: -3px;
  min-width: 20px; height: 20px; padding: 0 5px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  background: var(--rose); color: #fff;
  font-size: .7rem; font-weight: 800;
}

.menu-toggle { display: grid; }
@media (min-width: 1100px) { .menu-toggle { display: none; } }

.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--cream); }
.mobile-nav.open { display: block; }
@media (min-width: 1100px) { .mobile-nav.open { display: none; } }
.mobile-nav .container { padding-block: 1rem; display: flex; flex-direction: column; gap: .15rem; }
.mobile-nav a {
  padding: .7rem .9rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem;
}
.mobile-nav a:hover { background: var(--sand); color: var(--ink); }
.mobile-nav a[aria-current="page"] { background: var(--rose-soft); color: var(--rose-dark); }
.mobile-search { position: relative; margin-bottom: .5rem; }
.mobile-search input {
  width: 100%; height: 44px; padding: 0 1rem 0 2.4rem;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface);
}
.mobile-search .icon {
  position: absolute; left: .85rem; top: 50%; transform: translateY(-50%);
  width: 1rem; height: 1rem; color: var(--faint);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(135deg, var(--rose-soft) 0%, var(--cream) 45%, var(--mint-soft) 100%);
}
.hero::after {
  content: ""; position: absolute; top: -120px; right: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: rgba(222,93,107,.10); filter: blur(60px); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding-block: 4rem; max-width: 620px; }
@media (min-width: 768px) { .hero-inner { padding-block: 6rem; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.8); border: 1px solid var(--border);
  border-radius: var(--radius-pill); padding: .4rem 1rem;
  font-size: .85rem; font-weight: 700; color: var(--rose-dark);
}
.hero-eyebrow .icon { width: 1rem; height: 1rem; }
.hero h1 { margin-top: 1.25rem; line-height: 1.05; }
.hero-lead { margin-top: 1.25rem; font-size: 1.1rem; color: var(--muted); max-width: 34rem; }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- Лента с предимства ---------- */
.perks { background: var(--surface); border-bottom: 1px solid var(--border); }
.perks-grid {
  display: grid; gap: 1.5rem; padding-block: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .perks-grid { grid-template-columns: repeat(3, 1fr); } }
.perk { display: flex; gap: .9rem; }
.perk-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--rose-soft); color: var(--rose-dark);
}
.perk-icon .icon { width: 1.25rem; height: 1.25rem; }
.perk h3 { font-size: .95rem; }
.perk p  { font-size: .875rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }

/* ============================================================
   ПРОДУКТИ
   ============================================================ */
.product-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 768px)  { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; } }

.product-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover { box-shadow: var(--shadow-lift); color: inherit; }

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--sand);
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product-card:hover .product-media img { transform: scale(1.04); }

.product-flags {
  position: absolute; top: .75rem; left: .75rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
}

.product-body { padding: .95rem 1rem 1.1rem; }
.product-name {
  font-family: var(--font-display); font-weight: 700;
  font-size: .95rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card:hover .product-name { color: var(--rose-dark); }

.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.price {
  font-family: var(--font-display); font-weight: 800;
  font-size: 1.1rem; color: var(--ink);
}
.price-old { font-size: .875rem; color: var(--faint); text-decoration: line-through; }
.price-bgn { font-size: .75rem; color: var(--muted); margin-top: .1rem; }
.product-sizes { margin-top: .6rem; font-size: .75rem; color: var(--muted); }

/* ---------- Филтри ---------- */
.filters { display: flex; flex-direction: column; gap: .9rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.chip {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--ink);
  padding: .45rem .95rem; font-size: .875rem; font-weight: 700;
  cursor: pointer; transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--border-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip.active {
  background: var(--rose); border-color: var(--rose); color: #fff;
}
.sort-control { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .875rem; }
.sort-control select {
  height: 40px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); padding: 0 2rem 0 1rem; font-weight: 700; font-size: .875rem;
  cursor: pointer;
}

/* ---------- Троха ---------- */
.breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  font-size: .85rem; color: var(--muted); margin-bottom: 1.5rem;
}
.breadcrumb .sep { color: var(--faint); }
.breadcrumb .current { color: var(--ink); font-weight: 700; }

/* ---------- Страница на продукт ---------- */
.product-layout {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
}

.gallery-main {
  position: relative; aspect-ratio: 4 / 5;
  border-radius: var(--radius); overflow: hidden; background: var(--sand);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: .6rem; margin-top: .75rem;
}
.gallery-thumb {
  position: relative; aspect-ratio: 1; padding: 0; cursor: pointer;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  overflow: hidden; background: var(--sand);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb[aria-current="true"] { border-color: var(--rose); }
.gallery-thumb:hover { border-color: var(--border-strong); }

.product-detail h1 { margin-top: .75rem; }
.product-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.product-price-row .price { font-size: 1.9rem; }
.product-price-row .price-old { font-size: 1.1rem; }
.product-description {
  margin-top: 1.5rem; font-size: .97rem; line-height: 1.7;
  color: rgba(44,38,34,.85); white-space: pre-line;
}

/* ---------- Избор на размер ---------- */
.size-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .65rem; }
.size-option {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 56px; height: 46px; padding: 0 .85rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); font-weight: 800; font-size: .9rem;
  cursor: pointer; user-select: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.size-option:hover:not(.is-disabled) { border-color: var(--border-strong); }
.size-option:has(input:checked) {
  border-color: var(--rose); background: var(--rose-soft); color: var(--rose-dark);
}
.size-option:has(input:focus-visible) {
  outline: 2px solid var(--rose); outline-offset: 2px;
}
.size-option.is-disabled {
  background: var(--sand); color: var(--faint);
  text-decoration: line-through; cursor: not-allowed; border-color: var(--border);
}

.qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
  background: var(--surface); overflow: hidden;
}
.qty-control button {
  width: 42px; height: 42px; border: 0; background: transparent;
  font-size: 1.2rem; font-weight: 800; cursor: pointer; line-height: 1;
}
.qty-control button:disabled { color: var(--faint); cursor: not-allowed; }
.qty-control .qty-value {
  min-width: 40px; text-align: center; font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.buy-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.buy-row .btn { flex: 1 1 220px; }

.assurances { display: grid; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .assurances { grid-template-columns: 1fr 1fr; } }
.assurance { display: flex; gap: .8rem; }
.assurance .icon { width: 1.25rem; height: 1.25rem; color: var(--rose); flex: none; margin-top: .15rem; }
.assurance strong { display: block; font-size: .9rem; }
.assurance span { font-size: .85rem; color: var(--muted); }

/* ============================================================
   КОЛИЧКА И ПОРЪЧКА
   ============================================================ */
.checkout-layout {
  display: grid; gap: 2rem; align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 1024px) {
  .checkout-layout { grid-template-columns: minmax(0,1fr) 22rem; }
}

.cart-lines { display: flex; flex-direction: column; gap: .75rem; list-style: none; }
.cart-line {
  display: flex; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .85rem;
}
.cart-line-img {
  width: 96px; height: 96px; flex: none;
  border-radius: var(--radius-sm); overflow: hidden; background: var(--sand);
}
.cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.cart-line-body { flex: 1; min-width: 0; }
.cart-line-name {
  font-weight: 700; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cart-line-meta { font-size: .875rem; color: var(--muted); margin-top: .15rem; }
.cart-line-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; margin-top: .65rem; }
.cart-line-total { text-align: right; flex: none; }
.cart-line-total .price { font-size: 1rem; }

.link-danger {
  display: inline-flex; align-items: center; gap: .35rem;
  background: none; border: 0; padding: 0; cursor: pointer;
  font-size: .875rem; color: var(--muted);
}
.link-danger:hover { color: var(--rose-dark); }
.link-danger .icon { width: 1rem; height: 1rem; }

.summary { position: sticky; top: 96px; }
.summary dl { margin: 1rem 0 0; display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; }
.summary .row { display: flex; justify-content: space-between; gap: 1rem; }
.summary .row dt { color: var(--muted); }
.summary .row dd { margin: 0; font-weight: 700; }
.summary .row-discount dt, .summary .row-discount dd { color: var(--mint); font-weight: 700; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border);
}
.summary-total .label { font-weight: 800; }
.summary-total .amount { text-align: right; }
.summary-total .price { font-size: 1.3rem; }

.mini-lines { list-style: none; display: flex; flex-direction: column; gap: .75rem; margin-top: 1rem; max-height: 17rem; overflow-y: auto; }
.mini-line { display: flex; gap: .7rem; align-items: flex-start; }
.mini-line-img { width: 52px; height: 52px; flex: none; border-radius: 10px; overflow: hidden; background: var(--sand); }
.mini-line-img img { width: 100%; height: 100%; object-fit: cover; }
.mini-line-body { flex: 1; min-width: 0; font-size: .875rem; }
.mini-line-name { font-weight: 600; line-height: 1.3; }
.mini-line-meta { font-size: .75rem; color: var(--muted); margin-top: .1rem; }

.free-ship-note {
  margin-top: .85rem; border-radius: var(--radius-sm);
  background: var(--mint-soft); color: var(--mint);
  padding: .6rem .9rem; font-size: .85rem; font-weight: 700;
}

.coupon-box { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.coupon-label { display: flex; align-items: center; gap: .4rem; font-size: .875rem; font-weight: 700; margin-bottom: .5rem; }
.coupon-label .icon { width: 1rem; height: 1rem; color: var(--rose); }
.coupon-row { display: flex; gap: .5rem; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; }

/* ---------- Стъпки на поръчката ---------- */
.checkout-step { margin-bottom: 1.5rem; }
.checkout-step h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }

.delivery-grid { display: grid; gap: .65rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .delivery-grid { grid-template-columns: 1fr 1fr; } }
.delivery-option {
  display: flex; align-items: center; gap: .75rem;
  border: 2px solid var(--border); border-radius: var(--radius-sm);
  padding: .85rem; cursor: pointer; font-size: .9rem; font-weight: 700;
  transition: border-color .15s, background-color .15s;
}
.delivery-option:hover { border-color: var(--border-strong); }
.delivery-option:has(input:checked) { border-color: var(--rose); background: var(--rose-soft); }
.delivery-option input { accent-color: var(--rose); width: 1.05rem; height: 1.05rem; flex: none; }

.payment-note {
  border: 2px solid var(--rose); background: var(--rose-soft);
  border-radius: var(--radius-sm); padding: 1rem;
}
.payment-note strong { display: block; font-size: .9rem; }
.payment-note p { font-size: .875rem; color: var(--muted); margin-top: .3rem; }

/* ---------- Потвърждение ---------- */
.done-wrap { max-width: 36rem; margin-inline: auto; text-align: center; padding-block: 4rem; }
.done-icon {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--mint-soft); color: var(--mint);
}
.done-icon .icon { width: 34px; height: 34px; }
.order-number { font-family: var(--font-display); font-weight: 800; color: var(--rose-dark); }
.next-steps { text-align: left; margin-top: 2rem; }
.next-steps ol { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-top: .75rem; font-size: .92rem; }
.next-steps li { display: flex; gap: .6rem; }
.next-steps .num {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--rose-soft); color: var(--rose-dark);
  font-size: .75rem; font-weight: 800;
}

/* ============================================================
   ФОРМИ
   ============================================================ */
.field { margin-bottom: 1.1rem; }
.field:last-child { margin-bottom: 0; }
.field label, .field-label {
  display: block; font-size: .875rem; font-weight: 700; margin-bottom: .4rem;
}
.field .req { color: var(--rose); }
.field .hint { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; margin-top: -.2rem; margin-bottom: .4rem; }

.input, input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: .65rem .9rem;
  font-size: .95rem;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 7rem; resize: vertical; }
select { cursor: pointer; }

.input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--rose);
  box-shadow: 0 0 0 3px rgba(222,93,107,.18);
}
input:disabled, select:disabled, textarea:disabled { background: var(--sand); color: var(--muted); }
input::placeholder, textarea::placeholder { color: var(--faint); }

.field-error { display: block; margin-top: .35rem; font-size: .82rem; font-weight: 600; color: var(--rose-dark); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--rose); }

.form-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .form-grid-2 { grid-template-columns: 1fr 1fr; }
  .form-grid-3 { grid-template-columns: repeat(3, 1fr); }
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
}

.checkbox-row { display: flex; align-items: flex-start; gap: .6rem; margin-bottom: .8rem; }
.checkbox-row input { width: 1.1rem; height: 1.1rem; accent-color: var(--rose); flex: none; margin-top: .2rem; }
.checkbox-row label { margin: 0; font-weight: 600; font-size: .9rem; }
.checkbox-row .hint { margin: .1rem 0 0; }

/* ============================================================
   ТЕКСТОВИ СТРАНИЦИ
   ============================================================ */
.prose { max-width: 46rem; margin-inline: auto; }
.prose .lead { font-size: 1.1rem; color: var(--muted); margin-top: .85rem; }
.prose h2 { font-size: 1.25rem; margin-top: 2.25rem; margin-bottom: .5rem; }
.prose p { margin-top: .75rem; line-height: 1.7; color: rgba(44,38,34,.85); }
.prose ul { margin-top: .75rem; padding-left: 1.25rem; list-style: disc; }
.prose li { margin-top: .35rem; line-height: 1.6; color: rgba(44,38,34,.85); }
.prose strong { color: var(--ink); }

.contact-grid { display: grid; gap: .75rem; margin-top: 2rem; }
@media (min-width: 640px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-card { display: flex; gap: .9rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.contact-card:hover { border-color: var(--rose); color: inherit; }
.contact-icon {
  display: grid; place-items: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--rose-soft); color: var(--rose-dark);
}
.contact-icon .icon { width: 1.2rem; height: 1.2rem; }
.contact-card .label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.contact-card .value { font-weight: 700; margin-top: .15rem; word-break: break-word; white-space: pre-line; }

/* ============================================================
   ФУТЪР
   ============================================================ */
.site-footer { margin-top: 4rem; border-top: 1px solid var(--border); background: var(--sand); }
.footer-grid {
  display: grid; gap: 2.5rem; padding-block: 3rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-about p { margin-top: .85rem; font-size: .9rem; color: var(--muted); line-height: 1.6; }
.footer-fb { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-size: .875rem; font-weight: 700; color: var(--rose-dark); }
.footer-fb:hover { text-decoration: underline; }
.footer-fb .icon { width: 1.1rem; height: 1.1rem; }
.footer-col h3 { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.footer-col ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.footer-col a, .footer-col li { font-size: .9rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { width: 1rem; height: 1rem; color: var(--rose); flex: none; margin-top: .28rem; }
.footer-contact span { white-space: pre-line; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: space-between;
  padding-top: 1.5rem; margin-top: 2rem;
  border-top: 1px solid var(--border-strong);
  font-size: .78rem; color: var(--muted);
}

/* ============================================================
   АДМИНИСТРАЦИЯ
   ============================================================ */
.admin-body { background: var(--sand); }

.admin-shell { display: flex; min-height: 100vh; }

.admin-sidebar {
  width: 260px; flex: none;
  background: var(--ink); color: #f5efe8;
  display: none; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
@media (min-width: 900px) { .admin-sidebar { display: flex; } }
.admin-sidebar.open {
  display: flex; position: fixed; inset: 0 auto 0 0; z-index: 60;
  box-shadow: 0 0 0 100vw rgba(0,0,0,.4);
}

.admin-brand { display: flex; align-items: center; gap: .7rem; padding: 1.35rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.admin-brand .logo-mark { width: 38px; height: 38px; border-radius: 12px; font-size: 1rem; }
.admin-brand-text { font-family: var(--font-display); font-weight: 800; font-size: .95rem; }
.admin-brand-sub { font-size: .72rem; color: rgba(245,239,232,.6); }

.admin-nav { flex: 1; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; }
.admin-nav a {
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem .8rem; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 700; color: rgba(245,239,232,.75);
  transition: background-color .15s, color .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-nav a[aria-current="page"] { background: var(--rose); color: #fff; }
.admin-nav .icon { width: 1.15rem; height: 1.15rem; flex: none; }
.admin-nav .pill {
  margin-left: auto; background: var(--rose); color: #fff;
  border-radius: var(--radius-pill); padding: .05rem .45rem;
  font-size: .7rem; font-weight: 800;
}
.admin-nav a[aria-current="page"] .pill { background: rgba(255,255,255,.25); }

.admin-sidebar-foot { padding: 1rem .75rem; border-top: 1px solid rgba(255,255,255,.1); }
.admin-user { font-size: .8rem; color: rgba(245,239,232,.6); padding: 0 .8rem .6rem; word-break: break-all; }
.admin-signout {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem .8rem; border: 0; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); color: #f5efe8;
  font-size: .875rem; font-weight: 700; cursor: pointer;
}
.admin-signout:hover { background: rgba(255,255,255,.16); }
.admin-signout .icon { width: 1.1rem; height: 1.1rem; }

.admin-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.admin-topbar {
  display: flex; align-items: center; gap: .75rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: .85rem 1.25rem; position: sticky; top: 0; z-index: 30;
}
.admin-topbar .icon-btn { width: 40px; height: 40px; }
@media (min-width: 900px) { .admin-menu-toggle { display: none; } }
.admin-topbar h1 { font-size: 1.15rem; }
.admin-topbar .spacer { margin-left: auto; }

.admin-content { padding: 1.5rem 1.25rem 4rem; }
@media (min-width: 900px) { .admin-content { padding: 2rem 2rem 4rem; } }

.admin-page-head {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-page-head .spacer { margin-left: auto; }
.admin-page-head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }

/* ---------- Табло ---------- */
.stat-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.15rem 1.25rem;
}
.stat .label { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat .value { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; margin-top: .35rem; line-height: 1.1; }
.stat .sub { font-size: .78rem; color: var(--muted); margin-top: .2rem; }
.stat-accent { border-color: var(--rose); background: var(--rose-soft); }

/* ---------- Таблици ---------- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow-x: auto;
}
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 640px; }
table.data th, table.data td { padding: .8rem 1rem; text-align: left; vertical-align: middle; }
table.data thead th {
  background: var(--sand); font-size: .72rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  white-space: nowrap; border-bottom: 1px solid var(--border);
}
table.data tbody tr + tr { border-top: 1px solid var(--border); }
table.data tbody tr:hover { background: rgba(246,239,228,.5); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .actions .btn + .btn, table.data .actions form { display: inline-block; margin-left: .35rem; }

.row-thumb {
  width: 52px; height: 52px; border-radius: 10px;
  object-fit: cover; background: var(--sand); flex: none;
}
.cell-product { display: flex; align-items: center; gap: .75rem; min-width: 220px; }
.cell-product .name { font-weight: 700; line-height: 1.3; }
.cell-product .meta { font-size: .78rem; color: var(--muted); }

/* ---------- Форма за продукт ---------- */
.admin-form-layout { display: grid; gap: 1.25rem; align-items: start; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .admin-form-layout { grid-template-columns: minmax(0,1fr) 20rem; } }

.image-manager { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.image-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--sand); border: 1px solid var(--border); }
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.image-item .remove {
  position: absolute; top: .35rem; right: .35rem;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(44,38,34,.75); color: #fff;
  cursor: pointer; display: grid; place-items: center;
}
.image-item .remove:hover { background: var(--rose-dark); }
.image-item .remove .icon { width: .9rem; height: .9rem; }
.image-item .primary-flag {
  position: absolute; bottom: .35rem; left: .35rem;
  background: var(--rose); color: #fff;
  border-radius: var(--radius-pill); padding: .1rem .5rem;
  font-size: .65rem; font-weight: 800;
}

.dropzone {
  border: 2px dashed var(--border-strong); border-radius: var(--radius);
  background: var(--sand); padding: 1.75rem 1rem; text-align: center;
  cursor: pointer; transition: border-color .15s, background-color .15s;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--rose); background: var(--rose-soft); }
.dropzone .icon { width: 2rem; height: 2rem; color: var(--rose); margin: 0 auto .5rem; }
.dropzone strong { display: block; font-size: .92rem; }
.dropzone span { font-size: .8rem; color: var(--muted); }

.size-rows { display: flex; flex-direction: column; gap: .6rem; }
.size-row { display: grid; grid-template-columns: 1fr 7rem auto; gap: .5rem; align-items: center; }
.size-row .remove-size {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface);
  cursor: pointer; display: grid; place-items: center; color: var(--muted);
}
.size-row .remove-size:hover { border-color: var(--rose); color: var(--rose-dark); }
.size-row .remove-size .icon { width: 1rem; height: 1rem; }
.size-presets { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .6rem; }
.size-preset {
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); padding: .25rem .7rem;
  font-size: .8rem; font-weight: 700; cursor: pointer;
}
.size-preset:hover { border-color: var(--rose); color: var(--rose-dark); }

.sticky-actions {
  position: sticky; bottom: 0; z-index: 20;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: .9rem 1.1rem; margin-top: 1.25rem;
  box-shadow: var(--shadow-lift);
}
.sticky-actions .spacer { margin-left: auto; }

/* ---------- Статус на поръчка ---------- */
.status-new       { background: var(--rose);      color: #fff; }
.status-confirmed { background: var(--sun-soft);  color: var(--sun-ink); }
.status-shipped   { background: #e3edf9;          color: #2f5c8f; }
.status-delivered { background: var(--mint-soft); color: var(--mint); }
.status-cancelled { background: var(--sand);      color: var(--muted); }

.order-meta { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .order-meta { grid-template-columns: 1fr 1fr; } }
.meta-block .label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.meta-block .value { margin-top: .2rem; font-weight: 600; white-space: pre-line; }

/* ---------- Вход ---------- */
.login-page {
  flex: 1; display: grid; place-items: center;
  padding: 3rem 1rem; background: var(--sand);
}
.login-card { width: 100%; max-width: 25rem; }
.login-head { text-align: center; margin-bottom: 2rem; }
.login-head .logo-mark { width: 56px; height: 56px; border-radius: 18px; font-size: 1.35rem; margin: 0 auto 1rem; }

/* ---------- Печат на поръчка ---------- */
@media print {
  .site-header, .site-footer, .admin-sidebar, .admin-topbar,
  .no-print, .sticky-actions { display: none !important; }
  body, .admin-body { background: #fff; }
  .admin-content { padding: 0; }
  .card { border: 1px solid #ccc; box-shadow: none; }
}

/* ---------- По-малко движение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
