:root {
  --red: #e50914;
  --red-dark: #b80008;
  --black: #090909;
  --ink: #191919;
  --muted: #6a6a6a;
  --line: #e9e9e9;
  --soft: #f6f6f6;
  --white: #ffffff;
  --green: #148a43;
  --yellow: #f5a400;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.08);
  --radius: 8px;
  --content: 1180px;
}

/* 2026-07-27 marketplace product detail */
.detail-layout {
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:20px;
}
.detail-gallery {
  position:sticky;
  top:18px;
}
.detail-main-image {
  aspect-ratio:1 / 1;
  min-height:0;
  border:0;
  border-radius:24px;
  background:#f0f0f0;
}
.detail-main-image img {
  padding:0;
  object-fit:contain;
}
.detail-overlay-actions {
  align-items:center;
  display:flex;
  justify-content:space-between;
  left:18px;
  pointer-events:none;
  position:absolute;
  right:18px;
  top:18px;
  z-index:12;
}
.detail-overlay-actions > div {
  display:flex;
  gap:9px;
}
.detail-overlay-button {
  align-items:center;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(226,232,240,.9);
  border-radius:999px;
  box-shadow:0 8px 22px rgba(15,23,42,.12);
  color:#111827;
  display:inline-flex;
  height:46px;
  justify-content:center;
  min-width:46px;
  padding:0 12px;
  pointer-events:auto;
  text-decoration:none;
}
.detail-overlay-button svg {
  fill:none;
  height:24px;
  stroke:currentColor;
  stroke-linecap:round;
  stroke-linejoin:round;
  stroke-width:1.8;
  width:24px;
}
.detail-overlay-button img {
  height:23px;
  object-fit:contain;
  padding:0;
  width:23px;
}
.detail-cart-shortcut {
  position:relative;
}
.detail-cart-shortcut b {
  align-items:center;
  background:var(--red);
  border:2px solid #fff;
  border-radius:999px;
  color:#fff;
  display:flex;
  font-size:10px;
  height:20px;
  justify-content:center;
  min-width:20px;
  padding:0 4px;
  position:absolute;
  right:-3px;
  top:-4px;
}
.detail-image-counter {
  background:rgba(15,23,42,.68);
  border-radius:999px;
  bottom:18px;
  color:#fff;
  font-size:12px;
  font-weight:850;
  padding:6px 10px;
  position:absolute;
  right:18px;
}
.detail-gallery-dots {
  align-items:center;
  bottom:18px;
  display:flex;
  gap:7px;
  justify-content:center;
  left:50%;
  pointer-events:none;
  position:absolute;
  transform:translateX(-50%);
  z-index:5;
}
.detail-gallery-dots button {
  background:rgba(255,255,255,.9);
  border:0;
  border-radius:50%;
  box-shadow:0 1px 4px rgba(0,0,0,.16);
  height:8px;
  min-height:0;
  padding:0;
  width:8px;
}
.detail-gallery-dots button.active {
  background:var(--red);
  box-shadow:0 0 0 3px #fff;
}
.detail-thumbs {
  display:flex;
  gap:9px;
  overflow-x:auto;
  scrollbar-width:none;
}
.detail-thumbs::-webkit-scrollbar {
  display:none;
}
.detail-thumbs .thumb {
  flex:0 0 78px;
  height:78px;
  min-height:78px;
  overflow:hidden;
}
.detail-thumbs .thumb img {
  height:100%;
  object-fit:cover;
  width:100%;
}
.detail-panel {
  border:1px solid #e7e9ee;
  border-radius:24px;
  box-shadow:0 12px 32px rgba(15,23,42,.06);
  overflow:hidden;
  padding:20px;
}
.detail-promo-banner {
  align-items:center;
  background:linear-gradient(90deg,#fff5f5,#fff);
  border:1px solid #fee2e2;
  border-radius:14px;
  display:grid;
  grid-template-columns:42px minmax(0,1fr) auto;
  gap:10px;
  margin-bottom:18px;
  padding:11px;
}
.detail-promo-icon {
  align-items:center;
  background:var(--red);
  border-radius:10px;
  display:flex;
  height:42px;
  justify-content:center;
  width:42px;
}
.detail-promo-icon img {
  filter:brightness(0) invert(1);
  height:24px;
  object-fit:contain;
  width:24px;
}
.detail-promo-banner div {
  display:grid;
  gap:2px;
}
.detail-promo-banner b {
  color:var(--red);
  font-size:14px;
}
.detail-promo-banner span,
.detail-promo-banner small {
  color:#64748b;
  font-size:11px;
}
.detail-price-block {
  align-items:center;
  display:flex;
  justify-content:space-between;
  gap:16px;
  margin-bottom:16px;
}
.detail-price-block .price-row {
  align-items:baseline;
  display:flex;
  gap:9px;
  margin:0;
}
.detail-panel .detail-price-block .price {
  color:var(--red);
  font-size:clamp(34px,4vw,46px);
  font-weight:950;
  letter-spacing:-.04em;
}
.detail-saving {
  background:#fff1f2;
  border-radius:7px;
  color:var(--red);
  font-size:11px;
  font-weight:800;
  padding:5px 7px;
}
.detail-sold-wishlist {
  align-items:center;
  color:#475569;
  display:flex;
  font-size:13px;
  gap:12px;
  white-space:nowrap;
}
.detail-heart {
  align-items:center;
  background:transparent;
  border:0;
  display:flex;
  height:38px;
  justify-content:center;
  padding:5px;
  width:38px;
}
.detail-heart img {
  height:27px;
  object-fit:contain;
  width:27px;
}
.detail-panel .stamp {
  margin-bottom:8px;
}
.detail-title {
  font-size:clamp(22px,2.5vw,30px);
  line-height:1.2;
}
.detail-quote {
  border:0;
  color:#64748b;
  font-size:14px;
  font-weight:650;
  margin:5px 0 10px;
  padding:0;
}
.detail-meta {
  border-bottom:1px solid #edf0f3;
  margin:8px 0 0;
  padding-bottom:16px;
}
.detail-size-link {
  color:var(--red);
  font-size:12px;
}
.detail-panel .option-group {
  margin-top:0;
  padding:17px 0;
}
.detail-panel .option-group + .option-group {
  border-top:1px solid #edf0f3;
}
.detail-panel .option-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(58px,1fr));
}
.detail-panel .option {
  min-width:0;
  min-height:48px;
}
.detail-panel .option.active {
  background:var(--red);
  border-color:var(--red);
  box-shadow:none;
  color:#fff;
}
.detail-information-menu {
  border-top:1px solid #e7e9ee;
  margin:0 -20px;
}
.detail-information-menu details {
  border-bottom:1px solid #e7e9ee;
}
.detail-information-menu summary {
  align-items:center;
  cursor:pointer;
  display:grid;
  grid-template-columns:32px minmax(0,1fr) auto auto;
  gap:10px;
  list-style:none;
  min-height:62px;
  padding:0 20px;
}
.detail-information-menu summary::-webkit-details-marker {
  display:none;
}
.detail-information-menu summary > i {
  font-size:25px;
  font-style:normal;
  transition:transform .2s ease;
}
.detail-information-menu details[open] summary > i {
  transform:rotate(90deg);
}
.detail-menu-icon {
  color:#111827;
  font-size:22px;
}
.detail-review-score {
  color:#64748b;
  font-size:12px;
}
.detail-review-score em {
  color:var(--red);
  font-style:normal;
  letter-spacing:1px;
}
.detail-menu-content {
  color:#64748b;
  font-size:13px;
  line-height:1.6;
  padding:0 20px 18px 62px;
}
.detail-menu-content p {
  margin-top:0;
}
.detail-menu-content.product-reviews {
  color:#111827;
  padding:0 20px 18px 62px;
}
.product-review-list {
  display:grid;
  gap:9px;
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.product-review-card {
  background:#fff;
  border:1px solid #e7e9ee;
  border-radius:12px;
  min-width:0;
  padding:11px 12px;
}
.product-review-head {
  align-items:center;
  display:flex;
  gap:8px;
  justify-content:space-between;
}
.verified-reviewer {
  align-items:center;
  color:#334155;
  display:flex;
  font-size:11px;
  font-weight:700;
  gap:5px;
}
.verified-reviewer b {
  align-items:center;
  background:#dcfce7;
  border-radius:50%;
  color:#059669;
  display:inline-flex;
  height:18px;
  justify-content:center;
  width:18px;
}
.product-review-head time {
  color:#94a3b8;
  font-size:10px;
  white-space:nowrap;
}
.review-stars {
  color:#f59e0b;
  display:block;
  font-size:16px;
  letter-spacing:1px;
  margin-top:6px;
}
.product-review-card p {
  color:#334155;
  display:-webkit-box;
  font-size:12px;
  line-height:1.45;
  margin:6px 0 0;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.product-review-pagination {
  align-items:center;
  display:flex;
  gap:8px;
  justify-content:center;
  margin-top:11px;
}
.product-review-pagination button {
  align-items:center;
  background:#fff;
  border:1px solid #dbe0e7;
  border-radius:8px;
  color:#111827;
  display:inline-flex;
  font-size:18px;
  height:30px;
  justify-content:center;
  width:30px;
}
.product-review-pagination button:disabled {
  cursor:not-allowed;
  opacity:.35;
}
.product-review-pagination span {
  color:#64748b;
  font-size:11px;
}
.product-review-empty {
  align-items:flex-start;
  background:#f8fafc;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:11px 12px;
}
.product-review-empty b {
  color:#334155;
  font-size:12px;
}
.product-review-empty span {
  color:#64748b;
  font-size:11px;
}
.sticky-buy {
  grid-template-columns:minmax(150px,.75fr) minmax(220px,1.5fr);
  margin:0 -20px -20px;
  padding:14px 20px calc(14px + env(safe-area-inset-bottom));
}
.sticky-buy .btn {
  border-radius:12px;
  min-height:52px;
}
.sticky-buy .add-cart-icon-button {
  position:relative;
}
.sticky-buy .add-cart-icon-button b {
  align-items:center;
  background:var(--red);
  border-radius:999px;
  color:#fff;
  display:flex;
  font-size:10px;
  height:19px;
  justify-content:center;
  min-width:19px;
  padding:0 4px;
  position:absolute;
  right:10px;
  top:5px;
}

@media (max-width:760px) {
  .detail-layout {
    display:block;
    margin:-10px -14px 0;
    padding-bottom:calc(174px + env(safe-area-inset-bottom));
  }
  .detail-gallery {
    position:relative;
    top:auto;
  }
  .detail-main-image {
    aspect-ratio:1 / 1.03;
    border-radius:0 0 22px 22px;
  }
  .detail-overlay-actions {
    left:14px;
    right:14px;
    top:14px;
  }
  .detail-overlay-button {
    height:42px;
    min-width:42px;
    padding:0 10px;
  }
  .detail-overlay-button svg {
    height:22px;
    width:22px;
  }
  .detail-thumbs {
    display:none;
  }
  .detail-gallery-dots {
    bottom:17px;
  }
  .detail-panel {
    border:0;
    border-radius:22px 22px 0 0;
    box-shadow:0 -8px 24px rgba(15,23,42,.08);
    margin-top:-2px;
    padding:16px;
    position:relative;
    z-index:2;
  }
  .detail-promo-banner {
    grid-template-columns:38px minmax(0,1fr) auto;
    margin-bottom:14px;
  }
  .detail-promo-icon {
    height:38px;
    width:38px;
  }
  .detail-price-block {
    align-items:flex-start;
    margin-bottom:12px;
  }
  .detail-price-block .price-row {
    display:grid;
    grid-template-columns:auto auto;
    gap:2px 8px;
  }
  .detail-panel .detail-price-block .price {
    font-size:32px;
    grid-column:1 / -1;
  }
  .detail-saving {
    align-self:center;
  }
  .detail-title {
    font-size:19px;
  }
  .detail-meta {
    font-size:12px;
    padding-bottom:13px;
  }
  .detail-panel .option-group {
    padding:14px 0;
  }
  .detail-panel .option {
    min-height:44px;
    padding:0 6px;
  }
  .detail-quantity {
    align-items:center;
    display:flex;
    justify-content:space-between;
  }
  .detail-quantity .option-head {
    display:grid;
    margin:0;
  }
  .detail-information-menu {
    margin:0 -16px;
  }
  .detail-information-menu summary {
    min-height:58px;
    padding:0 16px;
  }
  .detail-menu-content {
    padding:0 16px 16px 58px;
  }
  .sticky-buy {
    bottom:calc(84px + env(safe-area-inset-bottom));
    grid-template-columns:118px minmax(0,1fr);
    left:0;
    margin:0;
    padding:10px 14px;
    position:fixed;
    right:0;
    z-index:70;
  }
  .sticky-buy .btn {
    min-height:50px;
  }
  .sticky-buy .add-cart-icon-button span {
    font-size:11px;
  }
}

/* Expandable customer order invoice. */
.customer-invoice-card {
  display: block;
  overflow: hidden;
  padding: 0;
}
.customer-invoice-summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(150px, 1.2fr) minmax(120px, .8fr) minmax(190px, 1fr) 20px;
  list-style: none;
  padding: 16px;
}
.customer-invoice-summary::-webkit-details-marker { display: none; }
.customer-invoice-summary > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.customer-invoice-summary > span:nth-child(3) {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.customer-invoice-summary small { color: var(--muted); }
.customer-invoice-summary > i {
  font-size: 24px;
  font-style: normal;
  transition: transform .2s ease;
}
.customer-invoice-card[open] .customer-invoice-summary > i { transform: rotate(90deg); }
.customer-invoice-body {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  padding: 20px;
}
.customer-invoice-heading {
  align-items: start;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}
.customer-invoice-heading h3 { margin: 4px 0; }
.customer-invoice-heading > div:first-child > span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.customer-invoice-status {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: auto auto;
}
.customer-invoice-status > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.customer-invoice-items,
.customer-invoice-grid > section {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}
.customer-invoice-items h4,
.customer-invoice-grid h4 { margin: 0 0 12px; }
.customer-invoice-items article {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  padding: 10px 0;
}
.customer-invoice-items article + article { border-top: 1px solid var(--line); }
.customer-invoice-items img {
  background: #f5f6f8;
  border-radius: 10px;
  height: 58px;
  object-fit: cover;
  width: 58px;
}
.customer-invoice-items article > div {
  display: grid;
  gap: 3px;
}
.customer-invoice-items small,
.customer-invoice-items span,
.customer-invoice-grid section > span,
.customer-invoice-grid section > p { color: var(--muted); }
.customer-invoice-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.customer-invoice-totals p {
  display: flex;
  justify-content: space-between;
  margin: 9px 0;
}
.customer-invoice-totals p b { color: var(--ink); }
.customer-invoice-totals .invoice-grand-total {
  border-top: 1px dashed var(--line);
  color: var(--ink);
  font-size: 16px;
  margin-top: 12px;
  padding-top: 12px;
}
.customer-invoice-tracking {
  align-items: center;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 12px 14px;
}
.customer-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
@media (max-width: 760px) {
  .customer-invoice-summary {
    gap: 9px;
    grid-template-columns: minmax(0, 1fr) auto 16px;
    padding: 14px;
  }
  .customer-invoice-summary > span:nth-child(2) { text-align: right; }
  .customer-invoice-summary > span:nth-child(3) {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .customer-invoice-summary > i {
    grid-column: 3;
    grid-row: 1;
  }
  .customer-invoice-body { padding: 14px; }
  .customer-invoice-heading { display: grid; }
  .customer-invoice-status { justify-content: start; }
  .customer-invoice-grid { grid-template-columns: 1fr; }
  .customer-invoice-items article { grid-template-columns: 52px minmax(0, 1fr); }
  .customer-invoice-items article > strong {
    grid-column: 2;
    justify-self: start;
  }
  .customer-invoice-actions .btn { flex: 1 1 140px; }
}

.shipping-discount-line {
  color:#079455;
}
.shipping-voucher-banner {
  align-items:center;
  background:linear-gradient(135deg,#fff7f7,#fff);
  border:1px solid #fecdd3;
  border-radius:12px;
  display:grid;
  gap:10px;
  grid-template-columns:58px minmax(0,1fr) auto;
  margin-top:10px;
  padding:10px 12px;
  text-align:left;
  width:100%;
}
.shipping-voucher-banner img {
  background:#fff;
  border:1px solid #fecdd3;
  border-radius:10px;
  height:54px;
  object-fit:contain;
  padding:5px;
  width:54px;
}
.shipping-voucher-banner span {
  display:grid;
  gap:2px;
}
.shipping-voucher-banner b {
  color:#b42318;
  font-size:13px;
}
.shipping-voucher-banner small {
  color:#667085;
  font-size:11px;
}
.shipping-voucher-banner strong {
  align-items:center;
  align-self:stretch;
  background:var(--red);
  border-radius:10px;
  color:#fff;
  display:flex;
  font-size:13px;
  justify-content:center;
  min-width:68px;
  padding:0 14px;
}
.shipping-voucher-banner.active {
  background:#ecfdf3;
  border-color:#abefc6;
}
.shipping-voucher-banner.active b,
.shipping-voucher-banner.active strong {
  color:#067647;
}
.shipping-voucher-banner.active strong {
  background:#d1fadf;
}
.promo-remove-button {
  border-color:#fecaca;
  color:#dc2626;
}

/* Admin workspace refinement */
.admin-app-shell .admin-search { margin-left: 0; }
.admin-app-shell .admin-logout {
  width: auto;
  padding: 8px 12px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
}
.admin-notifications { position: relative; }
.admin-notifications summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  color: var(--admin-navy);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}
.admin-notifications summary::-webkit-details-marker { display: none; }
.admin-notifications summary b {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
}
.admin-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  width: 320px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .14);
}
.admin-notification-panel > a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--admin-navy);
}
.admin-account-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--admin-navy);
}
.admin-account-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.admin-account-profile,
.admin-account-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-avatar.large { width: 64px; height: 64px; font-size: 18px; }
.admin-account-profile h2,
.admin-account-profile p { margin: 0 0 5px; }
.admin-detail-button { min-width: 120px; }
.table-actions.compact {
  flex-wrap: nowrap;
  align-items: center;
}
.table-actions.compact .btn { white-space: nowrap; }
.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, .58);
}
.admin-modal-card {
  width: min(760px, 100%);
  max-height: 88vh;
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}
.admin-modal-card.compact { width: min(460px, 100%); }
.admin-modal-card.compact > p { color: #64748b; line-height: 1.65; }
.admin-order-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.admin-product-detail {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  align-items: start;
  margin: 20px 0;
}
.admin-product-detail > img {
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid var(--admin-line);
  border-radius: 12px;
  object-fit: contain;
}
.admin-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
  gap: 16px;
}
.sales-chart-panel { min-height: 410px; }
.sales-chart {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  min-height: 260px;
  margin-top: 18px;
}
.sales-chart-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 0 48px;
  color: #94a3b8;
  font-size: 10px;
}
.sales-chart-bars {
  display: grid;
  grid-template-columns: repeat(7, minmax(38px, 1fr));
  gap: 10px;
  min-width: 0;
  border-bottom: 1px solid var(--admin-line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 64px, #eef2f7 65px);
}
.sales-chart-day {
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 5px;
  min-width: 0;
  text-align: center;
}
.sales-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 210px;
}
.sales-bar-track > span {
  width: min(34px, 72%);
  min-height: 4px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #ff3344, var(--red));
  box-shadow: 0 8px 18px rgba(239, 29, 42, .18);
}
.sales-chart-day b { color: var(--admin-navy); font-size: 11px; }
.sales-chart-day small { color: #94a3b8; font-size: 9px; }
.sales-chart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--admin-line);
}
.recent-order-list { display: grid; }
.recent-order-list > a {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--admin-line);
  color: var(--admin-navy);
}
.recent-order-list > a:last-child { border-bottom: 0; }
.recent-order-list > a > span {
  display: grid;
  gap: 4px;
}
.recent-order-list > a > span:last-child { text-align: right; }
.recent-order-list small { color: #64748b; }
.text-green { color: #059669 !important; }
.payment-status-summary {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 12px 0 20px;
}
.payment-status-summary strong { color: var(--admin-navy); font-size: 34px; }
.payment-status-summary span { color: #64748b; }
.payment-status-list { display: grid; gap: 18px; }
.payment-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.payment-progress b small { color: #94a3b8; font-weight: 600; }
.payment-progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f5;
}
.payment-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}
.payment-progress-track .green { background: #10b981; }
.payment-progress-track .orange { background: #f59e0b; }
.payment-progress-track .red { background: var(--red); }
.dashboard-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.admin-order-summary > div {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
}
.admin-order-summary span,
.admin-order-summary small { color: #64748b; }
.admin-order-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--admin-line);
}
.journey-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .03em;
  white-space: nowrap;
}
.journey-status i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  font-style: normal;
}
.journey-status.paid,
.journey-status.complete { background: #dcfce7; color: #07834c; }
.journey-status.checking,
.journey-status.packing { background: #fff3d6; color: #b56800; }
.journey-status.unpaid,
.journey-status.waiting { background: #fee2e2; color: #d61f2c; }
.journey-status.shipping { background: #dbeafe; color: #1769d2; }
.journey-action-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f8fafc;
}
.journey-action-group > span,
.journey-action-group > legend {
  width: 100%;
  padding: 0;
  margin-bottom: 2px;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.journey-status-form {
  display: grid;
  gap: 12px;
  width: 100%;
}
.journey-radio {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.journey-radio input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.journey-radio-dot {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}
.journey-radio:hover { border-color: #94a3b8; }
.journey-radio:has(input:focus-visible) {
  outline: 3px solid rgba(225, 29, 43, .18);
  outline-offset: 2px;
}
.journey-radio:has(input:checked) {
  border-color: currentColor;
  box-shadow: 0 4px 14px rgba(15, 23, 42, .08);
}
.journey-radio:has(input:checked) .journey-radio-dot {
  border-color: currentColor;
  background: currentColor;
}
.journey-radio.payment-paid:has(input:checked),
.journey-radio.order-complete:has(input:checked) { background: #dcfce7; color: #07834c; }
.journey-radio.payment-unpaid:has(input:checked) { background: #fee2e2; color: #d61f2c; }
.journey-radio.order-packing:has(input:checked) { background: #fff3d6; color: #9a5800; }
.journey-radio.order-shipping:has(input:checked) { background: #dbeafe; color: #1769d2; }
.journey-save-button {
  width: 100%;
  min-height: 50px;
  margin-top: 2px;
}
.journey-status-form .form-error:empty { display: none; }
.auth-checkout-notice {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
}
.customer-signup-only[hidden] { display: none !important; }
.customer-orders-card { grid-column: 1 / -1; }
.account-order-hub {
  display: grid;
  gap: 18px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}
.account-order-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-order-hub-head h3 { margin: 0; }
.account-order-hub-head button {
  background: transparent;
  border: 0;
  color: #64748b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 0;
}
.account-order-hub-head button span { font-size: 20px;vertical-align: -1px; }
.account-order-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.account-order-categories button {
  background: transparent;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px 6px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.account-order-categories button:hover,
.account-order-categories button.active {
  border-color: #fecaca;
  background: #fff7f7;
  color: var(--red);
}
.account-order-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
}
.account-order-icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-order-icon b {
  position: absolute;
  top: -6px;
  right: -8px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  padding: 0 5px;
  font-size: 9px;
}
.account-order-results { margin-bottom: 14px; }
.account-profile-editor { grid-column: span 2; }
.account-profile-editor > summary {
  align-items:center;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  list-style:none;
  min-height:48px;
}
.account-profile-editor > summary::-webkit-details-marker { display:none; }
.account-profile-editor > summary span { display:grid;gap:3px; }
.account-profile-editor > summary small { color:#64748b;font-size:12px;font-weight:500; }
.account-profile-editor > summary i { color:#64748b;font-size:24px;font-style:normal;transition:transform .2s ease; }
.account-profile-editor[open] > summary i { transform:rotate(90deg); }
.account-profile-editor .form-grid { margin-top: 14px; }
.account-profile-editor .full { grid-column: 1 / -1; }
.account-order-results-head {
  align-items:flex-start;
  display:flex;
  gap:12px;
}
.account-order-results-head > span {
  display:grid;
  gap:4px;
  min-width:0;
}
.account-order-results-head > span b {
  display:block;
  line-height:1.25;
}
.account-order-results-head > span small {
  color:#64748b;
  display:block;
  font-size:12px;
  line-height:1.45;
}
.account-orders-close {
  align-items:center;
  background:#fff;
  border:1px solid #dbe2ea;
  border-radius:10px;
  color:#111827;
  display:inline-flex;
  flex:0 0 auto;
  font-size:12px;
  font-weight:800;
  justify-content:center;
  min-height:38px;
  padding:0 14px;
  position:relative;
  z-index:2;
}
.customer-order-list { display: grid; gap: 10px; }
.customer-order-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.2fr) minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}
.customer-order-row > div { display: grid; gap: 6px; }
.customer-order-row small,
.customer-order-row > div > span:first-child { color: #64748b; font-size: 11px; }
.customer-order-received {
  margin:0 12px 12px;
  width:calc(100% - 24px);
}
.order-review-list { display:grid;gap:10px;grid-column:1 / -1;margin-top:4px; }
.order-review-form {
  background:#f8fafc;
  border:1px solid #e2e8f0;
  border-radius:12px;
  display:grid;
  gap:10px;
  padding:12px;
}
.order-review-form > div:first-child { display:grid;gap:2px; }
.order-review-form small,.review-unavailable { color:#64748b;font-size:11px; }
.order-review-form textarea {
  background:#fff;
  border:1px solid #dbe2ea;
  border-radius:10px;
  font:inherit;
  min-height:70px;
  padding:10px;
  resize:vertical;
}
.star-rating { border:0;display:flex;flex-direction:row-reverse;justify-content:flex-end;margin:0;padding:0; }
.star-rating legend { color:#64748b;font-size:11px;margin-bottom:5px; }
.star-rating input { position:absolute;opacity:0;pointer-events:none; }
.star-rating label { color:#cbd5e1;cursor:pointer;font-size:30px;line-height:1;padding-right:4px; }
.star-rating label:has(input:checked),
.star-rating label:has(input:checked) ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color:#f59e0b; }
.sr-only { height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;clip:rect(0,0,0,0); }
.qris-expiry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
  color: #991b1b;
}
.qris-expiry strong {
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  letter-spacing: .05em;
}
.qris-expiry.expired { background: #fee2e2; }
.payment-expired-note {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 12px;
}
.checkout-card .field input[readonly] {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #475569;
  cursor: not-allowed;
}
.qris-download-button {
  margin-top: -4px;
  border-color: #cbd5e1;
  background: #fff;
}
.checkout-session-loading {
  align-items:center;
  display:flex;
  gap:10px;
  justify-content:center;
  min-height:45vh;
}
.checkout-session-loading span {
  animation:admin-session-spin .8s linear infinite;
  border:3px solid #fee2e2;
  border-radius:50%;
  border-top-color:var(--red);
  height:24px;
  width:24px;
}
@media (max-width: 720px) {
  .account-order-hub { gap: 14px;padding: 14px 10px; }
  .account-order-hub-head { padding: 0 4px; }
  .account-order-categories { gap: 2px; }
  .account-order-categories a { gap: 6px;padding: 8px 2px;font-size: 9px;line-height: 1.2; }
  .account-order-icon { width: 34px;height: 34px; }
  .account-order-icon svg { width: 29px;height: 29px; }
  .account-profile-editor { grid-column: 1; }
  .account-order-results-head { display:flex; }
  .account-orders-close { min-height:36px;padding:0 12px; }
  .customer-orders-card {
    width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
  }
  .customer-order-list { min-width: 0; }
  .customer-order-row {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 12px 8px;
    padding: 12px;
  }
  .customer-order-row > div { min-width: 0; }
  .customer-order-row > div:first-child,
  .customer-order-row > .btn { grid-column: 1 / -1; }
  .customer-order-row .journey-status {
    width: 100%;
    min-height: 34px;
    justify-content: flex-start;
    padding: 6px 8px;
    font-size: 8px;
    white-space: normal;
    line-height: 1.2;
  }
  .customer-order-row .journey-status i {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }
  .order-review-form { padding:10px; }
  .qris-expiry { align-items: flex-start; flex-direction: column; }
}
.btn-success { background: #059669; border-color: #059669; color: #fff; }
.btn-unpaid { background: #fff; border-color: #f2a7ad; color: #d61f2c; }
.btn-packing { background: #fff3d6; border-color: #f5ca7b; color: #9a5800; }
.btn-shipping { background: #1769d2; border-color: #1769d2; color: #fff; }
.admin-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 22px;
}
.admin-session-loading {
  display: grid;
  min-height: 100vh;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: #f8fafc;
  color: #334155;
}
.admin-session-loading span {
  width: 34px;
  height: 34px;
  border: 3px solid #e2e8f0;
  border-top-color: var(--red);
  border-radius: 50%;
  animation: admin-session-spin .75s linear infinite;
}
@keyframes admin-session-spin { to { transform: rotate(360deg); } }
.admin-sidebar nav a { padding-left: 18px; }
.admin-app-shell .metric { min-height: 112px; }
.admin-app-shell .metric-copy { width: 100%; }
.admin-app-shell .table-wrap,
.admin-app-shell .admin-table-scroll {
  max-height: 520px;
  overflow: auto;
}
.admin-app-shell .table-wrap thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}
.admin-product-editor { border-top: 3px solid var(--red); }
.product-draft-status {
  display: inline-flex;
  margin-top: 8px;
  color: #078647;
  font-weight: 800;
}
.admin-product-form .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.product-image-field {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.product-image-current {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 8px;
  border: 1px dashed #ccd5e2;
  border-radius: 12px;
  background: #fff;
}
.product-image-current img,
.product-image-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f4f8;
}
.product-image-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.product-image-current > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.product-image-current b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-image-current small {
  color: var(--muted);
  line-height: 1.35;
}
.product-image-field input[type="file"] { width: 100%; }
.admin-upload-field {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfcfe;
}
.admin-upload-current {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 8px;
  border: 1px dashed #ccd5e2;
  border-radius: 12px;
  background: #fff;
}
.admin-upload-current img,
.admin-upload-placeholder {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  background: #f1f4f8;
}
.admin-upload-placeholder {
  display: grid;
  place-items: center;
  padding: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}
.admin-upload-current > span:last-child {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.admin-upload-current b {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-upload-current small {
  color: var(--muted);
  line-height: 1.35;
}
.admin-upload-field input[type="file"] { width: 100%; }
.upload-remove-button {
  align-items: center;
  align-self: start;
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 999px;
  color: #dc2626;
  cursor: pointer;
  display: inline-flex;
  font-size: 20px;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  line-height: 1;
  margin: 0;
  min-height: 30px;
  padding: 0 0 2px;
  width: 30px;
}
.upload-remove-button:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}
.upload-remove-button:focus-visible {
  outline: 3px solid rgba(239, 68, 68, .2);
  outline-offset: 2px;
}
.admin-product-form .field.full { grid-column: 1 / -1; }
.admin-product-form > .btn {
  width: auto;
  min-width: 210px;
  margin: 18px 0 0 auto;
}
.admin-filter-input {
  width: min(100%, 340px);
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #fff;
  color: var(--admin-navy);
  font: inherit;
}
.admin-bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
  padding: 10px 12px;
  border: 1px solid var(--admin-line);
  border-radius: 10px;
  background: #f8fafc;
}
.admin-bulk-toolbar label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
  color: var(--admin-navy);
  font-size: 12px;
  font-weight: 800;
}
.admin-bulk-toolbar input,
.select-column input {
  width: 17px;
  height: 17px;
  accent-color: var(--red);
}
.select-column { width: 62px; text-align: center; }
.admin-category-form .btn { margin-top: 16px; }
.detail-gallery,
.detail-gallery img,
.image-zoom-modal img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.detail-main-image {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.image-zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(17, 24, 39, .78);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.image-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .88);
  cursor: zoom-out;
}
.image-zoom-modal > button {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111827;
  font-weight: 900;
  cursor: pointer;
}
.image-zoom-modal img {
  max-width: min(94vw, 1100px);
  max-height: 90vh;
  object-fit: contain;
}
.image-zoom-open { overflow: hidden; }

@media (max-width: 900px) {
  .admin-product-form .form-grid { grid-template-columns: 1fr 1fr; }
  .admin-notification-panel { width: min(320px, calc(100vw - 28px)); }
}

@media (max-width: 620px) {
  .admin-product-form .form-grid { grid-template-columns: 1fr; }
  .admin-product-form > .btn { width: 100%; }
  .admin-filter-input { width: 100%; }
  .admin-bulk-toolbar { align-items: stretch; flex-wrap: wrap; }
  .admin-bulk-toolbar label { width: 100%; }
  .admin-app-shell .table-wrap { max-height: 430px; }
  .admin-identity { display: none; }
  .admin-account-panel,
  .admin-account-profile,
  .admin-account-actions { align-items: stretch; flex-direction: column; }
  .admin-order-summary { grid-template-columns: 1fr; }
  .admin-product-detail { grid-template-columns: 1fr; }
  .admin-product-detail > img { width: 100%; max-height: 300px; }
  .admin-order-detail-actions .btn { width: 100%; }
  .admin-dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-quick-actions { grid-template-columns: 1fr; }
  .sales-chart { grid-template-columns: 58px minmax(460px, 1fr); overflow-x: auto; }
}

/* Professional admin workspace — 2026 refresh */
.admin-app-shell {
  --admin-red: #ef1b25;
  --admin-ink: #111827;
  --admin-muted: #64748b;
  --admin-line: #e6eaf0;
  --admin-soft: #f7f9fc;
  min-height: 100vh;
  background: #f8fafc;
  color: var(--admin-ink);
}

.admin-app-shell .admin-main {
  width: 100%;
  max-width: none;
  padding: 0;
}

.admin-topbar {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  left: 264px;
  height: 76px;
  padding: 0 28px;
  border-bottom: 1px solid var(--admin-line);
  background: rgba(255,255,255,.96);
  box-shadow: none;
}

.admin-menu-button,
.admin-notification,
.admin-logout {
  border: 0;
  background: transparent;
  color: #34445f;
  cursor: pointer;
}

.admin-menu-button { font-size: 22px; }
.admin-search {
  display: flex;
  width: min(520px, 48vw);
  height: 42px;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  border: 1px solid var(--admin-line);
  border-radius: 9px;
  background: #fff;
  padding: 0 12px;
  color: #718096;
}
.admin-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.admin-search kbd {
  border: 1px solid var(--admin-line);
  border-radius: 5px;
  padding: 2px 6px;
  background: var(--admin-soft);
  font-size: 11px;
}
.admin-topbar-actions { align-items: center; gap: 12px; }
.admin-store-link { color: #475569; font-size: 13px; font-weight: 750; text-decoration: none; }
.admin-notification { position: relative; font-size: 23px; }
.admin-notification b {
  position: absolute;
  top: -4px;
  right: -7px;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: var(--admin-red);
  color: #fff;
  font-size: 10px;
}
.admin-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #eef2f7;
  color: #334155;
  font-size: 12px;
  font-weight: 850;
}
.admin-identity { display: grid; line-height: 1.2; font-size: 13px; }
.admin-identity small { margin-top: 3px; color: var(--admin-muted); font-size: 11px; }
.admin-logout { font-size: 22px; }

.admin-shell {
  display: block;
  max-width: none;
  margin: 0;
}
.admin-sidebar {
  position: fixed;
  z-index: 90;
  inset: 0 auto 0 0;
  display: flex;
  width: 264px;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  border: 0;
  border-right: 1px solid var(--admin-line);
  border-radius: 0;
  background: #fff;
  padding: 0 16px 18px;
  box-shadow: none;
}
.admin-brand {
  display: flex;
  height: 76px;
  align-items: center;
  gap: 11px;
  color: var(--admin-ink);
  text-decoration: none;
}
.admin-brand img { width: 38px; height: 38px; object-fit: contain; }
.admin-brand > span { display: grid; font-size: 14px; font-weight: 850; line-height: 1.15; }
.admin-brand small { font-size: 13px; font-weight: 700; }
.admin-sidebar nav { display: grid; gap: 6px; margin-top: 18px; }
.admin-sidebar nav a {
  display: flex;
  min-height: 46px;
  align-items: center;
  gap: 13px;
  border-radius: 9px;
  padding: 0 13px;
  color: #43526b;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: .18s ease;
}
.admin-sidebar nav a i { width: 22px; color: #64748b; font-size: 20px; font-style: normal; text-align: center; }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active { background: #fff0f1; color: var(--admin-red); }
.admin-sidebar nav a.active i { color: var(--admin-red); }
.admin-sidebar-card {
  display: grid;
  gap: 9px;
  margin-top: 38px;
  border: 1px solid #ffdadd;
  border-radius: 12px;
  background: linear-gradient(145deg,#fff8f8,#fff);
  padding: 16px;
}
.admin-sidebar-card span {
  width: max-content;
  border-radius: 20px;
  background: #ffe9eb;
  padding: 4px 8px;
  color: var(--admin-red);
  font-size: 9px;
  font-weight: 900;
}
.admin-sidebar-card b,.admin-support b { font-size: 13px; }
.admin-sidebar-card p,.admin-support p { margin: 0; color: var(--admin-muted); font-size: 11px; line-height: 1.6; }
.admin-sidebar-card a,.admin-support a {
  border: 1px solid var(--admin-line);
  border-radius: 7px;
  background: #fff;
  padding: 9px;
  color: var(--admin-red);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.admin-support { display: grid; gap: 8px; margin-top: auto; padding: 22px 14px 10px; }
.admin-support a { color: #34445f; }
.admin-copyright { padding: 8px 14px 0; color: #9aa6b6; font-size: 10px; }

.admin-workspace {
  min-height: 100vh;
  margin-left: 264px;
  padding: 110px clamp(22px,3vw,44px) 48px;
}
.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.admin-eyebrow { color: var(--admin-red); font-size: 10px; font-weight: 850; letter-spacing: .12em; }
.admin-page-head h1 { margin: 5px 0 4px; color: var(--admin-ink); font-size: clamp(25px,2.3vw,34px); line-height: 1.15; }
.admin-page-head p { margin: 0; color: var(--admin-muted); font-size: 13px; }
.admin-page-actions { display: flex; gap: 10px; }
.admin-app-shell .btn {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: none;
  font-size: 12px;
}
.admin-app-shell .btn-primary { border-color: var(--admin-red); background: var(--admin-red); }
.admin-app-shell .btn-primary:hover { background: #d9141e; }

.admin-stack { display: grid; gap: 18px; min-width: 0; }
.admin-app-shell .metric-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
}
.admin-app-shell .metric {
  display: flex;
  min-height: 116px;
  align-items: flex-start;
  gap: 13px;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(15,23,42,.02);
}
.admin-metric-icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: 12px;
  background: #edf8ef;
  color: #16a34a;
  font-size: 11px;
  font-weight: 900;
}
.metric:nth-child(2) .admin-metric-icon { background:#eaf3ff;color:#1677ff; }
.metric:nth-child(3) .admin-metric-icon { background:#f2ebff;color:#7c3aed; }
.metric:nth-child(4) .admin-metric-icon { background:#fff3e6;color:#f97316; }
.metric-copy { display: grid; gap: 3px; color: var(--admin-muted); font-size: 11px; }
.metric-copy b { color: var(--admin-ink); font-size: 22px; }
.metric-copy small { margin-top: 6px; color: #16a34a; font-size: 10px; }

.admin-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--admin-line);
  border-radius: 13px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(15,23,42,.025);
}
.admin-panel h2 { margin: 0 0 6px; color: var(--admin-ink); font-size: 16px; }
.admin-panel p { font-size: 12px; }
.admin-panel .section-head { margin-bottom: 16px; }
.admin-app-shell .table-wrap { border: 1px solid var(--admin-line); border-radius: 10px; }
.admin-app-shell table { width: 100%; border-collapse: collapse; font-size: 12px; }
.admin-app-shell th {
  background: #fafbfc;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-align: left;
}
.admin-app-shell th,.admin-app-shell td { border-bottom: 1px solid #edf0f4; padding: 11px 13px; vertical-align: middle; }
.admin-app-shell tbody tr:hover { background: #fcfcfd; }
.admin-app-shell .table-thumb { width: 42px; height: 42px; border-radius: 8px; }
.admin-app-shell .status { border: 0; border-radius: 20px; background: #fff1dc; color: #c56a00; padding: 5px 9px; font-size: 10px; }
.admin-app-shell .status.green { background: #e6f8ee; color: #11995a; }
.admin-app-shell .admin-form { margin-top: 16px; }
.admin-app-shell .form-grid { gap: 14px; }
.admin-app-shell .field > span { color:#475569; font-size:11px; font-weight:750; }
.admin-app-shell .field input,
.admin-app-shell .field textarea,
.admin-app-shell .field select {
  border-color: var(--admin-line);
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}
.admin-app-shell .field input:focus,
.admin-app-shell .field textarea:focus,
.admin-app-shell .field select:focus { border-color:#ff8c92; box-shadow:0 0 0 3px #fff0f1; }
.admin-checklist { grid-template-columns: repeat(2,minmax(0,1fr)); }
.check-item { border-color:var(--admin-line); border-radius:9px; padding:11px; font-size:11px; }
.check-item span { width:28px;height:28px;background:#f59e0b;font-size:10px; }
.check-item.done span { background:#16a34a; }

@media (max-width: 1050px) {
  .admin-topbar { left: 82px; }
  .admin-sidebar { width:82px; padding-inline:10px; }
  .admin-brand { justify-content:center; }
  .admin-brand > span,.admin-sidebar nav a span,.admin-sidebar-card,.admin-support,.admin-copyright { display:none; }
  .admin-sidebar nav a { justify-content:center;padding:0; }
  .admin-sidebar nav a i { width:auto; }
  .admin-workspace { margin-left:82px; }
  .admin-app-shell .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .admin-topbar { left:0;height:64px;padding:0 14px; }
  .admin-search { width:auto;flex:1; }
  .admin-search kbd,.admin-identity,.admin-store-link { display:none; }
  .admin-sidebar {
    inset:auto 0 0;
    width:100%;
    height:66px;
    overflow:hidden;
    border-top:1px solid var(--admin-line);
    border-right:0;
    padding:7px 8px;
  }
  .admin-brand,.admin-sidebar-card,.admin-support,.admin-copyright { display:none; }
  .admin-sidebar nav { grid-template-columns:repeat(6,1fr);gap:2px;margin:0; }
  .admin-sidebar nav a { display:grid;min-height:52px;gap:2px;font-size:9px;place-items:center; }
  .admin-sidebar nav a i { font-size:17px; }
  .admin-sidebar nav a span { display:block; }
  .admin-workspace { margin-left:0;padding:86px 14px 90px; }
  .admin-page-head { align-items:flex-start; }
  .admin-page-head p,.admin-eyebrow,.admin-page-actions .btn-secondary { display:none; }
  .admin-page-actions .btn-primary { white-space:nowrap; }
  .admin-app-shell .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
  .admin-app-shell .metric { min-height:100px;padding:13px; }
  .admin-metric-icon { width:36px;height:36px;flex-basis:36px; }
  .metric-copy b { font-size:18px; }
  .metric-copy small { display:none; }
  .admin-panel { padding:14px; }
  .admin-checklist { grid-template-columns:1fr; }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Arial, sans-serif;
  line-height: 1.45;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

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

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

.app-shell {
  min-height: 100vh;
  padding-bottom: 78px;
}

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

.header-inner {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  max-width: var(--content);
  margin: 0 auto;
  padding: 12px 18px;
}

.brand-link {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: clamp(128px, 14vw, 158px);
  height: auto;
}

.brand-mark-small {
  width: 70px;
  height: auto;
}

.search-wrap {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.search-wrap::before {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 15px;
  height: 15px;
  border: 2px solid var(--black);
  border-radius: 50%;
  content: "";
  transform: translateY(-58%);
}

.search-wrap::after {
  position: absolute;
  left: 27px;
  top: 50%;
  width: 9px;
  height: 2px;
  background: var(--black);
  content: "";
  transform: rotate(45deg) translate(2px, 5px);
}

.search-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 0 44px;
  color: var(--ink);
  outline: none;
}

.search-input:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.11);
}

.header-actions,
.desktop-nav,
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-nav a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  padding: 9px 10px;
}

.desktop-nav {
  grid-column: 3;
  grid-row: 1;
}

.header-actions {
  grid-column: 4;
  grid-row: 1;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--soft);
  color: var(--black);
}

.icon-btn,
.text-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 900;
}

.text-icon-btn {
  gap: 8px;
  padding: 0 12px;
}

.icon-btn:hover,
.text-icon-btn:hover {
  border-color: var(--black);
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.main {
  max-width: var(--content);
  margin: 0 auto;
  padding: 18px;
}

.mobile-only {
  display: none;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 28px 0 14px;
}

.section-head h2,
.page-title h1,
.detail-title,
.checkout-title,
.admin-title {
  margin: 0;
  color: var(--black);
  font-size: clamp(24px, 5vw, 44px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head p,
.page-title p,
.muted {
  color: var(--muted);
}

.hero-store {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(135deg, #f2f2f2 0 1px, transparent 1px 14px);
}

.hero-copy {
  padding: clamp(22px, 4vw, 46px);
}

.stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--red);
  border-radius: 8px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.hero-title {
  max-width: 720px;
  margin: 16px 0 12px;
  color: var(--black);
  font-size: clamp(34px, 6vw, 62px);
  line-height: 0.98;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-title .red {
  color: var(--red);
}

.hero-copy p {
  max-width: 610px;
  margin: 0 0 18px;
  color: #393939;
  font-size: clamp(15px, 2vw, 18px);
}

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

.hero-media {
  position: relative;
  min-height: 330px;
  border-left: 1px solid var(--line);
  background: var(--white);
}

.hero-product {
  position: absolute;
  inset: 20px 24px 18px;
  display: grid;
  place-items: center;
}

.hero-product .shirt {
  width: min(76%, 340px);
}

.hero-stamp-logo {
  position: absolute;
  right: 22px;
  bottom: 20px;
  width: 145px;
  opacity: 0.96;
}

.red-spark {
  position: absolute;
  left: 22px;
  bottom: 26px;
  width: 76px;
  height: 76px;
  color: var(--red);
}

.red-spark::before,
.red-spark::after {
  position: absolute;
  background: currentColor;
  content: "";
  clip-path: polygon(0 42%, 48% 42%, 36% 0, 100% 58%, 52% 58%, 64% 100%);
}

.red-spark::before {
  inset: 0 22px 32px 0;
}

.red-spark::after {
  inset: 34px 0 0 24px;
  transform: rotate(-8deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 950;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(229, 9, 20, 0.22);
}

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

.btn-secondary {
  border-color: var(--black);
  background: var(--white);
  color: var(--black);
}

.btn-ghost {
  border-color: var(--line);
  background: var(--white);
  color: var(--black);
}

.btn-full {
  width: 100%;
}

.btn[disabled] {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

.benefit-row,
.category-row,
.chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.benefit {
  display: grid;
  grid-template-columns: 38px minmax(130px, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 220px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
}

.benefit b,
.category-tile b,
.product-info b,
.checkout-card b {
  color: var(--black);
}

.benefit span,
.category-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.benefit-icon,
.category-icon,
.admin-metric-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-weight: 950;
}

.category-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(128px, 1fr));
  gap: 12px;
  overflow: visible;
}

.category-tile {
  min-height: 104px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.category-tile:hover,
.product-card:hover,
.checkout-card:hover {
  border-color: var(--black);
}

.category-icon {
  margin-bottom: 10px;
  background: var(--soft);
  color: var(--black);
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-media {
  position: relative;
  display: grid;
  min-height: 190px;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 76% 20%, rgba(229, 9, 20, 0.08), transparent 24%),
    repeating-linear-gradient(135deg, #f8f8f8 0 1px, #ffffff 1px 13px);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.discount-badge,
.mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 950;
  padding: 5px 8px;
}

.discount-badge {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 2;
}

.wishlist-btn {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  font-weight: 950;
}

.wishlist-btn.active {
  border-color: var(--red);
  color: var(--red);
}

.product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
}

.product-name {
  min-height: 42px;
  color: var(--black);
  font-weight: 900;
  line-height: 1.22;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: baseline;
}

.price {
  color: var(--red);
  font-size: 20px;
  font-weight: 950;
}

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

.rating-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  color: var(--muted);
  font-size: 13px;
}

.star {
  color: var(--yellow);
  font-weight: 950;
}

.shirt {
  position: relative;
  aspect-ratio: 1 / 0.88;
  width: min(82%, 230px);
  color: var(--white);
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.18));
}

.shirt::before {
  position: absolute;
  inset: 12% 12% 0;
  background: var(--shirt, #070707);
  content: "";
  clip-path: polygon(
    22% 0,
    38% 0,
    43% 8%,
    57% 8%,
    62% 0,
    78% 0,
    100% 18%,
    88% 39%,
    78% 34%,
    78% 100%,
    22% 100%,
    22% 34%,
    12% 39%,
    0 18%
  );
}

.shirt.white {
  color: var(--black);
  --shirt: #f5f5f5;
}

.shirt-design {
  position: absolute;
  left: 28%;
  top: 30%;
  width: 44%;
  color: currentColor;
  font-size: clamp(12px, 2.4vw, 22px);
  font-weight: 950;
  line-height: 0.95;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.shirt-design .red-block {
  display: inline-block;
  margin: 2px 0;
  background: var(--red);
  color: var(--white);
  padding: 1px 3px;
}

.bundle-band,
.newsletter-band {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 18px;
  align-items: center;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 8px;
}

.bundle-band {
  border: 1px solid #f3cf74;
  background:
    linear-gradient(90deg, #ffbe2d, #fff0b8),
    #ffbe2d;
}

.bundle-copy,
.newsletter-copy {
  padding: 22px;
}

.bundle-copy h3,
.newsletter-copy h3 {
  margin: 0 0 8px;
  color: var(--black);
  font-size: clamp(24px, 5vw, 38px);
  line-height: 1;
  text-transform: uppercase;
}

.bundle-shirts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
}

.bundle-shirts .shirt {
  width: 34%;
  max-width: 150px;
}

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

.testimonial {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.avatar {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  font-weight: 950;
}

.testimonial-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.newsletter-band {
  background: var(--black);
  color: var(--white);
}

.newsletter-band h3,
.newsletter-band p {
  color: var(--white);
}

.newsletter-form {
  display: flex;
  gap: 10px;
  padding: 22px;
}

.newsletter-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 0 14px;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--black);
  font-weight: 850;
  padding: 0 14px;
}

.chip.active,
.chip:hover {
  border-color: var(--red);
  background: #fff4f4;
  color: var(--red);
}

.select,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  min-height: 44px;
  padding: 0 12px;
  outline: none;
}

.field textarea {
  min-height: 92px;
  padding-top: 12px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.11);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.96fr);
  gap: 24px;
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 88px;
}

.detail-main-image {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 520px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    repeating-linear-gradient(135deg, #eeeeee 0 1px, transparent 1px 16px);
}

.detail-main-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
}

.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.thumb {
  min-height: 84px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.thumb.active {
  border-color: var(--red);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.14);
}

.detail-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
  color: var(--muted);
}

.option-group {
  margin-top: 18px;
}

.option-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--black);
  font-weight: 900;
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.option {
  min-width: 64px;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 850;
  padding: 0 12px;
}

.option.active {
  border-color: var(--red);
  color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--swatch, #111);
}

.qty-stepper {
  display: inline-grid;
  grid-template-columns: 40px 52px 40px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.qty-stepper button,
.qty-stepper span {
  display: grid;
  min-height: 38px;
  place-items: center;
  border: 0;
  background: var(--white);
  color: var(--black);
  font-weight: 950;
}

.qty-stepper span {
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.detail-facts {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
}

.sticky-buy {
  position: sticky;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
  background: var(--white);
  padding: 12px 0 0;
  margin-top: 18px;
}

.cart-layout,
.checkout-layout,
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.cart-items,
.checkout-stack,
.admin-stack {
  display: grid;
  gap: 12px;
}

.cart-item,
.checkout-card,
.order-card,
.admin-panel,
.legal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.backend-access-card {
  display: grid;
  gap: 12px;
}

.backend-url {
  width: fit-content;
  color: var(--black);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-decoration: none;
}

.backend-url:hover {
  color: var(--red);
}

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

.admin-credential-grid span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  padding: 12px;
  color: var(--muted);
}

.admin-credential-grid b {
  color: var(--black);
}

.cart-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
}

.cart-item-img {
  display: grid;
  min-height: 120px;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: var(--soft);
}

.cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.summary-card {
  position: sticky;
  top: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0;
}

.summary-total {
  border-top: 1px dashed var(--line);
  margin-top: 14px;
  padding-top: 14px;
  color: var(--black);
  font-size: 20px;
  font-weight: 950;
}

.promo-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin: 14px 0;
}

.checkout-header {
  display: grid;
  gap: 16px;
  margin-bottom: 18px;
}

.stepper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

.step {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.step::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  content: attr(data-step);
}

.step.done::before {
  border-color: var(--black);
  content: "OK";
  font-size: 10px;
}

.step.active {
  color: var(--red);
}

.step.active::before {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label,
.check-row {
  color: var(--black);
  font-weight: 850;
}

.field.full {
  grid-column: 1 / -1;
}

.error-text {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.shipping-list,
.payment-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  text-align: left;
}

.choice-card.active {
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}

.choice-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--black);
  font-weight: 950;
}

.radio-dot {
  width: 20px;
  height: 20px;
  border: 2px solid #bdbdbd;
  border-radius: 50%;
}

.choice-card.active .radio-dot {
  border: 6px solid var(--red);
}

.check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

.payment-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  align-items: start;
}

.qris-box {
  display: grid;
  gap: 18px;
  justify-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.fake-qr {
  display: grid;
  width: min(100%, 280px);
  aspect-ratio: 1;
  grid-template-columns: repeat(9, 1fr);
  gap: 5px;
  border: 10px solid var(--white);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line);
}

.qr-cell {
  background: var(--black);
}

.qr-cell.light {
  background: var(--white);
}

.countdown {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #fff3f3;
  color: var(--red);
  font-weight: 950;
  padding: 8px 12px;
}

.success-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 34px;
  font-weight: 950;
}

.tracking-timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  min-height: 64px;
}

.timeline-item::before {
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: var(--line);
  content: "";
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: var(--line);
  color: var(--white);
  font-size: 10px;
  font-weight: 950;
}

.timeline-item.done .timeline-dot {
  background: var(--green);
}

.timeline-item.current .timeline-dot {
  background: var(--red);
}

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

.auth-card {
  gap: 14px;
}

.google-btn {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-weight: 950;
}

.google-btn span,
.profile-avatar {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
}

.divider-text {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.divider-text::before,
.divider-text::after {
  height: 1px;
  background: var(--line);
  content: "";
}

.profile-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 12px;
  margin-bottom: 14px;
}

.profile-strip div {
  display: grid;
  flex: 1;
  min-width: 0;
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 20px;
}

.admin-sidebar {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 8px;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.admin-sidebar a {
  border-radius: 8px;
  color: var(--muted);
  font-weight: 850;
  padding: 10px 12px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: var(--black);
  color: var(--white);
}

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

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.metric b {
  display: block;
  margin-top: 10px;
  color: var(--black);
  font-size: 24px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

th {
  background: var(--soft);
  color: var(--black);
  font-size: 13px;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  background: var(--soft);
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  padding: 5px 9px;
}

.status.green {
  background: #eaf8ef;
  color: var(--green);
}

.status.red {
  background: #fff0f0;
  color: var(--red);
}

.site-footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: var(--content);
  margin: 0 auto;
  padding: 28px 18px 34px;
}

.footer-inner h3,
.footer-inner h4 {
  margin: 0 0 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.bottom-nav a {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 68px;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding-top: 8px;
}

.bottom-nav a.active {
  color: var(--red);
}

.bottom-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 7px;
  border: 1px solid currentColor;
  font-weight: 950;
}

.empty-state {
  display: grid;
  justify-items: start;
  gap: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 24px;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 80;
  max-width: 360px;
  border-radius: 8px;
  background: var(--black);
  color: var(--white);
  font-weight: 850;
  padding: 12px 14px;
  box-shadow: var(--shadow);
}

.hide {
  display: none !important;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .brand-link {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
  }

  .search-wrap {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .desktop-nav {
    display: none;
  }

  .hero-store,
  .detail-layout,
  .cart-layout,
  .checkout-layout,
  .payment-hero,
  .admin-layout,
  .footer-inner,
  .newsletter-band,
  .bundle-band,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .detail-gallery,
  .summary-card,
  .admin-sidebar {
    position: static;
  }

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

  .category-row,
  .metric-grid,
  .account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .app-shell {
    padding-bottom: 76px;
  }

  .main {
    padding: 14px;
  }

  .header-actions .text-icon-btn,
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline-flex;
  }

  .header-inner {
    gap: 10px;
    padding: 10px 14px;
  }

  .brand-logo {
    width: 142px;
  }

  .hero-store {
    gap: 0;
  }

  .hero-media {
    min-height: 140px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-copy {
    padding: 16px;
  }

  .hero-title {
    font-size: clamp(30px, 9.6vw, 40px);
  }

  .hero-product .shirt {
    width: min(54%, 190px);
  }

  .hero-stamp-logo {
    width: 78px;
  }

  .red-spark {
    width: 42px;
    height: 42px;
  }

  .benefit-row {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .category-row {
    display: flex;
    margin-right: -14px;
    margin-left: -14px;
    overflow-x: auto;
    padding-right: 14px;
    padding-left: 14px;
  }

  .category-tile {
    min-width: 138px;
  }

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

  .product-media {
    min-height: 154px;
  }

  .product-info {
    padding: 10px;
  }

  .product-name {
    min-height: 38px;
    font-size: 13px;
  }

  .price {
    font-size: 17px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-toolbar .search-wrap {
    grid-column: 1 / -1;
  }

  .detail-layout,
  .detail-gallery,
  .detail-main-image,
  .detail-panel,
  .detail-title,
  .detail-meta,
  .price-row,
  .option-group,
  .option-head,
  .option-list,
  .detail-facts,
  .fact-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .detail-main-image {
    min-height: 360px;
  }

  .detail-panel {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    padding: 16px 0;
  }

  .detail-thumbs {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(5, minmax(64px, 1fr));
    overflow-x: auto;
  }

  .sticky-buy {
    position: fixed;
    right: 0;
    bottom: 68px;
    left: 0;
    z-index: 58;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    margin: 0;
    box-shadow: 0 -16px 38px rgba(0, 0, 0, 0.08);
  }

  .cart-item {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .cart-item-img {
    min-height: 96px;
  }

  .form-grid,
  .testimonials,
  .metric-grid,
  .account-grid,
  .settings-toggle-grid {
    grid-template-columns: 1fr;
  }

  .profile-strip {
    align-items: flex-start;
  }

  .admin-credential-grid {
    grid-template-columns: 1fr;
  }

  .choice-card {
    grid-template-columns: 38px minmax(0, 1fr) 22px;
  }

  .newsletter-form,
  .bundle-shirts {
    padding-top: 0;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .bottom-nav {
    display: grid;
  }

  .footer-inner {
    padding-bottom: 96px;
  }

  .toast {
    right: 12px;
    bottom: 146px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 124px;
  }

  .header-actions {
    gap: 5px;
  }

  .icon-btn {
    min-width: 38px;
    height: 38px;
  }

  .hero-actions .btn {
    flex: 1 1 145px;
  }
}

/* Compact customer-facing states and authentication. */
.btn-compact {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 12px;
}

.bundle-shirts {
  gap: 12px;
}

.promo-strip-tile {
  display: grid;
  width: 78px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 8px 18px rgba(86, 0, 6, 0.2);
}

.promo-strip-tile .promo-strip-icon {
  width: 72%;
  height: 72%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.catalog-page {
  gap: 10px;
  padding-top: 0;
}

.catalog-head {
  display: none;
}

.catalog-result-head {
  min-height: 22px;
  margin: 0;
  padding: 0 2px;
}

.catalog-result-head h2 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.catalog-result-head span {
  color: #777;
  font-size: 12px;
}

.catalog-empty-note {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.catalog-empty-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff2f3;
}

.catalog-empty-icon img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.catalog-empty-note > div {
  display: grid;
  gap: 3px;
}

.catalog-empty-note b {
  font-size: 14px;
}

.catalog-empty-note span {
  color: #707070;
  font-size: 12px;
  line-height: 1.35;
}

.cart-empty-compact,
.cart-compact-head {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.cart-empty-compact {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.cart-empty-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  background: #fff2f3;
}

.cart-empty-icon img {
  width: 68%;
  height: 68%;
  object-fit: contain;
}

.cart-empty-copy {
  display: grid;
  gap: 3px;
}

.cart-empty-copy h1,
.cart-empty-copy p,
.cart-compact-head h1 {
  margin: 0;
}

.cart-empty-copy h1 {
  font-size: 20px;
}

.cart-empty-copy p {
  color: #777;
  font-size: 13px;
}

.cart-compact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #e8e8e8;
  padding-bottom: 10px;
}

.cart-compact-head h1 {
  font-size: 24px;
}

.cart-compact-head span {
  color: #777;
  font-size: 12px;
}

.wishlist-panel {
  gap: 12px;
  border-radius: 8px;
  padding: 16px;
}

.wishlist-head {
  min-height: 38px;
  margin: 0;
}

.wishlist-head h2 {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  font-size: 18px;
}

.wishlist-head h2 span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #fff0f1;
  color: var(--red);
  font-size: 11px;
}

.wishlist-empty {
  min-height: 52px;
  gap: 10px;
  justify-content: start;
  padding: 8px 0;
  color: #777;
  font-size: 12px;
}

.wishlist-empty img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.wishlist-cart-item {
  min-height: 92px;
  gap: 12px;
  border-radius: 8px;
  padding: 10px;
}

.wishlist-cart-img {
  width: 72px;
  height: 72px;
}

.wishlist-cart-copy {
  gap: 2px;
}

.wishlist-cart-actions {
  gap: 6px;
}

.account-auth-shell {
  display: grid;
  width: min(100%, 460px);
  gap: 14px;
  margin: 10px auto 30px;
}

.account-auth-head {
  display: grid;
  gap: 5px;
}

.account-auth-head h1,
.account-auth-head p {
  margin: 0;
}

.account-auth-head h1 {
  font-size: 25px;
  line-height: 1.15;
}

.account-auth-head p {
  color: #707070;
  font-size: 13px;
}

.account-auth-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
}

.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #e2e2e2;
  border-radius: 7px;
  background: #f6f6f6;
  padding: 3px;
}

.auth-mode-tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #666;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.auth-mode-tabs button.active {
  background: #fff;
  color: var(--red);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.customer-email-form {
  display: grid;
  gap: 11px;
}

.customer-email-form .field {
  gap: 5px;
}

.customer-email-form .field > span {
  font-size: 12px;
  font-weight: 800;
}

.customer-email-form input {
  min-height: 44px;
  border-radius: 7px;
  font-size: 14px;
}

.customer-auth-message {
  min-height: 0;
  margin: 0;
  font-size: 12px;
}

.customer-auth-message:empty {
  display: none;
}

.customer-auth-message.success {
  color: #08783e;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  color: #888;
  font-size: 11px;
}

.auth-divider::before,
.auth-divider::after {
  height: 1px;
  background: #e2e2e2;
  content: "";
}

.account-auth-card .google-btn {
  min-height: 46px;
  border-radius: 7px;
  font-size: 13px;
}

.account-auth-card .google-btn img {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

@media (max-width: 760px) {
  .bundle-shirts {
    gap: 7px;
  }

  .promo-strip-tile {
    width: 58px;
  }

  .catalog-empty-note {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    min-height: 76px;
    padding: 11px;
  }

  .catalog-empty-icon {
    width: 42px;
    height: 42px;
  }

  .catalog-empty-note .btn {
    grid-column: 2;
    width: fit-content;
  }

  .cart-empty-compact {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 13px;
  }

  .cart-empty-icon {
    width: 48px;
    height: 48px;
  }

  .cart-empty-copy h1 {
    font-size: 17px;
  }

  .cart-empty-compact > .btn {
    grid-column: 2;
    width: fit-content;
  }

  .cart-compact-head h1 {
    font-size: 21px;
  }

  .wishlist-panel {
    padding: 12px;
  }

  .wishlist-head h2 {
    font-size: 16px;
  }

  .wishlist-cart-item {
    grid-template-columns: 62px minmax(0, 1fr) auto;
  }

  .wishlist-cart-img {
    width: 62px;
    height: 62px;
  }

  .wishlist-cart-actions .btn {
    width: auto;
  }

  .account-auth-shell {
    gap: 11px;
    margin-top: 0;
  }

  .account-auth-head h1 {
    font-size: 21px;
  }

  .account-auth-card {
    gap: 12px;
    padding: 14px;
    box-shadow: none;
  }
}

@media (max-width: 420px) {
  .promo-strip-tile {
    width: 52px;
  }

  .wishlist-cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .wishlist-cart-img {
    width: 58px;
    height: 58px;
  }

  .wishlist-cart-actions {
    grid-column: 2;
    grid-row: 2;
    grid-template-columns: auto 36px;
    justify-content: start;
  }
}

/* Compact catalog: products stay visible without a tall marketing header. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.catalog-page {
  display: grid;
  align-content: start;
  gap: 12px;
  margin-top: -2px;
}

.catalog-head {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 9px;
}

.catalog-head > span {
  flex: 0 0 auto;
  border-left: 3px solid var(--red);
  color: var(--red);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  padding-left: 7px;
  text-transform: uppercase;
}

.catalog-head h1 {
  min-width: 0;
  margin: 0;
  color: #090909;
  font-size: 26px;
  line-height: 1.05;
}

.catalog-categories {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 0 0 3px;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.catalog-categories::-webkit-scrollbar {
  display: none;
}

.catalog-category {
  display: grid;
  width: 74px;
  min-width: 74px;
  min-height: 60px;
  grid-template-rows: 32px auto;
  place-items: center;
  gap: 3px;
  scroll-snap-align: start;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  background: #fff;
  color: #222;
  padding: 5px 4px;
}

.catalog-category:hover,
.catalog-category.active {
  border-color: var(--red);
  background: #fff7f7;
  color: var(--red);
}

.catalog-category-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #fff7f7;
}

.catalog-category-icon img {
  width: 29px;
  height: 29px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.catalog-category b {
  max-width: 100%;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 7px;
}

.catalog-controls .select {
  width: 142px;
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  padding: 0 30px 0 11px;
}

.catalog-controls .catalog-reset {
  min-height: 40px;
  border-radius: 8px;
  gap: 6px;
  font-size: 12px;
  padding: 0 11px;
}

.catalog-controls .catalog-reset .btn-icon {
  width: 19px;
  height: 19px;
}

.catalog-result-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 1px;
}

.catalog-result-head h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.15;
}

.catalog-result-head span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .app-shell .main:has(.catalog-page) {
    gap: 12px;
    padding-top: 8px;
  }

  .catalog-page {
    gap: 9px;
    margin-top: 0;
  }

  .catalog-head h1 {
    font-size: 21px;
  }

  .catalog-head > span {
    font-size: 9px;
  }

  .catalog-categories {
    gap: 6px;
    margin-right: -20px;
    padding-right: 20px;
  }

  .catalog-category {
    width: 66px;
    min-width: 66px;
    min-height: 55px;
    grid-template-rows: 28px auto;
    padding: 4px 3px;
  }

  .catalog-category-icon {
    width: 28px;
    height: 28px;
  }

  .catalog-category-icon img {
    width: 26px;
    height: 26px;
  }

  .catalog-category b {
    font-size: 10px;
  }

  .catalog-controls .select {
    width: 126px;
    min-height: 36px;
    font-size: 12px;
  }

  .catalog-controls .catalog-reset {
    min-height: 36px;
    font-size: 11px;
    padding: 0 9px;
  }

  .catalog-result-head h2 {
    font-size: 15px;
  }
}

@media (max-width: 420px) {
  .catalog-categories {
    margin-right: -14px;
    padding-right: 14px;
  }

  .catalog-controls .catalog-reset span {
    display: none;
  }

  .catalog-controls .catalog-reset {
    width: 36px;
    padding: 0;
  }
}

/* Aspirasi Kecil UI refresh */
body {
  background: #fafafa;
}

.site-header {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.search-wrap::before,
.search-wrap::after {
  display: none;
}

.search-icon-img {
  position: absolute;
  left: 10px;
  top: 50%;
  z-index: 1;
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input {
  border-color: #dedede;
  border-radius: 10px;
  padding-left: 48px;
}

.ui-icon,
.btn-icon {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.btn-icon {
  width: 24px;
  height: 24px;
}

.icon-btn,
.text-icon-btn {
  overflow: hidden;
  border-radius: 10px;
}

.icon-btn {
  min-width: 44px;
  width: 44px;
  height: 44px;
}

.text-icon-btn {
  min-width: auto;
}

.hero-store {
  position: relative;
  isolation: isolate;
  min-height: 430px;
  border: 2px solid var(--black);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 42%, rgba(255, 255, 255, 0.4) 100%),
    var(--hero-bg) center / cover no-repeat,
    #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 680px;
}

.hero-title {
  max-width: 620px;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 0.96;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px 4px 6px;
}

.hero-proof-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero-media {
  display: grid;
  min-height: 430px;
  place-items: center;
  border-left: 0;
  background: transparent;
}

.hero-illustration {
  width: min(72%, 360px);
  max-height: 340px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.15));
}

.hero-mini-card {
  position: absolute;
  right: 24px;
  bottom: 22px;
  display: grid;
  gap: 2px;
  border: 2px solid var(--black);
  border-radius: 10px;
  background: var(--white);
  padding: 10px 12px;
  box-shadow: 8px 8px 0 var(--black);
}

.hero-mini-card b {
  color: var(--red);
  font-size: 13px;
  text-transform: uppercase;
}

.hero-mini-card span {
  color: var(--black);
  font-size: 12px;
  font-weight: 850;
}

.benefit {
  min-width: 230px;
  border-radius: 10px;
}

.benefit-icon,
.category-icon,
.choice-icon {
  overflow: hidden;
  background: #fff5f5;
}

.benefit-icon img,
.category-icon img,
.choice-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.category-tile {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 132px;
  border-radius: 10px;
}

.category-icon {
  width: 64px;
  height: 58px;
  margin-bottom: 2px;
}

.category-icon img {
  padding: 2px;
  mix-blend-mode: multiply;
}

.wishlist-btn {
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.wishlist-btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.product-card {
  border-radius: 10px;
}

.product-media {
  background:
    radial-gradient(circle at 80% 18%, rgba(229, 9, 20, 0.1), transparent 24%),
    linear-gradient(180deg, #fff, #f7f7f7);
}

.choice-icon {
  width: 46px;
  height: 46px;
  padding: 4px;
}

.bottom-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.catalog-reset {
  gap: 6px;
}

@media (max-width: 700px) {
  .app-shell {
    padding-bottom: calc(82px + env(safe-area-inset-bottom));
  }

  .site-header {
    border-bottom: 1px solid #eeeeee;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
  }

  .header-inner {
    gap: 8px;
    padding: 8px 12px 10px;
  }

  .brand-logo {
    width: 112px;
    max-height: 64px;
    object-fit: contain;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    min-width: 38px;
    width: 38px;
    height: 38px;
    border-color: #ededed;
  }

  .ui-icon {
    width: 27px;
    height: 27px;
  }

  .search-input {
    height: 42px;
    border-radius: 10px;
    font-size: 13px;
  }

  .search-icon-img {
    width: 26px;
    height: 26px;
  }

  .main {
    padding: 10px 12px;
  }

  .hero-store {
    display: block;
    min-height: 338px;
    overflow: hidden;
    border-width: 1px;
    border-radius: 12px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.92) 52%, rgba(255, 255, 255, 0.68) 100%),
      var(--hero-bg) center / cover no-repeat,
      #fff;
  }

  .hero-copy {
    max-width: 100%;
    padding: 16px;
  }

  .stamp {
    border-radius: 8px;
    font-size: 10px;
    padding: 6px 8px;
  }

  .hero-title {
    max-width: 295px;
    margin: 12px 0 8px;
    font-size: clamp(31px, 9vw, 38px);
    line-height: 0.98;
  }

  .hero-copy p {
    max-width: 270px;
    margin-bottom: 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-proof-row {
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    margin-top: 12px;
    padding-bottom: 2px;
  }

  .hero-proof-row span {
    flex: 0 0 auto;
    min-height: 28px;
    font-size: 11px;
    padding: 3px 9px 3px 4px;
  }

  .hero-proof-row img {
    width: 22px;
    height: 22px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 12px;
  }

  .hero-actions .btn {
    min-height: 42px;
    border-radius: 9px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-media {
    position: absolute;
    right: -18px;
    bottom: -4px;
    width: 150px;
    min-height: 140px;
    height: 140px;
    pointer-events: none;
  }

  .hero-illustration {
    width: 144px;
    max-height: 132px;
  }

  .hero-mini-card {
    display: none;
  }

  .section-head {
    align-items: center;
    margin: 18px 0 10px;
  }

  .section-head h2,
  .page-title h1,
  .detail-title,
  .checkout-title,
  .admin-title {
    font-size: 22px;
    line-height: 1.08;
  }

  .section-head p,
  .page-title p {
    margin: 5px 0 0;
    font-size: 13px;
  }

  .benefit-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    overflow: visible;
    padding: 0;
  }

  .benefit {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
    min-width: 0;
    border-radius: 10px;
    padding: 9px;
  }

  .benefit-icon {
    width: 42px;
    height: 42px;
  }

  .benefit b {
    display: block;
    font-size: 12px;
    line-height: 1.2;
  }

  .benefit span span {
    font-size: 10.5px;
    line-height: 1.15;
  }

  .category-row {
    gap: 9px;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
  }

  .category-tile {
    min-width: 116px;
    min-height: 122px;
    padding: 10px;
  }

  .category-icon {
    width: 62px;
    height: 56px;
  }

  .category-tile b {
    font-size: 12.5px;
    line-height: 1.15;
  }

  .category-tile span:last-child {
    font-size: 10.5px;
  }

  .product-grid {
    gap: 9px;
  }

  .product-card {
    border-radius: 10px;
  }

  .product-media {
    min-height: 132px;
  }

  .discount-badge {
    left: 7px;
    top: 7px;
    border-radius: 7px;
    font-size: 10px;
    padding: 4px 6px;
  }

  .wishlist-btn {
    right: 7px;
    top: 7px;
    width: 30px;
    height: 30px;
  }

  .wishlist-btn img {
    width: 20px;
    height: 20px;
  }

  .product-info {
    gap: 6px;
    padding: 9px;
  }

  .product-name {
    min-height: 32px;
    font-size: 12.5px;
    line-height: 1.25;
  }

  .price {
    font-size: 15.5px;
  }

  .old-price,
  .rating-row {
    font-size: 11px;
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 104px;
    gap: 8px;
  }

  .catalog-toolbar .btn {
    min-height: 42px;
    padding: 0 10px;
  }

  .choice-icon {
    width: 40px;
    height: 40px;
  }

  .choice-card {
    border-radius: 10px;
    padding: 10px;
  }

  .bottom-nav {
    height: calc(72px + env(safe-area-inset-bottom));
    align-items: start;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -12px 28px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
  }

  .bottom-nav a {
    min-height: 70px;
    gap: 2px;
    font-size: 10.5px;
    padding-top: 6px;
  }

  .bottom-icon {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 0;
  }

  .bottom-nav a.active .bottom-icon {
    filter: drop-shadow(0 4px 7px rgba(229, 9, 20, 0.24));
  }
}

@media (max-width: 390px) {
  .brand-logo {
    width: 106px;
  }

  .hero-title {
    max-width: 270px;
    font-size: 32px;
  }

  .hero-copy p {
    max-width: 250px;
  }

  .hero-actions .btn {
    flex: 1 1 128px;
  }
}

.hero-proof-row,
.category-row {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hero-proof-row::-webkit-scrollbar,
.category-row::-webkit-scrollbar {
  display: none;
}

@media (max-width: 700px) {
  .hero-proof-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    padding-bottom: 0;
  }

  .hero-proof-row span {
    justify-content: center;
    width: 100%;
    min-width: 0;
    padding: 4px;
    text-align: center;
    white-space: normal;
  }

  .hero-proof-row img {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
  }
}

/* Editable storefront and UMKM backend */
.promo-slider {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 8px;
  background: var(--black);
  margin-inline: calc(50% - 50vw);
}

.promo-slider-track {
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.promo-slider-track::-webkit-scrollbar {
  display: none;
}

.promo-slide {
  position: relative;
  min-height: clamp(320px, 31.25vw, 600px);
  scroll-snap-align: start;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.9) 36%, rgba(255, 255, 255, 0.2) 72%),
    var(--banner) center / cover no-repeat,
    #fff;
}

.promo-slide.image-banner {
  background: var(--banner) center / cover no-repeat, #fff;
}

.promo-slide-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.slider-count {
  position: absolute;
  right: 16px;
  top: 16px;
  z-index: 3;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--black);
  font-size: 12px;
  font-weight: 950;
  padding: 6px 10px;
}

.promo-slide-overlay {
  display: flex;
  width: min(650px, 58%);
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(22px, 5vw, 56px);
}

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--black);
  font-size: 22px;
  font-weight: 950;
  transform: translateY(-50%);
}

.slider-arrow.prev {
  left: 12px;
}

.slider-arrow.next {
  right: 12px;
}

.slider-dots {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 5;
  display: flex;
  gap: 7px;
}

.slider-dots span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--white);
  color: var(--black);
  font-size: 11px;
  font-weight: 950;
}

.product-empty img,
.empty-state img {
  width: min(220px, 55vw);
  margin: 0 auto 10px;
}

.promo-strip-icon {
  width: min(28vw, 180px);
  max-height: 180px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

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

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  padding: 10px 12px;
  outline: none;
}

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

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.11);
}

.file-hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.table-thumb {
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  object-fit: contain;
}

.table-thumb.icon {
  padding: 5px;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.check-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.check-item span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
}

.check-item.done span {
  background: var(--black);
}

.admin-app-shell {
  min-height: 100vh;
  background: #fafafa;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  padding: 10px clamp(14px, 4vw, 28px);
  backdrop-filter: blur(16px);
}

.admin-topbar .brand-link {
  flex: 0 1 auto;
}

.admin-topbar .brand-logo {
  width: clamp(116px, 14vw, 150px);
}

.admin-topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.admin-main {
  padding-top: 20px;
  padding-bottom: 34px;
}

.admin-login-screen {
  display: grid;
  min-height: calc(100vh - 118px);
  place-items: center;
  padding: 20px 0;
}

.admin-login-card {
  display: grid;
  width: min(100%, 430px);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  padding: clamp(18px, 5vw, 28px);
}

.admin-login-card h1 {
  margin: 0;
  color: var(--black);
  font-size: clamp(28px, 8vw, 44px);
  line-height: 1.02;
}

.admin-login-card .brand-mark-small {
  width: min(48vw, 150px);
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 850;
}

.banner-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.banner-preview {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 10px;
}

.banner-preview img {
  width: 150px;
  aspect-ratio: 16 / 7.2;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.banner-preview span {
  display: block;
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.bank-box,
.payment-placeholder {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fffafa;
  padding: 16px;
  text-align: center;
}

.payment-placeholder.full,
.qris-preview.full {
  width: 100%;
}

.qris-preview {
  display: grid;
  justify-items: start;
  gap: 10px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: var(--white);
  padding: 14px;
}

.qris-image {
  width: min(100%, 420px);
  max-height: min(70vh, 640px);
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  padding: 10px;
}

.payment-placeholder img {
  width: 92px;
  height: 92px;
  margin: 0 auto;
  object-fit: contain;
}

@media (max-width: 700px) {
  .promo-slide {
    min-height: 430px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0.25) 100%),
      var(--mobile-banner, var(--banner)) center bottom / cover no-repeat,
      #fff;
  }

  .promo-slide.image-banner {
    min-height: clamp(560px, 170vw, 760px);
    background: var(--mobile-banner, var(--banner)) center top / cover no-repeat, #fff;
  }

  .promo-slide-overlay {
    width: 100%;
    min-height: 430px;
    justify-content: start;
    padding: 16px;
  }

  .promo-slide .hero-title {
    max-width: 310px;
    font-size: 34px;
  }

  .promo-slide-overlay p {
    max-width: 310px;
    font-size: 13px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    right: 12px;
    bottom: 10px;
  }

  .slider-count {
    right: 10px;
    top: 10px;
    font-size: 11px;
    padding: 5px 8px;
  }

  .banner-preview {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .banner-preview img {
    width: 86px;
  }

  .banner-preview .btn {
    grid-column: 1 / -1;
  }

  .banner-preview .banner-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .banner-actions .btn {
    flex: 1 1 130px;
  }

  .table-thumb {
    width: 46px;
    height: 46px;
  }

  .field input,
  .field textarea,
  .field select {
    min-height: 42px;
    font-size: 13px;
  }

  .admin-topbar {
    align-items: flex-start;
    padding: 8px 12px;
  }

  .admin-topbar-actions .btn {
    min-height: 38px;
    padding: 0 11px;
    font-size: 12px;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-login-screen {
    min-height: calc(100vh - 94px);
    align-items: start;
    padding-top: 12px;
  }

  .admin-login-card {
    box-shadow: none;
  }

  .admin-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .admin-sidebar a {
    min-height: 40px;
    display: grid;
    place-items: center;
    padding: 8px;
    text-align: center;
    font-size: 13px;
  }

  .admin-app-shell,
  .admin-main,
  .admin-shell,
  .admin-stack,
  .admin-panel,
  .admin-form,
  .admin-layout,
  .form-grid,
  .banner-list,
  .banner-preview,
  .metric-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .admin-shell,
  .admin-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .admin-main {
    overflow-x: hidden;
  }

  .admin-stack,
  .admin-panel {
    overflow: hidden;
  }

  .admin-sidebar {
    position: static;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }
}

/* Storefront UI polish - clean mobile app style */
body {
  background: #fff;
}

.app-shell {
  background:
    radial-gradient(circle at 50% -120px, rgba(229, 9, 20, 0.035), transparent 380px),
    #fff;
  padding-bottom: 108px;
}

.app-shell .main {
  display: grid;
  gap: 28px;
  max-width: 1180px;
  padding: 22px clamp(18px, 4vw, 34px) 40px;
}

.site-header {
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: none;
}

.header-inner {
  grid-template-columns: auto minmax(220px, 1fr) auto auto;
  gap: 18px;
  max-width: 1180px;
  padding: 18px clamp(18px, 4vw, 34px) 14px;
}

.brand-logo {
  width: clamp(138px, 16vw, 190px);
}

.desktop-nav {
  justify-content: center;
  gap: 18px;
}

.desktop-nav a {
  background: transparent;
  color: #121212;
  font-weight: 900;
  padding: 10px 6px;
}

.desktop-nav a.active,
.desktop-nav a:hover {
  background: transparent;
  color: var(--red);
}

.header-actions {
  gap: 12px;
}

.icon-btn,
.text-icon-btn {
  width: 56px;
  min-width: 56px;
  height: 56px;
  border-color: #dedede;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.text-icon-btn {
  width: auto;
  min-width: auto;
  padding: 0 16px;
}

.ui-icon,
.icon-btn img,
.bottom-icon img,
.btn-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cart-badge {
  top: 9px;
  right: 9px;
  min-width: 10px;
  width: 10px;
  height: 10px;
  color: transparent;
  font-size: 0;
  border: 2px solid #fff;
}

.search-wrap {
  display: flex;
  align-items: center;
  min-width: 0;
}

.search-wrap::before,
.search-wrap::after {
  display: none;
}

.search-icon-img {
  position: absolute;
  left: 22px;
  z-index: 1;
  width: 30px;
  height: 30px;
  opacity: 0.7;
  object-fit: contain;
}

.search-input {
  height: 66px;
  border-color: #dedede;
  border-radius: 22px;
  padding: 0 22px 0 68px;
  color: #171717;
  font-size: 18px;
  font-weight: 600;
}

.search-input::placeholder {
  color: #999;
  font-weight: 500;
}

.search-input:focus {
  border-color: rgba(229, 9, 20, 0.55);
  box-shadow: 0 0 0 5px rgba(229, 9, 20, 0.08);
}

.promo-slider {
  position: relative;
  margin: 2px 0 0;
}

.promo-slider-track {
  gap: 18px;
  scroll-snap-type: x mandatory;
}

.promo-slide {
  min-height: clamp(320px, 31.25vw, 600px);
  border: 1px solid #ececec;
  border-radius: 28px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.16)),
    var(--banner) center / cover no-repeat,
    #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  scroll-snap-align: start;
}

.promo-slide.image-banner {
  aspect-ratio: 16 / 5;
  min-height: 0;
  background: var(--banner) center / cover no-repeat, #fff;
}

.promo-slide-overlay {
  min-height: 420px;
  padding: clamp(26px, 5vw, 58px);
}

.promo-slide .hero-title {
  max-width: 520px;
  color: #090909;
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 0.95;
}

.promo-slide-overlay p {
  max-width: 440px;
  color: #191919;
  font-size: 20px;
}

.slider-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.11);
}

.slider-dots {
  right: 50%;
  bottom: 16px;
  transform: translateX(50%);
}

.slider-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #cfcfcf;
  color: transparent;
  overflow: hidden;
}

.slider-dots span:first-child {
  background: var(--red);
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #ededed;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.benefit {
  display: grid;
  min-height: 104px;
  grid-template-columns: 1fr;
  gap: 8px;
  justify-items: center;
  border: 0;
  border-right: 1px solid #ececec;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  justify-content: center;
  padding: 18px;
  text-align: center;
}

.benefit > span:not(.benefit-icon) {
  display: grid;
  gap: 2px;
  min-width: 0;
  justify-items: center;
}

.benefit:last-child {
  border-right: 0;
}

.benefit-icon {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}

.benefit b {
  display: block;
  color: #111;
  font-size: 15px;
  line-height: 1.15;
}

.benefit span span,
.category-tile span,
.section-head p,
.page-title p {
  color: #777;
}

.section-head {
  align-items: end;
  margin: 4px 0 -8px;
}

.category-shortcut-head {
  margin: 22px 0 12px;
}

.category-shortcut-head h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.category-shortcut-row {
  margin-bottom: 22px;
}

.section-head h2,
.page-title h1 {
  color: #070707;
  font-size: clamp(30px, 4.2vw, 46px);
  line-height: 1.04;
}

.section-head h2 {
  font-size: clamp(24px, 3.5vw, 36px);
}

.section-link {
  color: #222;
  font-weight: 800;
}

.page-title {
  display: grid;
  gap: 10px;
  max-width: 720px;
  margin: 12px 0 0;
}

.page-title .stamp,
.stamp {
  width: fit-content;
  border: 2px solid var(--red);
  border-radius: 12px;
  background: #fff;
  color: var(--red);
  letter-spacing: 0.14em;
  line-height: 1;
  padding: 11px 15px;
  text-transform: uppercase;
}

.chips {
  display: flex;
  gap: 14px;
  margin: -2px 0 -4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  min-height: 54px;
  border: 1px solid #dddddd;
  border-radius: 999px;
  background: #fff;
  color: #151515;
  font-weight: 900;
  padding: 14px 28px;
  white-space: nowrap;
}

.chip.active,
.chip:hover {
  border-color: var(--red);
  background: #fff;
  color: var(--red);
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px) minmax(140px, 190px);
  gap: 14px;
  align-items: center;
}

.catalog-toolbar .search-wrap {
  grid-column: auto;
}

.select,
.catalog-toolbar select,
.catalog-reset {
  min-height: 66px;
  border: 1px solid #dedede;
  border-radius: 18px;
  background-color: #fff;
  color: #151515;
  font-size: 18px;
  font-weight: 800;
}

.catalog-reset {
  display: inline-flex;
  justify-content: center;
}

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

.product-card {
  position: relative;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.08);
}

.product-card .wishlist-btn {
  overflow: visible;
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 46px;
  height: 46px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
}

.product-card .wishlist-btn img {
  width: 26px;
  height: 26px;
}

.product-card .wishlist-btn.active {
  border-color: rgba(229, 9, 20, 0.3);
  background: #fff1f2;
}

.wishlist-btn.active::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 3px 10px rgba(229, 9, 20, 0.35);
}

.product-media {
  display: grid;
  min-height: 0;
  aspect-ratio: 1 / 1;
  place-items: center;
  background: #fff;
  padding: 20px 14px 6px;
}

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

.discount-badge {
  top: 14px;
  left: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--red);
  box-shadow: 0 8px 18px rgba(229, 9, 20, 0.18);
  color: #fff;
  font-size: 17px;
  font-weight: 950;
  padding: 8px 12px;
}

.product-info {
  display: grid;
  gap: 8px;
  padding: 14px 18px 20px;
}

.product-name {
  min-height: 0;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.18;
}

.price-row {
  align-items: baseline;
  gap: 10px;
}

.price {
  color: #070707;
  font-size: 21px;
  font-weight: 950;
}

.old-price {
  color: #9b9b9b;
  font-size: 15px;
}

.rating-row {
  display: none;
}

.bundle-band,
.promo-hero-card {
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.22), transparent 90px),
    linear-gradient(135deg, #ef0712, #d70008);
  color: #fff;
  box-shadow: 0 18px 44px rgba(229, 9, 20, 0.16);
  overflow: hidden;
}

.bundle-band {
  align-items: center;
}

.bundle-copy h3,
.promo-hero-card h2 {
  color: #fff;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 1.05;
}

.bundle-copy p,
.promo-hero-card p {
  color: rgba(255, 255, 255, 0.92);
}

.bundle-band .btn-secondary,
.promo-hero-card .btn-secondary {
  border-color: #fff;
  background: #fff;
  color: var(--red);
}

.promo-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 20px;
  align-items: center;
  min-height: 260px;
  padding: clamp(28px, 5vw, 56px);
}

.promo-hero-icon {
  display: grid;
  width: 180px;
  height: 180px;
  place-items: center;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.14);
  transform: rotate(-9deg);
}

.promo-hero-icon img {
  width: 126px;
  height: 126px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.22));
}

.voucher-list {
  display: grid;
  gap: 16px;
}

.voucher-card {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.voucher-value {
  display: grid;
  min-height: 106px;
  place-items: center;
  background: #fff2f2;
  color: var(--red);
  font-size: 42px;
  font-weight: 950;
}

.voucher-card div:nth-child(2) {
  display: grid;
  gap: 4px;
  padding: 18px 22px;
}

.voucher-card b {
  color: #111;
  font-size: 21px;
}

.voucher-card span,
.voucher-card small {
  color: #777;
  font-size: 16px;
}

.copy-voucher {
  width: 58px;
  height: 58px;
  margin-right: 18px;
  border: 1px solid #e1e1e1;
  border-radius: 16px;
  background: #fff;
  color: #111;
  font-size: 0;
}

.copy-voucher::before {
  content: "Copy";
  font-size: 12px;
  font-weight: 900;
}

.shipping-voucher-info .voucher-value img {
  height:72px;
  object-fit:contain;
  width:72px;
}

.shipping-voucher-link {
  align-items:center;
  background:var(--red);
  color:#fff;
  display:flex;
  font-size:13px;
  font-weight:900;
  justify-content:center;
  text-decoration:none;
}

.shipping-voucher-link::before {
  content:none;
}

.empty-cart-panel {
  display: grid;
  justify-items: center;
  gap: 26px;
  padding: 28px 0 8px;
  text-align: center;
}

.empty-cart-visual {
  position: relative;
  display: grid;
  width: min(48vw, 280px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: #f4f4f4;
}

.empty-cart-visual > img {
  width: 52%;
  opacity: 0.32;
}

.empty-cart-visual span {
  position: absolute;
  display: grid;
  width: 34%;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.empty-cart-visual span img {
  width: 82%;
}

.quick-category-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 12px;
}

.quick-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 74px;
  border: 1px solid #e4e4e4;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 900;
}

.quick-category img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.wishlist-panel {
  display: grid;
  gap: 16px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #ececec;
}

.wishlist-head {
  margin: 0;
}

.wishlist-list {
  display: grid;
  gap: 14px;
}

.wishlist-cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  background: #fff;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.035);
}

.wishlist-cart-img {
  display: grid;
  aspect-ratio: 1 / 1;
  place-items: center;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}

.wishlist-cart-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.wishlist-cart-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.wishlist-cart-copy .product-name {
  min-height: 0;
}

.wishlist-cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wishlist-btn.inline {
  position: relative;
  inset: auto;
  display: grid;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(229, 9, 20, 0.24);
  border-radius: 16px;
  background: #fff1f2;
}

.wishlist-btn.inline img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.wishlist-empty {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  border: 1px dashed #dedede;
  border-radius: 18px;
  background: #fff;
  color: #777;
  font-weight: 800;
  padding: 18px;
}

.wishlist-empty img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.cart-layout {
  align-items: start;
}

.cart-item {
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 18px;
  border-color: #e8e8e8;
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.035);
}

.cart-item-img {
  min-height: 0;
  aspect-ratio: 1 / 1;
  border: 1px solid #f0f0f0;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item h3 {
  margin: 0 0 8px;
  color: #111;
  font-size: 20px;
  line-height: 1.18;
}

.cart-actions {
  justify-content: start;
  gap: 10px;
  margin-top: 12px;
}

.qty-stepper {
  border-color: #e8e8e8;
  border-radius: 13px;
}

.qty-stepper button,
.qty-stepper span {
  min-width: 44px;
  height: 42px;
}

.summary-card {
  border-color: #e8e8e8;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.045);
}

.account-login-layout {
  display: grid;
  gap: 28px;
  max-width: 900px;
}

.account-auth-card {
  display: grid;
  gap: 20px;
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.google-btn {
  min-height: 78px;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  background: #fff;
  color: #111;
  font-size: 21px;
  font-weight: 900;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.04);
}

.google-btn span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  background: transparent;
  color: #4285f4;
  font-size: 32px;
  font-weight: 950;
}

.divider-text {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  color: #777;
  font-size: 20px;
  font-weight: 800;
}

.divider-text::before,
.divider-text::after {
  height: 1px;
  background: #dedede;
  content: "";
}

.account-auth-card .field span {
  display: none;
}

.account-auth-card .field input {
  min-height: 74px;
  border-color: #dedede;
  border-radius: 18px;
  padding-inline: 26px;
  color: #111;
  font-size: 20px;
}

.account-auth-card .btn-primary {
  min-height: 78px;
  border-radius: 18px;
  font-size: 22px;
}

.account-benefit-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.account-benefit {
  display: grid;
  gap: 10px;
  justify-items: center;
  min-height: 172px;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  background: #fff;
  padding: 26px 16px;
  text-align: center;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.035);
}

.account-benefit img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.account-benefit b {
  color: #111;
  font-size: 20px;
}

.account-benefit span {
  color: #222;
  font-size: 18px;
}

.bottom-nav {
  border-top: 0;
}

.site-footer {
  margin-bottom: 0;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .desktop-nav {
    display: none;
  }

  .header-actions {
    grid-column: 3;
  }

  .search-wrap {
    grid-column: 1 / -1;
  }

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

  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px) minmax(130px, 170px);
  }
}

@media (max-width: 760px) {
  .app-shell {
    padding-bottom: calc(112px + env(safe-area-inset-bottom));
  }

  .app-shell .main {
    gap: 26px;
    padding: 16px 20px 26px;
  }

  .site-header {
    position: static;
    background: #fff;
  }

  .header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px 12px;
    padding: 26px 20px 10px;
  }

  .brand-logo {
    width: 166px;
  }

  .header-actions {
    grid-column: 2;
    gap: 12px;
  }

  .icon-btn {
    width: 58px;
    min-width: 58px;
    height: 58px;
    border-radius: 18px;
  }

  .header-actions .text-icon-btn,
  .desktop-only {
    display: none;
  }

  .search-wrap {
    grid-column: 1 / -1;
    width: 100%;
  }

  .search-input {
    height: 62px;
    border-radius: 18px;
    font-size: 18px;
  }

  .promo-slide,
  .promo-slide.image-banner {
    min-width: 100%;
    aspect-ratio: 4 / 5;
    min-height: 0;
    border-radius: 18px;
    background: var(--mobile-banner, var(--banner)) center / cover no-repeat, #fff;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  }

  .promo-slide-overlay {
    min-height: 0;
    aspect-ratio: 4 / 5;
    padding: 20px;
  }

  .promo-slide .hero-title {
    max-width: 260px;
    font-size: 33px;
  }

  .promo-slide-overlay p,
  .hero-proof-row,
  .hero-actions .btn-secondary,
  .slider-count {
    display: none;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .hero-actions .btn-primary {
    min-height: 48px;
    border-radius: 10px;
    padding: 0 22px;
    font-size: 14px;
  }

  .slider-arrow {
    display: none;
  }

  .slider-dots {
    bottom: -20px;
  }

  .slider-dots span {
    width: 8px;
    height: 8px;
  }

  .benefit-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 8px 0 0;
    border-radius: 18px;
  }

  .benefit {
    min-height: 94px;
    gap: 6px;
    padding: 12px 6px;
  }

  .benefit-icon {
    width: 36px;
    height: 36px;
  }

  .benefit b {
    max-width: 78px;
    font-size: 11.5px;
    line-height: 1.16;
    overflow-wrap: anywhere;
  }

  .benefit span span {
    display: none;
  }

  .page-title {
    gap: 12px;
    margin-top: 18px;
  }

  .page-title .stamp,
  .stamp {
    border-radius: 9px;
    font-size: 14px;
    letter-spacing: 0.16em;
    padding: 9px 12px;
  }

  .page-title h1 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .page-title p {
    font-size: 19px;
  }

  .section-head {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .section-head h2 {
    font-size: 28px;
  }

  .section-head p {
    display: none;
  }

  .chips {
    gap: 12px;
    margin-right: -20px;
    margin-left: -20px;
    padding: 0 20px 4px;
  }

  .chip {
    min-height: 48px;
    padding: 12px 24px;
    font-size: 16px;
  }

  .catalog-toolbar {
    grid-template-columns: minmax(0, 1fr) 104px;
    gap: 12px;
  }

  .catalog-toolbar .search-wrap {
    display: none;
  }

  .catalog-toolbar .select {
    min-height: 56px;
    border-radius: 14px;
    padding: 0 18px;
    font-size: 16px;
  }

  .catalog-reset {
    min-height: 56px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 15px;
  }

  .catalog-reset .btn-icon {
    width: 24px;
    height: 24px;
  }

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

  .product-card {
    border-radius: 16px;
  }

  .product-media {
    padding: 18px 10px 4px;
  }

  .discount-badge {
    top: 12px;
    left: 12px;
    border-radius: 9px;
    font-size: 15px;
    padding: 6px 9px;
  }

  .product-card .wishlist-btn {
    top: 10px;
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .product-info {
    gap: 6px;
    padding: 10px 12px 14px;
  }

  .product-name {
    font-size: 16px;
  }

  .price {
    font-size: 18px;
  }

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

  .bundle-band,
  .promo-hero-card {
    border-radius: 18px;
  }

  .promo-hero-card {
    grid-template-columns: minmax(0, 1fr) 112px;
    min-height: 206px;
    padding: 24px;
  }

  .promo-hero-card h2 {
    font-size: 36px;
  }

  .promo-hero-icon {
    width: 106px;
    height: 106px;
    border-radius: 24px;
  }

  .promo-hero-icon img {
    width: 78px;
    height: 78px;
  }

  .voucher-card {
    grid-template-columns: 112px minmax(0, 1fr) 54px;
    border-radius: 16px;
  }

  .voucher-value {
    min-height: 92px;
    font-size: 35px;
  }

  .voucher-card div:nth-child(2) {
    padding: 14px;
  }

  .voucher-card b {
    font-size: 18px;
  }

  .voucher-card span,
  .voucher-card small {
    font-size: 14px;
  }

  .copy-voucher {
    width: 44px;
    height: 44px;
    margin-right: 10px;
    border-radius: 13px;
  }

  .quick-category-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .quick-category {
    min-height: 72px;
    flex-direction: column;
    gap: 6px;
    border-radius: 15px;
    font-size: 14px;
    text-align: center;
  }

  .quick-category img {
    width: 30px;
    height: 30px;
  }

  .category-shortcut-head {
    margin: 18px 0 10px;
  }

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

  .category-shortcut-row {
    margin-bottom: 18px;
  }

  .wishlist-panel {
    gap: 14px;
    margin-top: 22px;
    padding-top: 18px;
  }

  .wishlist-head {
    align-items: start;
    gap: 10px;
  }

  .wishlist-cart-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    border-radius: 16px;
    padding: 12px;
  }

  .wishlist-cart-img {
    border-radius: 14px;
    padding: 6px;
  }

  .wishlist-cart-actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .wishlist-cart-actions .btn-primary {
    flex: 1;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 14px;
  }

  .wishlist-btn.inline {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .wishlist-empty {
    min-height: 70px;
    border-radius: 16px;
    padding: 14px;
    font-size: 14px;
  }

  .cart-layout {
    gap: 18px;
  }

  .cart-item {
    grid-template-columns: 106px minmax(0, 1fr);
    gap: 14px;
    border-radius: 16px;
    padding: 14px;
  }

  .cart-item h3 {
    font-size: 16px;
  }

  .cart-item-img {
    border-radius: 14px;
    padding: 6px;
  }

  .qty-stepper button,
  .qty-stepper span {
    min-width: 38px;
    height: 38px;
  }

  .account-login-layout {
    max-width: none;
  }

  .google-btn,
  .account-auth-card .btn-primary {
    min-height: 70px;
    border-radius: 16px;
    font-size: 20px;
  }

  .account-auth-card .field input {
    min-height: 66px;
    border-radius: 16px;
    font-size: 18px;
  }

  .account-benefit-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .account-benefit {
    min-height: 140px;
    border-radius: 16px;
    padding: 18px 8px;
  }

  .account-benefit img {
    width: 40px;
    height: 40px;
  }

  .account-benefit b {
    font-size: 17px;
  }

  .account-benefit span {
    font-size: 15px;
  }

  .bottom-nav {
    right: 20px;
    bottom: 18px;
    left: 20px;
    display: grid;
    height: calc(80px + env(safe-area-inset-bottom));
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.04);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(18px);
    padding: 6px 8px env(safe-area-inset-bottom);
  }

  .bottom-nav a {
    min-height: 66px;
    color: #555;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 0 0;
  }

  .bottom-nav a.active {
    color: var(--red);
  }

  .bottom-icon {
    width: 30px;
    height: 30px;
    border: 0;
  }

  .bottom-nav .cart-badge {
    top: 8px;
    right: 18px;
  }

  .site-footer {
    display: none;
  }
}

@media (max-width: 420px) {
  .app-shell .main {
    padding-inline: 14px;
  }

  .chips {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-inner {
    padding-inline: 14px;
  }

  .brand-logo {
    width: 140px;
  }

  .icon-btn {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-name {
    font-size: 14px;
  }

  .price {
    font-size: 16px;
  }

  .old-price {
    display: none;
  }

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

  .promo-hero-icon {
    display: none;
  }

  .voucher-card {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .copy-voucher {
    display: none;
  }

  .account-benefit-row {
    gap: 8px;
  }

  .account-benefit span {
    display: none;
  }
}

/* Header, page title, and checkout refinements */
.site-header .header-inner {
  grid-template-columns: clamp(96px, 11vw, 132px) minmax(280px, 1fr) auto;
  gap: 16px;
  padding-block: 14px;
}

.site-header .brand-link,
.site-header .search-wrap,
.site-header .desktop-nav {
  grid-column: auto;
  grid-row: auto;
}

.site-header .brand-logo {
  width: clamp(96px, 11vw, 132px);
}

.site-header .search-input {
  height: 54px;
  border-radius: 18px;
  font-size: 16px;
  padding-left: 60px;
}

.site-header .search-icon-img {
  left: 18px;
  width: 26px;
  height: 26px;
}

.site-header .desktop-nav {
  justify-content: flex-end;
  gap: 14px;
  white-space: nowrap;
}

.site-header .desktop-nav a {
  font-size: 14px;
}

.site-header .header-account {
  height: 46px;
  min-width: 0;
  border-radius: 16px;
  padding: 0 14px;
}

.page-title {
  gap: 7px;
  max-width: 580px;
  margin-top: 6px;
}

.page-title .stamp,
.stamp {
  border-radius: 10px;
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 11px;
}

.page-title h1 {
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.08;
}

.page-title p {
  max-width: 520px;
  font-size: 16px;
  line-height: 1.45;
}

.checkout-shell {
  padding-bottom: 0;
  background: #fff;
}

.checkout-shell .main {
  gap: 16px;
  max-width: 1120px;
  padding: 24px clamp(16px, 4vw, 32px) 42px;
}

.checkout-header {
  gap: 12px;
  max-width: none;
  margin: 0;
}

.checkout-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.checkout-back,
.checkout-progress {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.checkout-back {
  border: 1px solid var(--line);
  background: #fff;
  color: #222;
  padding: 0 12px;
}

.checkout-progress {
  background: #fff4f4;
  color: var(--red);
  padding: 0 13px;
}

.checkout-header .page-title {
  gap: 3px;
  margin: 0;
}

.checkout-header .checkout-title {
  font-size: clamp(28px, 4vw, 38px);
}

.checkout-header .stepper {
  gap: 6px;
  border: 1px solid #ececec;
  border-radius: 16px;
  background: #fafafa;
  padding: 8px;
}

.checkout-header .step {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border-radius: 12px;
  font-size: 12px;
}

.checkout-header .step.active {
  background: #fff;
}

.checkout-header .step::before {
  width: 22px;
  height: 22px;
  margin: 0;
  font-size: 11px;
  font-weight: 950;
}

.checkout-shell .checkout-layout {
  gap: 16px;
}

.checkout-shell .checkout-card,
.checkout-shell .summary-card {
  border-radius: 16px;
  padding: 16px;
}

.checkout-shell .checkout-card h2,
.checkout-shell .summary-card h3 {
  margin-top: 0;
  font-size: 20px;
}

.checkout-shell .form-grid {
  gap: 10px 12px;
}

.checkout-shell .field {
  gap: 6px;
}

.checkout-shell .field > span,
.checkout-shell .check-row {
  font-size: 13px;
  font-weight: 850;
}

.checkout-shell .field input,
.checkout-shell .field select {
  min-height: 46px;
  border-radius: 12px;
  padding-inline: 14px;
  font-size: 14px;
}

.checkout-shell .field textarea {
  min-height: 68px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.checkout-shell .btn-full {
  min-height: 52px;
  border-radius: 12px;
}

.checkout-shell .choice-card {
  border-radius: 14px;
  padding: 12px;
}

.checkout-shell .summary-line {
  margin: 8px 0;
  font-size: 14px;
}

.checkout-shell .summary-total {
  font-size: 18px;
}

@media (max-width: 980px) {
  .site-header .header-inner {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px;
    padding: 18px 20px 12px;
  }

  .site-header .desktop-nav {
    display: none;
  }

  .site-header .brand-logo {
    width: 104px;
  }

  .site-header .search-wrap {
    grid-column: 2;
    width: 100%;
  }

  .site-header .search-input {
    height: 54px;
    border-radius: 18px;
    font-size: 15px;
    padding-left: 54px;
  }

  .site-header .search-icon-img {
    left: 17px;
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 760px) {
  .app-shell .main {
    padding-top: 14px;
  }

  .page-title {
    gap: 6px;
    margin-top: 4px;
  }

  .page-title .stamp,
  .stamp {
    border-radius: 8px;
    font-size: 11px;
    padding: 7px 10px;
  }

  .page-title h1 {
    font-size: 30px;
  }

  .page-title p {
    font-size: 15px;
    line-height: 1.4;
  }

  .checkout-shell .main {
    gap: 14px;
    padding: 16px 12px 22px;
  }

  .checkout-header {
    gap: 10px;
  }

  .checkout-header .checkout-title {
    font-size: 32px;
  }

  .checkout-header .stepper {
    padding: 6px;
  }

  .checkout-header .step {
    min-height: 30px;
    gap: 5px;
    font-size: 11px;
  }

  .checkout-header .step::before {
    width: 20px;
    height: 20px;
    font-size: 10px;
  }

  .checkout-shell .checkout-card,
  .checkout-shell .summary-card {
    border-radius: 14px;
    padding: 14px;
  }

  .checkout-shell .summary-card-passive {
    display: none;
  }

  .checkout-shell .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .checkout-shell .field input,
  .checkout-shell .field select {
    min-height: 44px;
  }

  .checkout-shell .field textarea {
    min-height: 60px;
  }
}

@media (max-width: 420px) {
  .site-header .header-inner {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 9px;
    padding-inline: 12px;
  }

  .site-header .brand-logo {
    width: 88px;
  }

  .site-header .search-input {
    height: 50px;
    border-radius: 16px;
    font-size: 14px;
    padding-left: 47px;
  }

  .site-header .search-icon-img {
    left: 14px;
    width: 22px;
    height: 22px;
  }

  .checkout-header .step {
    font-size: 0;
  }

  .checkout-header .step::before {
    font-size: 10px;
  }
}

/* Final storefront polish */
.promo-slider {
  border: 0;
  background: transparent;
}

.promo-slide.image-banner {
  border-color: #e9e9e9;
  background-position: center;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.07);
}

.product-card {
  border-color: #e7e7e7;
  border-radius: 18px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  border-color: rgba(229, 9, 20, 0.22);
}

.product-media {
  background:
    radial-gradient(circle at 50% 54%, rgba(229, 9, 20, 0.06), transparent 42%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
  padding: 22px 16px 10px;
}

.product-media img {
  filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.13));
  transform: translateY(2px);
  transition: transform 180ms ease;
}

.product-card:hover .product-media img {
  transform: translateY(-2px) scale(1.015);
}

.product-info {
  gap: 7px;
  padding: 15px 17px 19px;
}

.product-name {
  letter-spacing: 0;
}

.product-quote {
  min-height: 36px;
  margin: -2px 0 2px;
  color: #666;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.detail-quote {
  margin: -4px 0 8px;
  border-left: 4px solid var(--red);
  color: #333;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 850;
  line-height: 1.35;
  padding: 4px 0 4px 14px;
}

.detail-main-image {
  background:
    radial-gradient(circle at 50% 50%, rgba(229, 9, 20, 0.07), transparent 46%),
    linear-gradient(180deg, #fff 0%, #f7f7f7 100%);
}

.detail-main-image img {
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.15));
}

.benefit-icon img,
.quick-category img,
.category-tile img,
.account-benefit img {
  filter: drop-shadow(0 5px 8px rgba(0, 0, 0, 0.08));
}

.google-signin-box {
  display: grid;
  min-height: 58px;
  align-items: center;
}

.google-signin-box > div,
.google-signin-box iframe {
  width: 100% !important;
}

.google-btn.google-loading,
.google-btn.google-config-missing {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
}

.google-btn.google-config-missing {
  border-style: dashed;
  color: #555;
  cursor: pointer;
}

.auth-note {
  margin: -8px 0 -2px;
  color: #777;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}

.profile-strip {
  align-items: center;
}

.profile-avatar {
  overflow: hidden;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.form-subhead {
  display: grid;
  gap: 4px;
  margin: 8px 0 -4px;
  border-top: 1px solid #ececec;
  padding-top: 18px;
}

.form-subhead b {
  color: #111;
  font-size: 18px;
}

.form-subhead span {
  color: #777;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .promo-slide.image-banner {
    border-radius: 16px;
  }

  .product-media {
    padding: 14px 10px 6px;
  }

  .product-quote {
    min-height: 30px;
    font-size: 11px;
  }

  .catalog-page .product-quote {
    display: none;
  }

  .detail-quote {
    font-size: 16px;
  }

  .google-signin-box {
    min-height: 54px;
  }

  .auth-note {
    font-size: 12px;
  }
}

/* Checkout: one focused action per step, comfortable on compact mobile screens. */
.checkout-shell .checkout-layout {
  align-items: start;
}

.checkout-shell .summary-card {
  position: sticky;
  top: 18px;
}

.checkout-optional {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  background: #fcfcfc;
  padding: 0 13px;
}

.checkout-optional summary {
  min-height: 46px;
  align-items: center;
  color: #555;
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.checkout-optional summary::-webkit-details-marker {
  display: none;
}

.checkout-optional summary::after {
  content: "+";
  color: var(--red);
  font-size: 20px;
  margin-left: auto;
}

.checkout-optional[open] summary::after {
  content: "-";
}

.checkout-optional .field {
  padding-bottom: 13px;
}

.checkout-shell .checkout-card > .btn-full {
  box-shadow: 0 12px 24px rgba(229, 9, 20, 0.2);
}

@media (max-width: 760px) {
  .checkout-shell .checkout-header .checkout-title {
    font-size: 26px;
    line-height: 1.05;
  }

  .checkout-shell .checkout-header .page-title p {
    font-size: 13px;
  }

  .checkout-shell .checkout-card > .btn-full {
    bottom: max(10px, env(safe-area-inset-bottom));
    position: sticky;
    z-index: 3;
  }

  .checkout-optional {
    border-radius: 11px;
  }

  .checkout-optional summary {
    min-height: 42px;
    font-size: 12px;
  }
}

/* Duitku + J&T focused checkout and resilient responsive banners. */
.promo-slide.image-banner {
  position: relative;
  overflow: hidden;
  background: #f6f6f6;
}

.promo-banner-picture,
.promo-banner-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.promo-banner-picture {
  z-index: 0;
}

.promo-banner-image {
  object-fit: cover;
  object-position: center;
}

.promo-slide-link {
  z-index: 2;
}

.promo-slide.image-banner .slider-count {
  z-index: 3;
}

.checkout-service-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 18px 0;
  border: 1px solid #dedede;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
}

.checkout-service-card.recommended,
.checkout-service-card.payment-gateway-card {
  border-color: rgba(229, 9, 20, 0.42);
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.08);
}

.checkout-service-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #666;
  font-size: 14px;
  line-height: 1.35;
}

.checkout-service-copy b,
.checkout-service-card > strong {
  color: #111;
  font-size: 16px;
}

.service-title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.service-badge,
.gateway-lock {
  display: inline-flex;
  width: fit-content;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 9px;
  text-transform: uppercase;
}

.service-badge.sandbox {
  background: #fff1f2;
  color: var(--red);
}

.gateway-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 950;
}

.gateway-admin-status {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  background: #fafafa;
  padding: 15px;
}

.gateway-admin-status > div {
  display: grid;
  gap: 3px;
}

.gateway-admin-status span:not(.status):not(.gateway-lock) {
  color: #666;
  font-size: 13px;
}

.payment-gateway-state {
  display: grid;
  width: min(100%, 620px);
  justify-items: center;
  gap: 14px;
  margin: 50px auto;
  text-align: center;
}

.payment-gateway-state > img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.payment-gateway-state h1,
.payment-gateway-state p {
  margin: 0;
}

.gateway-error {
  width: 100%;
  border: 1px solid #ffd0d4;
  border-radius: 12px;
  background: #fff4f5;
  color: #a4000a;
  padding: 12px;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 760px) {
  .promo-banner-image {
    object-position: center top;
  }

  .checkout-service-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    border-radius: 14px;
    padding: 13px;
  }

  .checkout-service-card > strong,
  .checkout-service-card > .gateway-check,
  .checkout-service-card > .service-badge {
    grid-column: 2;
    justify-self: start;
  }

  .gateway-admin-status {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .gateway-admin-status .gateway-lock {
    grid-column: 2;
  }

  .detail-layout {
    padding-bottom: calc(196px + env(safe-area-inset-bottom));
  }

  .sticky-buy {
    right: 20px;
    bottom: calc(124px + env(safe-area-inset-bottom));
    left: 20px;
    width: auto;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid #e5e5e5;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    padding: 10px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
    backdrop-filter: blur(16px);
  }

  .sticky-buy .btn {
    min-width: 0;
    min-height: 48px;
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 420px) {
  .sticky-buy {
    right: 14px;
    left: 14px;
  }
}

/* Promo artwork and Google OAuth polish. */
.promo-slider-track {
  gap: 0;
}

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

.google-btn img {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
}

.google-btn.google-loading {
  cursor: wait;
  opacity: 0.72;
}

.promo-hero-card {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  min-height: 286px;
  border: 1px solid #b80009;
  border-radius: 16px;
  background: #e50914;
  padding: 34px;
  box-shadow: 0 18px 42px rgba(183, 0, 9, 0.18);
}

.promo-hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
}

.promo-hero-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.promo-hero-card h2 {
  max-width: 640px;
  margin-bottom: 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.promo-hero-card p {
  max-width: 520px;
  margin-bottom: 20px;
}

.promo-hero-visual {
  display: grid;
  min-height: 218px;
  align-content: center;
  justify-items: center;
  border-left: 1px solid rgba(255, 255, 255, 0.34);
  padding-left: 28px;
}

.promo-hero-art-row {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.promo-art-tile {
  display: grid;
  min-width: 0;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 22px rgba(71, 0, 5, 0.18);
}

.promo-art-tile img {
  width: 126%;
  max-width: none;
  height: 126%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.promo-hero-assurance {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.promo-hero-assurance span {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .promo-slide,
  .promo-slide.image-banner {
    aspect-ratio: 4 / 5;
    border-radius: 14px;
  }

  .slider-dots {
    bottom: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    padding: 5px 7px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  }

  .promo-hero-card {
    grid-template-columns: minmax(0, 1fr) 104px;
    min-height: 188px;
    gap: 14px;
    border-radius: 14px;
    padding: 20px;
  }

  .promo-hero-label {
    margin-bottom: 8px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .promo-hero-card h2 {
    margin-bottom: 7px;
    font-size: 24px;
  }

  .promo-hero-card p {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.4;
  }

  .promo-hero-card .btn {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 13px;
  }

  .promo-hero-visual {
    min-height: 150px;
    border-left-color: rgba(255, 255, 255, 0.34);
    padding-left: 12px;
  }

  .promo-hero-art-row {
    display: block;
    width: 94px;
  }

  .promo-art-primary {
    width: 94px;
  }

  .promo-art-secondary {
    display: none;
  }

  .promo-hero-assurance {
    display: none;
  }

  .google-btn img {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
  }
}

@media (max-width: 390px) {
  .promo-hero-card {
    grid-template-columns: minmax(0, 1fr) 82px;
    gap: 10px;
    padding: 17px;
  }

  .promo-hero-card h2 {
    font-size: 21px;
  }

  .promo-hero-art-row,
  .promo-art-primary {
    width: 76px;
  }
}

/* Keep the customer cart and wishlist deliberately compact. */
.wishlist-panel.wishlist-compact {
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
}

.wishlist-panel.wishlist-compact .wishlist-head {
  min-height: 34px;
  align-items: center;
  gap: 8px;
}

.wishlist-panel.wishlist-compact .wishlist-head h2 {
  font-size: 18px;
  line-height: 1.15;
}

.wishlist-panel.wishlist-compact .wishlist-empty {
  min-height: 48px;
  gap: 9px;
  padding: 7px 9px;
  font-size: 12px;
}

.wishlist-panel.wishlist-compact .wishlist-empty img {
  width: 34px;
  height: 34px;
}

@media (max-width: 720px) {
  .wishlist-panel.wishlist-compact {
    margin-top: 14px;
    padding: 10px;
  }

  .wishlist-panel.wishlist-compact .wishlist-head h2 {
    font-size: 16px;
  }
}

/* Keep the refreshed admin shell authoritative over legacy storefront rules. */
.admin-app-shell .admin-topbar {
  position: fixed; top: 0; right: 0; left: 264px; height: 76px;
  padding: 0 28px; border-bottom: 1px solid var(--admin-line);
  background: rgba(255,255,255,.96);
}
.admin-app-shell .admin-shell { display:block;max-width:none;margin:0; }
.admin-app-shell .admin-sidebar {
  position:fixed; z-index:90; inset:0 auto 0 0; display:flex;
  width:264px; min-width:264px; max-width:264px; flex-direction:column;
  grid-template-columns:none; overflow-y:auto; border:0;
  border-right:1px solid var(--admin-line); border-radius:0;
  background:#fff; padding:0 16px 18px;
}
.admin-app-shell .admin-sidebar nav { display:grid;grid-template-columns:1fr;gap:6px;width:100%; }
.admin-app-shell .admin-sidebar nav a { display:flex;text-align:left;place-items:unset; }
.admin-app-shell .admin-stack,
.admin-app-shell .admin-panel { width:100%;max-width:100%; }

@media (max-width:1050px) {
  .admin-app-shell .admin-topbar { left:82px; }
  .admin-app-shell .admin-sidebar { width:82px;min-width:82px;max-width:82px;padding-inline:10px; }
}
@media (max-width:700px) {
  .admin-app-shell .admin-topbar { left:0;height:64px;padding:0 14px; }
  .admin-app-shell .admin-sidebar {
    position:fixed; inset:auto 0 0; display:block; width:100%;
    min-width:100%; max-width:100%; height:66px; overflow:hidden;
    border-top:1px solid var(--admin-line); border-right:0; padding:7px 8px;
  }
  .admin-app-shell .admin-sidebar nav { grid-template-columns:repeat(6,1fr);gap:2px;margin:0; }
  .admin-app-shell .admin-sidebar nav a { display:grid;text-align:center;place-items:center; }
}

.checkout-section-title {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
}
.checkout-section-title > span {
  display:grid;
  width:34px;
  height:34px;
  flex:0 0 34px;
  place-items:center;
  border-radius:50%;
  background:var(--red);
  color:#fff;
  font-size:13px;
  font-weight:900;
}
.checkout-section-title h1,
.checkout-section-title h2 { margin:0;color:var(--black);font-size:20px; }
.checkout-section-title p { margin:3px 0 0;color:var(--muted);font-size:12px; }
.shipping-inline {
  display:flex;
  align-items:center;
  gap:12px;
  border:1px solid #e7ebf0;
  border-radius:10px;
  background:#f8fafc;
  padding:12px;
}
.shipping-inline img { width:38px;height:38px;object-fit:contain; }
.shipping-inline div { display:grid;gap:3px;font-size:12px; }
.shipping-inline span { color:var(--muted);font-size:11px; }
.payment-qris-focus { display:grid; }
.payment-qris-focus .qris-display { min-height:360px;margin:4px 0 12px;padding:14px; }
.payment-qris-focus .qris-display img { width:min(100%,400px);max-height:400px;object-fit:contain; }
.qris-zoom-button {
  display:grid;
  justify-items:center;
  gap:6px;
  border:0;
  background:transparent;
  padding:0;
  cursor:zoom-in;
}
.qris-zoom-button span { color:var(--muted);font-size:10px;font-weight:800; }
.qris-amount {
  display:grid;
  gap:4px;
  border:1px solid #fecaca;
  border-radius:12px;
  background:#fff7f7;
  padding:14px;
  font-size:12px;
}
.qris-amount b {
  color:var(--red);
  font-size:clamp(28px,6vw,38px);
  font-variant-numeric:tabular-nums;
  line-height:1.05;
}
.qris-amount small { color:var(--muted);font-size:11px;font-weight:750; }
.qris-payment-priority {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);
  gap:10px;
  margin-bottom:12px;
}
.qris-payment-priority .qris-expiry {
  display:grid;
  align-content:center;
  justify-content:start;
}
.qris-payment-priority .qris-expiry strong { font-size:clamp(26px,5vw,34px); }
.payment-back-button { margin-top:8px; }
.payment-confirm-page { width:min(100%,620px);margin:0 auto; }
.payment-confirm-card { display:grid;gap:12px; }
.payment-review-note {
  display:grid;
  gap:5px;
  margin:4px 0;
  border:1px solid #f4d6d8;
  border-radius:10px;
  background:#fff8f8;
  padding:13px 14px;
  color:#64748b;
  font-size:12px;
  line-height:1.5;
}
.payment-review-note b { color:#111827;font-size:13px; }

@media (max-width:700px) {
  .checkout-shell .checkout-header { margin-bottom:10px;padding-bottom:8px; }
  .checkout-shell .checkout-header .page-title { display:none; }
  .checkout-shell .checkout-header .checkout-heading-row { justify-content:flex-end; }
  .checkout-shell .checkout-progress { font-size:10px; }
  .checkout-shell .checkout-header .stepper { margin-top:8px; }
  .checkout-shell .checkout-header .step { min-height:34px;padding:7px 5px;font-size:9px; }
  .checkout-section-title { margin-bottom:12px; }
  .checkout-section-title h1,.checkout-section-title h2 { font-size:18px; }
  .payment-qris-focus .qris-display { min-height:300px;padding:8px; }
  .payment-qris-focus .qris-display img { width:min(100%,320px);max-height:340px; }
  .qris-payment-priority { grid-template-columns:1fr; }
  .qris-payment-priority .qris-expiry { align-items:start; }
  .qris-amount b { font-size:32px; }
  .payment-back-button { min-height:44px; }
}

@media (max-width: 520px) {
  .page-title,
  .profile-strip,
  .account-grid {
    width: 100%;
    min-width: 0;
  }
  .profile-strip {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
  }
  .profile-strip .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .profile-strip div b { overflow-wrap: anywhere; }
  .account-grid { overflow: hidden; }
}

.manual-payment-layout {
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:20px;
  width:min(100%,980px);
  margin:28px auto;
}
.qris-payment-card,.payment-proof-form { align-self:start; }
.qris-display {
  display:grid;
  min-height:320px;
  place-items:center;
  margin:18px 0;
  border:1px solid #e6eaf0;
  border-radius:14px;
  background:linear-gradient(145deg,#fff,#f8fafc);
  padding:20px;
}
.qris-display img { width:min(100%,360px);max-height:430px;object-fit:contain;border-radius:10px; }
.payment-proof-form { display:grid;gap:14px; }
.qris-admin-preview {
  display:flex;
  align-items:center;
  gap:18px;
  border:1px solid var(--admin-line);
  border-radius:10px;
  background:#fafbfc;
  padding:14px;
  color:#64748b;
  font-size:12px;
  font-weight:750;
}
.qris-admin-preview img { width:110px;height:110px;margin-left:auto;border-radius:8px;background:#fff;object-fit:contain; }
.admin-app-shell .btn-danger { border-color:#fecaca;color:#dc2626;background:#fff5f5; }
.admin-app-shell .status:not(.green) { color:#b45309; }

@media (max-width:720px) {
  .manual-payment-layout { grid-template-columns:1fr;margin:14px auto;gap:14px; }
  .qris-display { min-height:260px;padding:14px; }
  .qris-display img { max-height:340px; }
  .qris-admin-preview { align-items:flex-start;flex-direction:column; }
  .qris-admin-preview img { width:100%;height:auto;max-height:260px;margin:0; }
}

.checkout-payment-page {
  display:grid;
  width:min(100%,720px);
  gap:16px;
  margin:0 auto;
}
.payment-page-head {
  display:flex;
  align-items:center;
  gap:18px;
}
.payment-page-head > div { display:grid;gap:6px; }
.payment-page-head h1 {
  margin:0;
  font-size:clamp(24px,4vw,34px);
  line-height:1.1;
}
.payment-summary-first { display:grid;gap:12px; }
.checkout-payment-page .summary-card {
  position:static;
  width:100%;
  padding:20px;
}
.checkout-payment-page .summary-card h3 { margin-bottom:14px; }
.checkout-payment-page .summary-total { margin-top:4px; }
.payment-quick-note {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  border:1px solid #f1d4d6;
  border-radius:10px;
  background:#fff8f8;
  padding:12px 14px;
  font-size:12px;
}
.payment-quick-note span { color:var(--muted);text-align:right; }

@media (max-width:700px) {
  .checkout-payment-page { gap:10px; }
  .payment-page-head { gap:12px; }
  .payment-page-head .checkout-back { min-height:34px;padding:7px 10px;font-size:11px; }
  .payment-page-head h1 { font-size:22px; }
  .payment-page-head .stamp { font-size:9px; }
  .checkout-payment-page .summary-card { padding:14px; }
  .checkout-payment-page .summary-card h3 { margin:0 0 10px;font-size:17px; }
  .checkout-payment-page .summary-line { padding:5px 0;font-size:12px; }
  .checkout-payment-page .summary-total { padding-top:9px;font-size:15px; }
  .checkout-payment-page .summary-card .btn-primary { min-height:48px;margin-top:10px; }
  .payment-quick-note { display:grid;gap:3px;padding:10px 12px; }
  .payment-quick-note span { text-align:left; }
}

/* 2026-07-27 storefront hierarchy and compact customer account */
.category-shortcut-row {
  grid-template-columns:repeat(5,minmax(0,1fr));
  overflow:visible;
}
.category-shortcut-row .category-tile {
  align-items:center;
  display:flex;
  gap:12px;
  min-height:78px;
  padding:12px 14px;
}
.category-shortcut-row .category-icon {
  flex:0 0 42px;
  height:42px;
  margin:0;
  width:42px;
}
.account-collapsible-summary {
  align-items:center;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  list-style:none;
  min-height:46px;
}
.account-collapsible-summary::-webkit-details-marker { display:none; }
.account-collapsible-summary span { display:grid;gap:3px; }
.account-collapsible-summary small { color:#64748b;font-size:11px;font-weight:600; }
.account-collapsible-summary i {
  color:#64748b;
  font-size:24px;
  font-style:normal;
  transition:transform .2s ease;
}
.account-order-results[open] .account-collapsible-summary i { transform:rotate(90deg); }
.account-order-results-body { margin-top:12px; }
.account-grid { grid-template-columns:1fr; }
.account-profile-editor { grid-column:1; }

@media (max-width:760px) {
  .promo-slide.image-banner {
    aspect-ratio:25 / 27;
    max-height:min(108vw,430px);
  }
  .category-shortcut-head { margin-top:18px; }
  .category-shortcut-row {
    display:flex;
    gap:8px;
    margin-right:-18px;
    overflow-x:auto;
    padding:0 18px 6px 0;
    scroll-snap-type:x proximity;
    scrollbar-width:none;
  }
  .category-shortcut-row::-webkit-scrollbar { display:none; }
  .category-shortcut-row .category-tile {
    display:grid;
    flex:0 0 78px;
    gap:6px;
    justify-items:center;
    min-height:84px;
    padding:9px 6px;
    scroll-snap-align:start;
    text-align:center;
  }
  .category-shortcut-row .category-icon {
    height:38px;
    width:38px;
  }
  .category-shortcut-row .category-tile b { font-size:9px; }
  .payment-qris-focus > .payment-confirm-button {
    bottom:max(10px,env(safe-area-inset-bottom));
    box-shadow:0 12px 26px rgba(229,9,20,.3);
    position:sticky;
    z-index:5;
  }
  .payment-qris-focus > .payment-back-button {
    bottom:auto !important;
    box-shadow:none !important;
    position:static !important;
    z-index:auto !important;
  }
  .account-collapsible-summary { min-height:44px; }
  .account-order-results { padding:13px; }
}

/* 2026-07-27 precise mobile storefront pass */
html,
body {
  max-width:100%;
  overflow-x:hidden;
}

.checkout-courier-note {
  grid-column:1 / -1;
  width:100%;
}
.checkout-courier-note textarea {
  min-height:88px;
  width:100%;
}

.product-rating {
  align-items:center;
  display:inline-flex;
  gap:7px;
}
.rating-stars {
  color:#f59e0b;
  font-size:16px;
  letter-spacing:1px;
  line-height:1;
}
.product-rating b {
  color:#111;
  font-size:14px;
}
.detail-panel > .price-row .price {
  color:#111;
  font-size:clamp(27px,3vw,36px);
  font-weight:950;
  letter-spacing:-.04em;
}
.add-cart-icon-button {
  align-items:center;
  display:inline-flex;
  gap:8px;
  justify-content:center;
}
.add-cart-icon-button img {
  height:23px;
  object-fit:contain;
  width:23px;
}
.customer-order-admin {
  grid-column:1 / -1;
  justify-content:center;
  width:100%;
}

@media (max-width:760px) {
  html,
  body {
    overscroll-behavior-x:none;
    touch-action:pan-y;
    width:100%;
  }
  .app-shell {
    min-height:0;
    padding-bottom:calc(94px + env(safe-area-inset-bottom));
  }
  .app-shell .main,
  .checkout-shell .main {
    gap:15px;
    min-height:0;
    padding:10px 14px 18px;
  }
  .promo-slide.image-banner {
    aspect-ratio:5 / 4;
    max-height:340px;
  }
  .category-shortcut-head {
    margin:4px 0 2px;
  }
  .category-shortcut-head h2 {
    font-size:20px;
    line-height:1.1;
  }
  .category-shortcut-row {
    gap:7px;
    margin-bottom:5px;
    margin-top:0;
    padding-bottom:2px;
  }
  .category-shortcut-row .category-tile {
    flex-basis:74px;
    min-height:76px;
    padding:7px 5px;
  }
  .category-shortcut-row .category-icon {
    height:34px;
    width:34px;
  }
  .checkout-card {
    max-width:100%;
  }
  .checkout-courier-note textarea {
    min-height:82px;
  }
  .detail-layout {
    gap:10px;
    padding-bottom:calc(172px + env(safe-area-inset-bottom));
  }
  .detail-gallery,
  .detail-panel {
    min-width:0;
    width:100%;
  }
  .detail-thumbs {
    gap:7px;
    overflow-x:auto;
    padding-bottom:2px;
    scrollbar-width:none;
  }
  .detail-thumbs::-webkit-scrollbar { display:none; }
  .detail-thumbs .thumb {
    flex:0 0 58px;
    height:58px;
  }
  .detail-panel {
    gap:10px;
    padding:12px;
  }
  .detail-title {
    font-size:20px;
    line-height:1.15;
  }
  .detail-meta {
    align-items:center;
    gap:7px 10px;
  }
  .detail-panel > .price-row {
    align-items:center;
    margin:0;
  }
  .detail-panel > .price-row .price {
    font-size:28px;
  }
  .detail-menu-content.product-reviews {
    padding:0 12px 14px;
  }
  .product-review-list {
    grid-template-columns:1fr;
  }
  .option-group {
    gap:8px;
    margin-top:2px;
  }
  .sticky-buy {
    bottom:calc(94px + env(safe-area-inset-bottom));
  }
  .sticky-buy .add-cart-icon-button {
    flex:0 0 112px;
  }
  .customer-order-row {
    gap:9px;
    padding:11px;
  }
  .bottom-nav {
    bottom:10px;
    height:calc(72px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    min-height:58px;
  }
}

/* 2026-07-27 welcoming cart empty state */
.cart-empty-compact {
  grid-template-columns:minmax(0,1fr) minmax(120px,180px);
  gap:18px;
  min-height:220px;
  border-color:#ececec;
  border-radius:20px;
  padding:28px 30px;
  box-shadow:0 10px 28px rgba(15,23,42,.07);
}
.cart-empty-copy {
  align-content:center;
  display:grid;
  gap:8px;
}
.cart-empty-copy h1 {
  font-size:clamp(25px,3vw,34px);
  letter-spacing:-.035em;
  line-height:1.05;
  margin:0;
}
.cart-empty-copy p {
  color:#6b7280;
  font-size:15px;
  margin:0 0 12px;
}
.cart-empty-cta {
  gap:14px;
  justify-self:start;
  min-height:50px;
  padding-inline:20px;
}
.cart-empty-cta span {
  font-size:24px;
  line-height:1;
}
.cart-empty-icon {
  align-self:center;
  background:radial-gradient(circle,#fff0f2 0 58%,transparent 59%);
  border-radius:0;
  height:auto;
  justify-self:center;
  width:min(100%,170px);
}
.cart-empty-icon img {
  height:auto;
  width:100%;
}
.wishlist-panel.wishlist-compact {
  border:1px solid #ececec;
  border-radius:20px;
  box-shadow:0 10px 28px rgba(15,23,42,.06);
  gap:18px;
  margin-inline:auto;
  max-width:1040px;
  padding:22px;
  width:100%;
}
.wishlist-panel.wishlist-compact .wishlist-head {
  min-height:46px;
}
.wishlist-panel.wishlist-compact .wishlist-head h2 {
  align-items:center;
  display:flex;
  font-size:24px;
  gap:10px;
}
.wishlist-panel.wishlist-compact .wishlist-head h2 span {
  align-items:center;
  background:#fff1f2;
  border-radius:999px;
  color:var(--red);
  display:inline-flex;
  font-size:13px;
  height:30px;
  justify-content:center;
  min-width:30px;
}
.wishlist-panel.wishlist-compact .wishlist-empty {
  border:1px dashed #d8dce2;
  border-radius:18px;
  display:grid;
  gap:10px;
  justify-items:center;
  min-height:220px;
  padding:25px;
  text-align:center;
  grid-template-columns:minmax(0,1fr) !important;
  place-content:center !important;
  place-items:center !important;
  width:100%;
}
.wishlist-panel.wishlist-compact .wishlist-empty img {
  height:92px;
  object-fit:contain;
  width:92px;
  justify-self:center;
}
.wishlist-panel.wishlist-compact .wishlist-empty div {
  display:grid;
  gap:4px;
  justify-items:center;
  justify-self:center;
  text-align:center;
  width:100%;
}

.storefront-boot {
  align-items:center;
  background:#fff;
  display:flex;
  flex-direction:column;
  gap:16px;
  inset:0;
  justify-content:center;
  min-height:100dvh;
  position:fixed;
  z-index:9999;
}
.storefront-boot img {
  height:auto;
  width:min(46vw,180px);
}
.storefront-boot span {
  color:#64748b;
  font-size:14px;
  font-weight:700;
}
.banner-device-preview img.preview-image-fallback {
  background:#f8fafc;
  object-fit:contain;
  padding:18px;
}

.admin-section-intro {
  align-items:center;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:18px;
}
.admin-section-intro .admin-metric-compact {
  grid-column:1 / -1;
  grid-template-columns:repeat(2,minmax(0,260px));
}
.admin-section-kicker {
  color:var(--admin-red);
  display:block;
  font-size:11px;
  font-weight:900;
  letter-spacing:.14em;
  margin-bottom:5px;
}
.admin-panel-heading {
  align-items:center;
  display:flex;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
}
.admin-panel-heading h2,
.admin-section-intro h2 {
  margin:0 0 5px;
}
.admin-editor-panel {
  scroll-margin-top:96px;
}
.admin-form-actions {
  align-items:center;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
}
.admin-form-actions .btn {
  min-width:150px;
}
.admin-promo-storefront-preview {
  border-top:1px solid #e4e8ee;
  margin-top:22px;
  padding-top:22px;
}
.admin-promo-storefront-preview .promo-hero-card {
  min-height:230px;
}
.admin-promo-storefront-preview .promo-hero-visual {
  align-items:center;
  display:flex;
  height:180px;
  justify-content:center;
}
.admin-promo-storefront-preview .promo-hero-visual img {
  border-radius:18px;
  height:100%;
  object-fit:cover;
  width:100%;
}

.checkout-form-actions {
  display:grid;
  gap:10px;
}
.voucher-admin-list {
  display:grid;
  gap:12px;
}
.voucher-admin-card {
  align-items:center;
  background:#fff;
  border:1px solid #e4e8ee;
  border-radius:16px;
  display:grid;
  grid-template-columns:minmax(210px,320px) minmax(0,1fr) auto;
  gap:18px;
  padding:14px;
}
.voucher-admin-art {
  aspect-ratio:16 / 5;
  background:#f8fafc;
  border-radius:11px;
  overflow:hidden;
}
.voucher-admin-art img {
  height:100%;
  object-fit:cover;
  width:100%;
}
.voucher-admin-copy {
  display:grid;
  gap:5px;
}
.voucher-admin-copy h3,
.voucher-admin-copy p {
  margin:0;
}
.voucher-admin-copy code {
  color:var(--admin-red);
  font-size:13px;
  font-weight:900;
}
.voucher-admin-copy p {
  color:#64748b;
  font-size:12px;
}
.voucher-admin-actions {
  display:flex;
  gap:8px;
}
.promo-hero-visual.has-uploaded-art {
  overflow:hidden;
  padding-left:20px;
}
.promo-uploaded-art,
.promo-uploaded-art img {
  display:block;
  height:100%;
  width:100%;
}
.promo-uploaded-art img {
  border-radius:14px;
  object-fit:cover;
}
.wishlist-panel.wishlist-compact .wishlist-empty b {
  color:#171717;
  font-size:18px;
}
.wishlist-panel.wishlist-compact .wishlist-empty span {
  color:#7a7a7a;
  font-size:14px;
}

@media (max-width:720px) {
  .cart-empty-compact {
    grid-template-columns:minmax(0,1fr) 128px;
    gap:8px;
    min-height:190px;
    padding:22px 18px;
  }
  .cart-empty-copy h1 { font-size:25px; }
  .cart-empty-copy p {
    font-size:13px;
    line-height:1.4;
    margin-bottom:8px;
  }
  .cart-empty-cta {
    min-height:46px;
    padding-inline:16px;
  }
  .cart-empty-icon { width:126px; }
  .wishlist-panel.wishlist-compact {
    gap:14px;
    margin-top:2px;
    padding:17px;
  }
  .wishlist-panel.wishlist-compact .wishlist-head h2 { font-size:20px; }
  .wishlist-panel.wishlist-compact .wishlist-empty {
    min-height:210px;
    padding:22px;
  }
  .wishlist-panel.wishlist-compact .wishlist-empty img {
    height:88px;
    width:88px;
  }
}

@media (max-width:360px) {
  .cart-empty-compact {
    grid-template-columns:minmax(0,1fr) 104px;
    padding-inline:14px;
  }
  .cart-empty-copy h1 { font-size:22px; }
  .cart-empty-cta {
    font-size:12px;
    padding-inline:13px;
  }
  .cart-empty-icon { width:104px; }
}

/* 2026-07-27 device-specific banner previews and promo validation */
.admin-banner-live-preview,
.banner-device-previews {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(210px,.75fr);
  gap:16px;
  margin:16px 0;
}
.banner-preview {
  align-items:start;
  display:grid;
  grid-template-columns:minmax(180px,.55fr) minmax(0,2fr) auto;
  gap:18px;
  padding:18px;
}
.banner-preview-copy {
  display:grid;
  gap:7px;
}
.banner-device-preview {
  display:grid;
  gap:8px;
  margin:0;
  min-width:0;
}
.banner-device-preview figcaption {
  align-items:flex-end;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.banner-device-preview figcaption b {
  color:#111827;
  font-size:13px;
}
.banner-device-preview figcaption span {
  color:#64748b;
  font-size:10px;
  text-align:right;
}
.banner-device-preview img {
  background:#f8fafc;
  border:1px solid #dfe4ea;
  border-radius:12px;
  display:block;
  height:auto;
  object-fit:cover;
  width:100%;
}
.banner-device-preview.desktop img {
  aspect-ratio:16 / 5;
}
.banner-device-preview.mobile img {
  aspect-ratio:5 / 4;
}
.admin-banner-live-preview {
  border:1px solid #e3e7ec;
  border-radius:14px;
  padding:16px;
}
.promo-feedback {
  border:1px solid;
  border-radius:10px;
  font-size:12px;
  font-weight:750;
  line-height:1.4;
  margin-top:9px;
  padding:10px 12px;
}
.promo-feedback.success {
  background:#ecfdf5;
  border-color:#a7f3d0;
  color:#047857;
}
.promo-feedback.error {
  background:#fff1f2;
  border-color:#fecdd3;
  color:#be123c;
}

@media (max-width:900px) {
  .banner-preview {
    grid-template-columns:1fr;
  }
  .banner-preview .banner-actions {
    justify-content:flex-start;
  }
  .voucher-admin-card {
    grid-template-columns:180px minmax(0,1fr);
  }
  .voucher-admin-actions {
    grid-column:1 / -1;
    justify-content:flex-end;
  }
}

@media (max-width:620px) {
  .admin-app-shell .admin-sidebar nav {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .admin-banner-live-preview,
  .banner-device-previews {
    grid-template-columns:1fr;
  }
  .banner-device-preview.mobile {
    justify-self:center;
    max-width:260px;
    width:100%;
  }
  .admin-section-intro {
    grid-template-columns:1fr;
  }
  .admin-section-intro .admin-metric-compact {
    grid-column:auto;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .admin-panel-heading {
    align-items:flex-start;
  }
  .admin-form-actions {
    display:grid;
    grid-template-columns:1fr 1fr;
  }
  .admin-form-actions .btn {
    min-width:0;
  }
  .voucher-admin-card {
    grid-template-columns:1fr;
  }
  .voucher-admin-actions {
    grid-column:auto;
    justify-content:stretch;
  }
  .voucher-admin-actions .btn {
    flex:1;
  }
  .promo-hero-visual.has-uploaded-art {
    padding-left:10px;
  }
}

/* Keep the marketplace product-detail rules authoritative over legacy blocks. */
body .detail-layout {
  grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr);
  gap:20px;
}
body .detail-gallery {
  position:sticky;
  top:18px;
}
body .detail-main-image {
  aspect-ratio:1 / 1;
  min-height:0;
  border:0;
  border-radius:24px;
}
body .detail-main-image img {
  box-sizing:border-box;
  display:block;
  height:100%;
  margin:auto;
  max-height:100%;
  max-width:100%;
  object-position:center center;
  padding:0;
  object-fit:contain;
  transition:opacity .18s ease,transform .18s ease;
  width:100%;
}
body .detail-main-image img.is-changing {
  opacity:.55;
  transform:scale(.985);
}
body .detail-thumbs {
  display:flex;
  grid-template-columns:none;
  overflow-x:auto;
}
body .detail-panel {
  border-radius:24px;
  padding:20px;
}
body .detail-panel > .detail-price-block .price {
  color:var(--red);
  font-size:clamp(34px,4vw,46px);
}
body .detail-panel .option-list {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(58px,1fr));
}
body .detail-panel .option {
  min-height:48px;
  min-width:0;
}
body .detail-panel .option.active {
  background:var(--red);
  border-color:var(--red);
  box-shadow:none;
  color:#fff;
}
body .detail-panel .sticky-buy {
  grid-template-columns:minmax(150px,.75fr) minmax(220px,1.5fr);
  margin:0 -20px -20px;
  padding:14px 20px calc(14px + env(safe-area-inset-bottom));
}

@media (max-width:760px) {
  body .app-shell,
  body .app-shell .main {
    box-sizing:border-box;
    max-width:100%;
    min-width:0;
    width:100%;
  }
  body .detail-layout {
    display:block;
    box-sizing:border-box;
    margin:-10px 0 0;
    padding-bottom:calc(174px + env(safe-area-inset-bottom));
    width:100%;
  }
  body .detail-gallery {
    position:relative;
    touch-action:pan-y;
    top:auto;
  }
  body .detail-main-image {
    aspect-ratio:1 / 1.03;
    border-radius:0 0 22px 22px;
    min-height:0;
  }
  body .detail-main-image img {
    object-position:50% 50%;
    padding:20px 18px 12px;
  }
  body .detail-thumbs {
    display:none;
  }
  body .detail-panel {
    border:0;
    border-radius:22px 22px 0 0;
    margin-top:-2px;
    padding:16px;
  }
  body .detail-panel > .detail-price-block .price {
    font-size:32px;
  }
  body .detail-panel .option-group {
    margin-top:0;
    padding:14px 0;
  }
  body .detail-panel .option {
    min-height:44px;
  }
  body .detail-panel .sticky-buy {
    bottom:calc(84px + env(safe-area-inset-bottom));
    grid-template-columns:118px minmax(0,1fr);
    box-sizing:border-box;
    left:0;
    margin:0;
    padding:10px 14px;
    position:fixed;
    right:0;
    width:100%;
    z-index:70;
  }
}

/* Product detail readability and quantity-control correction. */
body .detail-panel .detail-title {
  color:#171717;
  font-size:20px;
  font-weight:800;
  letter-spacing:-.015em;
  line-height:1.32;
  margin:2px 0 4px;
  max-width:100%;
  text-wrap:pretty;
}
body .detail-panel .detail-quote {
  border:0;
  color:#667085;
  font-size:14px;
  font-weight:500;
  line-height:1.5;
  margin:0 0 10px;
  padding:0;
  text-wrap:pretty;
}
body .detail-quantity .qty-stepper {
  display:grid !important;
  flex:0 0 134px;
  grid-template-columns:42px 50px 42px !important;
  overflow:hidden;
  width:134px;
}
body .detail-quantity .qty-stepper button,
body .detail-quantity .qty-stepper span {
  box-sizing:border-box;
  display:grid !important;
  height:42px;
  min-height:42px;
  min-width:0;
  padding:0;
  place-items:center;
  visibility:visible !important;
  width:auto;
}
body .detail-quantity .qty-stepper button:last-child {
  display:grid !important;
}
body .sticky-buy .add-cart-icon-button b {
  display:none !important;
}
body .detail-cart-shortcut b {
  display:flex !important;
}

@media (max-width:760px) {
  body .app-shell .main:has(.detail-layout) {
    display:block;
    padding-left:0;
    padding-right:0;
    width:100%;
  }
  body .detail-gallery,
  body .detail-panel {
    box-sizing:border-box;
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
    width:100%;
  }
  body .detail-panel {
    padding-left:18px;
    padding-right:18px;
  }
  body .detail-panel .detail-title {
    font-size:17px;
    line-height:1.35;
  }
  body .detail-panel .detail-quote {
    font-size:13px;
    line-height:1.45;
  }
  body .detail-quantity {
    align-items:center;
    display:flex;
    justify-content:space-between;
    width:100%;
  }
  body .detail-quantity .qty-stepper {
    flex-basis:134px;
  }
}

/* Compact, interactive homepage banner indicators. */
.promo-slider .slider-dots {
  align-items:center;
  background:rgba(255,255,255,.88);
  border-radius:999px;
  bottom:10px;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
  display:flex;
  gap:4px;
  padding:4px 6px;
}
.promo-slider .slider-dots button {
  appearance:none;
  background:#bfc3c9;
  border:0;
  border-radius:999px;
  color:transparent;
  display:block;
  flex:0 0 6px;
  height:6px;
  margin:0;
  min-height:0;
  padding:0;
  transition:background-color .18s ease,width .18s ease;
  width:6px;
}
.promo-slider .slider-dots button.active {
  background:var(--red);
  flex-basis:14px;
  width:14px;
}

/* Native, continuous product-image carousel. */
body .detail-gallery {
  touch-action:auto;
}
body .detail-gallery-track {
  display:grid;
  grid-auto-columns:100%;
  grid-auto-flow:column;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  width:100%;
}
body .detail-gallery-track::-webkit-scrollbar {
  display:none;
}
body .detail-gallery-track .detail-main-image {
  scroll-snap-align:start;
  scroll-snap-stop:always;
  width:100%;
}
body .detail-gallery-dots {
  background:rgba(255,255,255,.88);
  border-radius:999px;
  bottom:10px;
  box-shadow:0 3px 10px rgba(0,0,0,.12);
  gap:4px;
  padding:4px 6px;
  pointer-events:auto;
}
body .detail-gallery-dots button {
  background:#bfc3c9;
  box-shadow:none;
  flex:0 0 6px;
  height:6px;
  transition:background-color .18s ease,width .18s ease;
  width:6px;
}
body .detail-gallery-dots button.active {
  background:var(--red);
  box-shadow:none;
  flex-basis:14px;
  width:14px;
}

body .detail-promo-icon {
  background:transparent;
  border-radius:14px;
  box-shadow:0 7px 18px rgba(229,9,20,.22);
  height:62px;
  overflow:hidden;
  width:62px;
}
body .detail-promo-icon img {
  filter:none;
  height:100%;
  object-fit:cover;
  transform:scale(2.55);
  width:100%;
}
body .detail-promo-banner {
  grid-template-columns:62px minmax(0,1fr) auto;
  min-height:82px;
  padding:10px 12px;
}
body .detail-panel .color-text-option {
  align-items:center;
  display:flex;
  justify-content:center;
  text-align:center;
}

/* Dedicated customer order detail page. */
.customer-order-link-card {
  display: block;
  overflow: hidden;
  padding: 0;
}
.customer-order-link-card .customer-invoice-summary {
  color: inherit;
  text-decoration: none;
  width: 100%;
}
.customer-order-page {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 1080px;
  width: 100%;
}
.customer-order-page-head {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: auto minmax(0, 1fr);
}
.customer-order-page-head h1 {
  font-size: clamp(25px, 4vw, 38px);
  margin: 8px 0 4px;
  overflow-wrap: anywhere;
}
.customer-order-page-head p { margin: 0; }
.customer-order-back {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
  white-space: nowrap;
}
.customer-invoice-standalone {
  min-width: 0;
  overflow: hidden;
  padding: 0;
}
.customer-invoice-standalone .customer-invoice-body {
  border-top: 0;
  min-width: 0;
}

@media (max-width: 760px) {
  .customer-order-page {
    gap: 12px;
    max-width: 100%;
    min-width: 0;
  }
  .customer-order-page-head {
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .customer-order-back {
    justify-self: start;
  }
  .customer-invoice-standalone,
  .customer-invoice-body,
  .customer-invoice-heading,
  .customer-invoice-items,
  .customer-invoice-grid,
  .customer-invoice-grid > section {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .customer-invoice-heading h3,
  .customer-invoice-items b,
  .customer-invoice-items span,
  .customer-invoice-grid p {
    overflow-wrap: anywhere;
  }
}

@media (max-width:760px) {
  body .detail-promo-icon {
    border-radius:12px;
    height:54px;
    width:54px;
  }
  body .detail-promo-banner {
    gap:10px;
    grid-template-columns:54px minmax(0,1fr) auto;
    min-height:72px;
    padding:9px 10px;
  }
}
