/* Storefront. Content (hero, grid, cards) is opaque. Glass is only the floating header and sheet controls. */

.announcement {
  padding: 10px 16px;
  background: var(--label);
  color: var(--bg);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

/* Floating glass capsule: content scrolls beneath it */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  width: min(100% - 24px, 1120px);
  min-height: 60px;
  margin: 12px auto 0;
  padding: 6px 8px 6px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
}

.brand {
  font: 700 19px/1 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--label);
  text-decoration: none;
}

.bag-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: var(--target);
  min-height: var(--target);
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--label);
}

.hero { padding: 56px 0 32px; }
.hero h1 {
  max-width: 13ch;
  margin: 0 0 28px;
  font: 700 clamp(2.4rem, 7vw, 4.25rem)/1 var(--font-display);
  letter-spacing: -0.04em;
}
.hero-cta { text-decoration: none; }

.shop { padding: 16px 0 72px; }
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 12px;
}
.section-title { margin: 0; font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -0.02em; }
.shop-bar .search { flex: 1 1 240px; max-width: 340px; }

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 -16px;
  padding: 2px 16px 16px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: var(--target);
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--label);
  font-weight: 600;
}
.chip[aria-pressed="true"] { background: var(--label); color: var(--bg); }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.card-open {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: var(--r-m);
  background: none;
  color: var(--label);
  text-align: left;
}
.card-name { display: block; font-weight: 600; line-height: 1.3; }
.card-cat { display: block; margin-top: -6px; font-size: 15px; color: var(--label-2); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.add {
  min-height: var(--target);
  padding: 0 16px;
  border: 1px solid var(--separator);
  border-radius: 999px;
  background: var(--surface);
  color: var(--label);
  font-weight: 600;
}
.add:disabled { color: var(--label-2); cursor: not-allowed; }
@media (prefers-reduced-motion: no-preference) {
  .card-open .tile { transition: transform 0.2s; }
  .card-open:hover .tile { transform: translateY(-2px); }
}

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--separator);
  color: var(--label-2);
  font-size: 15px;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: var(--accent); }

/* Product sheet */
.sheet-body .tile.sheet-tile { aspect-ratio: 4 / 3; border-radius: var(--r-l); margin: 8px 0 20px; }
.product-title { margin: 0 0 6px; font: 700 1.9rem/1.15 var(--font-display); letter-spacing: -0.02em; }
.big-price { margin: 0 0 12px; font: 600 1.35rem/1.2 var(--font-ui); font-variant-numeric: tabular-nums; }
.product-desc { margin: 0; color: var(--label-2); }
.origin { margin: 12px 0 0; font-weight: 600; }
.stock { margin: 12px 0 20px; font-size: 15px; color: var(--label-2); }

/* Bag sheet */
.bag-list { margin: 0; padding: 0; list-style: none; }
.bag-line {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--separator);
}
.bag-line .tile { aspect-ratio: 1; border-radius: 14px; }
.bag-line .monogram { font-size: 1rem; }
.bag-info { min-width: 0; }
.bag-info p { margin: 0; }
.line-name { font-weight: 600; overflow-wrap: anywhere; }
.bag-info .btn-danger { margin-left: -12px; }
.bag-info .muted { font-size: 15px; }

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-2);
}
.stepper button {
  width: var(--target);
  height: var(--target);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--label);
  font-size: 20px;
}
.stepper button:disabled { opacity: 0.35; cursor: not-allowed; }
.stepper span {
  min-width: 28px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0 8px;
  font: 600 19px/1.3 var(--font-ui);
}
.progress {
  height: 6px;
  margin: 8px 0 6px;
  border-radius: 3px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.note { margin: 10px 0 0; font-size: 14px; text-align: center; color: var(--label-2); }
.bag-actions { margin-top: 16px; }

/* Totals, checkout and order confirmation */
.totals { display: grid; gap: 6px; padding: 14px 0 4px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.totals .grand { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--separator); font: 600 19px/1.3 var(--font-ui); }
.checkout { display: grid; gap: 16px; padding-top: 8px; }
.pay { margin: 0; padding: 12px 14px; border-radius: var(--r-s); background: var(--surface-2); font-size: 15px; }
.done { display: grid; gap: 14px; padding-top: 8px; }
.done p { margin: 0; }
.account { display: grid; gap: 0; margin: 0; border-radius: var(--r-s); background: var(--surface-2); overflow: hidden; }
.account div { display: grid; gap: 2px; padding: 12px 14px; }
.account div + div { border-top: 1px solid var(--separator); }
.account dt { font-size: 14px; color: var(--label-2); }
.account dd { margin: 0; font-weight: 600; font-size: 18px; overflow-wrap: anywhere; user-select: all; }