*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --soft-black: #2a2725;
  --soft-black-deep: #1c1a19;
  --primary: #f5c518;
  --primary-dark: #d4a012;
  --primary-hover: #f7d03a;
  --primary-muted: rgba(245, 197, 24, 0.22);
  --primary-foreground: #1c1a19;
  --green-900: var(--soft-black-deep);
  --green-800: var(--soft-black);
  --green-700: #403c39;
  --green-100: rgba(245, 197, 24, 0.16);
  --green-50: rgba(255, 255, 255, 0.06);
  --beige: #d4cfc9;
  --beige-soft: rgba(255, 255, 255, 0.1);
  --beige-muted: rgba(255, 255, 255, 0.16);
  --gray-900: #1a1a1a;
  --gray-700: #4a4a4a;
  --gray-500: #767676;
  --gray-200: rgba(255, 255, 255, 0.14);
  --gray-100: rgba(255, 255, 255, 0.08);
  --white: #ffffff;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --surface-elevated: #353230;
  --surface-elevated-muted: #403c39;
  --border-on-surface: #e8e8e8;
  --shadow-elevated: 0 2px 10px rgba(0, 0, 0, 0.22), 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  --text-on-dark: #ffffff;
  --text-muted-on-dark: rgba(255, 255, 255, 0.55);
  --text-subtle-on-dark: rgba(255, 255, 255, 0.38);
  --text-on-elevated: #ffffff;
  --text-muted-on-elevated: rgba(255, 255, 255, 0.58);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --header-h: 220px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --page-max: 1200px;
  --page-gutter: 16px;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --text-xs: 0.625rem;
  --text-sm: 0.75rem;
  --text-base: 0.8125rem;
  --text-md: 0.875rem;
  --text-lg: 1rem;
  --text-xl: 1.125rem;
  --category-row-gap-first: 28px;
  --category-row-gap: 40px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-ui);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

body {
  background: var(--soft-black);
  color: var(--text-on-dark);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  font-family: var(--font-ui);
  scrollbar-width: none;
  -ms-overflow-style: none;
}

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

/* Scrollable areas — hidden scrollbars, scroll still works */
.hero-track,
.category-nav,
.product-scroll,
.filter-chips,
.cart-items,
.main {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.hero-track::-webkit-scrollbar,
.category-nav::-webkit-scrollbar,
.product-scroll::-webkit-scrollbar,
.filter-chips::-webkit-scrollbar,
.cart-items::-webkit-scrollbar,
.main::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

.hidden {
  display: none !important;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--soft-black);
  border-bottom: none;
  padding: 12px 16px 0;
  color: var(--white);
  transition: box-shadow 0.2s ease;
}

.header.is-compact {
  box-shadow: var(--shadow-sm);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  margin-bottom: 10px;
}

.header-leading {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  height: 40px;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo-img {
  height: 22px;
  width: auto;
  max-width: 148px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
}

.join-btn {
  flex-shrink: 0;
  padding: 9px 16px;
  background: var(--primary);
  color: var(--primary-foreground);
  border: none;
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-full);
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(245, 197, 24, 0.35);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}

.join-btn:active {
  transform: scale(0.97);
  background: var(--primary-dark);
  box-shadow: 0 1px 6px rgba(245, 197, 24, 0.25);
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}

.cart-badge {
  position: absolute;
  top: 5px;
  right: 7px;
  min-width: 18px;
  height: 18px;
  padding: 0;
  background: var(--primary);
  color: var(--primary-foreground);
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  line-height: 1;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
  border: 1.5px solid var(--soft-black);
}

/* Store status metrics */
.store-highlight {
  display: grid;
  grid-template-rows: 1fr;
  margin-bottom: 10px;
  transition:
    grid-template-rows 0.55s cubic-bezier(0.4, 0, 0.2, 1),
    margin-bottom 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.is-compact .store-highlight {
  grid-template-rows: 0fr;
  margin-bottom: 0;
}

.store-highlight-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.header.is-compact .store-highlight-inner {
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  pointer-events: none;
}

.store-metrics {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 0 2px;
  margin-bottom: 0;
  border-bottom: none;
}

.metric {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  padding: 0 4px;
  text-align: center;
}

.metric-icon-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 22px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.metric-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
}

.metric-value {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}

.metric-label {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--text-subtle-on-dark);
  line-height: 1.2;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 0;
  --search-wrap-padding-bottom: 12px;
  padding-bottom: var(--search-wrap-padding-bottom);
}

.header .search-wrap {
  width: 100%;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 0;
  bottom: var(--search-wrap-padding-bottom);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.62);
  pointer-events: none;
  z-index: 1;
}

.search-icon svg {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.search-input {
  width: 100%;
  padding: 11px 14px 11px 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: var(--text-md);
  line-height: 1.25;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--primary-muted);
}

.search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.category-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
}

.category-chip {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted-on-dark);
  background: var(--gray-100);
  border: 1px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}

.category-chip.active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.category-chip.husky-green-chip {
  background: var(--primary-muted);
  color: var(--primary);
  border-color: var(--primary);
}

/* Main */
.main {
  padding-bottom: calc(24px + var(--safe-bottom));
}

.catalog-loader {
  margin: 12px 16px 0;
  padding: 10px 14px;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-muted-on-dark);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  text-align: center;
}

/* Home — one product row per category */
.home-category-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-top: 12px;
  padding-bottom: var(--category-row-gap);
}

/* Frutas → Laticínios (ideal); restantes categorias com mais respiro */
.home-category-rows .category-section + .category-section {
  margin-top: var(--category-row-gap);
}

.home-category-rows .category-section:first-child + .category-section {
  margin-top: var(--category-row-gap-first);
}

.home-category-rows.hidden {
  display: none;
}

.home-category-rows .category-section {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-category-rows .section-header {
  margin: 0;
  padding: 0 16px;
}

.home-category-rows .product-scroll {
  padding: 2px var(--page-gutter) 0;
}

/* Hero banners (removed from layout) */
.hero {
  padding: 12px 16px 8px;
}

.hero-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 4px;
}

.hero-slide {
  flex: 0 0 min(88vw, 320px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  min-height: 140px;
  background: var(--green-900);
  box-shadow: var(--shadow-md);
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 140px;
  color: var(--white);
}

.hero-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  background: var(--primary-muted);
  color: var(--primary);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.hero-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
  letter-spacing: 0.005em;
}

.hero-content p {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  line-height: 1.35;
  opacity: 0.92;
  margin-bottom: 12px;
}

.hero-content .btn-primary {
  width: auto;
  align-self: flex-start;
  padding: 7px 16px;
  font-size: var(--text-sm);
  border-radius: 6px;
}

.hero-content .hero-cta--outline {
  border-radius: 6px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background 0.2s, width 0.2s;
}

.hero-dot.active {
  background: var(--primary);
  width: 18px;
  border-radius: var(--radius-full);
}

.hero-cta--outline {
  background: transparent;
  border: 1.5px solid var(--beige);
  color: var(--beige);
}

.hero-cta--outline:active {
  background: rgba(212, 207, 201, 0.15);
  color: var(--beige);
}

/* Category sections (spacing between rows handled by .home-category-rows gap) */
.category-section {
  margin-bottom: 0;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 16px;
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
  color: var(--text-on-dark);
}

.see-all {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
}

/* Product scroll row */
.product-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px var(--page-gutter) 12px;
  scroll-padding-inline: var(--page-gutter);
  scroll-snap-type: x proximity;
}

/* Minimal row cards */
.product-card--openable {
  cursor: pointer;
}

.product-card--openable .cart-control,
.product-card--openable [data-cart-control] {
  cursor: pointer;
}

.product-scroll .product-card--row {
  flex: 0 0 124px;
  scroll-snap-align: start;
  overflow: hidden;
}

.product-card--row .product-card-image {
  position: relative;
  aspect-ratio: 1;
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.discount-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--primary);
  color: #1a1a1a;
  font-family: var(--font-ui);
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  pointer-events: none;
}

.product-prices {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 6px;
  margin: 0 0 4px;
}

.product-prices .product-price {
  margin: 0;
}

.product-compare-price {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-subtle-on-dark);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.product-card--row .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: opacity 0.2s;
}

.cart-control-slot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: none;
}

.cart-control-slot .cart-control {
  pointer-events: auto;
}

.cart-control {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--white);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: min-width 0.2s ease, padding 0.2s ease, box-shadow 0.2s ease;
}

.cart-control--empty {
  width: 32px;
  min-width: 32px;
  max-width: 32px;
  padding: 0;
  justify-content: center;
  align-items: center;
}

.cart-control:not(.cart-control--empty) {
  min-width: 88px;
  padding: 0 2px;
}

.cart-control-btn {
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #1a1a1a;
  line-height: 0;
  cursor: pointer;
  flex-shrink: 0;
  font-family: var(--font-ui);
}

.cart-control-btn--minus,
.cart-control-btn--plus {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-weight: normal;
}

.cart-control-btn--plus {
  border-radius: var(--radius-full);
}

.cart-control-btn .ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.cart-control-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 0 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  user-select: none;
  flex-shrink: 0;
}

.cart-control-btn:active {
  background: rgba(0, 0, 0, 0.06);
}

.cart-control-btn--minus[hidden],
.cart-control-qty[hidden] {
  display: none;
}

.product-card--row .product-card-body {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  flex: unset;
  min-height: 3.5rem;
}

.product-card--row .product-price,
.product-card--row .product-prices .product-price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.product-card--row .product-name {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.product-card--row .product-prices {
  margin-bottom: 4px;
}

.product-card--row {
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}

/* Legacy grid cards (unused — row cards are default) */
.product-card:not(.product-card--row) {
  flex: 0 0 160px;
  scroll-snap-align: start;
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  display: flex;
  flex-direction: column;
  color: var(--text-on-elevated);
}

.product-card.featured {
  flex: 0 0 180px;
}

.product-card:not(.product-card--row) .product-card-image {
  position: relative;
  aspect-ratio: 1;
  background: var(--surface-elevated-muted);
  overflow: hidden;
}

.product-card:not(.product-card--row) .product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.husky-green-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  background: var(--primary-muted);
  color: var(--primary-dark);
  font-size: 0.625rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.product-card:not(.product-card--row) .product-card-body {
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card:not(.product-card--row) .product-name {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 2px;
  color: var(--text-on-elevated);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: 0.6875rem;
  color: var(--text-muted-on-elevated);
  line-height: 1.35;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-size {
  font-size: 0.75rem;
  color: var(--text-muted-on-elevated);
  margin-bottom: 6px;
}

.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.product-card:not(.product-card--row) .product-compare-price {
  color: var(--text-muted-on-elevated);
}

.product-card:not(.product-card--row) .product-price {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-on-elevated);
  letter-spacing: -0.01em;
}

.product-card--row .product-card-body {
  background: transparent;
}

.product-card--row .product-compare-price {
  color: var(--text-subtle-on-dark);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 0.75rem;
  color: var(--text-muted-on-elevated);
}

.product-rating svg {
  width: 12px;
  height: 12px;
  color: var(--primary);
}

.btn-primary {
  width: 100%;
  padding: 10px 12px;
  background: var(--primary);
  color: var(--primary-foreground);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s, transform 0.1s;
}

.btn-primary:active {
  transform: scale(0.97);
  background: var(--primary-dark);
}

.btn-primary.added {
  background: var(--primary-hover);
}

/* Search results grid */
.search-results {
  padding: 0 16px 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
  padding: 0 var(--page-gutter) 24px;
}

.product-grid .product-card--row {
  flex: unset;
  width: 100%;
  min-width: 0;
}

/* Profile drawer */
.profile-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  pointer-events: none;
}

.profile-drawer.open {
  pointer-events: auto;
}

.profile-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}

.profile-drawer.open .profile-overlay {
  opacity: 1;
}

.profile-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: min(100%, 400px);
  max-width: 100%;
  background: var(--soft-black);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  color: var(--text-on-dark);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.35);
}

.profile-drawer.open .profile-panel {
  transform: translateX(0);
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.profile-panel-title {
  flex: 1;
  font-size: 1.125rem;
  font-weight: 700;
  min-width: 0;
}

.profile-back,
.profile-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted-on-dark);
  flex-shrink: 0;
  font-size: 1.5rem;
}

.profile-back.hidden {
  display: none;
}

.profile-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.profile-body::-webkit-scrollbar {
  display: none;
}

.profile-guest-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.profile-guest-lead {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--text-muted-on-dark);
  margin-bottom: 20px;
}

.profile-guest-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-on-dark);
  transition: background 0.15s, border-color 0.15s;
}

.btn-secondary:active {
  background: rgba(255, 255, 255, 0.06);
}

.profile-login-footer {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted-on-dark);
  margin-top: 4px;
}

.profile-link-btn {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.8125rem;
  padding: 0 0 0 4px;
}

.profile-card {
  margin-bottom: 16px;
}

.profile-name {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.profile-meta {
  font-size: 0.875rem;
  color: var(--text-muted-on-dark);
  margin-bottom: 2px;
}

.profile-badge {
  display: inline-block;
  margin-top: 10px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--primary-muted);
  color: var(--primary);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.profile-address-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle-on-dark);
  margin-bottom: 6px;
}

.profile-address {
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 20px;
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-menu-btn {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  font-size: 0.9375rem;
  font-weight: 500;
}

.profile-menu-btn--danger {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.2);
}

.profile-action {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-field span {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.profile-field input {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  color: var(--text-on-dark);
  font-size: 0.9375rem;
}

.profile-field input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-muted);
}

.profile-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-error {
  font-size: 0.8125rem;
  color: #fca5a5;
}

.profile-error.hidden {
  display: none;
}

.profile-empty {
  text-align: center;
  padding: 32px 12px 8px;
  color: var(--text-muted-on-dark);
  font-size: 0.875rem;
  line-height: 1.45;
}

.profile-empty-hint {
  text-align: center;
  padding: 0 12px 24px;
  color: var(--text-subtle-on-dark);
  font-size: 0.8125rem;
  line-height: 1.4;
}

.profile-orders-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-order {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-order-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.profile-order-date {
  font-weight: 600;
  font-size: 0.875rem;
}

.profile-order-total {
  font-weight: 700;
  color: var(--primary);
}

.profile-order-meta {
  font-size: 0.8125rem;
  color: var(--text-muted-on-dark);
}

.profile-view.hidden {
  display: none;
}

@media (min-width: 768px) {
  .profile-panel {
    width: 380px;
  }
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.cart-drawer.open {
  pointer-events: auto;
}

.cart-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-drawer.open .cart-overlay {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: 85dvh;
  min-height: 0;
  background: var(--soft-black);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  padding-bottom: var(--safe-bottom);
  color: var(--text-on-dark);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.cart-drawer.open .cart-panel {
  transform: translateY(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-header h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-on-dark);
}

.cart-close {
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  flex: 1 1 auto;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted-on-dark);
}

.cart-empty svg {
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  color: var(--text-subtle-on-dark);
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  padding: 6px;
  border-radius: var(--radius-sm);
  object-fit: contain;
  background: var(--white);
}

.cart-item-info {
  flex: 1;
  min-width: 0;
}

.cart-item-name {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
  color: rgba(255, 255, 255, 0.92);
}

.cart-item-price {
  font-family: var(--font-ui);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-on-dark);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: var(--surface-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  color: var(--primary);
}

.qty-value {
  font-size: 0.875rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  color: var(--text-on-dark);
}

.cart-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 1rem;
  color: var(--text-muted-on-dark);
}

.cart-total strong {
  font-family: var(--font-ui);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-on-dark);
}

.btn-checkout {
  padding: 14px;
  font-size: 1rem;
}

/* Checkout flow */
.checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.checkout-modal.open {
  pointer-events: auto;
}

.checkout-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}

.checkout-modal.open .checkout-overlay {
  opacity: 1;
}

.checkout-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--soft-black);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 20px calc(24px + var(--safe-bottom));
  color: var(--text-on-dark);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.checkout-panel.checkout-panel--slot {
  max-height: 92dvh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.checkout-panel.checkout-panel--slot::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.checkout-slot-lead {
  margin-bottom: 16px;
}

.slot-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.slot-day-filters {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin: 0 -4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.slot-day-filters::-webkit-scrollbar {
  display: none;
}

.slot-day-filter {
  flex: 1 0 0;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted-on-dark);
  background: var(--surface-elevated);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  white-space: nowrap;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.slot-day-filter.active {
  background: var(--primary-muted);
  border-color: var(--primary);
  color: var(--primary);
}

.slot-day-caption {
  font-size: 0.75rem;
  color: var(--text-subtle-on-dark);
  text-transform: capitalize;
  margin: 0;
}

.slot-times {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.slot-chip {
  flex: 0 0 calc(25% - 6px);
  min-width: 72px;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-elevated);
  color: var(--text-on-dark);
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.slot-chip.active {
  border-color: var(--primary);
  background: var(--primary-muted);
  color: var(--primary);
  font-weight: 700;
}

.slot-chip--unavailable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-subtle-on-dark);
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.06);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  opacity: 0.55;
  cursor: not-allowed;
  user-select: none;
}

@media (max-width: 380px) {
  .slot-chip {
    flex: 0 0 calc(33.333% - 6px);
  }
}

#checkout-slot-confirm:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.checkout-panel.checkout-panel--signup {
  top: auto;
  bottom: 0;
  max-height: 94dvh;
  max-height: 94svh;
  height: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.checkout-panel.checkout-panel--signup::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.checkout-modal.open .checkout-panel {
  transform: translateY(0);
}

.checkout-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.checkout-back {
  margin-bottom: 8px;
  font-size: 1.25rem;
  color: var(--text-muted-on-dark);
  padding: 4px 0;
  line-height: 1;
}

.checkout-step {
  padding-top: 8px;
}

.checkout-step.hidden {
  display: none;
}

.checkout-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 8px;
}

.checkout-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  padding-right: 32px;
  color: var(--text-on-dark);
}

.checkout-lead {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-muted-on-dark);
  margin-bottom: 12px;
}

.checkout-step[data-step="waitlist"] .checkout-lead {
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 8px;
}

.checkout-note {
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text-subtle-on-dark);
  margin-bottom: 20px;
}

.checkout-step[data-step="waitlist"] .checkout-title {
  margin-bottom: 8px;
}

.checkout-step[data-step="waitlist"] .checkout-waitlist-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
}

.checkout-step[data-step="waitlist"] .checkout-waitlist-icon svg {
  width: 24px;
  height: 24px;
}

.checkout-pricing {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-on-dark);
  margin-bottom: 24px;
}

.checkout-hint {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-subtle-on-dark);
  margin-bottom: 16px;
}

.checkout-panel--signup {
  padding: 20px 20px calc(24px + var(--safe-bottom));
}

.checkout-panel--signup .checkout-step[data-step="signup"] {
  padding-top: 4px;
}

.checkout-panel--signup .checkout-back {
  margin-bottom: 12px;
  font-size: 1.25rem;
}

.checkout-panel--signup .checkout-eyebrow {
  margin-bottom: 6px;
}

.checkout-panel--signup .checkout-title {
  font-size: 1.25rem;
  margin-bottom: 16px;
  line-height: 1.3;
}

.checkout-panel--signup .checkout-form {
  gap: 4px;
}

.checkout-panel--signup .checkout-field {
  gap: 6px;
  margin-bottom: 4px;
}

.checkout-panel--signup .checkout-field span {
  font-size: 0.75rem;
}

.checkout-panel--signup .checkout-field input {
  padding: 12px 14px;
  font-size: 1rem;
  line-height: 1.3;
  min-height: 44px;
}

.checkout-panel--signup .checkout-cta {
  padding: 14px;
  margin-top: 20px;
  flex-shrink: 0;
}

.checkout-panel--signup .checkout-fieldset {
  gap: 12px;
  margin-bottom: 8px;
}

.checkout-panel--signup .checkout-fieldset legend {
  font-size: 0.6875rem;
  margin-bottom: 4px;
}

.checkout-panel--signup .checkout-fieldset + .checkout-fieldset {
  padding-top: 16px;
  margin-top: 8px;
}

.checkout-panel--signup .checkout-field-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-panel--signup .checkout-field-row .checkout-field {
  margin-bottom: 8px;
}

.checkout-panel--signup .checkout-optional {
  font-size: 0.6875rem;
}

.checkout-panel--signup .checkout-error {
  margin-top: 8px;
}

.checkout-fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkout-fieldset legend {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-subtle-on-dark);
  margin-bottom: 2px;
  padding: 0;
}

.checkout-fieldset + .checkout-fieldset {
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.checkout-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.checkout-optional {
  font-style: normal;
  font-weight: 400;
  color: var(--text-subtle-on-dark);
}

.checkout-cta {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.checkout-waitlist-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.14);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.checkout-waitlist-icon svg {
  width: 26px;
  height: 26px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkout-field span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
}

.checkout-field input,
.checkout-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  font-family: var(--font-ui);
  font-size: 1rem;
  color: var(--text-on-dark);
  background: var(--surface-elevated);
}

.checkout-field input::placeholder,
.checkout-field textarea::placeholder {
  color: var(--text-subtle-on-dark);
}

.checkout-field input:focus,
.checkout-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-muted);
}

.checkout-field input:-webkit-autofill,
.checkout-field input:-webkit-autofill:hover,
.checkout-field input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 100px var(--surface-elevated) inset;
  -webkit-text-fill-color: var(--text-on-dark);
  caret-color: var(--text-on-dark);
}

.checkout-field textarea {
  resize: vertical;
  min-height: 72px;
}

.checkout-error {
  font-size: 0.8125rem;
  color: #fca5a5;
  line-height: 1.4;
}

.checkout-error.hidden {
  display: none;
}

@media (min-width: 640px) {
  .checkout-panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: min(440px, calc(100% - 32px));
    max-height: min(90dvh, 640px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  }

  .checkout-panel.checkout-panel--slot,
  .checkout-panel.checkout-panel--signup {
    top: 50%;
    bottom: auto;
    height: auto;
    max-height: min(92dvh, 720px);
    border-radius: var(--radius-lg);
    overflow-y: auto;
  }

  .checkout-modal.open .checkout-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Product detail sheet (Bolt-style) */
.product-sheet {
  position: fixed;
  inset: 0;
  z-index: 240;
  pointer-events: none;
}

.product-sheet.open {
  pointer-events: auto;
}

.product-sheet-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-sheet.open .product-sheet-overlay {
  opacity: 1;
}

.product-sheet-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  background: var(--soft-black);
  color: var(--text-on-dark);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

.product-sheet.open .product-sheet-panel {
  transform: translateY(0);
}

.product-sheet-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}

.product-sheet-close .ui-icon--close {
  width: 18px;
  height: 18px;
  display: block;
}

.product-sheet-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 0 calc(20px + var(--safe-bottom));
  scrollbar-width: none;
}

.product-sheet-scroll::-webkit-scrollbar {
  display: none;
}

.product-sheet-hero-zone {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 44px 16px 20px;
  background: var(--white);
  border-radius: 20px 20px 0 0;
}

.product-sheet-image {
  width: min(220px, 56vw);
  height: auto;
  max-height: 220px;
  object-fit: contain;
  display: block;
}

.product-sheet-body {
  padding: 16px 16px 0;
}

.product-sheet-title {
  font-family: var(--font-ui);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin-bottom: 8px;
}

.product-sheet-price .product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-on-dark);
}

.product-sheet-price .product-prices .product-price {
  font-size: 1.25rem;
}

.product-sheet-price .product-compare-price {
  font-size: var(--text-sm);
  color: var(--text-muted-on-dark);
}

.product-sheet-actions {
  margin: 16px 0 20px;
  padding: 0;
}

.product-sheet-cta {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.catalog-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted-on-dark);
}

.product-sheet-related {
  margin-top: 0;
  padding-top: 4px;
}

.product-sheet-related-title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-on-dark);
  margin-bottom: 12px;
}

.product-sheet-related-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 -4px;
  scrollbar-width: none;
}

.product-sheet-related-scroll::-webkit-scrollbar {
  display: none;
}

/* Mesmo layout/cores dos cartões da home (.product-card--row) */
.product-sheet-related-card {
  flex: 0 0 124px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.product-sheet-related-media {
  position: relative;
  aspect-ratio: 1;
  margin: 0 0 8px;
  padding: 12px;
  border-radius: 14px;
  background: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.product-sheet-related-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-sheet-related-body {
  display: flex;
  flex-direction: column;
  padding: 0 4px;
  min-height: 3.5rem;
}

.product-sheet-related-body .product-price,
.product-sheet-related-body .product-prices .product-price {
  margin: 0 0 4px;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: -0.02em;
}

.product-sheet-related-body .product-prices {
  margin: 0 0 4px;
}

.product-sheet-related-body .product-compare-price {
  font-size: 0.75rem;
  color: var(--text-subtle-on-dark);
}

.product-sheet-related-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

.product-sheet-qty {
  display: flex;
  align-items: stretch;
  height: 44px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  background: var(--surface-elevated);
  overflow: hidden;
}

.product-sheet-qty-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--text-on-dark);
  cursor: pointer;
  flex-shrink: 0;
}

.product-sheet-qty-btn .ui-icon {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}

.product-sheet-qty-value {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0 4px;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--text-on-dark);
}

.product-sheet-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 48px;
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--primary-foreground);
  cursor: pointer;
  transition: background 0.15s ease;
}

.product-sheet-cta:active {
  background: var(--primary-hover);
}

.product-sheet-cta-label {
  font-size: var(--text-md);
  font-weight: 800;
  line-height: 1.1;
}

.product-sheet-cta-price {
  font-size: var(--text-sm);
  font-weight: 600;
  opacity: 0.9;
  line-height: 1.1;
}

@media (min-width: 640px) {
  .product-sheet-panel {
    left: 50%;
    right: auto;
    width: min(440px, calc(100% - 32px));
    max-height: min(92dvh, 720px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transform: translate(-50%, -50%) scale(0.96);
    opacity: 0;
    top: 50%;
    bottom: auto;
  }

  .product-sheet-hero-zone {
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }

  .product-sheet.open .product-sheet-panel {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Toast / cart CTA */
.toast {
  position: fixed;
  bottom: calc(24px + var(--safe-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--primary-dark);
  color: var(--primary-foreground);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  z-index: 180;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s, background 0.15s;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast--action {
  background: var(--primary);
  color: #1a1a1a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.toast--action:active {
  transform: translateX(-50%) translateY(0) scale(0.97);
  background: var(--primary-hover);
}

/* Desktop & tablet */
@media (min-width: 768px) {
  :root {
    --page-gutter: 24px;
  }

  .header {
    padding: 16px var(--page-gutter) 0;
    border-bottom: none;
  }

  .header-top,
  .store-highlight,
  .header .search-wrap {
    max-width: var(--page-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .header-top {
    margin-bottom: 12px;
  }

  .header .search-wrap {
    --search-wrap-padding-bottom: 14px;
    padding-bottom: var(--search-wrap-padding-bottom);
  }

  .logo-img {
    height: 24px;
    max-width: 165px;
  }

  .metric-value {
    font-size: var(--text-md);
  }

  .metric-label {
    font-size: var(--text-sm);
  }

  .main,
  .catalog-loader,
  .home-category-rows,
  .category-section,
  .search-results {
    max-width: var(--page-max);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

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

  .hero {
    padding: 16px var(--page-gutter) 8px;
  }

  .hero-track {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    overflow: visible;
    scroll-snap-type: none;
  }

  .hero-slide {
    flex: unset;
    min-height: 150px;
  }

  .hero-content {
    min-height: 150px;
    padding: 18px;
  }

  .hero-content h2 {
    font-size: 1.0625rem;
  }

  .hero-dots {
    display: none;
  }

  .section-header {
    padding: 0 var(--page-gutter);
    margin-bottom: 16px;
  }

  .home-category-rows .section-header {
    margin-bottom: 0;
  }

  .section-header h2 {
    font-size: 1.0625rem;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding: 0 var(--page-gutter);
  }

  .cart-panel {
    left: auto;
    width: 420px;
    border-radius: var(--radius-lg) 0 0 0;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 100dvh;
    transform: translateX(100%);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  }

  .cart-drawer.open .cart-panel {
    transform: translateX(0);
  }

  .toast {
    bottom: 32px;
  }

  .toast--action:hover {
    background: var(--primary-hover);
  }
}

@media (min-width: 1024px) {
  :root {
    --category-row-gap-first: 32px;
    --category-row-gap: 48px;
  }


  .category-section .product-scroll {
    gap: 14px;
    padding: 2px var(--page-gutter) 12px;
  }

  .home-category-rows .product-scroll {
    gap: 14px;
    padding: 2px var(--page-gutter) 0;
  }

  .product-scroll .product-card--row {
    flex: 0 0 132px;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

}

@media (min-width: 1280px) {
  :root {
    --page-max: 1280px;
  }

  .product-scroll .product-card--row {
    flex: 0 0 140px;
  }

  .product-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hero-content h2 {
    font-size: 1.125rem;
  }

  .section-header h2 {
    font-size: 1.125rem;
  }
}

/* Waitlist modal */
.waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

.waitlist-modal.open {
  pointer-events: auto;
}

.waitlist-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s;
}

.waitlist-modal.open .waitlist-overlay {
  opacity: 1;
}

.waitlist-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--soft-black);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 20px calc(24px + var(--safe-bottom));
  color: var(--text-on-dark);
  transform: translateY(100%);
  transition: transform 0.3s ease;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.35);
}

.waitlist-modal.open .waitlist-panel {
  transform: translateY(0);
}

.waitlist-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  color: var(--text-muted-on-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}

.waitlist-eyebrow {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 8px;
}

.waitlist-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
  padding-right: 36px;
}

.waitlist-lead {
  font-size: var(--text-md);
  color: var(--text-muted-on-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.waitlist-field span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted-on-dark);
}

.waitlist-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--surface-elevated);
  color: var(--text-on-dark);
  font-size: 1rem;
}

.waitlist-field input:focus {
  outline: none;
  border-color: var(--primary);
}

.waitlist-submit,
.waitlist-done {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
}

.waitlist-error {
  font-size: var(--text-sm);
  color: #fca5a5;
}

.waitlist-success-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.waitlist-success-lead {
  font-size: var(--text-md);
  color: var(--text-muted-on-dark);
  line-height: 1.5;
  margin-bottom: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .join-btn:hover {
    background: var(--primary-hover);
    box-shadow: 0 4px 18px rgba(245, 197, 24, 0.45);
  }

  .category-chip:hover {
    background: rgba(255, 255, 255, 0.14);
    color: var(--text-on-dark);
  }

  .category-tile:hover .category-tile-image {
    transform: translateY(-2px);
  }

  .category-tile:active .category-tile-image {
    transform: none;
  }

  .category-tile.active:hover .category-tile-image {
    box-shadow: 0 0 0 2px var(--primary);
  }

  .product-card {
    transition: box-shadow 0.2s, transform 0.2s;
  }

  .product-card:not(.product-card--row):hover {
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255, 255, 255, 0.05) inset;
    transform: translateY(-2px);
  }

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

  .cart-control:hover {
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  }

  .cart-control-btn:hover {
    background: rgba(0, 0, 0, 0.06);
  }

  .product-card--row:hover .product-card-image img {
    opacity: 0.92;
  }

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

  .hero-cta--outline:hover {
    background: rgba(212, 207, 201, 0.12);
    border-color: var(--beige);
    color: var(--beige);
  }

  .btn-primary:active {
    transform: none;
  }

  .see-all:hover {
    text-decoration: underline;
  }

  .qty-btn:hover {
    border-color: var(--primary);
    background: var(--primary-muted);
  }
}

/* Category page */
.category-page-body .header--category .store-highlight {
  display: none;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  border-radius: var(--radius-full);
  transition: background 0.15s;
}

.back-btn:active {
  background: rgba(255, 255, 255, 0.1);
}

.category-page {
  padding-top: 8px;
}

.category-page-header {
  padding: 4px 16px 16px;
}

.category-page-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-on-dark);
  letter-spacing: 0.005em;
  margin: 0 0 4px;
}

.category-page-count {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-subtle-on-dark);
}

.category-filters {
  padding: 0 0 16px;
}

.filter-group {
  margin-bottom: 14px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  margin: 0 0 8px;
  padding: 0 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-subtle-on-dark);
}

.filter-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scroll-padding-inline: 16px;
  -webkit-overflow-scrolling: touch;
}

.category-product-grid {
  padding-bottom: 24px;
}

.category-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--text-muted-on-dark);
}

@media (min-width: 768px) {
  .category-page-header,
  .filter-label,
  .category-product-grid {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .filter-chips {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
  }

  .category-page-title {
    font-size: 1.75rem;
  }
}
