/* Shared customer-facing layout; loaded after the component styles. */
body { font-size: 16px; }
.site-header {
  height: auto;
  min-height: 96px;
  padding-block: 20px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand { flex-shrink: 0; }
.header-right {
  width: auto;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.site-header .header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 15px;
  border: 1px solid #ddcde6;
  border-radius: 12px;
  background: #fffafc;
  color: #58376e;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.site-header .header-link:hover { background: #f0e5f6; border-color: #ac8ac1; }
.site-header #open-cart { background: #efe4f5; }
.site-header #open-tracking { min-height: 46px; }
.site-header #open-cart:hover { background: #e8d7f0; }
.site-header #cart-count {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  min-width: 25px;
  min-height: 25px;
  padding: 3px 7px;
  border-radius: 8px;
  background: #674180;
  color: #fff;
  font-size: 13px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.intro-copy > p { font-size: 16px; }
.intro-note { font-size: 14px; line-height: 1.5; }
.eyebrow, .form-heading .eyebrow { font-size: 12px; line-height: 1.6; }
.mode-tabs { background: #f2eaf7; }
.mode-tabs button { color: #705580; }
.config-card, .preview-column { min-width: 0; }
.form-step > legend, .form-step > h3 { font-size: 16px; line-height: 1.45; }
.variant-card { font-size: 14px; }
.color-field legend, .label-row label, label[for=quantity], .size-row label,
#nfc-fields label, .two-fields label, #customer-form label { font-size: 14px; line-height: 1.5; }
.color-field legend { flex-wrap: wrap; }
.label-row > span, .field-hint, .optional, .preview-disclaimer,
.download-model-button small, .preview-tag, .stage-instruction,
.preview-bottom > div, .preview-bottom > span { font-size: 13px; line-height: 1.55; }
.field-hint, .preview-disclaimer, .download-model-button small { color: #776482; }
.preview-tag { min-height: 36px; padding: 7px 12px; letter-spacing: .6px; }
.preview-header > span:first-child { font-size: 14px; }
.download-model-button > span { font-size: 16px; }
.size-row select, #customer-form input, #customer-form select,
#customer-form textarea, .service-dialog input, .service-dialog textarea,
.service-dialog select { font-size: 16px; min-width: 0; max-width: 100%; }
.swatches { gap: 6px; padding: 0; }
.swatch { width: 44px; height: 44px; padding: 6px; margin: 0; align-items: center; justify-content: center; }
.swatch-circle { width: 30px; height: 30px; flex-shrink: 0; }
.nfc-copy { min-width: 0; }
.nfc-copy strong { font-size: 15px; line-height: 1.5; }
.nfc-copy > span, .nfc-copy strong > span { font-size: 13px; line-height: 1.5; }
.nfc-icon, .switch { flex-shrink: 0; }
.quantity-row { flex-wrap: wrap; gap: 12px; }
.quantity-control { height: 46px; }
.quantity-control button { width: 42px; }
.quantity-control input { width: 64px; font-size: 16px; }
.price-top p { font-size: 14px; }
.price-top span { font-size: 13px; }
.primary-button, .secondary-button { font-size: 15px; min-height: 48px; line-height: 1.4; }
.studio-editor .form-action > p { font-size: 13px; line-height: 1.6; }
.form-action > p .icon { flex-shrink: 0; }
.product-color-picker legend, .product-color-option { font-size: 14px; }
.product-color-option { min-height: 44px; }
.product-color-option:has(input:focus-visible) { outline: 3px solid #754699; outline-offset: 3px; }
.shop-cart .shop-heading { flex-direction: row; align-items: center; }
.cart-row label { display: flex; flex-direction: column; gap: 5px; }
.cart-row input { margin-top: 0; }
.closing-note p { font-size: 14px; line-height: 1.7; }
.closing-icon { flex-shrink: 0; }
.service-card.wrap {
  margin: 24px auto 0;
  padding: 28px;
  gap: 24px;
  background: linear-gradient(115deg, #f3eaf9, #faf3e6);
  border-color: #ddcde6;
  border-radius: 20px;
}
.service-card > div { min-width: 0; }
.service-card h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; line-height: 1.2; }
.service-card .primary-button { max-width: 100%; }
.site-footer { gap: 20px; flex-wrap: wrap; font-size: 16px; }
.footer-tagline { font-size: 13px; line-height: 1.5; }
.site-footer > .service-links { max-width: none; font-size: 14px; letter-spacing: 0; text-align: left; gap: 8px 20px; }
.service-links .text-button { flex-shrink: 0; min-height: 44px; padding: 8px 0; color: #674180; }
.dialog-top { align-items: flex-start; gap: 12px; }
.dialog-top .eyebrow { font-size: 12px; padding-top: 11px; }
.dialog-top .icon-button { min-width: 44px; min-height: 44px; flex-shrink: 0; }
.dialog-shell > p, .dialog-description { font-size: 16px; line-height: 1.6; }
.dialog-shell h2 { overflow-wrap: anywhere; }
.dialog-caution { font-size: 13px; line-height: 1.65; }
.checkout-summary > div { font-size: 14px; gap: 16px; }
.checkout-summary > div > span { flex-shrink: 1; }
.checkout-summary strong { min-width: 0; }
.checkout-total { gap: 16px; flex-wrap: wrap; }
.checkout-total > span { font-size: 16px; }
.checkout-status, .checkout-status strong { font-size: 14px; }
.service-dialog .primary-button { width: 100%; }
.service-dialog input[type=file] { font-size: 14px; padding: 10px; }
.service-dialog input[type=file]::file-selector-button { border: 1px solid #d8c4e6; border-radius: 6px; background: #f5eefa; color: #58376e; padding: 8px; margin-right: 8px; }
.tracking-current { line-height: 1.3; }

@media (max-width: 740px) {
  .site-header { min-height: 0; padding-block: 20px 18px; gap: 18px; }
  .brand { font-size: 28px; }
  .header-right { display: grid; grid-template-columns: minmax(0, 1fr) auto; width: 100%; gap: 10px; margin: 0; }
  .site-header .header-link { min-width: 0; min-height: 48px; padding: 10px; gap: 7px; }
  .site-header #open-tracking { min-height: 48px; }
  .site-header .header-link > span { min-width: 0; }
  .site-header .header-link .icon { width: 18px; height: 18px; }
  .intro { padding-block: 28px; }
  .intro h1 { font-size: clamp(36px, 10.5vw, 49px); }
  .intro .eyebrow { font-size: 11px; letter-spacing: 1px; }
  .intro-note { align-items: flex-start; }
  .intro-note .icon { margin-top: 2px; }
  .mode-tabs button { padding: 12px 6px; font-size: 14px; }
  .preview-header { padding: 18px 20px; }
  .preview-bottom { gap: 12px; padding: 12px 20px 20px; }
  .preview-bottom > div { text-align: right; }
  .preview-disclaimer { margin-bottom: 18px; }
  .download-status:empty { min-height: 0; margin: 0 0 20px; }
  .config-card { padding: 26px 20px; }
  .service-card.wrap { align-items: stretch; flex-direction: column; padding: 24px 20px; gap: 20px; }
  .service-card h2 { font-size: 27px; }
  .service-card .primary-button { width: 100%; }
  .site-footer { flex-direction: column; align-items: flex-start; padding-block: 26px; gap: 16px; }
  .site-footer .footer-star { display: none; }
  .dialog-shell, .service-dialog .dialog-shell { padding: 20px; }
  .dialog-shell h2 { font-size: 30px; line-height: 1.2; }
  .dialog-top .eyebrow { font-size: 11px; letter-spacing: 1px; }
}
@media (max-width: 380px) {
  .site-header .header-link { padding-inline: 8px; }
  .site-header .header-link .icon { display: none; }
  .config-card { padding-inline: 16px; }
  .variant-card { padding-inline: 3px; font-size: 13px; }
  .variant-card > svg { width: 54px; }
  .nfc-icon { display: none; }
  .coupon-entry { flex-wrap: wrap; }
  .coupon-entry input { flex-basis: 100%; }
  .coupon-entry button { width: 100%; }
  .dialog-shell, .service-dialog .dialog-shell { padding: 20px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .primary-button, .header-link, .variant-card { transition: none; }
}
