/* Concept A — layout and components. Mobile first. */

[hidden] {
  display: none !important;
}

body {
  overflow-x: hidden;
}

.announce {
  background: var(--text);
  color: #f3e9d8;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding-block: 6px;
  text-align: center;
}

.announce a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.announce .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary);
  flex: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.brand img {
  width: auto;
  height: 26px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.main-nav {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: 18px;
}

.nav-link {
  position: relative;
  padding: 8px 0;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 550;
  transition: color var(--dur) var(--ease);
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--text);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.header-phone {
  display: none;
  color: var(--text);
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--primary);
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  background: var(--text);
  color: #fff8f1;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.cart-btn:hover {
  background: var(--primary);
  transform: translateY(-1px);
}

.cart-btn .icon {
  width: 18px;
  height: 18px;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.cart-label {
  display: none;
}

@media (min-width: 640px) {
  .cart-label {
    display: inline;
  }
}

@media (min-width: 900px) {
  .site-header .container {
    min-height: var(--header-h);
  }

  .brand img {
    height: 30px;
  }

  .main-nav,
  .header-phone {
    display: flex;
  }

  .cart-label {
    display: inline;
  }
}

/* ---------------------------------------------------------------- hero */

.hero {
  padding-block: 34px 44px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-title {
  max-width: 14ch;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero-lead {
  max-width: 48ch;
  color: var(--muted);
  font-size: var(--text-md);
  line-height: 1.6;
}

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

.hero-media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-2);
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(222, 209, 188, 0.8);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.hero-tag span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-tag strong {
  font-family: var(--font-number);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  padding: 14px 10px 0 0;
  border-right: 1px solid var(--line);
}

.hero-facts > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-facts dd {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

@media (min-width: 900px) {
  .hero {
    padding-block: 56px 64px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
  }

  .hero-media img {
    aspect-ratio: 4 / 4.6;
  }

  .hero-facts dd {
    font-size: 14px;
  }
}

/* ------------------------------------------------------------ sections */

.section {
  padding-block: 52px;
}

.section--flush-top {
  padding-top: 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-head p {
  max-width: 38ch;
  margin-top: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.section-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--text);
  font-size: var(--text-sm);
  font-weight: 650;
  white-space: nowrap;
}

.section-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.section-link .icon {
  width: 1em;
  height: 1em;
}

.section--paper {
  background: var(--surface-2);
}

.section--ink {
  background: var(--text);
  color: #f7f1e6;
}

.section--ink .section-head p,
.section--ink .step-text {
  color: #c8bba8;
}

/* ------------------------------------------------------- product cards */

.featured-grid {
  display: grid;
  gap: 26px;
}

.card-product {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
}

.card-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.card-product:hover .card-media img {
  transform: scale(1.025);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-inline: 2px;
}

.card-kicker {
  color: var(--eyebrow);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-title {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.7vw, 23px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 2px;
}

.card-price {
  font-family: var(--font-number);
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-full);
  color: var(--text);
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.add-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(90deg);
}

.add-btn .icon {
  width: 20px;
  height: 20px;
}

.add-btn--wide {
  width: auto;
  padding: 0 16px;
  gap: 6px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 650;
}

@media (min-width: 760px) {
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
  }

  .card-product:first-child {
    grid-column: span 2;
  }

  .card-product:first-child .card-media img {
    aspect-ratio: 16 / 8.4;
  }

  .card-product:first-child .card-title {
    font-size: clamp(24px, 2.3vw, 30px);
  }
}

@media (min-width: 1100px) {
  .featured-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .card-product:first-child {
    grid-column: span 2;
    grid-row: span 2;
  }

  .card-product:first-child .card-media img {
    aspect-ratio: 16 / 11;
  }

  .card-product:first-child .card-body {
    gap: 10px;
  }
}

/* --------------------------------------------------------- categories */

.category-list {
  display: grid;
  gap: 0;
}

.category-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  transition:
    background-color var(--dur) var(--ease),
    padding var(--dur) var(--ease);
}

.category-item:first-child {
  border-top: 1px solid var(--line);
}

.category-item:hover {
  padding-inline: 12px;
  background: rgba(255, 255, 255, 0.6);
}

.category-num {
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.category-name {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.category-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 550;
}

.category-meta .icon {
  width: 18px;
  height: 18px;
  color: var(--text);
  transition: transform var(--dur) var(--ease);
}

.category-item:hover .category-meta .icon {
  transform: translateX(4px);
}

@media (min-width: 800px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }

  .category-item:nth-child(2) {
    border-top: 1px solid var(--line);
  }
}

/* -------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: 26px;
}

.step {
  display: grid;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section--ink .step {
  border-color: rgba(255, 255, 255, 0.18);
}

.step-num {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.step-title {
  font-size: var(--text-md);
  font-weight: 700;
}

.step-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
  }
}

/* ----------------------------------------------------------- location */

.location-grid {
  display: grid;
  gap: 20px;
}

.location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.location-big {
  color: var(--primary);
  font-family: var(--font-display);
  font-size: clamp(72px, 10vw, 132px);
  font-weight: 600;
  letter-spacing: -0.08em;
  line-height: 0.8;
}

.location-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 4px 2px;
}

.location-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.location-row .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--primary);
}

.location-row dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.location-row dd {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.45;
}

.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (min-width: 900px) {
  .location-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: stretch;
  }

  .location-card {
    min-height: 340px;
    padding: 36px;
  }

  .location-info {
    justify-content: center;
    gap: 26px;
    padding: 24px 0;
  }
}

/* -------------------------------------------------------------- footer */

.site-footer {
  margin-top: 20px;
  padding-block: 44px 28px;
  background: var(--text);
  color: #f7f1e6;
}

.footer-grid {
  display: grid;
  gap: 30px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 34ch;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.footer-brand p {
  color: #bfb2a0;
  font-size: 13px;
  line-height: 1.6;
}

.footer-col h3 {
  margin-bottom: 12px;
  color: #8f8374;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 9px;
}

.footer-col a,
.footer-col span {
  color: #e7ddcf;
  font-size: 13px;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #9d9182;
  font-size: 11px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-legal a:hover {
  color: #fff;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------- page heads */

.page-head {
  padding-block: 28px 20px;
  border-bottom: 1px solid var(--line);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span {
  color: var(--line-strong);
}

.page-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

.page-head h1 {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: var(--text-h2);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.page-head p {
  max-width: 52ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.55;
}

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

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}

.meta-pill .icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

/* --------------------------------------------------------------- menu */

.menu-layout {
  display: grid;
  gap: 20px;
  padding-block: 24px 96px;
}

.menu-rail {
  position: sticky;
  top: 64px;
  z-index: 20;
  margin-inline: calc(var(--gutter) * -1);
  padding: 10px var(--gutter);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  scrollbar-width: none;
}

.menu-rail::-webkit-scrollbar {
  display: none;
}

.rail-title,
.rail-card {
  display: none;
}

.cat-nav {
  display: flex;
  gap: 8px;
  width: max-content;
}

.cat-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.cat-link:hover,
.cat-link.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #f7f1e6;
}

.cat-link span {
  opacity: 0.55;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.menu-main {
  min-width: 0;
}

.menu-section {
  padding-block: 8px 34px;
  scroll-margin-top: 132px;
}

.menu-section + .menu-section {
  border-top: 1px solid var(--line);
  padding-top: 30px;
}

.menu-section .section-head {
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.menu-section .section-head h2 {
  font-size: var(--text-h3);
}

.section-num {
  display: inline-block;
  margin-right: 12px;
  color: var(--primary);
  font-family: var(--font-label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  vertical-align: middle;
  transform: translateY(-2px);
}

.section-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 24px;
  padding: 0 8px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.product-grid {
  display: grid;
  gap: 0;
}

.product-card {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.product-card:last-child {
  border-bottom: 0;
}

.product-media {
  display: block;
  overflow: hidden;
  align-self: start;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.product-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 500ms var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.04);
}

.product-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.product-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

.product-desc {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}

.product-price {
  font-family: var(--font-number);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.variants {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.is-active {
  background: var(--text);
  border-color: var(--text);
  color: #f7f1e6;
}

.product-card .add-btn {
  width: 36px;
  height: 36px;
  border-color: var(--line);
}

.product-card .add-btn .icon {
  width: 16px;
  height: 16px;
}

.product-card .add-btn:hover {
  border-color: var(--primary);
}

@media (min-width: 900px) {
  .menu-layout {
    grid-template-columns: 230px minmax(0, 1fr);
    gap: 44px;
    padding-block: 34px 64px;
  }

  .menu-rail {
    position: sticky;
    top: 100px;
    align-self: start;
    margin: 0;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    backdrop-filter: none;
  }

  .rail-title {
    display: block;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
  }

  .cat-nav {
    flex-direction: column;
    gap: 2px;
    width: auto;
  }

  .cat-link {
    justify-content: space-between;
    min-height: 40px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 13px;
  }

  .cat-link::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: transparent;
    flex: none;
  }

  .cat-link:hover,
  .cat-link.is-active {
    background: var(--surface);
    color: var(--text);
  }

  .cat-link.is-active::before {
    background: var(--primary);
  }

  .rail-card {
    display: block;
    margin-top: 26px;
    padding: 18px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }

  .rail-card h3 {
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
  }

  .rail-card p {
    display: flex;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
  }

  .rail-card p + p {
    margin-top: 8px;
  }

  .rail-card .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
    color: var(--primary);
  }

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

  .product-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 0 20px;
    border-bottom: 0;
  }

  .product-media img {
    aspect-ratio: 4 / 3;
  }

  .product-title {
    font-size: 18px;
  }

  .product-desc {
    font-size: 13px;
  }

  .product-price {
    font-size: 20px;
  }

  .product-card .add-btn {
    width: 40px;
    height: 40px;
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* mobile cart bar */
.cart-bar {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(calc(100% - 24px), 520px);
  padding: 8px 8px 8px 18px;
  background: var(--text);
  color: #f7f1e6;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
}

.cart-bar-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.cart-bar-count {
  color: #a99c8b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cart-bar-total {
  font-family: var(--font-number);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cart-bar .btn {
  min-height: 42px;
  margin-left: auto;
  padding-inline: 16px;
}

@media (min-width: 900px) {
  .cart-bar {
    display: none;
  }
}

/* --------------------------------------------------------------- cart */

.cart-layout {
  display: grid;
  gap: 24px;
  padding-block: 26px 56px;
}

.cart-items {
  min-width: 0;
}

.cart-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.cart-items-head h2 {
  font-family: var(--font-display);
  font-size: var(--text-h3);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.cart-items-head a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 650;
}

.cart-items-head a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cart-paper {
  padding: 6px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid var(--line);
}

.line:last-child {
  border-bottom: 0;
}

.line-media {
  overflow: hidden;
  align-self: start;
  border-radius: var(--radius-md);
  background: var(--surface-2);
}

.line-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.line-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.line-title {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.3;
}

.line-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-top: 6px;
  padding: 2px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  width: max-content;
}

.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--text);
}

.qty-btn:hover {
  background: var(--surface);
}

.qty-btn .icon {
  width: 14px;
  height: 14px;
}

.qty-val {
  min-width: 22px;
  text-align: center;
  font-family: var(--font-number);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.line-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.line-price {
  font-family: var(--font-number);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
}

.remove:hover {
  background: rgba(166, 43, 31, 0.1);
  color: var(--danger);
}

.remove .icon {
  width: 15px;
  height: 15px;
}

.cart-note {
  display: flex;
  gap: 9px;
  margin-top: 16px;
  padding: 12px 14px;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.cart-note .icon {
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: var(--primary);
}

.recommend {
  margin-top: 28px;
}

.recommend h3 {
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
}

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

.recommend-card {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.recommend-card img {
  width: 56px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.recommend-card h4 {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.recommend-card .price {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.cart-summary {
  align-self: start;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.cart-summary h2 {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

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

.summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
}

.summary-row span:last-child {
  color: var(--text);
  font-family: var(--font-number);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.summary-row--total {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.summary-row--total span:last-child {
  font-size: 24px;
  font-weight: 750;
}

.service-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin-top: 22px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: var(--radius-full);
}

.service-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 38px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.1;
  transition:
    background-color var(--dur) var(--ease),
    color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.service-btn .icon {
  width: 14px;
  height: 14px;
}

.service-btn:hover {
  color: var(--text);
}

.service-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.summary-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.summary-form .field input,
.summary-form .field textarea {
  min-height: 44px;
  padding: 10px 12px;
}

.summary-form .field textarea {
  min-height: 76px;
}

.summary-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.cart-summary .btn-block {
  margin-top: 16px;
  min-height: 52px;
}

.summary-note {
  display: flex;
  gap: 7px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.summary-note .icon {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  flex: none;
}

@media (min-width: 640px) {
  .line {
    grid-template-columns: 84px minmax(0, 1fr) auto;
    gap: 16px;
  }

  .line-title {
    font-size: 15px;
  }

  .line-price {
    font-size: 15px;
  }
}

@media (min-width: 900px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.85fr);
    gap: 40px;
    padding-block: 34px 72px;
    align-items: start;
  }

  .cart-summary {
    position: sticky;
    top: 100px;
    padding: 28px;
  }

  .cart-paper {
    padding: 8px 24px;
  }
}


@media (max-width: 599px) {
  .announce .container > span:first-of-type,
  .announce .container > .dot,
  .announce .container > .icon {
    display: none;
  }

  .announce .container {
    gap: 8px;
    min-height: 30px;
    font-size: 10px;
  }
}


/* Mobile-first: full-bleed white canvas, safe areas, compact facts */
@media (max-width: 899px) {
  .announce {
    display: none;
  }

  .site-header {
    padding-top: env(safe-area-inset-top);
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-facts > div:last-child {
    border-bottom: 0;
  }

  .hero-facts dt {
    margin: 0;
    flex: none;
  }

  .hero-facts dd {
    text-align: right;
  }

  .cart-bar {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }

  .site-footer {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }

  .mobile-menu .sheet {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}


/* Mobile cart: single column, no intrinsic overflow from long summary text */
@media (max-width: 899px) {
  .cart-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cart-items,
  .cart-summary {
    min-width: 0;
    width: 100%;
  }

  .cart-summary {
    padding: 18px;
  }

  .summary-row span:last-child {
    white-space: normal;
    text-align: right;
  }

  .line {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
  }

  .line-title {
    font-size: 13px;
  }

  .line-price {
    font-size: 13px;
  }
}

/* Mobile header: hide the city label to keep the cart button on screen */

@media (max-width: 899px) {
  .brand-name {
    display: none;
  }

  .site-header .container {
    gap: 8px;
  }

  .header-actions {
    gap: 8px;
  }
}

.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 12px;
  padding: 4px 0;
  color: var(--ink-muted, #6b6256);
  font-size: 10.5px;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: none;
  accent-color: var(--accent, #d62828);
}

.consent-check a {
  color: var(--accent, #d62828);
  text-decoration: underline;
}

.thankyou-live {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2, #f6f4f0);
  color: var(--ink, #1e1a15);
  font-size: 14px;
  font-weight: 650;
}

.thankyou-live.is-ready {
  background: #e8f7ec;
  color: #176b32;
}

.thankyou-live.is-error {
  background: #fdeceb;
  color: #a62b1f;
}

/* address suggestions (DaData proxy) */
.address-field {
  position: relative;
}

.address-suggestions {
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line, #e4e6e0);
  border-radius: 12px;
  background: var(--surface, #fff);
  box-shadow: 0 16px 40px rgba(16, 24, 40, 0.16);
}

.address-suggestion {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line, #e4e6e0);
  background: transparent;
  color: var(--ink, #15171c);
  text-align: left;
  cursor: pointer;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover,
.address-suggestion:focus-visible {
  background: var(--surface-2, #f5f3ef);
}

.address-suggestion strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
}

.address-suggestion small {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted, #6d727c);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
