﻿:root {
  --bg: #f5f3ee;
  --panel: #ffffff;
  --soft-panel: #fffaf1;
  --primary: #ffb817;
  --primary-strong: #f59d00;
  --primary-soft: #fff3cf;
  --text: #1f1d1d;
  --muted: #6d6a66;
  --line: rgba(34, 29, 24, 0.08);
  --shadow: 0 18px 42px rgba(74, 62, 32, 0.08);
  --green: #29a66a;
  --red: #ff6a4d;
  --danger: #ec5a49;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: linear-gradient(180deg, #f8f3ee 0%, #f4f1ec 100%);
  color: var(--text);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

input,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f8f7f6;
  border: 1px solid var(--line);
  color: var(--text);
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(245, 157, 0, 0.6);
  box-shadow: 0 0 0 3px rgba(255, 184, 23, 0.12);
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.page-shell {
  max-width: 1220px;
  margin: 30px auto 20px;
  padding: 0 18px 30px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
  position: sticky;
  top: 16px;
  z-index: 20;
}

.location-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.location-dot {
  width: 10px;
  height: 10px;
  display: inline-block;
  background: linear-gradient(180deg, #ffcf5c, #ffab00);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 184, 23, 0.16);
}

.search-bar {
  flex: 1;
  min-width: 150px;
  min-height: 48px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 11px;
  background: #f4f1ee;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.search-bar input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  outline: none;
}

.search-icon {
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: #64748b;
  opacity: 0.86;
}

.search-icon::before,
.search-icon::after {
  position: absolute;
  display: block;
  content: "";
}

.search-icon::before {
  top: 1px;
  left: 1px;
  width: 11px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-radius: 50%;
}

.search-icon::after {
  top: 12px;
  left: 12px;
  width: 6px;
  height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.search-bar:focus-within {
  border-color: rgba(36, 116, 214, 0.4);
  box-shadow: 0 0 0 3px rgba(36, 116, 214, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.header-btn,
.shortcut,
.mini-cart,
.place-order-btn,
.secondary-btn,
.close-cart,
.qty-btn,
.remove-item {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.header-btn,
.mini-cart {
  background: #1d1a18;
  color: white;
  border-radius: 14px;
  padding: 12px 18px;
  font-weight: 700;
}

.header-btn.logged-in {
  background: linear-gradient(135deg, #f5d36d 0%, #ffb421 100%);
  color: #1d1a18;
  box-shadow: 0 10px 20px rgba(255, 180, 33, 0.2);
}

.header-btn:hover,
.mini-cart:hover,
.place-order-btn:hover,
.secondary-btn:hover {
  transform: translateY(-1px);
}

.order-page {
  margin-top: 24px;
}

.shop-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 20px;
}

.shop-logo {
  width: 82px;
  height: 82px;
  border-radius: 22px;
  background: linear-gradient(135deg, #ffd978 0%, #ffb421 100%);
  display: grid;
  place-items: center;
  color: white;
  font-size: 2.4rem;
  font-weight: 800;
  box-shadow: inset 0 -8px 18px rgba(255, 255, 255, 0.18);
}

.shop-info {
  min-width: 0;
}

.shop-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-title-row h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.8rem);
  letter-spacing: -0.06em;
}

.shop-badge {
  background: rgba(255, 184, 23, 0.14);
  color: var(--primary-strong);
  border: 1px solid rgba(255, 184, 23, 0.14);
  border-radius: 999px;
  font-size: 0.75rem;
  padding: 6px 10px;
  font-weight: 700;
}

.shop-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.shop-intro {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.mini-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 20px 30px rgba(31, 29, 29, 0.18);
  border-radius: 999px;
  padding: 14px 18px;
}

.mini-cart strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--primary);
  color: #1d1a18;
  padding: 0 6px;
}

.shortcut-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 8px 22px rgba(40, 31, 18, 0.03);
}

.shortcut {
  background: transparent;
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.shortcut.active {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.menu-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 22px;
  margin-top: 22px;
}

.product-panel,
.input-card,
.summary-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.product-panel {
  padding: 20px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.panel-header span {
  color: var(--muted);
  font-size: 0.9rem;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
}

.product-card {
  background: linear-gradient(180deg, #fffefb 0%, #fffaf4 100%);
  border: 1px solid rgba(255, 175, 58, 0.14);
  border-radius: 20px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card.sold-out-card {
  opacity: 0.72;
  filter: grayscale(0.2);
}

.product-card button:disabled {
  background: #d9d3cd;
  color: #766f69;
  cursor: not-allowed;
}

.product-visual {
  height: 120px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: linear-gradient(135deg, #ffe6ab 0%, #fff3d5 100%);
  overflow: hidden;
}

.product-visual.has-image,
.product-detail-hero.has-image {
  background: #fffaf4;
}

.product-visual img,
.product-detail-hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.product-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.product-name-row h3 {
  margin: 0;
  font-size: 1.15rem;
}

.product-price {
  color: var(--red);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.product-desc {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  min-height: 52px;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-tags span {
  background: rgba(255, 184, 23, 0.1);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 6px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.product-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
}

.product-action button,
.secondary-btn,
.place-order-btn {
  background: var(--text);
  color: white;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
}

.product-action {
  flex-wrap: wrap;
}

.product-action .product-detail-btn {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.product-detail-btn {
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 700;
}

.checkout-panel {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 96px;
  height: fit-content;
}

.checkout-panel-close {
  display: none;
}

.input-card,
.summary-box {
  padding: 18px 18px 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.card-tag {
  background: rgba(255, 184, 23, 0.14);
  color: var(--primary-strong);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.flavor-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 10px;
}

.flavor-btn {
  background: #f9f6f2;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  padding: 12px 10px;
  font-weight: 700;
}

.flavor-btn.selected {
  background: linear-gradient(180deg, #fff7d5 0%, #ffefba 100%);
  border-color: rgba(255, 184, 23, 0.6);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 23, 0.12);
}

.selected-box {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #fffaf1;
  border: 1px dashed rgba(255, 175, 58, 0.45);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--muted);
}

.selected-box strong {
  color: var(--text);
  max-width: 180px;
  text-align: right;
}

.field-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  grid-template-columns: repeat(2, minmax(110px, 1fr));
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 14px;
}

.summary-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.total-row {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 4px;
  color: var(--text);
  font-size: 1.08rem;
}

.summary-row strong {
  color: var(--text);
  font-size: 1.12rem;
}

.secondary-btn {
  background: #f8f6f3;
  color: var(--text);
  border: 1px solid var(--line);
}

.place-order-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #1d1a18;
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 1.04rem;
  font-weight: 800;
  box-shadow: 0 16px 22px rgba(255, 176, 0, 0.25);
}

.cart-panel,
.drawer-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(31, 29, 29, 0.16);
  transform: translateX(calc(100% + 30px));
  transition: transform 0.25s ease;
  z-index: 40;
}

.cart-panel.open,
.drawer-panel.open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.cart-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-clear-btn {
  min-height: 36px;
  padding: 7px 11px;
}

.cart-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

.close-cart {
  width: 36px;
  height: 36px;
  background: #f4f1ec;
  border-radius: 12px;
  color: var(--text);
}

.cart-items {
  flex: 1 1 0%;
  min-height: 0;
  min-width: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.cart-empty {
  background: #f8f7f6;
  border: 1px dashed rgba(31, 29, 29, 0.14);
  border-radius: 16px;
  padding: 26px 18px;
  text-align: center;
  color: var(--muted);
}

.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fffaf4;
  padding: 10px 12px;
}

.cart-item-emoji {
  width: 80px;
  height: 80px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe7aa 0%, #fff6d7 100%);
  font-size: 2.2rem;
}

.cart-item-body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.cart-item h4 {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.cart-item-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.cart-item-flavor,
.cart-item-note {
  overflow-wrap: anywhere;
}

.cart-item-note.is-empty {
  opacity: 0.7;
}

.cart-item-price {
  flex: 0 0 auto;
  color: var(--red);
  font-weight: 800;
  white-space: nowrap;
}

.qty-wrap {
  display: inline-flex;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
}

.qty-wrap span {
  min-width: 26px;
  text-align: center;
  font-weight: 700;
  font-size: 0.82rem;
}

.remove-item {
  background: transparent;
  color: var(--muted);
  text-align: left;
  padding: 0;
  font-size: 0.8rem;
}

.cart-summary {
  flex: 0 0 auto;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.coupon-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 600;
}

.coupon-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coupon-row input {
  min-width: 0;
  flex: 1 1 auto;
}

.cart-coupon-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.cart-coupon-status:empty {
  visibility: hidden;
}

.small-btn {
  padding: 10px 12px;
  border-radius: 10px;
  min-width: 70px;
}

.order-list {
  flex: 1 1 0%;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.order-toolbar {
  flex: 0 0 auto;
  padding: 9px 16px 0;
  border-bottom: 1px solid var(--line);
}

.order-filter-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.order-filter-tabs::-webkit-scrollbar {
  display: none;
}

.order-filter {
  min-width: 0;
  min-height: 38px;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 7px 10px;
  color: var(--muted);
  background: transparent;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-size: 0.78rem;
  font-weight: 700;
}

.order-filter.active {
  color: var(--text);
  border-bottom-color: var(--primary-strong);
}

.order-filter-count {
  color: inherit;
  opacity: 0.72;
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
}

.order-toolbar-footer {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-refresh-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  font-size: 1.25rem;
  line-height: 1;
}

.order-refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.order-refresh-btn.is-loading span {
  animation: order-refresh-spin 0.8s linear infinite;
}

@keyframes order-refresh-spin {
  to { transform: rotate(360deg); }
}

.order-card {
  flex: 0 0 auto;
  border: 1px solid var(--order-card-border, var(--line));
  border-radius: 16px;
  background: var(--order-card-bg, #fffaf4);
  padding: 14px 12px;
}

.order-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.order-number-block {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.order-number-block > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.order-card h4 {
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.order-status {
  flex: 0 0 auto;
  background: var(--order-status-bg, rgba(41, 166, 106, 0.1));
  color: var(--order-status-color, var(--green));
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.72rem;
  font-weight: 700;
}

.order-status.status-pending {
  color: #925b00;
  background: rgba(245, 177, 44, 0.14);
}

.order-status.status-closed {
  color: var(--muted);
  background: rgba(31, 29, 29, 0.07);
}

.order-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.order-item-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.order-item-row {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
}

.order-item-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.order-item-row strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-weight: 700;
}

.order-item-row small {
  color: var(--muted);
  line-height: 1.4;
}

.order-item-row > span {
  flex: 0 0 auto;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.order-card-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.72rem;
}

.order-card-foot strong {
  color: var(--text);
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.order-card p {
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.order-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.order-card-actions button {
  min-height: 40px;
  width: auto;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
}

.order-card-actions .place-order-btn {
  min-height: 42px;
  grid-column: 1 / -1;
}

.order-card-actions button:disabled {
  opacity: 0.62;
}

.order-state {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 22px 14px;
  text-align: center;
}

.order-state > strong {
  color: var(--text);
  font-size: 1rem;
}

.order-state p {
  max-width: 290px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.6;
}

.order-state .secondary-btn {
  min-height: 42px;
  width: auto;
  margin-top: 4px;
}

.order-loading-spinner {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(31, 29, 29, 0.12);
  border-top-color: var(--primary-strong);
  border-radius: 50%;
  animation: order-refresh-spin 0.8s linear infinite;
}

.order-sync-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #6c4a0a;
  background: rgba(245, 177, 44, 0.14);
  font-size: 0.74rem;
  line-height: 1.45;
}

.order-sync-warning button {
  flex: 0 0 auto;
  padding: 4px 0;
  color: #6c4a0a;
  background: transparent;
  font-weight: 800;
}

.order-cancelled-note {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  background: rgba(31, 29, 29, 0.06);
}

.order-card strong {
  color: var(--text);
}

.profile-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-manager-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.address-form {
  display: grid;
  gap: 12px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.address-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.8rem;
}

.address-form input {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
}

.address-form-actions,
.address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.address-form-actions .place-order-btn {
  flex: 1;
}

.address-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.address-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.address-item {
  padding: 14px 12px;
  border: 1px solid var(--line);
  background: #fffaf4;
  border-radius: 14px;
}

.address-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.address-label {
  background: rgba(255, 176, 0, 0.12);
  color: #9a6800;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 0.68rem;
  font-weight: 700;
}

.address-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.address-main strong {
  color: var(--text);
  font-size: 0.9rem;
}

.address-actions button {
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.profile-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(135deg, #fff9ef 0%, #fff3d6 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fce7ad 0%, #ffd66d 100%);
  font-size: 1.7rem;
}

.profile-name {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.profile-meta {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

.profile-stat-grid,
.profile-action-grid {
  display: grid;
  gap: 12px;
}

.profile-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.profile-stat-item {
  padding: 14px 12px;
  background: #fffaf4;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-stat-item span {
  color: var(--muted);
  font-size: 0.75rem;
}

.profile-stat-item strong {
  color: var(--text);
  font-size: 0.95rem;
  word-break: break-all;
}

.profile-action-grid {
  grid-template-columns: 1fr;
}

.danger-btn {
  background: rgba(236, 90, 73, 0.08);
  border-color: rgba(236, 90, 73, 0.18);
  color: var(--danger);
}

.order-detail-content {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail-box {
  border: 1px solid var(--line);
  background: #fffaf4;
  border-radius: 16px;
  padding: 14px 12px;
}

.order-status-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.order-status-step {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

.order-status-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(31, 29, 29, 0.18);
}

.order-status-step.active {
  color: var(--green);
}

.order-status-step.active .dot {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(41, 166, 106, 0.12);
}

.order-detail-box h4 {
  margin: 0 0 8px;
}

.empty-order {
  text-align: center;
  color: var(--muted);
  background: #f8f7f6;
  border: 1px dashed rgba(31, 29, 29, 0.14);
  border-radius: 16px;
  padding: 24px 18px;
}


.admin-status.sold-out {
  background: rgba(236, 90, 73, 0.12);
  color: var(--danger);
}

.payment-panel {
  z-index: 60;
}

.payment-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.payment-amount-box {
  background: linear-gradient(135deg, #fff7d9 0%, #ffeaa8 100%);
  border-radius: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.payment-amount-box strong {
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.payment-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fffaf4;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.payment-summary-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.payment-summary-item strong {
  color: var(--text);
}

.payment-methods-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 4px;
}

.payment-methods-header small {
  font-size: 0.7rem;
  color: var(--muted);
}

.payment-method-list {
  display: grid;
  gap: 10px;
}

.payment-method {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  background: #fffaf4;
  color: var(--text);
  border-radius: 14px;
  padding: 12px 14px;
}

.payment-method .method-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.payment-method .method-emoji {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffe8aa 0%, #fff6d8 100%);
  font-size: 1.3rem;
}

.payment-method strong {
  display: block;
  font-size: 0.95rem;
}

.payment-method small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.72rem;
}

.payment-method .method-badge {
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 184, 23, 0.1);
  color: var(--primary-strong);
}

.payment-method.selected {
  border-color: rgba(255, 184, 23, 0.6);
  box-shadow: inset 0 0 0 1px rgba(255, 184, 23, 0.12);
  background: linear-gradient(180deg, #fff9eb 0%, #fff5d6 100%);
}

.payment-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-qr-section {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(38, 157, 102, 0.22);
  border-radius: 18px;
  background: rgba(245, 255, 249, 0.84);
}

.payment-qr-image {
  display: block;
  width: min(100%, 280px);
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: 12px;
  background: #fff;
  image-rendering: pixelated;
}

.payment-qr-note,
.payment-qr-instructions {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
  text-align: center;
}

.payment-qr-copy-actions {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payment-qr-copy-actions button {
  min-width: 0;
  padding: 11px 8px;
  border-radius: 12px;
}

.payment-qr-section .place-order-btn {
  border-radius: 14px;
}

.payment-claim-status {
  padding: 13px 15px;
  border: 1px solid rgba(38, 157, 102, 0.24);
  border-radius: 14px;
  color: #145d3b;
  background: rgba(231, 248, 238, 0.9);
  line-height: 1.6;
}

.payment-order-hint {
  padding: 8px 10px;
  border-radius: 10px;
  color: #805408 !important;
  background: rgba(255, 225, 155, 0.34);
}

.success-btn {
  background: linear-gradient(135deg, #2ba66b 0%, #1f8d58 100%);
  color: white;
}

.ghost-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%) translateY(20px);
  background: rgba(31, 29, 29, 0.9);
  color: white;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 80;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  background: rgba(164, 48, 42, 0.94);
}

.hidden {
  display: none !important;
}

html.overlay-scroll-lock,
html.overlay-scroll-lock body {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

html.overlay-scroll-lock body {
  position: fixed;
  top: var(--locked-scroll-y, 0);
  left: 0;
  right: 0;
  width: 100%;
}

.cart-panel,
.drawer-panel,
.checkout-panel,
.overlay-modal .modal-card,
.mvp-modal-card {
  overscroll-behavior: contain;
}

.overlay-modal {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(420px, calc(100vw - 32px));
  display: none;
  z-index: 110;
}

.overlay-modal.show {
  display: block;
}

.mvp-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(31, 29, 29, 0.32);
  z-index: 100;
}

.mvp-modal.show {
  display: grid;
}

.mvp-modal-card {
  width: min(460px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(31, 29, 29, 0.2);
}

.mvp-modal-content {
  padding: 18px;
}

.mvp-modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 18px 18px;
}

.mvp-modal-actions .place-order-btn {
  padding: 12px;
}

.mvp-modal-actions .place-order-btn:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.product-detail-hero {
  height: 170px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #ffe6ab 0%, #fff3d5 100%);
  font-size: 5rem;
  overflow: hidden;
}

.product-detail-price {
  margin-top: 16px;
  color: var(--red);
  font-size: 1.8rem;
  font-weight: 800;
}

.product-detail-desc {
  color: var(--muted);
  line-height: 1.7;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.product-detail-grid div {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fffaf4;
  border-radius: 12px;
}

.product-detail-grid span,
.product-detail-grid strong {
  font-size: 0.82rem;
}

.product-detail-grid span {
  color: var(--muted);
}

.confirm-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.confirm-section h4 {
  margin: 0 0 10px;
}

.confirm-section p,
.confirm-total {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.5;
}

.confirm-section strong,
.confirm-total strong {
  color: var(--text);
}

.confirm-total {
  padding-top: 14px;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 800;
}

.modal-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 29, 29, 0.08);
  border-radius: 22px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  color: #1a1a1a;
}

.auth-header-panel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px 12px;
  background: rgba(255, 255, 255, 0.18);
}

.app-logo-box {
  width: 78px;
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5f5f5f 0%, #2e2e2e 100%);
  color: #ffffff;
  font-size: 2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  letter-spacing: -0.08em;
  box-shadow: inset 0 -8px 18px rgba(255,255,255,0.12);
}

.auth-header-text {
  flex: 1;
  min-width: 0;
}

.auth-header-text h3 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.06em;
  color: #1a1a1a;
}

.auth-header-text span {
  color: rgba(26, 26, 26, 0.7);
  font-size: 0.92rem;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0 18px 12px;
}

.auth-tab {
  background: rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  color: #4a4a4a;
  font-weight: 700;
}

.auth-tab.active {
  background: #dfeafc;
  color: #1d3f73;
}

.auth-user-panel {
  margin: 0 18px 12px;
  background: rgba(255, 255, 255, 0.38);
  border: 1px solid rgba(31, 29, 29, 0.08);
  border-radius: 18px;
  overflow: hidden;
}

.auth-user-panel.hidden,
.auth-tabs.hidden,
#authForm.hidden,
#authNameLabel.hidden,
#authDormLabel.hidden,
#authPasswordLabel.hidden,
#logoutSection.hidden {
  display: none;
}

.auth-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  font-size: 1.05rem;
  color: #1d1d1d;
  border-bottom: 1px solid rgba(31, 29, 29, 0.06);
}

.auth-row:last-child {
  border-bottom: none;
}

.auth-row-icon {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 1.1rem;
}

.auth-row-arrow {
  margin-left: auto;
  font-size: 1.5rem;
  color: rgba(26, 26, 26, 0.8);
}

.detail-row {
  justify-content: space-between;
  font-size: 1rem;
}

.detail-row span {
  color: rgba(26,26,26,0.72);
}

.detail-row strong {
  color: #1a1a1a;
  font-size: 1.05rem;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.auth-hint {
  margin-top: -2px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 184, 23, 0.08);
  border: 1px solid rgba(255, 184, 23, 0.12);
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.5;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  color: rgba(26, 26, 26, 0.74);
  font-weight: 700;
}

.auth-form input {
  border-radius: 10px;
  border: 1px solid rgba(31,29,29,0.1);
  background: rgba(255,255,255,0.8);
  color: #1a1a1a;
}

.auth-form .place-order-btn {
  margin-top: 6px;
  padding: 14px 18px;
}

.auth-logout-row {
  padding: 0 18px 18px;
}

.auth-logout-row .secondary-btn {
  width: 100%;
  background: rgba(31,29,29,0.05);
  border: 1px solid rgba(31,29,29,0.08);
  color: var(--text);
}

@media (max-width: 768px) {
  .page-shell {
    margin: 12px auto 20px;
    padding: 0 10px 20px;
  }

  .topbar {
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    flex-wrap: wrap;
    top: 8px;
  }

  .location-pill {
    padding: 8px 12px;
    font-size: 0.85rem;
  }

  .search-bar {
    order: 3;
    width: 100%;
    min-width: 0;
  }

  .header-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px 14px;
    border-radius: 22px;
  }

  .shop-logo {
    width: 62px;
    height: 62px;
    font-size: 2rem;
  }

  .shop-title-row h1 {
    font-size: 2rem;
  }

  .shortcut-bar {
    gap: 8px;
  }

  .shortcut {
    flex: 1 1 calc(33.333% - 8px);
    min-width: 0;
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .product-card {
    padding: 14px;
  }

  .product-card button {
    width: 100%;
  }

  .product-action {
    flex-direction: column;
    align-items: stretch;
  }

  .summary-box,
  .input-card,
  .footer-card {
    border-radius: 18px;
  }

  .cart-panel,
  .drawer-panel {
    left: 10px;
    right: 10px;
    width: auto;
    max-height: calc(100vh - 20px);
  }

  .overlay-modal {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: min(92vw, 420px);
  }

  .modal-card {
    border-radius: 20px;
  }

  .auth-header-panel {
    padding: 16px 16px 10px;
  }

  .app-logo-box {
    width: 62px;
    height: 50px;
    font-size: 1.5rem;
  }

  .auth-header-text h3 {
    font-size: 1.5rem;
  }

  .auth-user-panel,
  .auth-form {
    padding-left: 14px;
    padding-right: 14px;
  }

  .mini-cart {
    right: 14px;
    bottom: 14px;
    padding: 12px 16px;
  }

  .site-footer {
    padding: 0 10px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  max-width: 1220px;
  margin: 0 auto 30px;
  padding: 0 18px;
}

.footer-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 18px 20px;
}

.footer-card h3 {
  margin: 12px 0 18px;
  font-size: 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
}

.footer-grid strong {
  display: block;
  margin-bottom: 6px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.icp-filing-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 14px auto 0;
  text-align: center;
}

.icp-filing-info a {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  text-decoration: none;
}

.icp-filing-info a:hover {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .menu-layout {
    grid-template-columns: 1fr;
  }

  .checkout-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    flex-wrap: wrap;
  }

  .shop-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .product-list {
    grid-template-columns: 1fr;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .mini-cart {
    width: 100%;
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* Liquid glass visual system */
:root {
  --glass-border: rgba(255, 255, 255, 0.76);
  --glass-edge: rgba(255, 255, 255, 0.92);
  --glass-shadow: 0 24px 70px rgba(30, 41, 59, 0.14);
  --glass-shadow-soft: 0 12px 34px rgba(30, 41, 59, 0.1);
  --glass-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --glass-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html.liquid-glass {
  scroll-behavior: smooth;
}

html.liquid-glass *,
html.liquid-glass *::before,
html.liquid-glass *::after {
  letter-spacing: 0 !important;
}

html.liquid-glass body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(247, 250, 252, 0.96), rgba(239, 244, 248, 0.92) 48%, rgba(255, 248, 238, 0.96));
  background-attachment: fixed;
}

html.liquid-glass body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.36;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

html.liquid-glass .topbar,
html.liquid-glass .shop-hero,
html.liquid-glass .product-panel,
html.liquid-glass .checkout-panel,
html.liquid-glass .product-card,
html.liquid-glass .order-card,
html.liquid-glass .footer-card,
html.liquid-glass .profile-card,
html.liquid-glass .address-card,
html.liquid-glass .payment-card,
html.liquid-glass .cart-item,
html.liquid-glass .modal-card,
html.liquid-glass .drawer-panel,
html.liquid-glass .auth-user-panel,
html.liquid-glass .order-detail-box {
  position: relative;
  isolation: isolate;
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.46));
  box-shadow:
    var(--glass-shadow),
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 rgba(255, 255, 255, 0.32);
  transition:
    transform 0.45s var(--glass-ease),
    box-shadow 0.45s var(--glass-ease),
    border-color 0.35s ease,
    background 0.35s ease;
}

html.liquid-glass .topbar::before,
html.liquid-glass .shop-hero::before,
html.liquid-glass .product-panel::before,
html.liquid-glass .checkout-panel::before,
html.liquid-glass .product-card::before,
html.liquid-glass .order-card::before,
html.liquid-glass .footer-card::before,
html.liquid-glass .profile-card::before,
html.liquid-glass .address-card::before,
html.liquid-glass .payment-card::before,
html.liquid-glass .modal-card::before,
html.liquid-glass .drawer-panel::before,
html.liquid-glass .auth-user-panel::before,
html.liquid-glass .order-detail-box::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at var(--shine-x, 18%) var(--shine-y, 0%), rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.54), transparent 38%, rgba(255, 255, 255, 0.18) 76%, transparent);
  content: "";
  opacity: 0.58;
  pointer-events: none;
  transition: opacity 0.35s ease, background-position 0.35s ease;
}

html.liquid-glass .topbar {
  top: 12px;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(245, 249, 252, 0.42));
  box-shadow:
    0 22px 56px rgba(30, 41, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(148, 163, 184, 0.14);
}

html.liquid-glass .shop-hero {
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 249, 240, 0.4));
}

html.liquid-glass .shop-logo {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(145deg, rgba(255, 218, 112, 0.96), rgba(255, 170, 24, 0.9));
  box-shadow:
    0 18px 34px rgba(245, 157, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    inset 0 -10px 22px rgba(180, 83, 9, 0.14);
}

html.liquid-glass .location-pill,
html.liquid-glass .search-bar,
html.liquid-glass .shortcut,
html.liquid-glass .product-tags span,
html.liquid-glass .order-status {
  border: 1px solid rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.38));
  box-shadow:
    0 10px 24px rgba(30, 41, 59, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html.liquid-glass .search-bar {
  border-radius: 18px;
}

html.liquid-glass .search-bar input,
html.liquid-glass input,
html.liquid-glass textarea {
  border-color: rgba(255, 255, 255, 0.7);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -1px 0 rgba(148, 163, 184, 0.1);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

html.liquid-glass .search-bar input {
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.liquid-glass input:focus,
html.liquid-glass textarea:focus {
  border-color: rgba(255, 170, 24, 0.66);
  box-shadow:
    0 0 0 4px rgba(255, 184, 23, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
}

html.liquid-glass .header-btn,
html.liquid-glass .mini-cart,
html.liquid-glass .place-order-btn,
html.liquid-glass .secondary-btn,
html.liquid-glass .product-action button,
html.liquid-glass .product-detail-btn,
html.liquid-glass .qty-btn,
html.liquid-glass .remove-item,
html.liquid-glass .close-cart {
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 12px 26px rgba(30, 41, 59, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    inset 0 -1px 0 rgba(15, 23, 42, 0.08);
  transition:
    transform 0.3s var(--glass-spring),
    box-shadow 0.3s var(--glass-ease),
    filter 0.3s ease,
    background 0.3s ease;
}

html.liquid-glass .header-btn:active,
html.liquid-glass .mini-cart:active,
html.liquid-glass .place-order-btn:active,
html.liquid-glass .secondary-btn:active,
html.liquid-glass .product-action button:active,
html.liquid-glass .product-detail-btn:active,
html.liquid-glass .qty-btn:active,
html.liquid-glass .remove-item:active,
html.liquid-glass .close-cart:active,
html.liquid-glass .shortcut:active {
  transform: translateY(1px) scale(0.965);
  box-shadow:
    0 5px 12px rgba(30, 41, 59, 0.12),
    inset 0 2px 6px rgba(15, 23, 42, 0.1);
}

html.liquid-glass .header-btn:hover,
html.liquid-glass .mini-cart:hover,
html.liquid-glass .place-order-btn:hover,
html.liquid-glass .secondary-btn:hover,
html.liquid-glass .product-action button:hover,
html.liquid-glass .product-detail-btn:hover {
  filter: brightness(1.035) saturate(1.06);
}

html.liquid-glass .place-order-btn,
html.liquid-glass .mini-cart,
html.liquid-glass .header-btn.logged-in {
  background:
    linear-gradient(145deg, rgba(255, 207, 92, 0.98), rgba(255, 166, 0, 0.94));
  color: #221a0b;
}

html.liquid-glass .product-card {
  overflow: hidden;
  border-radius: 24px;
  transform: translateY(var(--lift-y, 0));
  transform-style: flat;
}

html.liquid-glass .product-card:hover {
  --lift-y: -5px;
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 30px 70px rgba(30, 41, 59, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
}

html.liquid-glass .product-visual {
  border: 1px solid rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.86),
    inset 0 -14px 28px rgba(148, 163, 184, 0.08);
}

html.liquid-glass .drawer-panel,
html.liquid-glass .modal-card {
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(248, 250, 252, 0.62));
  box-shadow:
    0 34px 90px rgba(15, 23, 42, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.98);
  transition: transform 0.5s var(--glass-ease), opacity 0.35s ease;
}

html.liquid-glass .drawer-panel.open {
  transform: translateX(0) scale(1);
}

html.liquid-glass .order-status-step.active .dot {
  box-shadow:
    0 0 0 5px rgba(255, 184, 23, 0.15),
    0 0 18px rgba(255, 166, 0, 0.34);
}

html.liquid-glass .toast {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(29, 26, 24, 0.72);
  box-shadow:
    0 18px 44px rgba(15, 23, 42, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

@media (hover: hover) and (pointer: fine) {
  html.liquid-glass .shop-hero:hover,
  html.liquid-glass .panel:hover,
  html.liquid-glass .footer-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 28px 72px rgba(30, 41, 59, 0.15),
      inset 0 1px 0 rgba(255, 255, 255, 0.98);
  }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html.liquid-glass .topbar,
  html.liquid-glass .shop-hero,
  html.liquid-glass .product-panel,
  html.liquid-glass .checkout-panel,
  html.liquid-glass .product-card,
  html.liquid-glass .modal-card,
  html.liquid-glass .drawer-panel {
    background: rgba(255, 255, 255, 0.96);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.liquid-glass *,
  html.liquid-glass *::before,
  html.liquid-glass *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.announcement-board {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 250, 240, 0.86), rgba(255, 255, 255, 0.58));
  box-shadow:
    0 14px 34px rgba(120, 53, 15, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.announcement-mark {
  display: grid;
  min-width: 44px;
  height: 30px;
  place-items: center;
  border-radius: 9px;
  color: #7c2d12;
  background: linear-gradient(145deg, #fde68a, #fbbf24);
  font-size: 12px;
  font-weight: 900;
}

.announcement-board div {
  min-width: 0;
  flex: 1;
}

.announcement-board strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.announcement-board p {
  overflow: hidden;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.announcement-board a {
  flex: 0 0 auto;
  color: var(--orange-deep);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 620px) {
  .announcement-board {
    align-items: flex-start;
  }

  .announcement-board p {
    white-space: normal;
  }
}

/* Prevent closed drawers from expanding the page width. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

.cart-panel,
.drawer-panel {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.22s ease,
    visibility 0s linear 0.36s;
}

.cart-panel.open,
.drawer-panel.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.mini-cart,
.toast {
  transform-origin: center;
}

/* Static liquid-glass highlights; avoid per-card compositing and refraction. */
html.liquid-refraction-enabled .liquid-refraction-host {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    box-shadow 0.22s ease,
    border-color 0.2s ease;
  pointer-events: auto;
}

html.liquid-refraction-enabled .liquid-refraction-host:not(.shop-hero) {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.86)) !important;
  box-shadow:
    0 22px 58px rgba(15, 23, 42, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(148, 163, 184, 0.12) !important;
}

html.liquid-refraction-enabled .liquid-content-layer {
  position: relative;
  z-index: 2;
}

html.liquid-refraction-enabled .liquid-refraction-host::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 18% 0%,
      rgba(255, 255, 255, 0.3),
      transparent 35%
    );
  content: "";
  pointer-events: none;
}

html.liquid-refraction-enabled .liquid-refraction-host:hover {
  border-color: rgba(255, 255, 255, 0.92) !important;
  box-shadow:
    0 30px 78px rgba(15, 23, 42, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(148, 163, 184, 0.12) !important;
}

/* Premium liquid glass refinement */
html.liquid-glass body {
  background:
    linear-gradient(
      112deg,
      rgba(79, 132, 255, 0.28) 0%,
      rgba(79, 132, 255, 0.28) 14%,
      rgba(249, 251, 255, 0.96) 14%,
      rgba(249, 251, 255, 0.96) 35%,
      rgba(255, 176, 61, 0.25) 35%,
      rgba(255, 176, 61, 0.25) 53%,
      rgba(255, 251, 244, 0.96) 53%,
      rgba(255, 251, 244, 0.96) 72%,
      rgba(43, 183, 144, 0.22) 72%,
      rgba(43, 183, 144, 0.22) 89%,
      rgba(241, 250, 247, 0.96) 89%
    ),
    linear-gradient(180deg, #f8fbff 0%, #fffaf1 100%);
  background-size: 100% 100%, 100% 100%;
  background-attachment: fixed;
}

html.liquid-glass body::before {
  background-image:
    linear-gradient(
      112deg,
      rgba(80, 132, 255, 0.17) 0%,
      rgba(80, 132, 255, 0.17) 13%,
      transparent 13%,
      transparent 34%,
      rgba(255, 172, 54, 0.16) 34%,
      rgba(255, 172, 54, 0.16) 51%,
      transparent 51%,
      transparent 68%,
      rgba(36, 180, 140, 0.14) 68%,
      rgba(36, 180, 140, 0.14) 84%,
      transparent 84%
    ),
    linear-gradient(
      22deg,
      transparent 0%,
      transparent 11%,
      rgba(255, 255, 255, 0.58) 11%,
      rgba(255, 255, 255, 0.58) 24%,
      transparent 24%,
      transparent 72%,
      rgba(255, 255, 255, 0.3) 72%,
      rgba(255, 255, 255, 0.3) 84%,
      transparent 84%
    );
  background-size: 100% 100%, 100% 100%;
  opacity: 0.76;
  mix-blend-mode: normal;
}

html.liquid-glass .cart-panel,
html.liquid-refraction-enabled .cart-panel.liquid-refraction-host {
  position: fixed;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  border-radius: 34px;
  background:
    linear-gradient(
      138deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(248, 250, 252, 0.9) 46%,
      rgba(255, 255, 255, 0.96) 100%
    ) !important;
  box-shadow:
    0 48px 110px rgba(31, 41, 55, 0.24),
    0 12px 36px rgba(31, 41, 55, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    inset 1px 0 0 rgba(255, 255, 255, 0.44),
    inset -1px 0 0 rgba(148, 163, 184, 0.12) !important;
  transform: translateX(calc(100% + 48px)) scale(0.965);
  transition:
    transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.34s ease,
    visibility 0s linear 0.58s,
    box-shadow 0.42s ease,
    border-color 0.3s ease !important;
}

html.liquid-glass .cart-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  background:
    linear-gradient(
      105deg,
      rgba(255, 255, 255, 0.62) 0%,
      rgba(255, 255, 255, 0.16) 24%,
      transparent 42%,
      rgba(255, 255, 255, 0.12) 66%,
      transparent 100%
    );
  content: "";
  opacity: 0.7;
  pointer-events: none;
}

html.liquid-glass .cart-panel.open,
html.liquid-refraction-enabled .cart-panel.liquid-refraction-host.open {
  transform: translateX(0) scale(1);
  transition-delay: 0s;
}

html.liquid-glass .cart-panel .cart-header {
  position: relative;
  z-index: 4;
  padding: 21px 22px 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.46);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.04)
  );
  box-shadow:
    inset 0 -1px 0 rgba(148, 163, 184, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

html.liquid-glass .cart-panel .cart-header h3 {
  color: #18202c;
  font-size: 1.42rem;
  font-weight: 850;
}

html.liquid-glass .cart-panel .close-cart {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.68),
    rgba(255, 255, 255, 0.26)
  );
  box-shadow:
    0 8px 18px rgba(31, 41, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html.liquid-glass .cart-panel .cart-items {
  position: relative;
  z-index: 4;
  gap: 14px;
  padding: 18px 18px 12px;
  scrollbar-color: rgba(100, 116, 139, 0.28) transparent;
  scrollbar-width: thin;
}

html.liquid-glass .cart-panel .cart-item {
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.94),
      rgba(248, 250, 252, 0.88) 58%,
      rgba(255, 255, 255, 0.96)
    ) !important;
  box-shadow:
    0 16px 34px rgba(31, 41, 55, 0.1),
    0 3px 10px rgba(31, 41, 55, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(148, 163, 184, 0.1) !important;
  transition:
    transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.32s ease,
    border-color 0.28s ease,
    background 0.32s ease;
}

@media (hover: hover) and (pointer: fine) {
  html.liquid-glass .cart-panel .cart-item:hover {
    border-color: rgba(255, 255, 255, 0.94);
    background:
      linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.76),
        rgba(255, 255, 255, 0.36) 58%,
        rgba(255, 255, 255, 0.5)
      ) !important;
    box-shadow:
      0 22px 46px rgba(31, 41, 55, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 1),
      inset 0 -1px 0 rgba(148, 163, 184, 0.1) !important;
    transform: translateY(-2px);
  }
}

html.liquid-glass .cart-panel .cart-item-emoji {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(255, 244, 199, 0.96),
      rgba(255, 202, 79, 0.62)
    );
  box-shadow:
    0 12px 24px rgba(180, 83, 9, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -10px 18px rgba(245, 158, 11, 0.12);
}

html.liquid-glass .cart-panel .cart-item-emoji::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    118deg,
    rgba(255, 255, 255, 0.7),
    transparent 38%,
    rgba(255, 255, 255, 0.2) 72%,
    transparent
  );
  content: "";
  pointer-events: none;
}

html.liquid-glass .cart-panel .cart-item h4 {
  color: #1b2330;
  font-weight: 800;
}

html.liquid-glass .cart-panel .cart-item p,
html.liquid-glass .cart-panel .cart-item-meta > span {
  color: rgba(55, 65, 81, 0.68);
}

html.liquid-glass .cart-panel .cart-item-price {
  color: #d9542f;
  font-size: 0.98rem;
  font-weight: 850;
}

html.liquid-glass .cart-panel .qty-wrap {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 6px 16px rgba(31, 41, 55, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(148, 163, 184, 0.08);
}

html.liquid-glass .cart-panel .qty-btn {
  border: 0;
  background: transparent;
  box-shadow: none;
  transition:
    transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
    background 0.22s ease;
}

html.liquid-glass .cart-panel .qty-btn:hover {
  background: rgba(255, 255, 255, 0.48);
}

html.liquid-glass .cart-panel .qty-btn:active {
  transform: scale(0.86);
}

html.liquid-glass .cart-panel .cart-summary {
  position: relative;
  z-index: 4;
  gap: 11px;
  padding: 17px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.56);
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9),
      rgba(248, 250, 252, 0.96)
    );
  box-shadow:
    0 -16px 34px rgba(31, 41, 55, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

html.liquid-glass .cart-panel .summary-row {
  padding: 3px 1px;
  color: rgba(55, 65, 81, 0.72);
}

html.liquid-glass .cart-panel .total-row {
  margin-top: 3px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.56);
  color: #1b2330;
  font-size: 1.04rem;
}

html.liquid-glass .cart-panel .total-row strong {
  color: #e04825;
  font-size: 1.28rem;
  font-weight: 900;
}

html.liquid-glass .cart-panel .place-order-btn {
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 17px;
  background:
    linear-gradient(
      180deg,
      #ffdf7d 0%,
      #ffc13d 42%,
      #f3a000 100%
    ) !important;
  color: #261b08;
  box-shadow:
    0 18px 34px rgba(245, 157, 0, 0.28),
    0 4px 10px rgba(180, 83, 9, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    inset 0 -2px 0 rgba(146, 64, 14, 0.16);
}

@media (hover: hover) and (pointer: fine) {
  html.liquid-glass .cart-panel .place-order-btn:hover {
    filter: brightness(1.035) saturate(1.05);
    box-shadow:
      0 22px 42px rgba(245, 157, 0, 0.32),
      0 5px 12px rgba(180, 83, 9, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.92),
      inset 0 -2px 0 rgba(146, 64, 14, 0.16);
    transform: translateY(-2px);
  }
}

html.liquid-glass .cart-panel .cart-empty {
  border: 1px dashed rgba(255, 255, 255, 0.78);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.84)
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 12px 28px rgba(31, 41, 55, 0.07);
}

html.liquid-glass .mini-cart {
  border: 1px solid rgba(255, 255, 255, 0.72);
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.62),
      rgba(255, 211, 92, 0.72)
    ) !important;
  box-shadow:
    0 20px 44px rgba(31, 41, 55, 0.18),
    0 6px 16px rgba(245, 157, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    inset 0 -1px 0 rgba(146, 64, 14, 0.1);
}

html.liquid-refraction-enabled .cart-panel.liquid-refraction-host::after {
  background:
    radial-gradient(
      circle at 22% 0%,
      rgba(255, 255, 255, 0.52),
      rgba(255, 255, 255, 0.12) 22%,
      transparent 46%
    );
  mix-blend-mode: screen;
}

@media (max-width: 620px) {
  html.liquid-glass .cart-panel,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host {
    border-radius: 28px;
  }

  html.liquid-glass .cart-panel .cart-item {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 11px;
  }

  html.liquid-glass .cart-panel .cart-item-emoji {
    width: 72px;
    height: 72px;
    border-radius: 16px;
  }
}

/* Mobile-first customer experience */
@media (max-width: 720px) {
  /* Mobile checkout scroll and touch reliability */
  html.liquid-glass body {
    overscroll-behavior-y: auto;
    background-attachment: scroll;
    background:
      linear-gradient(118deg, rgba(91, 143, 255, 0.2) 0%, transparent 32%),
      linear-gradient(300deg, rgba(255, 176, 61, 0.18) 0%, transparent 38%),
      linear-gradient(180deg, #f4f8ff 0%, #fffaf2 100%);
  }

  html {
    overflow-x: hidden;
  }

  body {
    overflow-x: clip;
  }

  .page-shell {
    margin: 0;
    padding: 0 0 96px;
  }

  .topbar {
    top: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
    padding: 9px 10px 10px;
    border-radius: 0 0 22px 22px;
  }

  .location-pill {
    min-width: 0;
    min-height: 42px;
    justify-content: center;
    padding: 8px 11px;
    font-size: 12px;
    white-space: nowrap;
  }

  .header-btn {
    min-height: 42px;
    padding: 9px 11px;
    border-radius: 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .search-bar {
    grid-column: 1 / -1;
    order: 0;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    margin-top: 1px;
  }

  .announcement-board {
    align-items: center;
    margin: 10px 12px 0;
    padding: 10px 11px;
    border-radius: 16px;
  }

  .announcement-mark {
    min-width: 40px;
    height: 28px;
    font-size: 11px;
  }

  .announcement-board strong {
    font-size: 12px;
  }

  .announcement-board p {
    font-size: 11px;
    white-space: normal;
  }

  .announcement-board a {
    font-size: 11px;
  }

  .order-page {
    margin-top: 12px;
  }

  .shop-hero {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin: 0 12px;
    padding: 15px;
    border-radius: 22px;
  }

  .shop-logo {
    width: 56px;
    height: 56px;
    border-radius: 17px;
    font-size: 1.7rem;
  }

  .shop-title-row {
    align-items: center;
  }

  .shop-title-row h1 {
    font-size: 1.62rem;
  }

  .shop-badge {
    font-size: 10px;
  }

  .shop-meta-row {
    flex-wrap: wrap;
    gap: 5px 9px;
    font-size: 11px;
  }

  .shop-intro {
    margin-top: 7px;
    font-size: 12px;
    line-height: 1.55;
  }

  .shortcut-bar {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
    margin: 12px 12px 0;
    overflow-x: auto;
    padding: 7px;
    border-radius: 16px;
    scrollbar-width: none;
  }

  .shortcut-bar::-webkit-scrollbar {
    display: none;
  }

  .shortcut {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 9px 15px;
    border-radius: 13px;
    font-size: 12px;
    white-space: nowrap;
  }

  .menu-layout {
    display: block;
    margin-top: 12px;
    padding: 0 12px;
  }

  .product-panel {
    padding: 13px;
    border-radius: 20px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
    margin-bottom: 12px;
  }

  .panel-header h2 {
    font-size: 1.45rem;
  }

  .panel-header span {
    font-size: 11px;
  }

  .product-list {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px 12px;
    padding: 11px;
    border-radius: 18px;
  }

  .product-visual {
    width: 92px;
    height: 92px;
    grid-row: 1 / span 4;
    border-radius: 15px;
    font-size: 2.35rem;
  }

  .product-name-row {
    display: block;
    min-width: 0;
  }

  .product-name-row h3 {
    font-size: 0.98rem;
    line-height: 1.4;
  }

  .product-price {
    display: block;
    margin-top: 5px;
    font-size: 1.22rem;
  }

  .product-desc {
    display: -webkit-box;
    min-height: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .product-tags {
    gap: 5px;
  }

  .product-tags span {
    padding: 4px 7px;
    font-size: 10px;
  }

  .product-action {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin-top: 0;
  }

  .product-action > span {
    flex: 1;
    font-size: 10px;
  }

  .product-action button {
    width: auto;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 12px;
  }

  .product-action .product-detail-btn {
    min-width: 52px;
  }

  .checkout-panel {
    position: fixed;
    inset: auto 0 0;
    z-index: 95;
    width: 100%;
    max-height: calc(100vh - 18px);
    max-height: calc(100dvh - 18px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
    gap: 10px;
    border-radius: 26px 26px 0 0;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom));
    background: rgba(247, 250, 252, 0.88);
    box-shadow: 0 -24px 70px rgba(15, 23, 42, 0.24);
    transform: translateY(calc(100% + 24px));
    transition:
      transform 0.48s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0.48s;
    visibility: hidden;
  }

  html.liquid-refraction-enabled .checkout-panel.liquid-refraction-host,
  html.liquid-refraction-enabled .drawer-panel.liquid-refraction-host {
    position: fixed;
  }

  html.liquid-refraction-enabled .checkout-panel.liquid-refraction-host {
    overflow-x: hidden;
    overflow-y: auto;
    pointer-events: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .checkout-panel::before {
    width: 42px;
    height: 4px;
    margin: 2px auto 1px;
    border-radius: 999px;
    background: rgba(71, 85, 105, 0.22);
    content: "";
  }

  .checkout-panel.mobile-open {
    visibility: visible;
    transform: translateY(0);
    transition-delay: 0s;
  }

  .checkout-panel-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: grid;
  }

  .checkout-panel .input-card,
  .checkout-panel .summary-box {
    border-radius: 18px;
    padding: 15px 14px 14px;
  }

  .flavor-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .flavor-btn {
    min-height: 48px;
    padding: 10px 8px;
    border-radius: 14px;
    font-size: 12px;
  }

  .selected-box {
    min-height: 46px;
    margin-top: 10px;
    padding: 10px 12px;
    font-size: 12px;
  }

  .summary-box {
    gap: 10px;
  }

  .summary-row {
    font-size: 13px;
  }

  .place-order-btn,
  .secondary-btn,
  .ghost-btn {
    min-height: 50px;
    border-radius: 15px;
  }

  .mini-cart {
    left: auto;
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 80;
    width: auto;
    min-width: 118px;
    max-width: calc(100% - 28px);
    min-height: 52px;
    justify-content: center;
    border-radius: 999px;
    padding: 11px 17px;
    transition:
      opacity 0.28s ease,
      transform 0.36s cubic-bezier(0.16, 1, 0.3, 1),
      visibility 0s linear 0s;
  }

  .mini-cart.is-empty {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(24px) scale(0.92);
  }

  .cart-panel,
  .drawer-panel {
    inset: auto 0 0;
    top: auto;
    z-index: 100;
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
    transform: translateY(calc(100% + 24px));
  }

  #cartPanel {
    height: min(92vh, 760px);
    height: min(92dvh, 760px);
    max-height: 92vh;
    max-height: 92dvh;
  }

  #orderPanel,
  #orderDetailPanel {
    height: min(92vh, 760px);
    height: min(92dvh, 760px);
    max-height: 92dvh;
  }

  #orderPanel.detail-covered {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transform: translateY(calc(100% + 24px)) !important;
    transition: none !important;
  }

  #orderDetailPanel {
    z-index: 110;
  }

  #addressManagerPanel {
    height: min(92vh, 760px);
    height: min(92dvh, 760px);
    max-height: 92dvh;
  }

  .address-manager-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    scrollbar-gutter: stable;
  }

  .address-form {
    flex: 0 0 auto;
  }

  .address-form-actions button,
  .address-list-header .ghost-btn,
  .address-actions button {
    min-height: 42px;
  }

  .cart-panel.open,
  .drawer-panel.open {
    transform: translateY(0);
  }

  .cart-panel .cart-header,
  .drawer-panel .cart-header {
    padding: 16px 16px 11px;
  }

  .cart-panel .cart-header h3,
  .drawer-panel .cart-header h3 {
    font-size: 1.25rem;
  }

  .cart-panel .cart-items,
  .order-list,
  .profile-body,
  .address-manager-body,
  .payment-body,
  .order-detail-content {
    padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  }

  .cart-panel .cart-items {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 12px;
  }

  .order-toolbar {
    padding: 7px 14px 0;
  }

  .order-toolbar-footer {
    min-height: 38px;
  }

  .order-card {
    border-radius: 14px;
    padding: 13px 11px;
  }

  .order-card-actions button {
    min-width: 0;
    padding: 8px 7px;
    font-size: 0.72rem;
  }

  .order-state {
    min-height: 280px;
  }

  .cart-item {
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    border-radius: 18px;
  }

  .cart-item-emoji {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    font-size: 1.9rem;
  }

  .cart-summary {
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .cart-panel .qty-btn {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
  }

  .cart-panel .remove-item {
    min-height: 42px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
  }

  .cart-panel .cart-clear-btn {
    min-height: 42px;
  }

  .cart-panel .cart-header .close-cart {
    width: 42px;
    height: 42px;
  }

  html.liquid-glass .cart-panel,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host {
    transform: translateY(calc(100% + 24px)) scale(0.985);
    transform-origin: bottom center;
  }

  html.liquid-glass .cart-panel.open,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host.open {
    transform: translateY(0) scale(1);
  }

  html.liquid-glass .cart-panel .cart-header,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host .cart-header {
    padding: 16px 16px 11px;
  }

  html.liquid-glass .cart-panel .close-cart {
    width: 42px;
    height: 42px;
  }

  html.liquid-glass .cart-panel .cart-items,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host .cart-items {
    flex: 1 1 0%;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 14px 14px 12px;
  }

  html.liquid-glass .cart-panel .cart-summary,
  html.liquid-refraction-enabled .cart-panel.liquid-refraction-host .cart-summary {
    gap: 8px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  }

  .overlay-modal {
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 0;
  }

  .overlay-modal .modal-card {
    width: 100%;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow-y: auto;
    border-radius: 0;
  }

  .mvp-modal {
    align-items: end;
    padding: 0;
  }

  .mvp-modal-card {
    width: 100%;
    max-height: 92dvh;
    border-radius: 26px 26px 0 0;
  }

  .mvp-modal-actions {
    position: sticky;
    bottom: 0;
    z-index: 4;
    padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.9);
  }

  .auth-tabs,
  .auth-user-panel,
  .auth-form,
  .auth-logout-row {
    padding-left: 14px;
    padding-right: 14px;
  }

  .profile-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-amount-box strong {
    font-size: 1.7rem;
  }

  .site-footer {
    margin-bottom: 86px;
    padding: 0 12px;
  }

  .footer-card {
    padding: 16px;
    border-radius: 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  input,
  textarea,
  select,
  button {
    touch-action: manipulation;
  }
}

@media (max-width: 390px) {
  .location-pill {
    padding-inline: 8px;
  }

  .header-btn {
    padding-inline: 9px;
  }

  .product-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .product-visual {
    width: 82px;
    height: 82px;
  }

  .product-action {
    flex-wrap: wrap;
  }

  .product-action > span {
    flex-basis: 100%;
  }
}

@media (max-width: 720px) {
  html.liquid-glass {
    scroll-behavior: auto;
  }

  html.liquid-glass body {
    background-attachment: scroll;
  }

  html.liquid-refraction-enabled .liquid-refraction-host {
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
  }

  html.liquid-refraction-enabled .drawer-panel.liquid-refraction-host {
    background: rgba(248, 250, 252, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: 0 -20px 55px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.92) !important;
  }

  html.liquid-refraction-enabled .drawer-panel.liquid-refraction-host::after {
    display: none;
  }

  #orderPanel .order-list {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  html.liquid-refraction-enabled #orderPanel .order-card,
  html.liquid-refraction-enabled #orderPanel .order-card.liquid-refraction-host {
    border-color: var(--order-card-border, rgba(31, 48, 41, 0.1)) !important;
    background: var(--order-card-bg, rgba(255, 255, 255, 0.96)) !important;
    box-shadow: 0 3px 12px rgba(27, 43, 36, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: none !important;
    scale: 1 !important;
    transition: none !important;
  }

  html.liquid-refraction-enabled #orderPanel .order-status {
    color: var(--order-status-color, var(--green)) !important;
    background: var(--order-status-bg, rgba(38, 157, 102, 0.1)) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.liquid-refraction-enabled #orderPanel .order-card::before {
    display: none !important;
  }

  .overlay-modal {
    position: fixed;
    inset: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    transform: none;
    box-sizing: border-box;
  }

  .overlay-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    background: rgba(18, 27, 39, 0.22);
  }

  .overlay-modal .modal-card {
    width: min(100%, 420px);
    height: auto;
    min-height: 0;
    max-height: calc(100vh - 40px);
    max-height: min(720px, calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px));
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: env(safe-area-inset-bottom);
    border-radius: 26px;
  }

  .auth-form .place-order-btn:disabled,
  .auth-tabs .auth-tab:disabled {
    cursor: wait;
    opacity: 0.72;
  }
}

@media (max-width: 720px) {
  html.liquid-glass body::before {
    display: none;
  }

  html.liquid-glass .topbar,
  html.liquid-glass .shop-hero,
  html.liquid-glass .announcement-board,
  html.liquid-glass .product-panel,
  html.liquid-glass .checkout-panel,
  html.liquid-glass .product-card,
  html.liquid-glass .footer-card,
  html.liquid-glass .cart-panel,
  html.liquid-glass .drawer-panel,
  html.liquid-glass .modal-card,
  html.liquid-glass .mvp-modal-card,
  html.liquid-glass .profile-card,
  html.liquid-glass .address-card,
  html.liquid-glass .payment-card,
  html.liquid-glass .cart-item,
  html.liquid-glass .order-detail-box,
  html.liquid-glass .overlay-modal.show {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html.liquid-refraction-enabled .liquid-refraction-host::after {
    display: none !important;
  }

  html.liquid-glass .product-card,
  html.liquid-glass .product-card:hover,
  html.liquid-glass .shop-hero:hover,
  html.liquid-glass .footer-card:hover {
    transform: none !important;
    transform-style: flat;
  }

  html.liquid-glass .product-card,
  html.liquid-glass .footer-card,
  html.liquid-glass .announcement-board {
    transition: border-color 0.14s ease, box-shadow 0.14s ease;
  }

  .cart-panel .cart-items,
  .order-list,
  .profile-body,
  .address-manager-body,
  .payment-body,
  .order-detail-content,
  .checkout-panel,
  .mvp-modal-card,
  .overlay-modal .modal-card {
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }
}

/* Payment must always be the top-most customer overlay. */
.payment-panel,
.payment-panel.open {
  z-index: 140;
}

/* Customer mobile navigation and in-site order messaging. */
.customer-bottom-nav {
  display: none;
}

.order-inbox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.unread-badge,
.inline-unread-count {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: #df3d47;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.unread-badge[hidden],
.profile-action-grid [hidden] {
  display: none !important;
}

.order-card.order-tone-unpaid {
  --order-card-bg: #fff9e9;
  --order-card-border: #f2dfa9;
  --order-status-bg: #ffefc2;
  --order-status-color: #8a5a00;
}

.order-card.order-tone-review {
  --order-card-bg: #f7f1ff;
  --order-card-border: #e2d4f8;
  --order-status-bg: #eadcff;
  --order-status-color: #693a9b;
}

.order-card.order-tone-failed {
  --order-card-bg: #fff1ef;
  --order-card-border: #f4d0cb;
  --order-status-bg: #ffdfda;
  --order-status-color: #a33232;
}

.order-card.order-tone-delivery {
  --order-card-bg: #eff5ff;
  --order-card-border: #d3e1f8;
  --order-status-bg: #dce9ff;
  --order-status-color: #2c5e9a;
}

.order-card.order-tone-shipping {
  --order-card-bg: #eafbfd;
  --order-card-border: #c5eaf0;
  --order-status-bg: #d1f1f5;
  --order-status-color: #176879;
}

.order-card.order-tone-completed {
  --order-card-bg: #eef9f1;
  --order-card-border: #cde9d5;
  --order-status-bg: #d8f1df;
  --order-status-color: #26744b;
}

.order-card.order-tone-cancelled {
  --order-card-bg: #f3f5f8;
  --order-card-border: #dfe4eb;
  --order-status-bg: #e4e8ee;
  --order-status-color: #596273;
}

.order-card.order-tone-refund-pending {
  --order-card-bg: #fff4e9;
  --order-card-border: #f3d8bf;
  --order-status-bg: #ffe3c8;
  --order-status-color: #a65b1d;
}

.order-card.order-tone-refunded {
  --order-card-bg: #f0f4f9;
  --order-card-border: #d8e0ea;
  --order-status-bg: #dfe7f1;
  --order-status-color: #465c77;
}

.order-card-actions .order-chat-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.customer-message-panel,
.customer-chat-panel {
  display: flex;
  flex-direction: column;
  width: min(500px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  max-height: calc(100dvh - 36px);
  z-index: 130;
}

.customer-message-panel .cart-header small,
.customer-chat-panel .cart-header small {
  display: block;
  max-width: 360px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.customer-message-list {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  padding: 12px;
}

.customer-notification-item {
  display: flex;
  width: 100%;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 9px;
  padding: 13px 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  color: var(--text);
  background: #fff;
  text-align: left;
}

.customer-notification-item.is-unread {
  border-color: rgba(41, 166, 106, 0.28);
  background: #f2fbf5;
}

.customer-notification-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  color: #176d4b;
  background: #e2f5e9;
  font-size: 0.8rem;
  font-weight: 800;
}

.customer-notification-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  gap: 4px;
}

.customer-notification-copy strong {
  font-size: 0.88rem;
}

.customer-notification-copy span,
.customer-notification-copy time {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.45;
}

.customer-notification-arrow {
  color: var(--muted);
  font-size: 1.25rem;
}

.customer-notification-unread {
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #df3d47;
}

.customer-message-empty,
.customer-chat-empty {
  display: grid;
  min-height: 180px;
  place-content: center;
  gap: 8px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.customer-message-empty > span {
  color: #22835b;
  font-size: 2rem;
}

.customer-message-empty strong,
.customer-chat-empty strong {
  color: var(--text);
}

.customer-message-empty p,
.customer-chat-empty p {
  max-width: 320px;
  margin: 0 auto;
  font-size: 0.82rem;
  line-height: 1.55;
}

.customer-chat-messages {
  display: flex;
  flex: 1 1 0%;
  min-height: 180px;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
  background: #f6f8fa;
}

.customer-chat-bubble {
  display: grid;
  max-width: min(84%, 390px);
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid #e2e7ec;
  border-radius: 15px 15px 15px 4px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 41, 59, 0.04);
}

.customer-chat-bubble.is-own {
  align-self: flex-end;
  border-color: #cce8d6;
  border-radius: 15px 15px 4px 15px;
  background: #eaf8ee;
}

.customer-chat-sender,
.customer-chat-bubble time {
  color: var(--muted);
  font-size: 0.68rem;
}

.customer-chat-bubble p {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.55;
}

.customer-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: #fff;
}

.customer-chat-form textarea {
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 10px 11px;
  font: inherit;
  line-height: 1.45;
}

.customer-chat-form button {
  min-height: 44px;
  padding: 0 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 720px) {
  .page-shell {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
  }

  .topbar .header-btn {
    display: none;
  }

  .customer-bottom-nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 90;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(38, 55, 47, 0.1);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -7px 24px rgba(22, 34, 29, 0.08);
  }

  .customer-nav-item {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 52px;
    place-content: center;
    justify-items: center;
    gap: 1px;
    border-radius: 13px;
    color: #69746e;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 700;
  }

  .customer-nav-item.active {
    color: #16724a;
    background: rgba(41, 166, 106, 0.1);
  }

  .customer-nav-icon {
    font-size: 1.18rem;
    line-height: 1.1;
  }

  .customer-nav-badge {
    position: absolute;
    top: 2px;
    right: calc(50% - 32px);
  }

  .mini-cart {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .toast {
    bottom: calc(78px + env(safe-area-inset-bottom));
  }

  .toast,
  .toast.show {
    transform: translateX(-50%);
  }

  #orderPanel,
  #profilePanel {
    position: fixed;
    inset: 0 0 calc(64px + env(safe-area-inset-bottom));
    top: 0;
    bottom: calc(64px + env(safe-area-inset-bottom));
    width: 100%;
    height: auto;
    max-height: none;
    z-index: 80;
    border-radius: 0;
    transform: translateY(calc(100% + 24px));
  }

  #orderPanel.open,
  #profilePanel.open {
    transform: translateY(0);
  }

  #orderPanel .cart-header,
  #profilePanel .cart-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  #orderPanel .order-list,
  #profilePanel .profile-body {
    flex: 1 1 0%;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .customer-message-panel,
  .customer-chat-panel {
    position: fixed;
    inset: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 130;
    transform: translateY(100%);
  }

  .customer-message-panel.open,
  .customer-chat-panel.open {
    transform: translateY(0);
  }

  .customer-message-panel .cart-header,
  .customer-chat-panel .cart-header {
    padding-top: calc(14px + env(safe-area-inset-top));
  }

  .customer-chat-form {
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
  }
}

/* Storefront refresh: light peach-and-sky colors, with existing live product data. */
:root {
  --bg: #f4f7fb;
  --panel: #fff;
  --soft-panel: #fff4ef;
  --primary: #f29a7b;
  --primary-strong: #db7358;
  --primary-soft: #fff0e9;
  --text: #273449;
  --muted: #778398;
  --line: rgba(61, 79, 104, 0.1);
  --shadow: 0 16px 42px rgba(54, 73, 101, 0.08);
  --green: #38a987;
  --red: #e96957;
  --danger: #dc5b55;
}

body,
html.liquid-glass body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 9% 2%, rgba(255, 222, 207, 0.62), transparent 30rem),
    radial-gradient(circle at 94% 0%, rgba(204, 230, 250, 0.7), transparent 34rem),
    linear-gradient(180deg, #f8fafc 0%, #f2f6fa 100%);
}

.page-shell,
html.liquid-glass .page-shell {
  width: min(100%, 1260px);
  margin: 0 auto;
  padding: 24px 24px 104px;
}

.topbar,
html.liquid-glass .topbar {
  top: 12px;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 10px 32px rgba(54, 73, 101, 0.08);
}

.location-pill {
  flex: 0 0 auto;
  border-color: rgba(61, 79, 104, 0.08);
  background: #f7f9fc;
  color: #48566b;
}

.location-dot {
  background: linear-gradient(180deg, #f7ad88, #ed8669);
  box-shadow: 0 0 0 4px rgba(242, 154, 123, 0.15);
}

.search-bar {
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #f3f6fa;
}

.search-bar:focus-within {
  border-color: rgba(106, 165, 214, 0.45);
  box-shadow: 0 0 0 3px rgba(106, 165, 214, 0.12);
}

.header-btn {
  min-height: 44px;
  border-radius: 13px;
  padding: 10px 15px;
  background: #304359;
  color: #fff;
}

.header-btn.logged-in {
  color: #8c4b3e;
  background: #ffede5;
  box-shadow: none;
}

.announcement-board,
html.liquid-glass .announcement-board {
  margin-top: 14px;
  padding: 12px 16px;
  gap: 12px;
  border: 1px solid rgba(242, 154, 123, 0.16);
  border-radius: 16px;
  background: rgba(255, 250, 247, 0.92);
  box-shadow: 0 8px 24px rgba(120, 82, 62, 0.04);
}

.announcement-mark {
  flex: 0 0 auto;
  border-radius: 9px;
  background: #fce6dc;
  color: #b45f4a;
}

.announcement-board strong {
  color: #48566c;
}

.announcement-board p {
  color: #7d8797;
}

.announcement-board a {
  color: #cf7059;
}

.order-page {
  margin-top: 18px;
}

.shop-hero,
html.liquid-glass .shop-hero {
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  padding: 19px 22px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.shop-logo {
  width: 70px;
  height: 70px;
  border: 4px solid #fff;
  border-radius: 22px;
  background: linear-gradient(145deg, #f8b18d 0%, #ef886b 54%, #e87363 100%);
  box-shadow: 0 10px 22px rgba(225, 120, 94, 0.2);
  font-size: 2.05rem;
}

.shop-title-row h1 {
  color: #273449;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: -0.03em;
}

.shop-badge {
  border-color: #e7f1f8;
  background: #edf6fb;
  color: #5682a1;
}

.shop-meta-row {
  gap: 10px 16px;
  margin-top: 8px;
  font-size: 0.88rem;
}

.shop-meta-row > span:first-child {
  color: #d68c42;
}

.shop-intro {
  margin-top: 8px;
  color: #7b8798;
  font-size: 0.9rem;
}

.storefront-spotlight,
html.liquid-glass .storefront-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  align-items: center;
  min-height: 250px;
  margin-top: 18px;
  padding: 30px 38px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  background: linear-gradient(112deg, #fff0e8 0%, #fff8f3 47%, #eaf5fc 100%);
  box-shadow: 0 18px 44px rgba(70, 97, 127, 0.09);
}

.storefront-spotlight::before,
.storefront-spotlight::after {
  position: absolute;
  z-index: -1;
  display: block;
  content: "";
  border-radius: 50%;
  pointer-events: none;
}

.storefront-spotlight::before {
  top: -105px;
  left: 32%;
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.32);
  filter: blur(2px);
}

.storefront-spotlight::after {
  right: 13%;
  bottom: -135px;
  width: 290px;
  height: 290px;
  background: rgba(179, 219, 244, 0.22);
}

.spotlight-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(214, 124, 94, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: #ad6754;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.spotlight-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ed9274;
  content: "";
}

.spotlight-copy h2 {
  margin: 15px 0 8px;
  color: #2f4056;
  font-size: clamp(1.8rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.spotlight-copy p {
  margin: 0;
  color: #738195;
  font-size: 0.98rem;
  line-height: 1.7;
}

.spotlight-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 0 17px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(135deg, #ed9879, #dc765f);
  box-shadow: 0 8px 17px rgba(217, 115, 88, 0.18);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.spotlight-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(217, 115, 88, 0.24);
}

.spotlight-cta span {
  font-size: 1.1rem;
  line-height: 1;
}

.spotlight-note {
  color: #8a95a4;
  font-size: 0.78rem;
}

.spotlight-art {
  position: relative;
  justify-self: center;
  width: min(100%, 330px);
  height: 196px;
  color: #fff;
}

.spotlight-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 198px;
  height: 198px;
  border: 1px solid rgba(255, 255, 255, 0.77);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.14), 0 0 0 40px rgba(255, 255, 255, 0.11);
  transform: translate(-50%, -50%);
}

.spotlight-orb {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(246, 190, 160, 0.8));
  box-shadow: 0 10px 20px rgba(169, 110, 85, 0.1);
}

.spotlight-orb-one {
  top: 9px;
  left: 61px;
  width: 44px;
  height: 44px;
}

.spotlight-orb-two {
  top: 19px;
  right: 43px;
  width: 30px;
  height: 30px;
  background: linear-gradient(145deg, #fff, #b8dced);
}

.spotlight-orb-three {
  bottom: 12px;
  left: 57px;
  width: 23px;
  height: 23px;
  background: linear-gradient(145deg, #fff, #f7d8a5);
}

.spotlight-seal {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 7px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px;
  background: linear-gradient(145deg, #f4a784, #e87964 72%);
  box-shadow: 0 19px 35px rgba(194, 104, 82, 0.24), inset 0 2px 2px rgba(255, 255, 255, 0.38);
  color: #fff;
  font-size: 3.1rem;
  font-weight: 900;
  transform: translate(-50%, -50%) rotate(-8deg);
}

.spotlight-chip {
  position: absolute;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 9px 20px rgba(65, 96, 123, 0.12);
  color: #667b90;
  font-size: 0.78rem;
  font-weight: 800;
}

.spotlight-chip-one {
  top: 32px;
  left: 1px;
}

.spotlight-chip-two {
  right: 0;
  bottom: 30px;
  color: #bd775d;
}

.shop-service-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.shop-service-item {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 13px 16px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.83);
  box-shadow: 0 7px 22px rgba(54, 73, 101, 0.045);
}

.service-icon {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: #fff0e9;
  color: #cf785e;
  font-size: 0.66rem;
  font-weight: 900;
}

.shop-service-item:nth-child(2) .service-icon {
  background: #edf6fb;
  color: #5f91b1;
}

.shop-service-item:nth-child(3) .service-icon {
  background: #edf7f3;
  color: #4b9b7f;
}

.shop-service-item > span:last-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.shop-service-item strong {
  color: #43536a;
  font-size: 0.84rem;
}

.shop-service-item small {
  overflow: hidden;
  color: #8994a3;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortcut-bar,
html.liquid-glass .shortcut-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 9px 24px rgba(54, 73, 101, 0.05);
}

.shortcut,
html.liquid-glass .shortcut {
  display: grid;
  min-width: 0;
  min-height: 79px;
  place-content: center;
  justify-items: center;
  gap: 6px;
  padding: 8px 5px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #7b8798;
  font-size: 0.82rem;
  font-weight: 700;
}

.shortcut:hover {
  background: #f7f9fc;
  color: #53657d;
}

.shortcut-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 13px;
  background: #f1f6fa;
  color: #678aa5;
  font-size: 0.94rem;
  font-weight: 900;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.shortcut:nth-child(2) .shortcut-icon {
  background: #edf7f2;
  color: #5a9d7f;
}

.shortcut:nth-child(3) .shortcut-icon {
  background: #fff2e9;
  color: #c78059;
}

.shortcut:nth-child(4) .shortcut-icon {
  background: #f2effa;
  color: #8575ae;
}

.shortcut:nth-child(5) .shortcut-icon {
  background: #eff5fb;
  color: #648aac;
}

.shortcut.active,
html.liquid-glass .shortcut.active {
  border-color: #f4dfd4;
  background: #fff7f2;
  color: #c86f55;
}

.shortcut.active .shortcut-icon {
  color: #fff;
  background: linear-gradient(145deg, #eea181, #df765f);
  box-shadow: 0 7px 15px rgba(214, 120, 92, 0.2);
  transform: translateY(-1px);
}

.menu-layout,
html.liquid-glass .menu-layout {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.product-panel,
html.liquid-glass .product-panel,
.input-card,
html.liquid-glass .input-card,
.summary-box,
html.liquid-glass .summary-box {
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: var(--shadow);
}

.product-panel {
  min-width: 0;
  padding: 19px;
}

.panel-header {
  align-items: end;
  margin-bottom: 15px;
}

.panel-header h2 {
  color: #2e4057;
  font-size: clamp(1.3rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
}

.panel-header span {
  text-align: right;
  color: #8893a2;
  font-size: 0.8rem;
}

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

.product-card,
html.liquid-glass .product-card {
  min-width: 0;
  gap: 11px;
  padding: 13px;
  border: 1px solid #edf0f4;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 17px rgba(49, 68, 94, 0.035);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.product-card:hover {
  border-color: #e5edf4;
  box-shadow: 0 12px 26px rgba(49, 68, 94, 0.09);
  transform: translateY(-2px);
}

.product-card.sold-out-card {
  opacity: 0.7;
  filter: grayscale(0.12);
}

.product-visual {
  height: 148px;
  border-radius: 14px;
  background: linear-gradient(140deg, #fdf2e8, #eef5f8);
  color: #c98868;
}

.product-visual.has-image {
  background: #f4f7fa;
}

.product-name-row {
  align-items: flex-start;
  min-width: 0;
}

.product-name-row h3 {
  color: #35445a;
  font-size: 0.98rem;
  line-height: 1.4;
}

.product-price {
  flex: 0 0 auto;
  color: #d96853;
  font-size: 1.18rem;
}

.product-desc {
  min-height: 0;
  color: #818c9b;
  font-size: 0.82rem;
  line-height: 1.6;
}

.product-tags {
  gap: 6px;
}

.product-tags span {
  padding: 5px 8px;
  background: #f5f7fa;
  color: #74849a;
  font-size: 0.67rem;
}

.product-action {
  gap: 8px;
}

.product-action > span {
  color: #8b96a4;
  font-size: 0.75rem;
}

.product-action button,
.secondary-btn,
.place-order-btn {
  min-height: 40px;
  border-radius: 12px;
  background: #304359;
  color: #fff;
  font-size: 0.84rem;
}

.product-action .product-select-btn,
.place-order-btn {
  background: linear-gradient(135deg, #ee9a7c, #de775f);
  box-shadow: 0 7px 15px rgba(214, 120, 92, 0.16);
}

.product-action .product-detail-btn,
.secondary-btn {
  border: 1px solid #e8edf2;
  background: #f6f8fa;
  color: #52647a;
}

.product-action .product-detail-btn {
  min-height: 38px;
}

.input-card,
.summary-box {
  padding: 17px;
}

.card-tag {
  background: #fff0e9;
  color: #c9785c;
}

.flavor-btn.selected {
  border-color: rgba(229, 133, 101, 0.45);
  background: #fff3ed;
  color: #c36c52;
  box-shadow: inset 0 0 0 1px rgba(229, 133, 101, 0.08);
}

.mini-cart {
  background: #304359;
  box-shadow: 0 14px 26px rgba(35, 54, 77, 0.2);
}

.mini-cart strong {
  background: #ef9b7b;
  color: #fff;
}

.site-footer,
html.liquid-glass .site-footer {
  width: min(100%, 1260px);
  margin: 0 auto 26px;
}

.footer-card,
html.liquid-glass .footer-card {
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

input:focus,
textarea:focus {
  border-color: rgba(106, 165, 214, 0.58);
  box-shadow: 0 0 0 3px rgba(106, 165, 214, 0.12);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(99, 157, 204, 0.45);
  outline-offset: 2px;
}

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

@media (max-width: 980px) {
  .page-shell,
  html.liquid-glass .page-shell {
    padding-right: 18px;
    padding-left: 18px;
  }

  .menu-layout,
  html.liquid-glass .menu-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .checkout-panel {
    position: static;
  }

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

@media (max-width: 720px) {
  .page-shell,
  html.liquid-glass .page-shell {
    padding: 10px 12px calc(94px + env(safe-area-inset-bottom));
  }

  .topbar,
  html.liquid-glass .topbar {
    top: 6px;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 17px;
  }

  .location-pill {
    max-width: calc(100% - 8px);
    padding: 8px 11px;
    font-size: 0.8rem;
  }

  .search-bar {
    order: 3;
    width: 100%;
    min-width: 0;
    min-height: 43px;
    margin-top: 1px;
  }

  .announcement-board,
  html.liquid-glass .announcement-board {
    margin-top: 10px;
    padding: 10px 11px;
    gap: 8px;
    border-radius: 14px;
  }

  .announcement-board p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .announcement-board a {
    max-width: 100px;
    overflow-wrap: anywhere;
    font-size: 0.76rem;
  }

  .order-page {
    margin-top: 12px;
  }

  .shop-hero,
  html.liquid-glass .shop-hero {
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 18px;
  }

  .shop-logo {
    width: 52px;
    height: 52px;
    border-width: 3px;
    border-radius: 17px;
    font-size: 1.65rem;
  }

  .shop-title-row {
    gap: 7px;
  }

  .shop-title-row h1 {
    font-size: 1.34rem;
  }

  .shop-badge {
    padding: 4px 7px;
    font-size: 0.66rem;
  }

  .shop-meta-row {
    gap: 5px 10px;
    margin-top: 6px;
    font-size: 0.74rem;
  }

  .shop-intro {
    margin-top: 6px;
    font-size: 0.76rem;
    line-height: 1.5;
  }

  .storefront-spotlight,
  html.liquid-glass .storefront-spotlight {
    display: block;
    min-height: 214px;
    margin-top: 12px;
    padding: 20px 18px;
    border-radius: 22px;
  }

  .spotlight-copy {
    max-width: 67%;
  }

  .spotlight-kicker {
    padding: 6px 9px;
    font-size: 0.65rem;
  }

  .spotlight-copy h2 {
    margin: 13px 0 7px;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.25;
  }

  .spotlight-copy p {
    font-size: 0.79rem;
    line-height: 1.55;
  }

  .spotlight-actions {
    align-items: flex-start;
    gap: 7px;
    margin-top: 14px;
  }

  .spotlight-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
  }

  .spotlight-note {
    align-self: center;
    max-width: 96px;
    font-size: 0.65rem;
    line-height: 1.35;
  }

  .spotlight-art {
    position: absolute;
    right: -16px;
    bottom: -13px;
    width: 160px;
    height: 160px;
    opacity: 0.92;
  }

  .spotlight-orbit {
    width: 138px;
    height: 138px;
  }

  .spotlight-seal {
    width: 81px;
    height: 81px;
    border-width: 5px;
    border-radius: 26px;
    font-size: 2.25rem;
  }

  .spotlight-chip {
    min-height: 28px;
    padding: 0 9px;
    font-size: 0.67rem;
  }

  .spotlight-chip-one {
    top: 24px;
    left: 0;
  }

  .spotlight-chip-two {
    right: 3px;
    bottom: 20px;
  }

  .spotlight-orb-one {
    top: 6px;
    left: 29px;
    width: 33px;
    height: 33px;
  }

  .spotlight-orb-two {
    top: 11px;
    right: 25px;
    width: 23px;
    height: 23px;
  }

  .spotlight-orb-three {
    bottom: 9px;
    left: 31px;
    width: 18px;
    height: 18px;
  }

  .shop-service-strip {
    gap: 7px;
    margin-top: 9px;
  }

  .shop-service-item {
    align-items: flex-start;
    gap: 7px;
    padding: 10px 8px;
    border-radius: 14px;
  }

  .service-icon {
    flex-basis: 27px;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    font-size: 0.58rem;
  }

  .shop-service-item > span:last-child {
    gap: 2px;
  }

  .shop-service-item strong {
    font-size: 0.69rem;
    line-height: 1.35;
  }

  .shop-service-item small {
    display: none;
  }

  .shortcut-bar,
  html.liquid-glass .shortcut-bar {
    gap: 5px;
    margin-top: 12px;
    padding: 7px;
    border-radius: 16px;
  }

  .shortcut,
  html.liquid-glass .shortcut {
    min-height: 68px;
    gap: 4px;
    padding: 5px 2px;
    border-radius: 12px;
    font-size: 0.69rem;
  }

  .shortcut-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    font-size: 0.83rem;
  }

  .menu-layout,
  html.liquid-glass .menu-layout {
    gap: 12px;
    margin-top: 12px;
  }

  .product-panel {
    padding: 13px 11px;
    border-radius: 18px;
  }

  .panel-header {
    align-items: flex-start;
    margin-bottom: 11px;
  }

  .panel-header h2 {
    font-size: 1.18rem;
  }

  .panel-header span {
    max-width: 52%;
    font-size: 0.69rem;
    line-height: 1.45;
  }

  .product-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .product-card,
  html.liquid-glass .product-card {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    grid-template-areas:
      "visual name"
      "visual desc"
      "visual tags"
      "visual action";
    align-content: start;
    align-items: start;
    column-gap: 12px;
    row-gap: 7px;
    padding: 10px;
    border-radius: 15px;
  }

  .product-visual {
    grid-area: visual;
    width: 88px;
    height: 100%;
    min-height: 110px;
    border-radius: 12px;
    font-size: 2rem;
  }

  .product-name-row {
    grid-area: name;
    align-items: flex-start;
    gap: 6px;
  }

  .product-name-row h3 {
    min-width: 0;
    font-size: 0.86rem;
  }

  .product-price {
    font-size: 1rem;
  }

  .product-desc {
    grid-area: desc;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .product-tags {
    grid-area: tags;
    gap: 4px;
    max-height: 24px;
    overflow: hidden;
  }

  .product-tags span {
    padding: 4px 6px;
    font-size: 0.62rem;
    white-space: nowrap;
  }

  .product-action {
    grid-area: action;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 5px;
    width: 100%;
  }

  .product-action > span {
    grid-column: 1 / -1;
    font-size: 0.66rem;
  }

  .product-action button,
  .product-card button {
    width: auto;
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.7rem;
  }

  .product-action .product-select-btn {
    grid-column: 2;
  }

  .product-action .product-detail-btn {
    grid-column: 3;
    min-height: 34px;
  }

  .checkout-panel {
    gap: 11px;
  }

  .mini-cart {
    right: 12px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: auto;
    min-height: 46px;
    padding: 9px 14px;
  }

  .site-footer,
  html.liquid-glass .site-footer {
    padding: 0 12px;
  }
}

@media (max-width: 390px) {
  .storefront-spotlight,
  html.liquid-glass .storefront-spotlight {
    min-height: 205px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .spotlight-copy {
    max-width: 70%;
  }

  .spotlight-art {
    right: -24px;
    transform: scale(0.9);
    transform-origin: right bottom;
  }

  .spotlight-note {
    max-width: 82px;
    font-size: 0.61rem;
  }

  .shop-service-item {
    gap: 5px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .product-card,
  html.liquid-glass .product-card {
    grid-template-columns: 76px minmax(0, 1fr);
    column-gap: 9px;
  }

  .product-visual {
    width: 76px;
  }

  .product-action button,
  .product-card button {
    padding-right: 7px;
    padding-left: 7px;
    font-size: 0.66rem;
  }
}

/* Keep the glass look with translucent fills and edges, not live backdrop blur. */
html.liquid-glass *,
html.liquid-glass *::before,
html.liquid-glass *::after {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.liquid-glass .cart-panel {
  background: linear-gradient(
    138deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 250, 252, 0.92) 46%,
    rgba(255, 255, 255, 0.97)
  ) !important;
}

html.liquid-glass .cart-panel .cart-item {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.96),
    rgba(248, 250, 252, 0.9) 58%,
    rgba(255, 255, 255, 0.98)
  ) !important;
}

html.liquid-glass .cart-panel .cart-summary {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.98));
}

html.liquid-glass .cart-panel .cart-empty {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.9));
}

html.liquid-glass .drawer-panel,
html.liquid-glass .modal-card,
html.liquid-glass .mvp-modal-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 252, 0.92)) !important;
}

html.liquid-glass .mini-cart {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 211, 92, 0.94)) !important;
}
