/* ==========================================================================
   Uniy Designz — legacy page styles
   Page-specific rules for pages built before the design system (tokens.css,
   base.css, components.css, layout.css). Each block is deleted when its page
   is rebuilt on the shared components. Do not add new rules here.
   ========================================================================== */

/* ---- Visual tiles (placeholder product art) --------------------------------- */
.visual-tile {
  position: relative; overflow: hidden; aspect-ratio: 1 / 1;
  border-radius: var(--radius-md); background: var(--background-tertiary);
}
.visual-tile img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }

/* ---- Breadcrumb ---------------------------------------------------------------- */
.breadcrumb { font-size: 14px; color: var(--brand-ink-soft); margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--brand-pink); }

/* ---- Product detail ------------------------------------------------------------- */
.pdp-grid { display: grid; gap: 40px; padding-top: 48px; padding-bottom: 48px; }
.pdp-media .visual-tile { border-radius: var(--radius-lg); width: 100%; }
.pdp-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.pdp-preview-grid img { width: 100%; border-radius: 12px; border: 1px solid var(--brand-border); }
.pdp-preview-cap { text-align: center; font-size: 12px; font-weight: 500; color: var(--brand-ink-soft); background: var(--brand-cream-deep); padding: 4px 0; border-radius: 0 0 12px 12px; margin-top: -4px; }
.pdp-brand { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--brand-pink); }
.pdp-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; margin-top: 4px; }
.pdp-desc { margin-top: 12px; color: var(--brand-ink-soft); }
.pdp-method { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand-ink-soft); margin-top: 12px; }
.pdp-method svg { width: 14px; height: 14px; color: var(--text-secondary); }
.pdp-price { font-weight: 600; font-size: 26px; font-variant-numeric: tabular-nums; margin-top: 20px; }
.option-group { margin-top: 20px; }
.option-group-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.option-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.option-chip {
  border: 1px solid var(--brand-border); border-radius: 999px; padding: 7px 14px; font-size: 14px;
  background: #fff; color: var(--brand-ink-soft);
}
.option-chip.selected { border-color: var(--brand-pink); background: rgba(214,18,126,0.08); color: var(--brand-pink); }
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--brand-border); border-radius: 999px; }
.qty-control button { width: 32px; height: 32px; background: none; border: none; color: var(--brand-ink-soft); font-size: 16px; }
.qty-control span { width: 28px; text-align: center; font-size: 14px; }
.pdp-policy-note { font-size: 12px; color: var(--brand-ink-soft); margin-top: 16px; }
.pdp-policy-note a { color: var(--brand-pink); text-decoration: underline; }
@media (min-width: 900px) { .pdp-grid { grid-template-columns: 1fr 1fr; } }

/* ---- Personalizer modal ----------------------------------------------------------- */
.pz-overlay {
  display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.4);
  align-items: center; justify-content: center; padding: 16px;
}
.pz-overlay.open { display: flex; }
.pz-modal {
  width: 100%; max-width: 760px; max-height: 92vh; overflow: hidden;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
}
.pz-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--brand-border); }
.pz-header-title { font-family: var(--font-display); font-weight: 600; }
.pz-header-sub { font-size: 12px; color: var(--brand-ink-soft); margin-top: 2px; }
.pz-close { background: none; border: none; color: var(--brand-ink-soft); padding: 6px; border-radius: 999px; }
.pz-close:hover { background: var(--brand-cream-deep); }
.pz-body { flex: 1; overflow-y: auto; padding: 20px; display: grid; gap: 20px; }
.pz-side-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.pz-side-tab { border: none; border-radius: 999px; padding: 6px 16px; font-size: 14px; font-weight: 600; background: var(--brand-cream-deep); color: var(--brand-ink-soft); }
.pz-side-tab.active { background: var(--brand-pink); color: #fff; }
.pz-side-tab .dot { display: inline-block; width: 6px; height: 6px; border-radius: 999px; background: currentColor; margin-left: 6px; }
.pz-canvas-wrap {
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(214,18,126,0.25); border-radius: var(--radius-md); background: var(--brand-cream-deep);
  padding: 8px; width: 436px; height: 436px; max-width: 100%;
}
.pz-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.pz-tool-btn {
  display: flex; align-items: center; gap: 6px; border-radius: 999px; padding: 7px 14px;
  font-size: 12px; font-weight: 600; background: var(--brand-ink); color: #fff; border: none;
}
.pz-tool-btn svg { width: 14px; height: 14px; }
.pz-tool-btn.outline { background: #fff; border: 1px solid var(--brand-border); color: var(--brand-ink-soft); }
.pz-tool-btn:disabled { opacity: 0.4; }
.pz-field-label { font-size: 12px; font-weight: 600; color: var(--brand-ink-soft); margin-bottom: 6px; }
.pz-select { width: 100%; border: 1px solid var(--brand-border); border-radius: 8px; padding: 7px 10px; font-size: 14px; }
.pz-swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.pz-swatch { width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--brand-border); }
.pz-swatch.selected { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--brand-pink); }
.pz-layers { display: flex; flex-direction: column; gap: 4px; }
.pz-layer-item { background: var(--brand-cream-deep); border-radius: 8px; padding: 5px 8px; font-size: 12px; color: var(--brand-ink-soft); }
.pz-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--brand-border); }
.pz-footer-note { font-size: 12px; color: var(--brand-ink-soft); }
@media (min-width: 768px) { .pz-body { grid-template-columns: 1fr 240px; } }

/* ---- Cart ------------------------------------------------------------------------- */
.product-card-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.cart-layout { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 14px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); padding: 14px; }
.cart-item-thumb { width: 80px; height: 80px; border-radius: 12px; flex-shrink: 0; object-fit: contain; background: #fff; border: 1px solid var(--brand-border); }
.cart-item-thumb.visual-tile { border: none; }
.cart-item-body { flex: 1; }
.cart-item-top { display: flex; justify-content: space-between; gap: 8px; }
.cart-item-name { font-weight: 500; }
.cart-item-name:hover { color: var(--brand-pink); }
.cart-item-variant { font-size: 13px; color: var(--brand-ink-soft); }
.cart-item-personalized { font-size: 11px; font-weight: 600; color: var(--brand-pink); margin-top: 4px; }
.cart-item-remove { background: none; border: none; color: var(--brand-ink-soft); padding: 4px; }
.cart-item-remove:hover { color: var(--brand-pink); }
.cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.cart-summary { align-self: flex-start; border: 1px solid var(--brand-border); border-radius: var(--radius-md); padding: 24px; }
.cart-summary-row { display: flex; justify-content: space-between; color: var(--brand-ink-soft); }
.cart-summary-row strong { color: var(--brand-ink); }
.cart-summary-hint { font-size: 12px; color: var(--brand-ink-soft); margin-top: 4px; }
.cart-empty { text-align: center; padding: 96px 16px; }
.cart-empty svg { width: 48px; height: 48px; color: var(--text-secondary); margin: 0 auto; }
#checkout-error { font-size: 12px; color: var(--brand-pink-dark); margin-top: 8px; }
@media (min-width: 1024px) { .cart-layout { grid-template-columns: 1fr 320px; } }

/* ---- Forms ------------------------------------------------------------------------ */
.form-card { display: grid; gap: 16px; background: #fff; border: 1px solid var(--brand-border); border-radius: var(--radius-md); padding: 24px; }
.form-grid-2 { display: grid; gap: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; border: 1px solid var(--brand-border); border-radius: 8px; padding: 9px 12px; font-size: 14px;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: var(--brand-pink); }
.form-suffix-field { display: flex; align-items: center; border: 1px solid var(--brand-border); border-radius: 8px; }
.form-suffix-field input { border: none; }
.form-suffix-field input:focus { outline: none; }
.form-suffix-field span { padding-right: 10px; font-size: 13px; color: var(--brand-ink-soft); }
.form-success { text-align: center; background: var(--brand-cream-deep); border: 1px solid rgba(214,18,126,0.15); border-radius: var(--radius-md); padding: 32px; }
.form-success svg { width: 40px; height: 40px; color: var(--text-secondary); margin: 0 auto; }
.form-success-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; margin-top: 10px; }
.form-success-body { font-size: 14px; color: var(--brand-ink-soft); margin-top: 4px; }
@media (min-width: 640px) { .form-grid-2 { grid-template-columns: 1fr 1fr; } }
.form-field-full { grid-column: 1 / -1; }

/* ---- Contact page ------------------------------------------------------------------- */
.contact-layout { display: grid; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 12px; border: 1px solid var(--brand-border); border-radius: var(--radius-md); padding: 16px; }
.contact-card svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--text-secondary); }
.contact-card-title { font-weight: 600; }
.contact-card-body { font-size: 14px; color: var(--brand-ink-soft); }
@media (min-width: 768px) { .contact-layout { grid-template-columns: 280px 1fr; } }

/* ---- Legal pages --------------------------------------------------------------------------- */
.legal-updated { font-size: 13px; color: var(--brand-ink-soft); margin-top: 4px; }
.legal-body { margin-top: 32px; display: flex; flex-direction: column; gap: 24px; color: var(--brand-ink-soft); }
.legal-body h2 { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--brand-ink); margin-bottom: 8px; }
.legal-body a { color: var(--brand-pink); text-decoration: underline; }
.legal-body ul { list-style: disc; padding-left: 20px; }
.legal-body li { margin-top: 4px; }

/* ---- Narrow-width helpers --------------------------------------------------------------------- */
.max-w-content { max-width: 720px; margin: 0 auto; }
