:root {
  --black: #080808;
  --muted: #6b7280;
  --line: #e7e7e7;
  --soft: #f7f7f7;
  --lime: #CDFF21;
  --danger: #ef4444;
  --success: #0f9f6e;
  --shadow: 0 24px 80px rgba(0, 0, 0, .08);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--black);
  background: #fff;
}
img { max-width: 100%; display: block; }
button, input { font: inherit; }
.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 10px;
}
.brand-logo, .admin-logo, .success-logo {
  width: 260px;
  filter: grayscale(1) brightness(0);
}
.hero {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 70px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  gap: 32px;
  align-items: start;
}
.gallery-card, .product-panel, .success-card, .admin-login, .inventory-card, .orders-card {
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  background: #fff;
}
.gallery-card {
  position: sticky;
  top: 22px;
  overflow: hidden;
  padding: 14px;
}
.slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 24px;
  background: var(--soft);
  aspect-ratio: 4 / 5;
  scrollbar-width: none;
}
.slider::-webkit-scrollbar { display: none; }
.slider img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}
.slider-ui {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 4px 0;
}
.circle-btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
}
.dots { display: flex; gap: 7px; align-items: center; }
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
}
.dot.active { background: var(--black); width: 22px; border-radius: 99px; }
.product-panel { padding: 36px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 12px;
  font-weight: 900;
  margin: 0 0 12px;
}
h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: .9;
  margin: 0 0 18px;
  letter-spacing: -.06em;
}
.intro {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 24px;
}
.price-row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.price {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -.06em;
}
.pickup-chip {
  background: var(--lime);
  border: 1px solid #b8ea16;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
}
.pickup-box {
  background: #fafafa;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin: 22px 0 28px;
}
.small-label, .summary-bar span, .fine-print {
  color: var(--muted);
  font-size: 13px;
}
.pickup-box strong { display: block; font-size: 20px; margin-top: 5px; }
.pickup-box p { margin: 8px 0 0; color: var(--muted); line-height: 1.45; }
.section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-title h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
#inventoryStatus { font-size: 12px; color: var(--muted); text-align: right; }
.size-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.size-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  background: #fff;
}
.size-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.size-head strong { font-size: 22px; }
.stock { color: var(--muted); font-size: 12px; }
.qty-control {
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  gap: 8px;
  align-items: center;
}
.qty-control button {
  border: 1px solid var(--line);
  background: var(--soft);
  border-radius: 12px;
  height: 38px;
  font-weight: 900;
  cursor: pointer;
}
.qty-control input {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  font-weight: 900;
}
.customer-grid { display: grid; gap: 12px; margin: 24px 0; }
.customer-grid label { font-size: 13px; color: var(--muted); font-weight: 700; }
.customer-grid input, .admin-login input, .inventory-editor input {
  width: 100%;
  display: block;
  margin-top: 7px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 14px;
  color: var(--black);
  background: #fff;
}
.summary-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.summary-bar div {
  background: var(--black);
  color: #fff;
  border-radius: 20px;
  padding: 16px;
}
.summary-bar span { color: rgba(255,255,255,.65); display: block; }
.summary-bar strong { font-size: 25px; display: block; margin-top: 4px; }
.main-btn, .secondary-btn {
  border: 0;
  border-radius: 16px;
  min-height: 54px;
  padding: 0 22px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.main-btn { width: 100%; background: var(--black); color: #fff; }
.secondary-btn { background: #fff; color: var(--black); border: 1px solid var(--line); }
.main-btn:hover, .secondary-btn:hover, .circle-btn:hover { transform: translateY(-1px); }
.fine-print { line-height: 1.45; margin: 12px 0 0; }
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.42);
  display: none;
  place-items: center;
  padding: 18px;
  z-index: 10;
}
.modal.open { display: grid; }
.modal-card {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 30px;
  padding: 28px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.2);
}
.close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 22px;
  cursor: pointer;
}
.modal-card h2 { font-size: 32px; letter-spacing: -.05em; margin: 0 0 14px; }
.review-details { border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 16px; }
.review-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.error-text { color: var(--danger); font-weight: 700; }
.success-body, .admin-body { background: #f6f6f6; min-height: 100vh; }
.success-card {
  width: min(620px, calc(100% - 28px));
  margin: 50px auto;
  padding: 36px;
  text-align: center;
}
.success-logo { margin: 0 auto 28px; width: 240px; }
.success-card h1 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--lime);
  padding: 16px 26px;
  border-radius: 22px;
  font-size: clamp(48px, 10vw, 86px);
  margin-bottom: 20px;
}
.success-message {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 800;
  margin: 0 0 24px;
}
.confirmation-box {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  margin-bottom: 22px;
}
.admin-header {
  width: min(1180px, calc(100% - 28px));
  margin: 28px auto 18px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.admin-logo { width: 210px; }
.admin-header h1 { font-size: 42px; margin: 0 0 4px; }
.admin-header p { margin: 0; color: var(--muted); }
.admin-wrap { width: min(1180px, calc(100% - 28px)); margin: 0 auto 60px; }
.admin-login { padding: 26px; }
.admin-login h2 { margin: 0 0 6px; }
.login-row { display: grid; grid-template-columns: 1fr 180px; gap: 10px; margin-top: 16px; }
.compact { min-height: 50px; }
.hidden { display: none !important; }
.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 24px 0 16px;
}
.admin-topbar h2 { font-size: 34px; margin: 0; letter-spacing: -.05em; }
.admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.inventory-card, .orders-card { padding: 22px; }
.inventory-card h3 { margin: 0 0 6px; font-size: 24px; }
.inventory-card p { color: var(--muted); margin-top: 0; }
.inventory-editor { display: grid; gap: 12px; margin: 16px 0; }
.inventory-editor label { font-size: 13px; color: var(--muted); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.stat { background: var(--soft); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.stat span { color: var(--muted); font-size: 12px; display: block; }
.stat strong { font-size: 24px; }
.orders-list { display: grid; gap: 12px; }
.order-card { border: 1px solid var(--line); border-radius: 20px; padding: 16px; background: #fff; }
.order-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.order-card h3 { margin: 0 0 4px; font-size: 24px; }
.order-meta { color: var(--muted); font-size: 13px; line-height: 1.5; }
.badge { display: inline-flex; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.badge.reserved { background: #fff7cc; color: #8a6a00; }
.badge.picked_up { background: #dff8eb; color: #08734f; }
.badge.expired { background: #fee2e2; color: #991b1b; }
.pickup-btn { width: auto; min-height: 44px; margin-top: 12px; background: var(--lime); color: var(--black); }
@media (max-width: 860px) {
  .hero, .admin-grid { grid-template-columns: 1fr; }
  .gallery-card { position: static; }
  .product-panel { padding: 24px; }
  .size-grid, .summary-bar, .stats { grid-template-columns: 1fr; }
  .login-row { grid-template-columns: 1fr; }
  .admin-header { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media (max-width: 520px) {
  .brand-logo { width: 230px; }
  .hero { width: calc(100% - 20px); margin-top: 12px; }
  .gallery-card, .product-panel, .success-card { border-radius: 24px; }
  .success-card { padding: 24px; }
}

/* v8 shop adjustments */
.size-card {
  min-width: 0;
  overflow: hidden;
}
.size-head {
  align-items: center;
}
.qty-control {
  grid-template-columns: 42px minmax(54px, 1fr) 42px;
  width: 100%;
}
.qty-control button,
.qty-control input {
  min-width: 0;
  width: 100%;
}
.qty-control button:disabled,
.qty-control input:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.soldout-label {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.size-card.sold-out {
  background: #f8f8f8;
}
@media (min-width: 861px) {
  .size-card { padding: 14px; }
  .qty-control { grid-template-columns: 40px minmax(48px, 1fr) 40px; gap: 7px; }
}
