:root {
  --cream: #ffffff;
  --white: #ffffff;
  --accent: #4a2d1b;
  --accent-soft: #6f472d;
  --overlay: rgba(54, 30, 16, 0.78);
  --hero-overlay: rgba(117, 62, 35, 0.62);
  --ink: #2e2017;
  --muted: #765941;
  --gold: #d99222;
  --gold-dark: #c47d12;
  --shadow: 0 10px 24px rgba(69, 42, 24, 0.14);
  --shadow-soft: 0 18px 38px rgba(47, 29, 18, 0.2);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", "Avenir Next", "SF Pro Text", Arial, system-ui, sans-serif;
}

html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

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

button {
  cursor: pointer;
}

.app-shell {
  width: min(430px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  position: relative;
  padding: 0 16px 36px;
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 52px auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 116px;
  padding: 16px 0 18px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(46, 32, 23, 0.08);
}

.brand-mark {
  width: 74px;
  height: 74px;
  justify-self: start;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  border: 0;
  box-shadow: none;
  overflow: hidden;
  padding: 0;
}

.brand-mark img {
  width: 88%;
  height: 88%;
  object-fit: contain;
  display: block;
}

.icon-button,
.tab {
  border: 0;
  color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
}

.icon-button {
  justify-self: start;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
}

.menu-button {
  background: transparent;
  box-shadow: none;
}

.top-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 4px;
}

.header-action {
  width: 39px;
  height: 39px;
  color: #8d8d8d;
  background: transparent;
  box-shadow: none;
}

.cart-shortcut {
  justify-self: end;
}

.cart-shortcut.is-bumped {
  animation: cart-bump 0.42s ease;
  background: var(--gold-dark);
  color: var(--white);
}

@keyframes cart-bump {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.12);
  }
}

.icon-button svg,
.tab svg,
.mini-icon svg,
.button-icon,
.inline-icon,
.meta-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-icon,
.inline-icon,
.meta-icon {
  flex: 0 0 auto;
}

.button-icon {
  width: 18px;
  height: 18px;
}

.inline-icon {
  width: 16px;
  height: 16px;
}

.meta-icon {
  width: 14px;
  height: 14px;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--gold-dark);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
}

.screen {
  animation: screenIn 0.32s ease;
}

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

.tabbar {
  display: none !important;
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  width: min(392px, calc(100% - 32px));
  transform: translateX(-50%);
  grid-template-columns: repeat(4, 1fr);
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 24px;
  background: var(--accent);
  box-shadow: 0 18px 36px rgba(34, 22, 15, 0.28);
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(26, 26, 26, 0.58);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.side-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 100;
  width: min(72vw, 360px);
  min-width: 290px;
  background: #fff;
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  box-shadow: 16px 0 34px rgba(0, 0, 0, 0.22);
  overflow-y: auto;
  padding-bottom: 28px;
}

.menu-is-open .menu-overlay {
  opacity: 1;
}

.menu-is-open .side-menu {
  transform: translateX(0);
}

.side-menu-head {
  min-height: 96px;
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(46, 32, 23, 0.08);
}

.side-menu-head .icon-button {
  background: #f7f7f7;
  box-shadow: none;
}

.side-menu-head strong {
  color: #202124;
  font-size: 24px;
}

.side-menu-nav {
  display: grid;
}

.side-menu-link {
  width: 100%;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid rgba(46, 32, 23, 0.08);
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: #fff;
  color: #333;
  text-align: left;
  font-size: 22px;
  font-weight: 800;
}

.side-menu-link.is-active {
  color: var(--gold-dark);
  box-shadow: inset 4px 0 0 var(--gold-dark);
}

.side-menu-link em {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a1a5ad;
  color: #fff;
  font-size: 15px;
  font-style: normal;
}

.side-menu-contact {
  padding: 28px;
}

.side-menu-contact strong {
  display: block;
  color: #333;
  font-size: 22px;
  margin-bottom: 12px;
}

.side-menu-contact p {
  margin: 0;
  color: #666;
  font-size: 18px;
  line-height: 1.45;
}

.tabbar.is-admin-hidden {
  grid-template-columns: repeat(3, 1fr);
}

.tab {
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: transparent;
  box-shadow: none;
  color: var(--white);
  transition: 0.24s ease;
}

.tab[hidden] {
  display: none !important;
}

.tab.is-active {
  background: var(--gold-dark);
  color: var(--white);
  transform: translateY(-2px);
}

.home-intro {
  padding: 28px 0 12px;
}

.home-intro p {
  margin: 0 0 8px;
  color: var(--gold-dark);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.home-intro h1 {
  color: #303236;
  font-size: 44px;
  line-height: 0.98;
}

.home-intro span {
  display: block;
  margin-top: 16px;
  color: #676767;
  font-size: 19px;
  line-height: 1.42;
}

.category-showcase {
  margin-top: 16px;
}

.category-tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.category-tile {
  min-height: 168px;
  border: 0;
  display: grid;
  align-content: end;
  gap: 3px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: #2f241d;
  color: var(--white);
  text-align: left;
  box-shadow: var(--shadow);
}

.category-tile-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.category-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 16, 10, 0.08), rgba(24, 16, 10, 0.72));
}

.category-tile strong {
  position: relative;
  z-index: 1;
  color: var(--white);
  font-size: 19px;
  line-height: 1.15;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.category-tile small {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
}

.quick-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0 4px;
}

.quick-info-item {
  min-height: 68px;
  border: 1px solid rgba(46, 32, 23, 0.1);
  border-radius: 18px;
  display: grid;
  place-items: center;
  gap: 4px;
  background: #fff;
  color: #303236;
  font-size: 13px;
  font-weight: 900;
}

.hero {
  min-height: 520px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  margin-bottom: 90px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: var(--white);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("https://images.unsplash.com/photo-1529692236671-f1f6cf9683ba?auto=format&fit=crop&w=900&q=80") center / cover;
}

.hero::before,
.smoke::before,
.smoke::after {
  content: none;
  position: absolute;
  pointer-events: none;
  filter: blur(11px);
  opacity: 0.5;
  background: rgba(255, 239, 222, 0.58);
  border-radius: 999px;
  animation: smoke 7s ease-in-out infinite alternate;
}

.finish::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
  pointer-events: none;
}

.hero::before {
  width: 170px;
  height: 58px;
  top: 52px;
  left: 44px;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.eyebrow,
.accent-text {
  font-family: inherit;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--white);
  font-size: 16px;
  margin-bottom: 12px;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: inherit;
  color: var(--accent);
  margin: 0;
  letter-spacing: 0;
  font-weight: 800;
}

.hero h1 {
  color: var(--white);
  font-size: 42px;
  line-height: 1.05;
  max-width: 100%;
}

.hero p {
  color: var(--white);
  font-size: 16px;
  line-height: 1.45;
  margin: 16px 0 24px;
  max-width: 300px;
  font-weight: 600;
}

.hero .secondary-button {
  color: var(--white);
  background: rgba(255, 250, 244, 0.16);
  border: 1px solid rgba(255, 250, 244, 0.46);
}

.hero-actions {
  display: grid;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button,
.chip,
.filter-pill {
  border: 0;
  border-radius: 16px;
  min-height: 48px;
  padding: 0 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  font-weight: 800;
}

.primary-button,
.secondary-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary-button {
  color: var(--white);
  background: var(--gold-dark);
  box-shadow: 0 12px 22px rgba(156, 93, 12, 0.24);
}

.secondary-button {
  color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ghost-button {
  color: var(--white);
  background: var(--accent);
  border: 1px solid rgba(255, 250, 244, 0.36);
}

.danger-button {
  color: #fff8f1;
  background: #9e4b38;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.chip:hover,
.filter-pill:hover {
  transform: translateY(-2px);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin: 34px 0 18px;
}

.section-head h2 {
  color: #303236;
  font-size: 38px;
  line-height: 1.05;
}

.section-head p {
  margin: 12px 0 0;
  color: #777;
  font-size: 17px;
  line-height: 1.42;
}

.info-list {
  display: grid;
  gap: 28px;
  padding: 10px 0 24px;
}

.info-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 18px;
  align-items: start;
}

.info-item > span {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold-dark);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(196, 125, 18, 0.14);
}

.info-item h3 {
  color: #555;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
}

.info-item p {
  margin: 12px 0 0;
  color: #666;
  font-size: 20px;
  line-height: 1.45;
}

.text-page-section {
  padding: 20px 0 8px;
}

.text-page-section h2 {
  color: #303236;
  font-size: 36px;
  line-height: 1.08;
  margin: 28px 0 18px;
}

.text-page-section p,
.text-page-section li {
  color: #666;
  font-size: 21px;
  line-height: 1.65;
}

.text-page-section p {
  margin: 0 0 22px;
}

.ordered-info,
.dash-list {
  margin: 0;
  padding-left: 24px;
}

.dash-list {
  list-style: "—  ";
}

.horizontal-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  padding: 2px 4px 18px;
  scroll-snap-type: x mandatory;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.horizontal-scroll > * {
  scroll-snap-align: start;
}

.horizontal-scroll.is-dragging,
.filter-row.is-dragging,
.admin-section-tabs.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.product-grid,
.box-grid,
.admin-grid {
  display: grid;
  gap: 16px;
}

.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card,
.box-card,
.panel,
.cart-item,
.order-card,
.admin-column {
  border: 1px solid rgba(86, 53, 30, 0.08);
  background: var(--white);
  backdrop-filter: none;
  box-shadow: var(--shadow);
}

.product-card,
.box-card {
  overflow: visible;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card,
.box-card {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.product-card:hover,
.box-card:hover,
.product-card:focus-visible,
.box-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: none;
  outline: none;
}

.product-card {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px;
  min-height: 0;
  height: 100%;
}

.product-photo,
.box-photo {
  aspect-ratio: 1 / 1;
  min-height: 0;
  border-radius: 16px;
  overflow: hidden;
  background-color: #d6b293;
  background-size: cover;
  background-position: center;
  position: relative;
}

.product-photo::after,
.box-photo::after {
  display: none;
}

.card-photo-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 8px 20px rgba(34, 22, 15, 0.12);
}

.card-stock-badge {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  max-width: calc(100% - 16px);
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  box-shadow: 0 8px 20px rgba(34, 22, 15, 0.12);
}

.card-stock-badge.is-empty {
  color: #8c3929;
}

.card-body {
  padding: 0;
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-content: start;
  gap: 9px;
}

.card-heading {
  display: grid;
  align-items: flex-start;
  justify-content: stretch;
  gap: 6px;
}

.card-heading h3 {
  font-size: 18px;
  line-height: 1.12;
  min-height: 40px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #687080;
  font-size: 14px;
  line-height: 1;
}

.card-detail-row strong {
  color: #687080;
  font-size: 28px;
  font-weight: 300;
  line-height: 0.7;
}

.card-price-summary {
  display: grid;
  gap: 2px;
}

.card-price-summary > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.card-price-summary strong {
  color: #050505;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.card-price-summary small,
.card-price-summary span {
  color: #687080;
  font-size: 13px;
  line-height: 1.2;
}

.card-price-summary span {
  display: block;
}

.product-card .season-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 22px;
  align-self: start;
  justify-self: start;
  border-radius: 9px;
  padding: 2px 7px;
  white-space: normal;
  line-height: 1.12;
  font-size: 9px;
}

.card-purchase {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  margin: 0;
}

.price-weight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5px;
  align-items: stretch;
  min-width: 0;
}

.price-block,
.weight-block {
  display: grid;
  align-content: center;
  gap: 1px;
  min-height: 42px;
  border-radius: 10px;
  padding: 6px 7px;
  background: #f7eadc;
  color: var(--accent);
  min-width: 0;
}

.product-card .weight-block {
  display: grid;
}

.price-block span,
.weight-block span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.price-block strong,
.weight-block strong {
  font-size: 11px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.price-block small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.32;
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

.product-card .stock,
.product-card .category {
  max-width: 100%;
  min-height: 22px;
  border-radius: 9px;
  padding: 2px 7px;
  white-space: normal;
  line-height: 1.12;
}

.season-chip,
.category,
.stock,
.status-chip,
.mini-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 10px;
  background: #f7eadc;
  color: var(--accent);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.stock.is-empty {
  background: #f5ddd7;
  color: #8c3929;
}

.add-button {
  width: 100%;
}

.compact-add {
  min-height: 44px;
  padding-inline: 8px;
  border-radius: 11px;
  font-size: 14px;
  gap: 5px;
  white-space: nowrap;
  line-height: 1.05;
}

.compact-add .button-icon {
  width: 16px;
  height: 16px;
}

.add-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.item-detail {
  display: grid;
  gap: 16px;
}

.detail-back {
  justify-self: start;
}

.detail-photo {
  min-height: 320px;
  border-radius: var(--radius);
  background-color: #d6b293;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.detail-body {
  display: grid;
  gap: 16px;
}

.detail-title {
  display: grid;
  gap: 10px;
  align-items: start;
}

.detail-title h1 {
  font-size: clamp(28px, 8vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.detail-body .price-weight {
  max-width: 520px;
}

.detail-body .price-block,
.detail-body .weight-block {
  min-height: 74px;
}

.detail-body .price-block strong,
.detail-body .weight-block strong {
  font-size: 18px;
}

.detail-body p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

@media (max-width: 390px) {
  .card-purchase {
    grid-template-columns: 1fr;
  }
}

.filters {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 3px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  cursor: grab;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  min-height: 32px;
  white-space: nowrap;
  color: var(--accent);
  background: var(--white);
  border: 1.2px solid rgba(86, 53, 30, 0.34);
  box-shadow: none;
  font-weight: 700;
}

.filter-row-primary .filter-pill {
  min-height: 36px;
  padding-inline: 17px;
  border-radius: 999px;
  font-size: 14px;
}

.filter-row-secondary .filter-pill {
  min-height: 25px;
  padding-inline: 10px;
  border-radius: 999px;
  border-color: rgba(86, 53, 30, 0.28);
  color: rgba(86, 53, 30, 0.72);
  font-size: 11px;
}

.filter-row-tertiary .filter-pill {
  min-height: 23px;
  padding-inline: 9px;
  border-radius: 999px;
  border-color: rgba(86, 53, 30, 0.24);
  color: rgba(86, 53, 30, 0.66);
  font-size: 10px;
}

.admin-order-filter {
  margin: 12px 0 10px;
  padding-bottom: 5px;
}

.admin-order-filter .filter-pill {
  min-height: 36px;
  padding-inline: 14px;
  border-radius: 999px;
  font-size: 13px;
}

.filter-pill.is-active {
  background: var(--gold-dark);
  border-color: transparent;
  color: var(--white);
}

.filter-row-primary .filter-pill.is-active {
  color: var(--white);
}

.filter-row-secondary .filter-pill.is-active,
.filter-row-tertiary .filter-pill.is-active {
  color: var(--white);
  background: var(--gold-dark);
}

.box-card {
  color: var(--accent);
}

.branch {
  display: none;
}

.branch::before,
.branch::after {
  content: none;
  position: absolute;
  width: 26px;
  height: 12px;
  border-radius: 100% 0;
  background: rgba(154, 167, 129, 0.72);
}

.branch::before {
  right: 24px;
  bottom: 2px;
  transform: rotate(42deg);
}

.branch::after {
  right: 52px;
  bottom: -3px;
  transform: rotate(-36deg);
}

.panel {
  border-radius: var(--radius);
  padding: 18px;
}

.notice-panel,
.delivery-info {
  border: 1px solid rgba(86, 53, 30, 0.1);
  border-radius: 18px;
  padding: 14px;
  margin-top: 14px;
  background: var(--white);
  color: var(--accent);
  box-shadow: var(--shadow);
}

.delivery-info {
  margin-top: 12px;
  box-shadow: none;
  background: #fff3e5;
}

.notice-panel strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}

.total-notice-panel {
  position: relative;
  border: 2px solid rgba(194, 133, 42, 0.56);
  background: linear-gradient(135deg, #fff6e8 0%, #ffffff 64%);
  box-shadow: 0 16px 34px rgba(156, 93, 12, 0.18);
}

.total-notice-panel::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 5px;
  border-radius: 0 999px 999px 0;
  background: var(--gold-dark);
}

.total-notice-panel strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  color: var(--accent);
}

.total-notice-panel p {
  color: #5f493b;
  font-weight: 650;
}

.notice-panel p,
.delivery-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.36;
}

.catalog-group {
  margin-top: 16px;
}

.section-head.compact {
  margin: 0 0 10px;
}

.section-head.compact h2 {
  font-size: 22px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 12px;
}

.video-card {
  overflow: hidden;
  border: 1px solid rgba(86, 53, 30, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.video-card video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #2f241d;
}

.video-card div {
  padding: 12px;
}

.video-card h3 {
  color: #303236;
  font-size: 16px;
  line-height: 1.16;
}

.video-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.alert-hint {
  color: #8c3929;
  font-weight: 800;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.vk-auth-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(34, 22, 15, 0.38);
}

.modal-card {
  width: min(420px, 100%);
  border-radius: 22px;
  padding: 18px;
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 24px 60px rgba(34, 22, 15, 0.28);
}

.vk-auth-modal .card-heading h3 {
  min-height: 0;
  font-size: 22px;
}

.vk-auth-code {
  margin-top: 14px;
  min-height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f7eadc;
  color: var(--accent);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 0;
}

#contacts .contact-links .secondary-button {
  min-height: 48px;
  border-radius: 14px;
  color: var(--accent);
  background: var(--white);
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(67, 39, 19, 0.08);
}

.contacts-panel {
  background: #fff;
  color: #303236;
  padding: 16px;
}

.contacts-panel h3 {
  color: #303236;
  font-size: 24px;
  line-height: 1.08;
}

.contacts-panel .hint {
  color: #666;
  font-size: 14px;
  line-height: 1.42;
  margin-top: 12px;
}

.contacts-panel .mini-chip {
  color: var(--gold-dark);
  background: rgba(196, 125, 18, 0.12);
  min-height: 24px;
}

.contact-detail {
  margin-top: 14px;
}

.contact-detail strong {
  display: block;
  color: #9a9a9a;
  font-size: 14px;
  text-transform: uppercase;
}

.contact-detail p {
  margin: 6px 0 0;
  color: #303236;
  font-size: 18px;
  line-height: 1.34;
}

.empty-state {
  padding: 32px 20px;
  text-align: center;
  color: var(--muted);
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 12px;
  align-items: center;
  border-radius: 20px;
  padding: 10px;
}

.cart-thumb {
  width: 70px;
  height: 70px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}

.cart-info h3 {
  font-size: 18px;
}

.cart-info p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.qty-controls {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.mini-icon {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #f8dfc9;
}

.mini-icon svg {
  width: 17px;
  height: 17px;
}

.qty {
  font-weight: 900;
  color: var(--accent);
}

.delivery-options {
  display: grid;
  gap: 9px;
}

.delivery-option {
  position: relative;
}

.delivery-option input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.delivery-option span {
  min-height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--white);
  color: var(--accent);
  font-weight: 800;
}

.delivery-option input:checked + span {
  background: var(--accent);
  color: var(--white);
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin: 0 0 6px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.field input,
.field textarea,
.field select,
.admin-input {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 16px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1px rgba(86, 53, 30, 0.12);
  outline: 2px solid transparent;
}

.field textarea {
  padding-top: 13px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.admin-input:focus {
  outline-color: rgba(86, 53, 30, 0.18);
}

.image-upload-field input[type="file"] {
  display: flex;
  align-items: center;
  padding: 12px;
}

.image-upload-field input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  border: 0;
  border-radius: 12px;
  padding: 0 12px;
  color: var(--white);
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.hint {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.actions-stack {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.summary-list {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(86, 53, 30, 0.18);
}

.summary-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-row strong {
  color: var(--accent);
}

.finish {
  min-height: 610px;
  border-radius: 24px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(var(--hero-overlay), var(--hero-overlay)),
    url("https://images.unsplash.com/photo-1544025162-d76694265947?auto=format&fit=crop&w=900&q=80") center / cover;
  box-shadow: var(--shadow-soft);
  color: var(--white);
}

.finish h1 {
  color: var(--white);
  font-size: 42px;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.finish p {
  position: relative;
  z-index: 2;
  line-height: 1.45;
}

.smoke::before {
  width: 150px;
  height: 54px;
  top: 84px;
  left: 32px;
}

.smoke::after {
  width: 180px;
  height: 60px;
  right: 12px;
  bottom: 130px;
  animation-delay: 1.1s;
}

@keyframes smoke {
  to {
    transform: translate(18px, -18px) scale(1.12);
    opacity: 0.25;
  }
}

.finish .eyebrow,
.finish p,
.finish .actions-stack {
  position: relative;
  z-index: 2;
}

@keyframes smsIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-section-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: -4px 0 16px;
  padding: 2px;
  touch-action: pan-x pan-y;
}

.admin-section-tab {
  min-width: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(86, 53, 30, 0.14);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--accent);
  background: var(--white);
  box-shadow: var(--shadow);
  font-weight: 800;
  white-space: nowrap;
}

.admin-section-tab.is-active {
  border-color: transparent;
  color: var(--white);
  background: var(--gold-dark);
}

.admin-control-panel {
  display: grid;
  gap: 16px;
}

.admin-control-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
}

.admin-control-head h3 {
  font-size: 22px;
}

.admin-control-head .hint {
  margin-top: 5px;
}

.admin-logout-button {
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
}

.admin-control-grid {
  display: grid;
  gap: 10px;
}

.admin-search-field label {
  margin-left: 0;
}

.admin-main-action {
  width: 100%;
}

.admin-status-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-settings-grid {
  margin-top: 14px;
}

.admin-item-editor {
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(86, 53, 30, 0.08);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  min-width: 0;
  overflow: hidden;
}

.admin-item-summary {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.admin-item-summary h3 {
  color: #303236;
  font-size: 16px;
  line-height: 1.12;
  min-height: 36px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.admin-item-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.32;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-item-editor .actions-stack {
  gap: 8px;
  margin-top: 4px;
}

.admin-item-editor .primary-button,
.admin-item-editor .danger-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border-radius: 14px;
  padding-inline: 8px;
  font-size: 14px;
  line-height: 1.05;
  white-space: nowrap;
}

.admin-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.admin-item-thumb {
  width: 100%;
  min-height: 150px;
  border-radius: 18px;
  background-color: #d6b293;
  background-size: cover;
  background-position: center;
}

.admin-item-video-thumb {
  display: block;
  height: 180px;
  object-fit: cover;
}

.admin-item-modal {
  max-height: min(88vh, 760px);
  overflow-y: auto;
}

.admin-item-modal .admin-item-thumb {
  min-height: 180px;
  margin-top: 12px;
}

.admin-item-modal .card-heading {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.admin-toggle {
  margin-top: 12px;
}

@media (max-width: 640px) {
  .admin-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .admin-item-editor {
    gap: 10px;
    padding: 10px;
  }

  .admin-item-summary h3 {
    font-size: 14px;
    min-height: 32px;
  }

  .admin-item-thumb {
    min-height: 112px;
    border-radius: 14px;
  }

  .admin-item-modal .admin-item-thumb {
    min-height: 150px;
  }

  .category-chip-list {
    grid-template-columns: 1fr;
  }

  .admin-category-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
  }

  .admin-category-image {
    width: 58px;
  }
}

.order-window {
  margin-bottom: 14px;
}

.order-window.is-closed {
  border-color: rgba(158, 75, 56, 0.24);
}

.admin-column {
  border-radius: 20px;
  padding: 14px;
}

.admin-column h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.order-card {
  border-radius: 16px;
  padding: 12px;
  margin-top: 10px;
  background: var(--white);
}

.order-card.needs-attention {
  border: 2px solid rgba(194, 133, 42, 0.62);
  background: #fff8eb;
  box-shadow: 0 16px 34px rgba(156, 93, 12, 0.18);
}

.order-admin-form {
  margin-top: 12px;
}

.order-card strong {
  color: var(--accent);
}

.order-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.order-items-list {
  display: grid;
  gap: 4px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.order-items-list span {
  display: block;
  padding-bottom: 4px;
  border-bottom: 1px dashed rgba(86, 53, 30, 0.14);
}

.order-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.order-actions .secondary-button,
.order-actions .danger-button {
  min-height: 42px;
  border-radius: 14px;
  padding: 0 12px;
  font-size: 13px;
}

.order-status-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
}

.order-request-note {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(194, 133, 42, 0.1);
  color: var(--accent);
}

.order-request-note.is-attention {
  border: 2px solid rgba(194, 133, 42, 0.55);
  background: #fff0d5;
}

.order-request-note strong,
.order-request-note span {
  display: block;
  font-size: 13px;
}

.order-request-note > strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 16px;
}

.order-request-entry {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(86, 53, 30, 0.2);
}

.order-request-entry b {
  display: block;
  color: var(--accent);
  font-size: 14px;
}

.order-request-note span {
  color: var(--muted);
  margin-top: 2px;
}

.order-request-note p {
  color: var(--accent);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.attention-chip {
  color: #fff8f1;
  background: #9e4b38;
}

.completed-orders-block {
  margin-top: 16px;
}

.completed-orders-list {
  margin-top: 10px;
}

.completed-orders-list .order-card {
  background: #fbf6ee;
}

@media (max-width: 420px) {
  .order-actions {
    grid-template-columns: 1fr;
  }
}

.inventory-row {
  display: grid;
  grid-template-columns: 1fr 76px;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(86, 53, 30, 0.14);
}

.inventory-row input {
  min-height: 38px;
  border-radius: 14px;
  text-align: center;
}

.category-manager {
  margin-top: 16px;
}

.category-add-row {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.category-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.admin-category-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border-radius: 16px;
  background: #f7eadc;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.admin-category-image {
  width: 64px;
  aspect-ratio: 1;
  border-radius: 12px;
  background-color: #d6b293;
  background-size: cover;
  background-position: center;
}

.admin-category-card strong {
  min-width: 0;
  line-height: 1.15;
}

.admin-category-upload {
  min-height: 34px;
  border-radius: 12px;
  padding-inline: 10px;
  font-size: 12px;
  box-shadow: none;
}

.admin-category-card .mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 80;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  width: min(360px, calc(100% - 40px));
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--white);
  text-align: center;
  box-shadow: 0 16px 34px rgba(34, 22, 15, 0.28);
  transition: 0.22s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 760px) {
  .app-shell {
    width: min(1120px, 100%);
    padding-inline: 28px;
  }

  .hero {
    min-height: 560px;
  }

  .hero-actions {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }

  .product-grid,
  .box-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 24px 18px;
  }

  .product-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    min-height: 0;
  }

  .product-photo,
  .box-photo {
    min-height: 0;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
  }

  .item-detail {
    grid-template-columns: minmax(360px, 0.95fr) minmax(360px, 1fr);
    align-items: start;
  }

  .detail-back {
    grid-column: 1 / -1;
  }

  .detail-photo {
    min-height: 560px;
  }

  .card-body {
    padding: 0;
    grid-template-rows: auto auto auto auto;
    gap: 9px;
  }

  .card-heading h3 {
    font-size: 21px;
    min-height: 48px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
  }

  .compact-add {
    min-height: 46px;
    padding-inline: 9px;
    border-radius: 14px;
    font-size: inherit;
    gap: 8px;
    white-space: nowrap;
    line-height: normal;
  }

  .compact-add .button-icon {
    width: 18px;
    height: 18px;
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-section-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .admin-section-tab {
    min-width: 0;
  }

  .horizontal-scroll {
    grid-auto-columns: 31%;
  }
}
