:root {
  --bg: #f6f1e8;
  --bg-deep: #ebe3d4;
  --ink: #152018;
  --muted: #5a6756;
  --line: rgba(21, 32, 24, 0.1);
  --panel: rgba(255, 253, 248, 0.92);
  --accent: #245c32;
  --accent-deep: #173f22;
  --accent-2: #b4532a;
  --danger: #a33b2d;
  --ok: #245c32;
  --shadow: 0 20px 50px rgba(21, 32, 24, 0.1);
  --shadow-soft: 0 8px 24px rgba(21, 32, 24, 0.06);
  --font: "DM Sans", sans-serif;
  --display: "Instrument Serif", Georgia, serif;
  --radius-lg: 24px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 0% -10%, rgba(36, 92, 50, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(180, 83, 42, 0.1), transparent 45%),
    linear-gradient(180deg, #f8f4ec 0%, var(--bg) 40%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

.store-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  backdrop-filter: blur(16px) saturate(1.2);
  background: rgba(246, 241, 232, 0.92);
  border-bottom: 1px solid var(--line);
}

.menu-toggle {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
  justify-self: end;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.store-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}
.store-brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: #fff;
}
.store-brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
}
.store-brand strong {
  display: block;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.store-brand-tag,
.store-brand span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.store-call {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(47, 107, 58, 0.08);
  border: 1px solid rgba(47, 107, 58, 0.14);
  text-align: right;
  color: var(--ink);
  text-decoration: none;
}
.store-call:active {
  background: rgba(47, 107, 58, 0.14);
}
.store-call-hint {
  display: block;
  font-size: 0.7rem;
  line-height: 1.15;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.store-call-num {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  color: var(--accent);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.store-drawer-call {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 14px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 107, 58, 0.1);
  border: 1px solid rgba(47, 107, 58, 0.18);
}
.store-drawer-call span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--muted);
}
.store-drawer-call strong {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.store-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 48;
  background: rgba(28, 36, 30, 0.42);
  border: 0;
  padding: 0;
  cursor: pointer;
}
.store-drawer {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  bottom: 0;
  z-index: 50;
  width: min(320px, 88vw);
  background: #fbf7ef;
  border-left: 1px solid var(--line);
  box-shadow: -12px 0 40px rgba(28, 36, 30, 0.12);
  transform: translateX(105%);
  transition: transform 0.28s cubic-bezier(.22,.8,.28,1);
  display: flex;
  flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 0 calc(16px + env(safe-area-inset-bottom, 0px));
  overflow: auto;
}
.store-drawer.is-open { transform: translateX(0); }
.store-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 16px 14px;
  border-bottom: 1px solid var(--line);
}
.store-drawer-head strong {
  display: block;
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 400;
}
.store-drawer-tag {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}
.store-drawer-nav {
  display: grid;
  gap: 2px;
  padding: 12px 10px;
}
.store-drawer-nav a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  color: var(--ink);
}
.store-drawer-nav a:hover { background: rgba(47, 107, 58, 0.08); }
.store-drawer-section {
  padding: 8px 10px 20px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.store-drawer-label {
  margin: 10px 14px 8px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.store-drawer-products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.store-drawer-products a {
  display: block;
  padding: 11px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 0.95rem;
}
.store-drawer-products a:hover { background: rgba(47, 107, 58, 0.08); }
body.drawer-open { overflow: hidden; }

.store-user {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: right;
}
.inline { display: inline; margin: 0; }
.linkish {
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.store-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 10px 10px 72px;
  box-sizing: border-box;
}
.store-main--compact { padding-top: 8px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.store-hero { display: none; }

.store-flash {
  margin-bottom: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  animation: rise 0.4s ease both;
}
.store-flash.ok { background: rgba(36, 92, 50, 0.1); color: var(--ok); }
.store-flash.err { background: rgba(163, 59, 45, 0.1); color: var(--danger); }

.delivery-note {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(47, 107, 58, 0.22);
  background: rgba(47, 107, 58, 0.07);
}
.delivery-note-badge {
  margin: 0 0 8px;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.delivery-note ul {
  margin: 0;
  padding: 0 0 0 1.1rem;
  display: grid;
  gap: 4px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
}
.delivery-note-eta {
  margin: 10px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-deep, #1f4a28);
}
.delivery-note--checkout {
  margin: 4px 0 12px;
  background: rgba(255, 253, 248, 0.95);
}
.store-drawer-delivery .delivery-note {
  margin: 0 6px;
  border: 0;
  background: transparent;
  padding: 0 8px 4px;
}
.store-drawer-delivery .delivery-note-badge { display: none; }

/* Kateqoriya çipləri */
.cat-chips {
  position: sticky;
  top: 68px;
  z-index: 15;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin: 0 0 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: linear-gradient(180deg, rgba(246,241,232,0.95), rgba(246,241,232,0.75));
  backdrop-filter: blur(10px);
}
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.9);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.cat-chip:hover,
.cat-chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(36, 92, 50, 0.35);
  background: #fff;
}
.cat-chip.is-active {
  background: linear-gradient(145deg, #2f6b3a, var(--accent-deep));
  border-color: transparent;
  color: #f7f3ea;
  box-shadow: 0 8px 18px rgba(36, 92, 50, 0.25);
}
.cat-chip:active { transform: scale(0.98); }
.product-cat,
.product-pack {
  margin: 4px 4px 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.product-pack {
  color: var(--accent);
  font-weight: 700;
}
.pack-badge {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(36, 92, 50, 0.1);
  border: 1px solid rgba(36, 92, 50, 0.16);
  color: var(--accent-deep, #1f4a28);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}
.product-tile[hidden] { display: none !important; }

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px;
}

.product-tile {
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  animation: rise 0.65s cubic-bezier(.22,.8,.28,1) both;
}
.product-tile:nth-child(2) { animation-delay: 0.04s; }
.product-tile:nth-child(3) { animation-delay: 0.08s; }
.product-tile:nth-child(4) { animation-delay: 0.12s; }

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s cubic-bezier(.22,.8,.28,1), box-shadow 0.3s ease;
}
.product-tile:hover .product-card,
.product-tile:focus-within .product-card {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 10px 8px;
  background: #fff;
}

.product-name-on-card {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: #ffffff;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 8px 12px;
  display: block;
  background: #ffffff;
}
.product-media.is-empty {
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, #f7f3ea, #e8efe6);
  color: var(--accent);
  font-family: var(--display);
  font-size: 3rem;
}
.product-media-fallback {
  position: relative;
  z-index: 0;
}

.price-hit {
  position: static;
  margin: 0;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--line);
  padding: 11px 12px;
  background: #fffcf6;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.2s ease;
}
.price-hit:hover {
  background: #fff;
  transform: none;
}
.price-hit-main {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}
.price-hit .pack-badge {
  margin-left: auto;
}
.price-hit strong { font-size: 1.05rem; letter-spacing: -0.02em; }
.price-hit small { color: var(--muted); font-weight: 500; }

.empty { color: var(--muted); }
.cat-empty {
  padding: 28px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--line);
  background: rgba(255, 253, 248, 0.55);
  color: var(--muted);
  text-align: center;
  font-size: 0.95rem;
}

.store-dialog {
  border: 0;
  border-radius: 26px;
  padding: 0;
  width: min(420px, calc(100% - 24px));
  background: var(--panel);
  box-shadow: var(--shadow);
}
.store-dialog::backdrop {
  background: rgba(16, 22, 16, 0.48);
  backdrop-filter: blur(6px);
}

.order-form {
  padding: 20px;
  display: grid;
  gap: 12px;
}
.order-form header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.order-form h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.65rem;
  letter-spacing: -0.02em;
}
.close-x {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
}
.order-preview {
  display: flex;
  gap: 12px;
  align-items: center;
}
.order-preview-img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.order-preview-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
  background: #ffffff;
}
.order-form label {
  display: grid;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.order-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  background: #fffdf8;
  color: var(--ink);
}
.btn-order {
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  padding: 13px 16px;
  background: linear-gradient(145deg, #2f6b3a, var(--accent-deep));
  color: #f7f3ea;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(36, 92, 50, 0.28);
}
.btn,
a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 14px;
  padding: 12px 18px;
  background: linear-gradient(145deg, #2f6b3a, var(--accent-deep));
  color: #f7f3ea;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(36, 92, 50, 0.22);
}
.btn-secondary,
a.btn-secondary {
  background: #fff;
  color: var(--accent-deep);
  border: 1px solid rgba(36, 92, 50, 0.28);
  box-shadow: none;
}
.muted { color: var(--muted); }
.tiny { font-size: 0.82rem; }

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  cursor: pointer;
}
.cart-btn em {
  font-style: normal;
  background: var(--accent);
  color: #f7f3ea;
  border-radius: 999px;
  min-width: 1.4rem;
  padding: 1px 6px;
  font-size: 0.78rem;
  text-align: center;
}

.cat-block { margin-bottom: 40px; scroll-margin-top: 100px; }
.cat-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cat-head--slim {
  flex-direction: row;
  align-items: baseline;
  justify-content: flex-end;
  margin-bottom: 10px;
  padding-bottom: 0;
  border-bottom: 0;
}
.cat-kicker {
  margin: 0;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
}
.cat-head h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.7rem, 4vw, 2.15rem);
  letter-spacing: -0.02em;
}
.cat-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-about {
  display: grid;
  gap: 18px;
  animation: rise 0.45s cubic-bezier(.22,.8,.28,1) both;
}
.product-about-media {
  aspect-ratio: 1.15 / 1;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
}
.product-about-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}
.product-about-media.is-empty {
  background: linear-gradient(145deg, #e8f0e6, #f4efe4);
  font-family: var(--display);
  font-size: 4rem;
  color: var(--accent);
}
.product-about-body h1 {
  margin: 4px 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.product-about-price {
  margin: 0 0 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.05rem;
  color: var(--muted);
}
.product-about-price strong {
  color: var(--ink);
  font-size: 1.35rem;
}
.product-about-lead {
  margin: 0 0 12px;
  font-size: 1.02rem;
  line-height: 1.5;
}
.product-about-text {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.55;
}
.product-about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (min-width: 720px) {
  .product-about {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
    gap: 28px;
  }
}

.cart-dialog { width: min(480px, calc(100% - 24px)); }
.cart-lines { display: grid; gap: 12px; }
.cart-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.cart-line-main { display: grid; gap: 2px; }
.cart-qty-form {
  display: flex;
  gap: 6px;
  align-items: center;
}
.cart-qty-form input {
  width: 72px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  background: #fffdf8;
}
.cart-line-sum { font-weight: 600; white-space: nowrap; }
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 4px;
  font-size: 1.05rem;
}

/* Qty stepper + live total */
.qty-block {
  display: grid;
  gap: 10px;
}
.qty-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.qty-stepper {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 8px;
  align-items: center;
  max-width: 240px;
}
.qty-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
  color: var(--accent-deep);
  cursor: pointer;
  touch-action: manipulation;
}
.qty-btn:active { transform: scale(0.96); background: rgba(36, 92, 50, 0.08); }
.qty-input {
  width: 100%;
  height: 48px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  font-size: 1.15rem;
  font-weight: 700;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-live {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-deep);
}
.center-link {
  display: block;
  text-align: center;
  margin-top: 2px;
}

/* Ayrı səbət səhifəsi */
.cart-page-head {
  margin: 0 0 14px;
}
.cart-page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.9rem, 6vw, 2.4rem);
  letter-spacing: -0.03em;
}
.cart-page-sub {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.cart-empty {
  padding: 28px 8px;
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
}
.cart-lines--page { gap: 14px; }
.cart-line--page {
  grid-template-columns: 64px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.92);
  border-bottom: 1px solid var(--line);
}
.cart-line-media {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}
.cart-line-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-line-media.is-empty {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--accent);
  background: linear-gradient(145deg, #e8f0e6, #f4efe4);
}
.cart-line--page .cart-line-main {
  gap: 8px;
  min-width: 0;
}
.cart-line--page .qty-stepper {
  max-width: 180px;
  grid-template-columns: 40px 1fr 40px;
}
.cart-line--page .qty-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.25rem;
}
.cart-line--page .qty-input { height: 40px; font-size: 1rem; }
.cart-line--page .cart-line-sum {
  font-size: 1.05rem;
  padding-top: 2px;
  color: var(--accent-deep);
}
.cart-total--page {
  margin: 16px 0 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(36, 92, 50, 0.08);
  border: 1px solid rgba(36, 92, 50, 0.14);
  font-size: 1.15rem;
}
.cart-clear-form { margin: 12px 0 20px; text-align: center; }
.loc-box {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}
.btn-geo {
  width: 100%;
  border: 1px solid var(--accent);
  background: rgba(47, 107, 58, 0.08);
  color: var(--accent);
  border-radius: 12px;
  padding: 11px 12px;
  font-weight: 600;
  cursor: pointer;
}
.checkout-form { display: grid; gap: 12px; margin-top: 8px; }

/* Hesab / qaimə */
.account-main { padding-bottom: 80px; }
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.account-stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
}
.account-stat span { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }
.account-stat strong { font-size: 1.15rem; }
.account-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  overflow-x: auto;
}
.account-tabs a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.account-tabs a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #f7f3ea;
}
.account-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.account-card h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
}
.account-card.is-hl { outline: 2px solid var(--accent); }
.order-card-top, .day-head, .debt-row, .inv-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.order-card-money, .inv-row-right { text-align: right; display: grid; gap: 2px; justify-items: end; }
.status-track {
  list-style: none;
  margin: 14px 0 10px;
  padding: 0;
  display: grid;
  gap: 6px;
}
.status-track li {
  position: relative;
  padding: 8px 10px 8px 28px;
  border-radius: 10px;
  background: rgba(28, 36, 24, 0.04);
  color: var(--muted);
  font-size: 0.86rem;
}
.status-track li::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: #c5c0b4;
}
.status-track li.is-done { color: var(--ink); background: rgba(47, 107, 58, 0.08); }
.status-track li.is-done::before { background: var(--accent); }
.status-track li.is-current { font-weight: 600; box-shadow: inset 0 0 0 1px rgba(47,107,58,0.25); }
.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 58, 0.1);
  font-size: 0.85rem;
  font-weight: 600;
}
.status-pill.is-cancel { background: rgba(163, 59, 45, 0.12); color: var(--danger); }
.status-pill.is-pending { background: rgba(180, 120, 20, 0.16); color: #8a5a00; }
.order-card-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.btn-soft {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 600;
  font-size: 0.86rem;
}
.inv-list { display: grid; gap: 8px; }
.inv-row, .debt-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.inv-list .inv-row:first-child, .account-card > .debt-row:first-of-type { border-top: 0; }
.is-debt { color: var(--danger); }
.is-ok { color: var(--ok); }

.invoice-sheet { padding: 20px; }
.invoice-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.invoice-head h1 {
  margin: 4px 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.8rem;
}
.invoice-head-right { display: grid; gap: 6px; justify-items: end; }
.invoice-meta { margin-bottom: 16px; }
.invoice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.invoice-table th, .invoice-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid var(--line);
}
.invoice-table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; }
.invoice-totals {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.invoice-totals div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

@media print {
  .store-top, .store-user, .app-tabbar, .pwa-install-fab,
  .store-drawer, .store-drawer-backdrop, .menu-toggle { display: none !important; }
  body { background: #fff; }
  .account-card { box-shadow: none; border: 0; }
}

/* App shell — mobil webview */
a { color: inherit; text-decoration: none; }
html.app-shell, html.app-shell body {
  overscroll-behavior-y: none;
  -webkit-tap-highlight-color: transparent;
}
body.has-tabbar {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}
.store-top {
  padding-top: calc(8px + env(safe-area-inset-top, 0px));
  padding-bottom: 8px;
}
.app-tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 252, 246, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.app-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 2px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}
.app-tab-ico {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  line-height: 0;
}
.app-tab-ico svg {
  display: block;
}
.app-tab.is-active {
  color: var(--accent);
  background: rgba(47, 107, 58, 0.1);
}
.app-tab.is-active .app-tab-ico svg {
  stroke-width: 2.1;
}
.app-tab-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 22px);
  min-width: 1.15rem;
  padding: 1px 5px;
  border-radius: 999px;
  background: var(--accent-2);
  color: #fff;
  font-size: 0.65rem;
  font-style: normal;
  text-align: center;
}
.pwa-install-fab {
  position: fixed;
  right: 14px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 45;
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  background: linear-gradient(145deg, #2f6b3a, #1f4a28);
  color: #f7f3ea;
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}
.profile-kv { display: grid; gap: 12px; margin: 12px 0 16px; }
.profile-kv strong { display: block; margin-top: 2px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px; }
.logout-zone {
  margin: 48px 0 24px;
  padding: 28px 16px 20px;
  border-top: 1px dashed var(--line);
  text-align: center;
}
.btn-logout {
  margin-top: 10px;
  border: 1px solid rgba(163, 59, 45, 0.35);
  background: transparent;
  color: var(--danger);
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 600;
  opacity: 0.85;
  cursor: pointer;
}
.btn-logout:hover { opacity: 1; background: rgba(163, 59, 45, 0.06); }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .store-user > .linkish:not(:last-child) { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .store-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-media { border-radius: 16px; }
  .cart-line { grid-template-columns: 1fr; }
  .cart-line--page {
    grid-template-columns: 56px 1fr;
  }
  .cart-line--page .cart-line-sum {
    grid-column: 2;
    justify-self: start;
  }
  .account-stats { grid-template-columns: 1fr; }
  .cat-chips { top: 56px; }
}

@media (min-width: 900px) {
  .app-tabbar { max-width: 480px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 18px 18px 0 0; }
}

/* Kompakt brand strip (əsas ekran) */
.store-strip {
  margin: 0 0 10px;
  padding: 14px 16px 16px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(36, 92, 50, 0.1), rgba(255, 253, 248, 0.55) 55%),
    rgba(255, 253, 248, 0.75);
  border: 1px solid rgba(36, 92, 50, 0.12);
  animation: rise 0.45s cubic-bezier(.22,.8,.28,1) both;
}
.store-strip-brand {
  margin: 0;
  font-family: var(--display);
  font-size: 1.55rem;
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent-deep);
}
.store-strip-line {
  margin: 6px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Məhsul konsepti */
.product-eyebrow {
  margin: 0 0 4px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.product-fresh {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(36, 92, 50, 0.08);
  border: 1px solid rgba(36, 92, 50, 0.14);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-deep);
  line-height: 1.35;
}
.product-concept-list {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.product-concept-list li {
  position: relative;
  padding: 0 0 0 1.15rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
}
.product-concept-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.product-audience {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
}
.product-guide-link {
  margin: 0 0 18px;
}
.product-guide-link a {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* SEO bələdçi səhifələri */
.guide-page { max-width: 720px; }
.guide-article {
  animation: rise 0.45s cubic-bezier(.22,.8,.28,1) both;
}
.guide-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}
.guide-article > h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 7vw, 2.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.guide-lead {
  margin: 0 0 14px;
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink);
}
.guide-fresh {
  margin: 0 0 22px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(36, 92, 50, 0.09);
  border: 1px solid rgba(36, 92, 50, 0.16);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--accent-deep);
}
.guide-section {
  margin: 0 0 20px;
  padding-top: 4px;
}
.guide-section h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.guide-section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}
.guide-related {
  margin: 28px 0 20px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.guide-related h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
}
.guide-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.guide-related-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--line);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.guide-related-card:active {
  transform: scale(0.98);
}
.guide-related-media {
  aspect-ratio: 1.1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  display: grid;
  place-items: center;
}
.guide-related-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.guide-related-media.is-empty {
  background: linear-gradient(145deg, #e8f0e6, #f4efe4);
  font-family: var(--display);
  font-size: 2rem;
  color: var(--accent);
}
.guide-related-card strong {
  font-size: 0.95rem;
  line-height: 1.25;
}
.guide-related-price {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-deep);
}
.guide-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
  padding-bottom: 12px;
}

.store-drawer-guides a {
  font-weight: 600;
}

/* Premium mobil toxunuşlar */
@media (max-width: 560px) {
  .store-main,
  .store-main--compact {
    width: 100%;
    max-width: none;
    padding-left: 8px;
    padding-right: 8px;
  }
  .store-top {
    padding-left: 10px;
    padding-right: 10px;
  }
  .store-strip {
    padding: 12px 12px 14px;
    border-radius: 14px;
  }
  .store-strip-brand { font-size: 1.42rem; }
  .store-grid { gap: 10px; }
  .product-name-on-card {
    font-size: 0.8rem;
  }
  .price-hit {
    padding: 8px 10px;
    border-radius: 12px;
  }
  .price-hit strong { font-size: 0.92rem; }
  .guide-related-grid { gap: 10px; }
  .guide-page { max-width: none; }
  .product-about-media {
    aspect-ratio: 1.05 / 1;
    border-radius: 18px;
  }
  .cat-chip {
    padding: 9px 14px;
    font-size: 0.82rem;
  }
}

@media (min-width: 640px) {
  .store-call {
    padding: 7px 12px;
  }
  .store-call-num { font-size: 1.05rem; }
  .store-brand strong { font-size: 1.45rem; }
}

.store-toast {
  position: fixed;
  left: 50%;
  bottom: calc(86px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(16px);
  z-index: 80;
  max-width: min(92vw, 420px);
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(28, 36, 30, 0.94);
  color: #f7f3ea;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.store-toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.order-card-flash {
  outline: 2px solid var(--accent);
  animation: orderFlash 1.4s ease;
}
@keyframes orderFlash {
  0% { background: rgba(47, 107, 58, 0.18); }
  100% { background: transparent; }
}
.app-tab.has-live-pulse {
  color: var(--accent);
}
.app-tab.has-live-pulse .app-tab-ico {
  animation: tabPulse 1s ease 3;
}
@keyframes tabPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.live-status-hint {
  text-align: center;
  margin: 8px 4px 0;
}

.content-page {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}
.content-hero,
.content-block {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 252, 246, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.content-eyebrow {
  margin: 0 0 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.content-hero h1,
.content-block h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.content-hero h1 { font-size: 1.85rem; }
.content-block h2 { font-size: 1.28rem; }
.content-lead,
.content-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.98rem;
}
.content-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.content-block--accent {
  background: linear-gradient(145deg, rgba(47, 107, 58, 0.1), rgba(255, 252, 246, 0.95));
  border-color: rgba(47, 107, 58, 0.22);
}
.content-block--accent .btn-order {
  display: inline-flex;
  margin-top: 14px;
}
.store-strip-links {
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 600;
}
.store-strip-links a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

