/* Customer-only theme. Catalog reference: GS SHOP spacing/type/card hierarchy.
   Ivory/lilac palette and layout are Merylive adaptations, not GS SHOP tokens.
   Remove this stylesheet link to restore the original presentation. */
.customer-page {
  --ink: #30283c;
  --muted: #72687e;
  --line: #e9e2f1;
  --paper: #fcfaff;
  --panel: #fff;
  --accent: #7044b7;
  --accent-dark: #58338f;
  --soft: #f2ebff;
  --shadow: 0 1px 8px rgb(0 0 0 / 8%);
  --radius-card: 20px;
  --radius-control: 12px;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  line-height: 1.5;
}
.customer-page .customer-shell { max-width: 720px; padding: 28px 24px 160px; }
.customer-page .topbar {
  padding: 0 0 24px; gap: 24px; margin-bottom: 8px;
  border-radius: 0; border-bottom: 1px solid var(--line);
}
.customer-page .brand-kicker {
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 16px; color: var(--accent); font-size: 12px;
  font-weight: 700; letter-spacing: .18em; line-height: 1.25;
}
.customer-page .brand-spark { font-size: 28px; line-height: 1; letter-spacing: 0; }
.customer-page .topbar h1 { font-size: 30px; line-height: 1.25; font-weight: 700; letter-spacing: -.04em; margin: 0; }
.customer-page .brand-description { margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.customer-page .nav-links { justify-content: stretch; gap: 8px; flex-wrap: wrap; }
.customer-page .nav-links a,
.customer-page .nav-links button {
  display: flex; align-items: center; justify-content: center;
  flex: 1 1 auto; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: var(--radius-control);
  background: var(--panel); color: var(--ink); font-size: 14px;
  font-weight: 600; line-height: 1.25; text-decoration: none;
}
.customer-page .nav-links #myOrderButton { border-color: #d4c0ef; background: var(--soft); color: var(--accent-dark); }
.customer-page .search-panel {
  gap: 8px; padding: 16px 0; margin-bottom: 16px; border: 0;
  background: rgb(252 250 255 / 97%);
}
.customer-page .search-panel label { font-size: 13px; font-weight: 600; color: var(--muted); }
.customer-page .search-panel input {
  min-height: 48px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); padding: 12px 16px; box-shadow: none;
}
.customer-page input::placeholder { color: var(--muted); }
.customer-page .product-grid { gap: 32px; }
.customer-page .product-group { gap: 12px; }
.customer-page .group-title { padding: 0 4px; }
.customer-page .group-title h2 {
  padding: 0; min-height: 0; border: 0; background: transparent;
  color: var(--ink); font-size: 20px; line-height: 1.25; font-weight: 700;
}
.customer-page .group-title span { font-size: 12px; font-weight: 400; }
.customer-page .product-group-list { gap: 12px; }
.customer-page .product-card {
  grid-template-columns: 176px minmax(0, 1fr); min-height: 200px;
  border-radius: var(--radius-card); border-color: var(--line);
  box-shadow: none; padding: 12px; gap: 16px;
}
.customer-page .product-image-button {
  width: 176px; min-height: 176px; align-self: start; aspect-ratio: 1;
  border: 0; border-radius: 12px; background: var(--paper);
}
.customer-page .product-card img,
.customer-page .product-image-button img {
  width: 100%; height: 100%; min-height: 0; aspect-ratio: 1;
  border: 0; object-fit: contain; background: var(--paper);
}
.customer-page .product-body { padding: 4px 4px 4px 0; gap: 12px; }
.customer-page .product-title { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.customer-page .product-title h2 {
  display: block; min-height: 0; overflow: visible;
  font-size: 16px; font-weight: 600; line-height: 1.5; word-break: keep-all;
}
.customer-page .price { margin-top: 8px; color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1.25; }
.customer-page .full-box { margin-top: 4px; font-weight: 400; font-size: 12px; line-height: 1.5; }
.customer-page .stock {
  color: var(--muted); background: var(--paper); padding: 4px 8px;
  border-radius: 6px; font-size: 12px; font-weight: 400; text-align: left;
  white-space: normal; justify-self: start;
}
.customer-page .quantity-controls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.customer-page .stepper {
  width: 132px; height: 44px; grid-template-columns: 44px 44px 44px;
  border: 1px solid var(--line); border-radius: var(--radius-control); margin: 0;
}
.customer-page .stepper button { height: 44px; color: var(--accent-dark); background: var(--soft); font-weight: 600; }
.customer-page .stepper span { font-weight: 600; color: var(--ink); }
.customer-page .full-box-button,
.customer-page .product-lineup-button,
.customer-page .product-lineup-button.has-lineup-image {
  min-height: 44px; width: auto; padding: 8px 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-control);
  color: var(--ink); font-size: 12px; font-weight: 600;
}
.customer-page .primary-button,
.customer-page .checkout-bar .primary-button { background: var(--accent); color: white; border-radius: var(--radius-control); font-weight: 600; min-height: 48px; }
.customer-page .primary-button:hover,
.customer-page .checkout-bar .primary-button:hover { background: var(--accent-dark); }
.customer-page .checkout-bar {
  background: rgb(255 255 255 / 97%); border-top: 1px solid var(--line);
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgb(48 40 60 / 4%);
}
.customer-page .checkout-inner { max-width: 672px; grid-template-columns: 1fr auto; gap: 16px; }
.customer-page .checkout-inner .primary-button { min-width: 152px; width: auto; padding: 12px 24px; }
.customer-page .checkout-total strong { font-size: 22px; line-height: 1.25; font-weight: 700; }
.customer-page .checkout-total span { display: block; margin-top: 4px; font-size: 12px; }
.customer-page .customer-contact-links {
  position: static; display: flex; justify-content: flex-end; gap: 8px;
  margin: 0 0 8px; border: 0; background: none; box-shadow: none;
  width: 100%; border-radius: 0;
}
.customer-page .customer-contact-links a,
.customer-page .customer-contact-links .contact-chat {
  min-height: 44px; width: auto; padding: 12px 16px; border: 1px solid var(--line);
  background: var(--panel); border-radius: var(--radius-control); color: var(--muted);
  font-size: 13px; font-weight: 600;
}
.customer-page .modal { border-radius: var(--radius-card); border: 1px solid var(--line); }
.customer-page .modal::backdrop { background: rgb(48 40 60 / 38%); }
.customer-page .modal .ghost-button { border-radius: var(--radius-control); color: var(--ink); }
.customer-page :is(button, a, input, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (max-width: 600px) {
  .customer-page .customer-shell { padding: 24px 16px 132px; }
  .customer-page .topbar { gap: 20px; padding-bottom: 20px; }
  .customer-page .topbar h1 { font-size: 26px; }
  .customer-page .nav-links { gap: 4px; flex-wrap: nowrap; }
  .customer-page .nav-links a, .customer-page .nav-links button { padding: 8px 4px; font-size: 12px; min-width: 0; }
  .customer-page .product-card { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 12px; }
  .customer-page .product-image-button { width: 120px; min-height: 120px; }
  .customer-page .product-body { padding: 0; }
  .customer-page .price { font-size: 18px; }
  .customer-page .quantity-controls { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .customer-page .stepper { grid-column: 1/-1; width: 100%; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .customer-page .full-box-button, .customer-page .product-lineup-button { padding: 8px 4px; width: 100%; font-size: 12px; }
  .customer-page .checkout-bar { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .customer-page .checkout-inner .primary-button { min-width: 120px; padding: 12px 20px; }
}
@media (max-width: 350px) {
  .customer-page .product-card { grid-template-columns: 96px minmax(0,1fr); gap: 8px; }
  .customer-page .product-image-button { width: 96px; min-height: 96px; }
  .customer-page .brand-description { font-size: 13px; }
}

/* Second presentation: playful lilac, with all existing controls preserved. */
.customer-page .topbar {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 24px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(125deg, #f1e9ff 0%, #fff0f5 64%, #fff8e7 100%);
  margin-bottom: 12px; gap: 20px;
}
.customer-page .topbar::before {
  content: ""; position: absolute; right: -36px; top: -46px;
  width: 160px; height: 160px; border: 24px solid rgb(255 255 255 / 55%);
  border-radius: 50%; z-index: -1; pointer-events: none;
}
.customer-page .brand-kicker { margin-bottom: 12px; letter-spacing: .14em; }
.customer-page .brand-spark {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: white; border-radius: 12px; color: var(--accent); font-size: 26px;
  transform: rotate(-8deg);
}
.customer-page .topbar h1 { font-weight: 800; }
.customer-page .brand-description { color: #675576; margin-top: 8px; }
.customer-page .nav-links a, .customer-page .nav-links button {
  border-color: rgb(255 255 255 / 80%); background: rgb(255 255 255 / 86%);
}
.customer-page .nav-links #myOrderButton {
  color: var(--accent-dark); background: #ede1ff; border-color: #d9c7f4;
}
.customer-page .group-title h2 { gap: 8px; font-size: 18px; }
.customer-page .group-title h2::before {
  content: ""; width: 8px; height: 8px; background: #c3a5ec;
  border-radius: 3px; transform: rotate(12deg);
}
.customer-page .group-title span { padding: 4px 8px; background: var(--soft); border-radius: 20px; color: var(--accent-dark); }
.customer-page .product-card { box-shadow: 0 3px 16px rgb(69 42 103 / 4%); }
.customer-page .product-image-button { border-radius: 14px; }
.customer-page .stock { background: var(--soft); color: #69567f; }
.customer-page .stepper button { background: #f0e8fc; }
.customer-page .full-box-button { background: #fff6ed; border-color: #efe2d3; color: #805b36; }
.customer-page .product-lineup-button.has-lineup-image { background: #f1edff; border-color: #dfd6f1; color: var(--accent-dark); }
.customer-page .checkout-bar .primary-button:not(:disabled) { box-shadow: 0 4px 12px rgb(112 68 183 / 18%); }
@media (max-width: 600px) {
  .customer-page .customer-shell { padding-top: 16px; }
  .customer-page .topbar { padding: 20px 16px 16px; gap: 16px; }
  .customer-page .topbar h1 { font-size: 25px; }
  .customer-page .brand-description { font-size: 13px; }
  .customer-page .nav-links { gap: 4px; }
  .customer-page .nav-links a, .customer-page .nav-links button { font-size: 11px; }
}
