:root {
  color-scheme: light;
  --ink: #0f0f10;
  --muted: #6f6f73;
  --paper: #f6f6f6;
  --surface: #ffffff;
  --cream: #f0f0f0;
  --line: #e4e4e7;
  --rose: #b40f24;
  --gold: #b78a3d;
  --green: #1f8b5f;
  --shadow: 0 18px 45px rgba(15, 15, 16, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding-bottom: 78px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.topbar {
  display: grid;
  min-height: 34px;
  place-items: center;
  padding: 7px 14px;
  background: #0f0f10;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid rgba(228, 228, 231, .95);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span {
  white-space: nowrap;
}

.brand-logo {
  width: clamp(104px, 31vw, 154px);
  height: 38px;
  flex: 0 0 auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-link,
.social-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.social-link:first-child {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.cart-icon {
  width: 18px;
  height: 16px;
  border: 2px solid currentColor;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.cart-icon::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  top: 10px;
  left: 14px;
}

#cartCount {
  position: absolute;
  right: -2px;
  top: -4px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 12px;
}

main {
  overflow: hidden;
}

.hero {
  display: grid;
  min-height: calc(100svh - 98px);
  padding: 22px 18px 18px;
  background:
    radial-gradient(circle at 82% 30%, rgba(180, 15, 36, .20), transparent 26%),
    linear-gradient(160deg, #ffffff 0%, #f6f6f6 52%, #1b1b1e 100%);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 640px;
}

.hero-logo {
  display: block;
  width: min(100%, 520px);
  height: auto;
  margin-bottom: 16px;
}

.hero-tagline {
  max-width: 36rem;
  margin-bottom: 18px;
  color: #141416;
  font-size: clamp(22px, 7vw, 38px);
  font-weight: 800;
  line-height: 1.08;
}

.segment-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 2px 0 14px;
}

.segment-actions button {
  min-height: 48px;
  border: 1px solid #18181b;
  border-radius: 8px;
  background: #fff;
  color: #151518;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}

.segment-actions button.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.location-box {
  display: grid;
  gap: 10px;
  max-width: 520px;
  border-left: 3px solid var(--rose);
  background: rgba(255, 255, 255, .78);
  padding: 12px 14px;
}

.location-box span {
  color: #202024;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}

.footer-location {
  flex: 1 0 100%;
  width: min(520px, 100%);
  margin-top: 8px;
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 12vw, 72px);
  line-height: .94;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-text {
  max-width: 34rem;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 12px;
}

.dark-secondary {
  border-color: #1c1c1f;
  background: #fff;
  color: #151518;
}

.hero-search {
  position: relative;
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.hero-search label {
  font-size: 13px;
  font-weight: 800;
}

.hero-search div {
  display: grid;
  grid-template-columns: 1fr auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(44, 32, 25, .08);
}

.hero-search input {
  min-width: 0;
  min-height: 52px;
  border: 0;
  background: transparent;
  padding: 0 16px;
  outline: 0;
}

.hero-search button {
  border: 0;
  background: var(--rose);
  color: #fff;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 15;
  display: none;
  max-height: 310px;
  overflow: auto;
  grid-template-columns: 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 6px;
}

.search-results.is-visible {
  display: grid;
  gap: 4px;
}

.search-result {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  border-radius: 8px;
  padding: 11px 10px;
}

.search-result:hover {
  background: #f7f7f8;
}

.search-result strong,
.search-result small {
  display: block;
}

.search-result small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-result em {
  color: var(--rose);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}

.search-result em.is-out {
  color: var(--muted);
}

.primary-btn,
.secondary-btn,
.buy-btn,
.whatsapp-btn,
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 999px;
  border: 0;
  padding: 0 17px;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn,
.buy-btn,
.whatsapp-btn {
  background: var(--ink);
  color: #fff;
}

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

.secondary-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.danger-btn {
  background: #fff0f0;
  color: #a32020;
  border: 1px solid #f0c8c8;
}

.hero-visual {
  position: relative;
  display: grid;
  min-height: 300px;
  place-items: center;
}

.showcase-bottle,
.mini-bottle,
.detail-bottle {
  position: relative;
  display: block;
  filter: drop-shadow(0 24px 25px rgba(69, 39, 30, .24));
}

.showcase-bottle {
  width: 208px;
  height: 300px;
}

.cap,
.neck,
.glass,
.label,
.mini-cap,
.mini-neck,
.mini-glass,
.detail-cap,
.detail-neck,
.detail-glass {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cap {
  top: 0;
  width: 86px;
  height: 44px;
  border-radius: 14px 14px 10px 10px;
  background: linear-gradient(120deg, #efe4d2, #bf9651);
}

.neck {
  top: 38px;
  width: 48px;
  height: 42px;
  border-radius: 8px;
  background: #e8c26f;
}

.glass {
  bottom: 0;
  width: 184px;
  height: 228px;
  border-radius: 46px 46px 36px 36px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .72) 0 13%, transparent 14% 100%),
    linear-gradient(145deg, rgba(180, 15, 36, .86), rgba(255, 255, 255, .82));
  border: 2px solid rgba(255, 255, 255, .72);
  box-shadow: inset 18px 0 28px rgba(255, 255, 255, .35), inset -18px 0 28px rgba(110, 61, 80, .16);
}

.label {
  bottom: 74px;
  display: grid;
  width: 118px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(157, 111, 85, .28);
  border-radius: 12px;
  background: rgba(255, 250, 245, .76);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
}

.quick-strip {
  display: grid;
  gap: 12px;
  padding: 22px 18px;
  background: #fff;
}

.quick-strip article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-strip strong,
.quick-strip span {
  display: block;
}

.quick-strip span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.category-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 22px 18px 8px;
  scrollbar-width: none;
}

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

.category-rail a {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  padding: 11px 15px;
  font-size: 14px;
  font-weight: 800;
}

.category-rail a.is-active {
  border-color: var(--rose);
  background: var(--rose);
  color: #fff;
}

.filter-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 18px 12px;
  scrollbar-width: none;
}

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

.filter-rail button {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 13px;
  font-size: 13px;
  font-weight: 800;
}

.filter-rail button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 18px 10px;
}

.section-head p:last-child {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 10px 18px 20px;
}

.product-card {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 16, .08);
}

.product-visual {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .42), rgba(0, 0, 0, .05)), #f2f2f2;
  cursor: pointer;
}

a.product-visual {
  color: inherit;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  border-radius: 999px;
  background: var(--rose);
  padding: 5px 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.badge-muted {
  background: #1c1c1f;
  color: #fff;
}

.product-photo {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.mini-bottle {
  width: 76px;
  height: 124px;
}

.mini-cap {
  top: 0;
  width: 34px;
  height: 20px;
  border-radius: 7px;
  background: var(--accent);
}

.mini-neck {
  top: 17px;
  width: 20px;
  height: 19px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent), #fff 12%);
}

.mini-glass {
  bottom: 0;
  width: 72px;
  height: 98px;
  border-radius: 24px 24px 18px 18px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .76) 0 15%, transparent 16%),
    linear-gradient(150deg, color-mix(in srgb, var(--tone), #fff 18%), color-mix(in srgb, var(--accent), #fff 35%));
  border: 2px solid rgba(255, 255, 255, .74);
}

.product-info {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.product-info p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.product-info h3 {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.08;
}

.product-info strong {
  flex: 0 0 auto;
  font-size: 14px;
  text-align: right;
}

.old-price {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-decoration: line-through;
}

.offer-note {
  margin: -2px 0 0;
  color: var(--rose);
  font-size: 12px;
  font-weight: 800;
}

.notes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.notes span {
  border-radius: 999px;
  background: var(--cream);
  color: var(--muted);
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 700;
}

.volume-picker {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.volume-picker select {
  width: 100%;
  min-height: 37px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
}

.stock-line {
  margin: -2px 0 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.stock-line.is-out {
  color: var(--rose);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.product-actions button {
  min-height: 39px;
  padding: 0 10px;
  font-size: 13px;
}

.buy-btn:disabled {
  background: #a7a7ad;
  cursor: not-allowed;
}

.direct-whatsapp {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--rose);
  border-radius: 999px;
  background: #fff;
  color: var(--rose);
  padding: 0 8px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.empty-state {
  display: none;
  margin: 0 18px 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.empty-state.is-visible {
  display: block;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  justify-items: end;
  background: rgba(30, 26, 24, .22);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

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

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  width: min(100%, 390px);
  min-height: 100%;
  padding: 18px;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: translateX(100%);
  transition: transform .22s ease;
}

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

.drawer-head,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.drawer-head h2 {
  font-size: 24px;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px 0;
  overflow: auto;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.cart-line p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty button {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}

.cart-total {
  border-top: 1px solid var(--line);
  padding: 16px 0;
  font-size: 18px;
}

.whatsapp-btn {
  min-height: 52px;
  background: var(--rose);
}

.detail-page {
  padding-bottom: 0;
}

.product-detail-shell {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.back-link {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.product-detail {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}

.detail-gallery,
.detail-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 15, 16, .08);
}

.detail-gallery {
  position: relative;
  display: grid;
  min-height: 360px;
  place-items: center;
  background:
    radial-gradient(circle at 60% 35%, rgba(180, 15, 36, .16), transparent 32%),
    linear-gradient(145deg, #fff, #efeff1);
}

.product-page-bottle {
  transform: scale(1.16);
}

.detail-photo {
  width: min(82%, 360px);
  max-height: 430px;
  object-fit: contain;
}

.detail-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 800;
}

.detail-content {
  padding: 18px;
}

.detail-content h1 {
  font-size: clamp(42px, 12vw, 68px);
}

.detail-offer {
  border: 1px solid rgba(180, 15, 36, .25);
  border-radius: 8px;
  background: #fff5f6;
  color: var(--rose);
  padding: 12px;
  font-weight: 800;
}

.detail-buy-bar {
  position: sticky;
  bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 15, 16, .14);
  padding: 8px;
  backdrop-filter: blur(14px);
}

.detail-buy-bar strong {
  padding-left: 10px;
  font-size: 20px;
}

.primary-btn.is-disabled {
  background: #a7a7ad;
}

.quick-modal {
  width: min(92vw, 760px);
  border: 0;
  border-radius: 18px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.quick-modal::backdrop {
  background: rgba(30, 26, 24, .38);
}

.modal-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .86);
  font-size: 24px;
}

.modal-grid {
  display: grid;
}

.modal-visual {
  display: grid;
  min-height: 300px;
  place-items: center;
  background: var(--cream);
}

.detail-bottle {
  width: 148px;
  height: 232px;
  --tone: #e98aa7;
  --accent: #fff1b8;
}

.detail-cap {
  top: 0;
  width: 64px;
  height: 34px;
  border-radius: 12px;
  background: var(--accent);
}

.detail-neck {
  top: 30px;
  width: 36px;
  height: 34px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent), #fff 10%);
}

.detail-glass {
  bottom: 0;
  width: 142px;
  height: 184px;
  border-radius: 38px 38px 28px 28px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .78) 0 13%, transparent 14%),
    linear-gradient(150deg, color-mix(in srgb, var(--tone), #fff 15%), color-mix(in srgb, var(--accent), #fff 32%));
  border: 2px solid rgba(255, 255, 255, .76);
}

.modal-copy {
  padding: 22px;
}

.modal-copy h2 {
  margin-bottom: 10px;
  font-size: 31px;
}

.modal-copy p {
  color: var(--muted);
  line-height: 1.55;
}

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

.detail-specs span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.detail-specs strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.modal-section-title {
  margin-bottom: 8px;
  color: var(--ink) !important;
  font-size: 13px;
  font-weight: 800;
}

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

.volume-options button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.volume-options button.is-selected {
  border-color: var(--rose);
  box-shadow: inset 0 0 0 1px var(--rose);
}

.volume-options button[data-sold-out="true"] {
  opacity: .62;
}

.volume-options span {
  color: var(--rose);
  font-weight: 800;
}

.volume-options small {
  color: var(--muted);
  font-weight: 800;
}

.pyramid {
  display: grid;
  gap: 8px;
  margin: 18px 0;
}

.pyramid-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.pyramid-row span:first-child {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.modal-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.modal-buy strong {
  font-size: 24px;
}

.modal-buy button:disabled {
  background: #a7a7ad;
  cursor: not-allowed;
}

.bottom-nav {
  position: fixed;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid rgba(234, 219, 208, .86);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 30px rgba(67, 42, 31, .16);
  backdrop-filter: blur(16px);
}

.bottom-nav a,
.bottom-nav button {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav a:active,
.bottom-nav button:active {
  background: var(--cream);
  color: var(--ink);
}

.admin-body {
  padding-bottom: 0;
}

.admin-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 32px;
}

.admin-header,
.admin-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.login-card,
.editor-panel,
.product-admin-list,
.admin-product {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(70, 42, 30, .06);
}

.login-card {
  max-width: 430px;
  margin: 48px auto 0;
  padding: 22px;
}

.admin-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.admin-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  padding: 8px;
  box-shadow: 0 10px 28px rgba(70, 42, 30, .06);
  backdrop-filter: blur(16px);
}

.admin-tabs a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  padding: 10px 12px;
}

.admin-tabs a.is-active {
  background: var(--ink);
  color: #fff;
}

.admin-tabs span {
  border-radius: 999px;
  background: rgba(15, 15, 16, .08);
  color: inherit;
  font-size: 11px;
  padding: 4px 8px;
}

.admin-tabs a.is-active span {
  background: rgba(255, 255, 255, .16);
}

.admin-view {
  display: none;
  margin-top: 18px;
}

.admin-view.is-active {
  display: grid;
  gap: 18px;
}

.settings-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(70, 42, 30, .06);
}

.cleanup-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 28px rgba(70, 42, 30, .06);
}

.cleanup-panel > .admin-title > strong {
  color: var(--rose);
}

.cleanup-ok {
  margin: 14px 0 0;
  border-radius: 8px;
  background: #e9f7ef;
  color: #1f6f4d;
  padding: 12px;
  font-weight: 800;
}

.cleanup-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cleanup-list a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
}

.cleanup-list span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.editor-panel,
.product-admin-list {
  padding: 16px;
}

.admin-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form fieldset {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 0;
}

.admin-form legend {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

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

.color-row {
  grid-template-columns: 1fr 1fr;
}

.admin-form input[type="color"] {
  padding: 4px;
}

.volume-editor {
  display: grid;
  gap: 9px;
}

.volume-editor-head,
.volume-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.25fr) minmax(84px, .9fr) minmax(74px, .75fr);
  gap: 8px;
}

.volume-editor-head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.volume-row input {
  min-height: 42px;
}

.inventory-editor {
  display: grid;
  gap: 10px;
}

.inventory-editor > legend {
  margin-bottom: 2px;
}

.inventory-row {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 12px;
}

.inventory-row > div {
  display: grid;
  gap: 4px;
}

.inventory-row strong {
  color: var(--ink);
}

.inventory-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.inventory-row-main {
  background: #fff;
}

.status-field {
  display: grid;
  align-content: start;
  gap: 8px;
}

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

.admin-form .status-option {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px !important;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 9px 10px;
}

.status-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.status-option::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--status-color, var(--muted));
  box-shadow: 0 0 0 4px rgba(15, 15, 16, .06);
}

.status-option:has(input:checked) {
  border-color: var(--status-color, var(--ink));
  background: color-mix(in srgb, var(--status-color, var(--ink)) 9%, #fff);
}

.status-green {
  --status-color: #1f9d63;
}

.status-gray {
  --status-color: #777;
}

.status-blue {
  --status-color: #3767d6;
}

.status-amber {
  --status-color: #d28a16;
}

.check-row {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 9px !important;
}

.check-row input {
  width: auto;
  min-height: auto;
}

.product-admin-list {
  display: grid;
  align-content: start;
  gap: 10px;
}

.admin-view:not(.is-active) {
  display: none;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.admin-summary span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 10px;
}

.admin-summary strong {
  display: block;
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.admin-search {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: 0;
}

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

.admin-product {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.admin-product span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.admin-preview {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
  padding: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-preview img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
}

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

.admin-actions form {
  margin: 0;
}

.alert {
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
}

.alert.success {
  background: #e9f7ef;
  color: #1f6f4d;
}

.alert.error {
  background: #fff0f0;
  color: #9d2525;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 24px 18px 96px;
}

.site-footer a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.content-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  margin-top: 14px;
  padding: 20px;
  box-shadow: 0 10px 28px rgba(15, 15, 16, .08);
}

.content-page h1 {
  font-size: clamp(38px, 11vw, 64px);
}

.content-page p {
  color: var(--muted);
  line-height: 1.65;
}

@media (max-width: 370px) {
  .brand span {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .admin-link,
  .social-link {
    display: none;
  }
}

@media (min-width: 720px) {
  body {
    padding-bottom: 0;
  }

  .app-header {
    padding-inline: max(28px, calc((100vw - 1120px) / 2));
  }

  .hero {
    grid-template-columns: 1fr 420px;
    min-height: 620px;
    padding-inline: max(28px, calc((100vw - 1120px) / 2));
  }

  .quick-strip,
  .category-rail,
  .filter-rail,
  .section-head,
  .catalog,
  .empty-state {
    width: min(1120px, calc(100% - 56px));
    margin-inline: auto;
  }

  .quick-strip {
    grid-template-columns: repeat(3, 1fr);
    padding-inline: 0;
  }

  .segment-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 620px;
  }

  .category-rail,
  .filter-rail,
  .section-head,
  .catalog {
    padding-inline: 0;
  }

  .site-footer {
    padding-bottom: 28px;
  }

  .catalog {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
  }

  .product-card {
    padding: 14px;
  }

  .bottom-nav {
    display: none;
  }

  .modal-grid {
    grid-template-columns: 44% 56%;
  }

  .modal-visual {
    min-height: 520px;
  }

  .admin-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: start;
  }

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

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .inventory-row {
    grid-template-columns: minmax(190px, .9fr) repeat(3, minmax(0, 1fr));
    align-items: end;
  }

  .inventory-row-decant {
    grid-template-columns: minmax(190px, .9fr) minmax(160px, 1fr);
  }

  .product-detail {
    grid-template-columns: minmax(340px, .85fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .detail-gallery {
    position: sticky;
    top: 86px;
    min-height: 620px;
  }

  .detail-content {
    padding: 28px;
  }
}
