/* ===========================================================
   Ягодный Шарм — стили
   Токены: белый фон, шоколадно-коричневый, золотой акцент
=========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&family=Roboto+Slab:wght@100..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --bg:            #FFFFFF;
  --bg-soft:       #FBF8F3;
  --brown-900:     #3A241C;
  --brown-700:     #5C3A2A;
  --brown-500:     #8A6650;
  --gold:          #B8912F;
  --gold-soft:     #E4D2A0;
  --line:          #E9E1D3;
  --white:         #FFFFFF;

  --font-display:  'Fraunces', Georgia, serif;
  --font-body:     'Roboto Slab', -apple-system, sans-serif;

  --radius-sm:     4px;
  --radius-pill:   999px;

  --container:     1160px;
  --gap-section:   96px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brown-900);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  margin: 0;
  color: var(--brown-900);
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

.section {
  padding: var(--gap-section) 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  margin-top: 10px;
}

.section-head p {
  color: var(--brown-500);
  margin-top: 14px;
  font-size: 15.5px;
}

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Divider (signature element: berry branch) ---------- */
.branch-divider {
  display: flex;
  justify-content: center;
  margin: 8px 0 0;
  opacity: 0.85;
}
.branch-divider svg { width: 180px; height: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--brown-900);
  color: var(--white);
}
.btn-primary:hover { background: var(--brown-700); }
.btn-outline {
  background: transparent;
  border-color: var(--brown-900);
  color: var(--brown-900);
}
.btn-outline:hover { background: var(--brown-900); color: var(--white); }
.btn-gold {
  background: var(--gold);
  color: var(--white);
}
.btn-gold:hover { background: #a37f28; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Header ---------- */
.header-topbar {
  background: var(--brown-900);
  color: #EFE6DA;
}
.header-topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  font-size: 12.5px;
}
.header-topbar-info { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; min-width: 0; }
.header-topbar-info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-messenger-row { margin-top: 0; gap: 8px; flex-shrink: 0; }
.icon-msg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid rgba(239,230,218,0.35);
  color: #EFE6DA;
  transition: all 0.15s;
  flex-shrink: 0;
}
.icon-msg-btn:hover { border-color: var(--gold); color: var(--gold); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.04em;
}
.brand img { height: 42px; width: 42px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { text-transform: uppercase; }
.brand-tagline {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: none;
  color: var(--brown-500);
  font-weight: 400;
}
@media (max-width: 480px) {
  .brand-tagline { font-size: 9.5px; }
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--brown-700); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  color: var(--brown-900);
}
.icon-btn:hover { border-color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  align-items: center;
  justify-content: center;
  display: none;
}

.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.burger span, .burger::before, .burger::after {
  content: '';
  display: block;
  width: 18px; height: 1.5px;
  background: var(--brown-900);
}
.burger { flex-direction: column; gap: 4px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--brown-700);
}

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, var(--bg-soft) 0%, var(--bg) 70%);
}
.hero-logo { width: 120px; height: 120px; margin: 0 auto 28px; }
.hero-contact-line {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--brown-700);
  margin: 0 0 10px;
}
.hero-contact-line strong { font-weight: 600; }
.hero .eyebrow.hero-address { display: block; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.1;
  max-width: 780px;
  margin: 0 auto;
}
.hero .eyebrow { display: block; margin-bottom: 18px; }
.hero p.lead {
  max-width: 560px;
  margin: 22px auto 0;
  color: var(--brown-500);
  font-size: 16.5px;
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

/* ---------- Advantages ---------- */
.advantages {
  background: var(--bg-soft);
}
.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.adv-item {
  background: var(--bg-soft);
  padding: 34px 30px;
}
.adv-item .adv-mark {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  margin-bottom: 14px;
}
.adv-item h3 { font-size: 17px; margin-bottom: 8px; }
.adv-item p { font-family: var(--font-display); font-size: 14px; color: var(--brown-500); margin: 0; }

/* ---------- Catalog ---------- */
.cat-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 44px;
}
.cat-tab {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--brown-700);
  transition: all 0.15s;
}
.cat-tab:hover { border-color: var(--gold); }
.cat-tab.active {
  background: var(--brown-900);
  border-color: var(--brown-900);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, transform 0.2s;
}
.product-card:hover { border-color: var(--gold-soft); transform: translateY(-2px); }
.product-media {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.product-body .cat-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 8px;
}
.product-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.product-body p.desc { font-size: 13px; color: var(--brown-500); margin: 0 0 16px; flex: 1; }
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}
.price { font-family: var(--font-display); font-size: 18px; }

/* ---------- Reviews ---------- */
.reviews-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 28px 26px;
  background: var(--bg-soft);
}
.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold-soft);
  background: var(--white);
}
.review-avatar-fallback {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-soft);
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 17px;
}
.review-name { font-weight: 600; font-size: 14.5px; }
.review-text { font-size: 14px; color: var(--brown-700); margin: 0; }
.review-empty { text-align: center; color: var(--brown-500); font-size: 14px; grid-column: 1 / -1; }

/* ---------- Delivery / Payment ---------- */
.dp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.dp-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 32px;
}
.dp-card h3 { font-size: 19px; margin-bottom: 14px; }
.dp-card p { color: var(--brown-700); font-size: 14.5px; margin: 0 0 10px; }
.dp-card strong { color: var(--brown-900); }

/* ---------- Contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-list .label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); font-weight: 600; }
.contact-list .value { font-size: 15.5px; }
.messenger-row { display: flex; gap: 12px;  }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brown-900);
  color: #EFE6DA;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 18px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: 36px;  }
.site-footer h4 { color: #EFE6DA; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer p, .site-footer li { font-size: 13.5px; color: #C9BBA9; margin: 0 0 8px; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-legal-list { list-style: none; padding: 0; }
.footer-legal-list li { margin-bottom: 10px; }
.footer-bottom {
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: #9C8B77;
}

.img_footer {
  display: none;
}

/* ---------- Cart Drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(58,36,28,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 90;
}
.overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100%;
  width: 420px;
  max-width: 92vw;
  background: var(--white);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 30px rgba(0,0,0,0.08);
}
.cart-drawer.open { transform: translateX(0); }
.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3 { font-size: 19px; }
.cart-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--brown-700); line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; color: var(--brown-500); padding: 60px 10px; font-size: 14px; }
.cart-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .ci-name { font-size: 14.5px; font-weight: 500; margin-bottom: 6px; }
.cart-item .ci-price { font-size: 13px; color: var(--brown-500); }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
  font-size: 14px; line-height: 1;
}
.ci-remove { background: none; border: none; color: var(--brown-500); font-size: 12px; cursor: pointer; text-decoration: underline; margin-top: 8px; }
.cart-foot {
  border-top: 1px solid var(--line);
  padding: 20px 24px 26px;
}
.cart-total { display: flex; justify-content: space-between; font-size: 16px; margin-bottom: 16px; }
.cart-total strong { font-family: var(--font-display); font-size: 20px; }

/* ---------- Checkout ---------- */
.checkout-form { display: flex; flex-direction: column; gap: 14px; padding: 4px 24px 24px; overflow-y: auto; }
.field label { display: block; font-size: 12.5px; color: var(--brown-700); margin-bottom: 6px; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  background: var(--white);
  color: var(--brown-900);
}
.field input:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { resize: vertical; min-height: 70px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--brown-700); }
.check-row input { margin-top: 3px; }
.check-row a { color: var(--gold); text-decoration: underline; }
.form-msg { font-size: 13px; padding: 10px 12px; border-radius: var(--radius-sm); display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: #EEF6EC; color: #35633C; }
.form-msg.error { background: #FBEAEA; color: #A23A3A; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px; right: 20px; bottom: 20px;
  max-width: 620px;
  margin: 0 auto;
  background: var(--brown-900);
  color: #EFE6DA;
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  z-index: 80;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  transform: translateY(140%);
  transition: transform 0.35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { margin: 0; font-size: 13.5px; flex: 1; min-width: 220px; color: #D8CBBA; }
.cookie-banner a { text-decoration: underline; color: #EFE6DA; }
.cookie-actions { display: flex; gap: 10px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translate(-50%, 20px);
  background: var(--brown-900);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Simple pages (privacy) ---------- */
.doc-page { padding: 60px 0 100px; }
.doc-page .container { max-width: 820px; }
.doc-page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 8px; }
.doc-page .updated { color: var(--brown-500); font-size: 13.5px; margin-bottom: 40px; }
.doc-page h2 { font-size: 19px; margin: 34px 0 12px; }
.doc-page p, .doc-page li { color: var(--brown-700); font-size: 15px; }
.doc-page ul { padding-left: 20px; }

/* ---------- Admin ---------- */
.admin-shell { min-height: 100vh; background: var(--bg-soft); }
.admin-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px;
}
.admin-login-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 44px 38px;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.admin-login-box h1 { font-size: 22px; margin-bottom: 8px; }
.admin-login-box p { color: var(--brown-500); font-size: 13.5px; margin-bottom: 24px; }
.admin-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.admin-topbar .container { display: flex; align-items: center; justify-content: space-between; }
.admin-tabs { display: flex; gap: 8px; margin: 28px 0; }
.admin-tab {
  padding: 10px 20px; border-radius: var(--radius-pill);
  border: 1.5px solid var(--line); background: var(--white); cursor: pointer; font-size: 13.5px; font-weight: 500;
}
.admin-tab.active { background: var(--brown-900); color: var(--white); border-color: var(--brown-900); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.admin-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
table.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin-table th, table.admin-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.admin-table th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brown-500); font-weight: 600; }
table.admin-table tr:last-child td { border-bottom: none; }
.row-actions { display: flex; gap: 8px; }
.row-actions button { background: none; border: none; cursor: pointer; font-size: 13px; color: var(--brown-700); text-decoration: underline; }
.row-actions .danger { color: #A23A3A; }
.admin-empty { text-align: center; padding: 40px; color: var(--brown-500); font-size: 14px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(58,36,28,0.4);
  display: none; align-items: center; justify-content: center; z-index: 150; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white); border-radius: var(--radius-sm); width: 100%; max-width: 460px;
  max-height: 90vh; overflow-y: auto; padding: 30px 30px 26px;
}
.modal-box h3 { font-size: 19px; margin-bottom: 20px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.avatar-preview {
  width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 1.5px solid var(--line);
  background: var(--bg-soft);
}

/* =============== RESPONSIVE =============== */
@media (max-width: 960px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-track { grid-template-columns: repeat(2, 1fr); }
  .dp-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  :root { --gap-section: 64px; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .adv-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .reviews-track { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cart-drawer { width: 100%; max-width: 100vw; }
  .hero { padding: 48px 0 44px; }
  .product-media { font-size: 34px; }
  .header-topbar-inner { gap: 10px; }
  .header-topbar-info { gap: 10px; font-size: 11.5px; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px 14px 14px; }
  .product-body h3 { font-size: 14px; }
  .price { font-size: 15px; }
  .btn { padding: 12px 22px; font-size: 13.5px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  /* .header-topbar-info span:first-child { display: none; } */
  .header-topbar-info { font-size: 11px; }
}

@media (max-width: 360px) {
  .header-topbar-inner { padding: 0 14px; gap: 6px; }
  .header-messenger-row { gap: 6px; }
  .icon-msg-btn { width: 26px; height: 26px; }
}

/* =============== ADMIN: доп. элементы (заказы, категории, фото товара) =============== */
.thumb-preview {
  width: 44px; height: 44px; border-radius: var(--radius-sm); object-fit: cover;
  border: 1.5px solid var(--line); background: var(--bg-soft);
}
.status-select {
  padding: 7px 10px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font-size: 12.5px; background: var(--white); color: var(--brown-900); cursor: pointer;
}
.status-badge {
  display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
}
.status-new        { background: #EAF1FB; color: #2C5FA8; }
.status-processing { background: #FCF2DA; color: #9A6B12; }
.status-done        { background: #E6F4EA; color: #2E7D42; }
.status-cancelled  { background: #FBE8E6; color: #A23A3A; }
.order-detail-row td { background: var(--bg-soft); font-size: 13px; color: var(--brown-700); }
.order-items-list { margin: 0; padding-left: 18px; }
.field small.hint { display:block; margin-top:4px; color: var(--brown-500); font-size: 11.5px; }

/* =============== CHECKOUT: доставка/самовывоз =============== */
.fulfillment-toggle {
  display: flex;
  gap: 8px;
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
}
.fulfillment-tab {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  color: var(--brown-700);
  transition: all 0.15s;
}
.fulfillment-tab.active {
  background: var(--brown-900);
  color: var(--white);
}
.field-group-title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--brown-900);
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.dt-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.info-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.info-icon-btn:hover,
.info-icon-btn:focus-visible {
  background: var(--gold);
  color: var(--white);
  outline: none;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pickup-store-box {
  background: var(--bg-soft);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.pickup-store-box p { margin: 0 0 12px; font-size: 14px; color: var(--brown-900); }
.pickup-map-links { display: flex; gap: 10px; flex-wrap: wrap; }
