/* ============================================================
   PAC.CO STORE — Complete frontend design system
   Extracted from: components.css, layout.css, modals.css, responsive.css
   One self-contained file. No dependency on global admin CSS.
   ============================================================ */

/* ===== Store Page Layout Overrides (Scoped to avoid admin conflicts) ===== */
.store-page .container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.store-page .site-main {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

/* ===== Header / Navigation (from components.css) ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 2px solid #ededf0;
  backdrop-filter: blur(14px);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  min-width: 148px;
}

.brand-logo {
  width: 154px;
  max-height: 50px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.nav-links a,
.nav-links button {
  position: relative;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links a::after,
.nav-links button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 999px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links button:hover::after,
.nav-links .active::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* ===== Buttons (from components.css — store-safe only) ===== */
.icon-btn,
.store-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.icon-btn:hover {
  background: var(--soft);
  border-color: #ebebef;
}

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

.badge-count,
.store-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding: 0 5px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.badge-count.show {
  display: flex !important;
}

.button,
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  letter-spacing: 0.01em;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Isolated PAC.CO product buttons */
.pacco-product-btn {
  background: var(--pacco-button-bg) !important;
  color: var(--pacco-button-color) !important;
  border: var(--pacco-button-border) !important;
  border-radius: var(--pacco-button-radius) !important;
}

.pacco-product-btn:not(:disabled):hover {
  background: var(--pacco-button-bg) !important;
  color: var(--pacco-button-color) !important;
  border: var(--pacco-button-border) !important;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.pacco-product-btn:not(:disabled):active {
  transform: scale(0.98);
  box-shadow: none;
}

.pacco-product-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: #888 !important;
  color: #fff !important;
  border: 2px solid transparent !important;
}

.button {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.button span {
  display: inline-block;
  transition: transform 160ms ease;
}

.button:hover {
  background: #252525;
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

.button:active {
  transform: scale(0.98);
}

.button:hover span[aria-hidden="true"] {
  transform: translateX(4px);
}

.button.secondary {
  background: var(--paper);
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--soft);
  box-shadow: none;
  transform: translateY(-1px);
}

.button.secondary:active {
  transform: scale(0.98);
}

.button.ghost {
  border-color: #dcdce2;
  background: var(--paper);
  color: var(--ink);
}

.button.ghost:hover {
  border-color: var(--ink);
  box-shadow: none;
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
}

.button.small {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.82rem;
}

.primary-cta,
.store-btn-primary {
  width: 100%;
  height: 58px;
  font-size: 1.1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 20px;
}

.primary-cta[disabled],
.primary-cta.is-disabled,
.store-btn-primary[disabled],
.store-btn-primary.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#footerShipping .primary-cta[disabled],
#footerShipping .primary-cta.is-disabled,
#ipadFooterShipping .primary-cta[disabled],
#ipadFooterShipping .primary-cta.is-disabled {
  background: #c7c7c7;
  border: none;
  opacity: 1;
  cursor: not-allowed;
  pointer-events: none;
}

.checkout-validation-notice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff4f4;
  color: #c0392b;
  border: 1px solid #f5c6c6;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-6px);
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  border-width: 0;
  overflow: hidden;
  transition: opacity 220ms ease, transform 220ms ease, max-height 260ms ease, padding 260ms ease, margin-top 260ms ease, border-width 260ms ease;
  pointer-events: none;
}

.checkout-validation-notice.show {
  opacity: 1;
  transform: translateY(0);
  max-height: 80px;
  padding-top: 12px;
  padding-bottom: 12px;
  margin-top: 12px;
  border-width: 1px;
  position: relative;
  z-index: 30;
}

.checkout-validation-notice svg {
  flex-shrink: 0;
}

.minimal-btn,
.store-btn-minimal {
  width: 100%;
  height: 48px;
  background: transparent;
  color: var(--muted);
  font-weight: 850;
  font-size: 0.95rem;
}

.shipping-box-btn {
  position: relative;
  border: 2px solid transparent !important;
  background: transparent !important;
  color: var(--ink) !important;
  box-shadow: none !important;
  transition: all 160ms cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.shipping-box-btn .badge-count {
  display: flex !important;
}

.shipping-box-btn:hover {
  transform: scale(1.08) translateY(-1px) !important;
  background: var(--soft) !important;
  box-shadow: none !important;
}

.shipping-box-btn:active {
  transform: scale(0.95) translateY(1px) !important;
  box-shadow: none !important;
}

@keyframes paccoBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes shippingBoxBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  15% {
    transform: translateY(-3.5px);
  }

  30% {
    transform: translateY(0);
  }

  45% {
    transform: translateY(-1.5px);
  }

  60%,
  80% {
    transform: translateY(0);
  }
}

.shipping-box-active svg {
  animation: shippingBoxBounce 2.5s infinite ease-in-out;
}

@keyframes badgeGlowPulse {

  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 199, 0, 0.7);
  }

  50% {
    box-shadow: 0 0 8px 3px rgba(255, 199, 0, 0.45);
  }
}

.shipping-badge-pulse {
  animation: badgeGlowPulse 2s infinite ease-in-out;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 100px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-btn.primary {
  background: var(--ink);
  color: var(--paper);
}

.pill-btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--border);
}

.pill-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Fields / Inputs (from components.css) ===== */
.field,
.store-field {
  width: 100%;
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.field::placeholder {
  color: #a0a0a5;
}

.select-field,
.store-select {
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 999px;
  background: var(--paper);
  padding: 8px 14px;
  font-weight: 750;
}

.search-strip {
  display: none;
  border-bottom: 2px solid #ededf0;
  background: #fbfbfc;
}

.search-strip.open {
  display: block;
}

.search-strip .container {
  padding: 14px 0;
}

.search-input {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  outline: none;
  background: var(--paper);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.pill-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Custom Dropdown (from components.css) ===== */
.custom-select-wrapper {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 42px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  background: var(--paper);
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.custom-select-trigger:hover {
  border-color: var(--ink);
}

.custom-select-trigger.active {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06);
}

.custom-select-trigger span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 0.95rem;
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--paper);
  border: 2px solid #d8d8df;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 200ms ease, opacity 200ms ease;
  display: flex;
  flex-direction: column;
}

.custom-select-wrapper.open .custom-select-dropdown {
  max-height: 320px;
  opacity: 1;
}

.dropdown-search {
  padding: 10px;
  border-bottom: 1px solid #ededf0;
}

.dropdown-search input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #ededf0;
  border-radius: 8px;
  outline: none;
  font-size: 0.9rem;
}

.dropdown-search input:focus {
  border-color: var(--ink);
}

.dropdown-options {
  overflow-y: auto;
  max-height: 240px;
  padding: 6px;
}

.dropdown-option {
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 150ms ease;
  font-size: 0.95rem;
}

.dropdown-option:hover {
  background: #f4f4f6;
}

.dropdown-option.selected {
  background: var(--ink);
  color: #fff;
}

.dropdown-option.selected span {
  color: #fff;
}

.dropdown-option span.flag {
  font-size: 1.2rem;
}

.dropdown-option.hidden {
  display: none;
}

/* ===== Shipping Methods (from components.css) ===== */
.shipping-methods-wrapper {
  grid-column: 1 / -1;
  margin-top: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 400ms ease, opacity 400ms ease, margin 400ms ease;
}

.shipping-methods-wrapper.show {
  max-height: 800px;
  opacity: 1;
  margin-top: 10px;
}

.shipping-methods-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.shipping-method-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 2px solid #d8d8df;
  border-radius: 12px;
  cursor: pointer;
  transition: all 200ms ease;
  background: var(--paper);
}

.shipping-method-card:hover {
  border-color: var(--ink);
}

.shipping-method-card.active {
  border-color: var(--ink);
  background: #fafafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.shipping-method-info strong {
  display: block;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 4px;
  font-weight: 800;
}

.shipping-method-info span {
  font-size: 0.85rem;
  color: var(--muted);
}

.shipping-method-price {
  font-weight: 850;
  font-size: 1.1rem;
}

/* ===== Swatch / Stock / Status ===== */
.swatches {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.swatch {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--local-status-bg, #efeff2);
  border: 1px solid transparent;
  color: var(--local-status-color, #565660);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-badge.new {
  --local-status-bg: #fee2e2;
  --local-status-color: #b91c1c;
}

.status-badge.coming_soon {
  --local-status-bg: #fef08a;
  --local-status-color: #713f12;
}

.status-badge.restocked {
  --local-status-bg: #dbeafe;
  --local-status-color: #1e40af;
}

.status-badge.paused {
  --local-status-bg: #efeff2;
  --local-status-color: #565660;
}

.status-badge.cancelled {
  --local-status-bg: #ffe1e1;
  --local-status-color: #8f1d1d;
}

.status-badge.paid,
.status-badge.shipped {
  --local-status-bg: #e2f1ff;
  --local-status-color: #15528b;
}

.status-badge.done {
  --local-status-bg: #efeff2;
  --local-status-color: #565660;
}

/* Stock Badges - Scoped to Product Cards and Modals */
.product-card .stock-badge,
.modal-panel .stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  position: relative;
  top: 1px;
  border-radius: var(--pacco-badge-radius, 999px);
  background: var(--pacco-stock-badge-bg, var(--local-stock-bg, #dcfce7)) !important;
  border: var(--pacco-stock-badge-border, 1px solid transparent) !important;
  color: var(--pacco-stock-badge-color, var(--local-stock-color, #166534)) !important;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.product-card .stock-badge.low,
.modal-panel .stock-badge.low {
  --local-stock-bg: #ffedd5;
  --local-stock-color: #c2410c;
}

.product-card .stock-badge.out,
.modal-panel .stock-badge.out {
  --local-stock-bg: #fee2e2;
  --local-stock-color: #991b1b;
}

/* Generic Stock Badge fallback */
.stock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--local-stock-bg, #dcfce7);
  border: 1px solid transparent;
  color: var(--local-stock-color, #166534);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.stock-badge.low {
  --local-stock-bg: #ffedd5;
  --local-stock-color: #c2410c;
}

.stock-badge.out {
  --local-stock-bg: #fee2e2;
  --local-stock-color: #991b1b;
}

.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid #d8d8df;
  border-radius: 999px;
  padding: 4px;
}

.qty-controls button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--soft);
  font-weight: 900;
}

.empty-state {
  padding: 70px 20px;
  border: 3px dashed #d6d6dc;
  border-radius: 24px;
  text-align: center;
  color: var(--muted);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field,
.store-form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

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

.form-field small {
  color: #ff4d4f;
  font-size: 0.9rem;
  margin-left: 2px;
}

.form-field span {
  font-size: 0.88rem;
  font-weight: 850;
  color: var(--ink);
}

/* Read-only email field for logged-in users */
.field[readonly],
.field.is-locked {
  background: #faf8f5 !important;
  color: #333 !important;
  cursor: default;
  opacity: 0.9;
  border-color: #ddd !important;
  box-shadow: none !important;
}

/* Account-locked layout: green status line below the email */
.form-field.is-account-locked .field {
  margin-bottom: 2px;
}

.email-account-status {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #2a9d3f;
  line-height: 1.45;
}
.email-account-status svg { flex-shrink: 0; margin-top: 2px; }
.email-account-status strong { color: #1e7a31; font-weight: 800; }

/* ===========================================================
   Checkout Account Row — Shipping Details / Logged-in Profile
   =========================================================== */
.account-box {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid #ededf0;
  border-radius: 18px;
  background: var(--paper);
  margin-bottom: 20px;
  min-height: 60px;
  transition: border-color 160ms ease;
}

.account-box:hover {
  border-color: #d8d8df;
}

.account-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--soft);
  border: 2px solid #ededf0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.account-avatar-text {
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.account-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.account-info-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
  word-break: break-word;
}

.account-info-email {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  word-break: break-all;
}

.account-pills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #ededf0;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 100ms ease;
  min-height: 36px;
  white-space: nowrap;
}

.account-pill:hover {
  background: var(--soft);
}

.account-pill:active {
  transform: translateY(1px);
}

.account-pill:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.account-pill-divider {
  width: 1px;
  height: 18px;
  background: #ededf0;
  flex-shrink: 0;
}

/* ===== Saved Address Picker (checkout) ===== */
.acct-saved-addr-picker,
.saved-address-picker {
  margin-top: 14px;
  padding: 14px;
  background: #fbfbfd;
  border: 2px solid #d8d8df; /* matches .field / .store-field */
  border-radius: 12px;       /* matches .field / .store-field */
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.acct-saved-addr-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.acct-saved-addr-header .text-link { text-decoration: none; }
.acct-saved-addr-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
}
.acct-saved-addr-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 2px solid #d8d8df; /* matches .field / .store-field */
  border-radius: 12px;       /* matches .field / .store-field */
  padding: 10px 14px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
  user-select: none;
}
.acct-saved-addr-card:hover { border-color: var(--ink); background: #fafaf9; }
.acct-saved-addr-card:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.06); }
.acct-saved-addr-card.is-active {
  background: #f3f3f3;
  border-color: #d8d8df;
  color: var(--ink);
}
.acct-saved-addr-card.is-active .acct-saved-addr-title { color: var(--ink); }
.acct-saved-addr-body { display: inline-flex; align-items: center; min-width: 0; }
.acct-saved-addr-title {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.acct-saved-addr-line {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.acct-saved-addr-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 900;
  background: var(--ink);
  color: var(--paper);
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.acct-saved-addr-card.is-active .acct-saved-addr-badge {
  background: var(--ink);
  color: var(--paper);
}

/* ===== Responsive ===== */

/* iPad portrait — tighten gaps, allow wrapping */
@media (max-width: 820px) {
  .account-box {
    gap: 12px;
    padding: 12px 16px;
  }
  .account-avatar {
    width: 40px;
    height: 40px;
  }
  .account-pill {
    padding: 7px 12px;
    font-size: 0.8rem;
  }
}

/* Phone — stack: name/email on top row, pills wrap below */
@media (max-width: 560px) {
  .account-box {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    min-height: 52px;
  }
  .account-avatar {
    width: 36px;
    height: 36px;
  }
  .account-avatar-text {
    font-size: 0.9rem;
  }
  .account-info {
    flex: 1 1 calc(100% - 52px);
    min-width: 0;
  }
  .account-info-name {
    font-size: 0.95rem;
  }
  .account-info-email {
    font-size: 0.8rem;
  }
  .account-pills {
    flex: 1 0 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  .account-pill {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* Small phone — full-width stacked pills */
@media (max-width: 420px) {
  .account-box {
    padding: 10px 12px;
    gap: 8px;
  }
  .account-pills {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .account-pill {
    width: 100%;
    padding: 9px 12px;
    font-size: 0.82rem;
  }
  .account-pill-divider {
    display: none;
  }
}

/* Invalid state (used when guest enters bad email) */
.field.is-invalid,
.store-field.is-invalid {
  border-color: #ff4d4f !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.15) !important;
  animation: shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-3px); }
  40%, 60% { transform: translateX(3px); }
}
  margin: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 20px;
}

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

/* ===== Toast (from components.css) ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(480px, calc(100% - 32px));
  padding: 12px 18px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 850;
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 200ms ease, opacity 200ms ease;
  pointer-events: none;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

/* ===== Cart & Badge Animations ===== */
@keyframes cartBounce {
  0% {
    transform: scale(1);
  }

  20% {
    transform: scale(0.8) rotate(-10deg);
  }

  45% {
    transform: scale(1.2) rotate(10deg);
  }

  65% {
    transform: scale(0.95) rotate(-5deg);
  }

  85% {
    transform: scale(1.05) rotate(0deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@keyframes badgePop {
  0% {
    transform: scale(0);
    opacity: 0;
  }

  50% {
    transform: scale(1.4);
    opacity: 1;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes cartRipple {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

.cart-bouncing svg {
  animation: cartBounce 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-bouncing::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  background: var(--yellow);
  z-index: -1;
  animation: cartRipple 600ms ease-out;
}

.badge-popping {
  animation: badgePop 450ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Hero Section (from layout.css) ===== */
.hero-section {
  --hero-radius: 0px;
  padding: 30px 0 12px;
}
.hero-section.border-sharp {
  --hero-radius: 0px;
}
.hero-section.border-small {
  --hero-radius: 18px;
}
.hero-section.border-big {
  --hero-radius: 32px;
}
.hero-section.border-capsule {
  --hero-radius: 40px;
}

.hero-slider {
  position: relative;
  overflow: hidden;
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--hero-radius);
  background: var(--paper);
  transition: height 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-tray {
  display: flex;
  align-items: flex-start;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
}

.hero-frame {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 80px 100px;
  gap: 50px;
  height: 100%;
  min-height: 520px;
  box-sizing: border-box;
}

.hero-copy {
  flex: 1.1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 2;
}

.hero-media {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.hero-art-shell {
  line-height: 0;
  display: inline-block;
  overflow: hidden;
  border-radius: var(--hero-radius) !important;
  clip-path: inset(0 round var(--hero-radius));
}

.hero-art {
  width: 100%;
  max-width: 480px;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: var(--hero-radius) !important;
}

.hero-art img {
  border-radius: var(--hero-radius) !important;
}

.hero-title {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.96;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.hero-text {
  margin: 22px 0 32px;
  max-width: 380px;
  color: #54545b;
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
}

/* Staggered slide-in and fade-in entry transitions for active slide contents */
.hero-slide .eyebrow,
.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1), transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.hero-slide .hero-art {
  opacity: 0;
  transform: scale(0.9) rotate(-1deg);
  transition: opacity 1000ms cubic-bezier(0.16, 1, 0.3, 1), transform 1000ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

/* Active staggered delays */
.hero-slide.active .eyebrow {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 100ms;
}

.hero-slide.active .hero-title {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 220ms;
}

.hero-slide.active .hero-text {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 340ms;
}

.hero-slide.active .hero-actions {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 460ms;
}

.hero-slide.active .hero-art {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  transition-delay: 180ms;
}

/* Fast fade-out when transitioning out of focus (prevents messy visual overlap) */
.hero-slide:not(.active) .eyebrow,
.hero-slide:not(.active) .hero-title,
.hero-slide:not(.active) .hero-text,
.hero-slide:not(.active) .hero-actions {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 300ms ease, transform 300ms ease;
  transition-delay: 0ms !important;
}

.hero-slide:not(.active) .hero-art {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 300ms ease, transform 300ms ease;
  transition-delay: 0ms !important;
}

.hero-actions .button {
  padding: 14px 28px;
  font-size: 1.15rem;
  min-height: 52px;
  border-radius: 999px;
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--ink);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 150ms ease, background 150ms ease;
}

.hero-nav-btn:hover {
  background: #f0f0f0;
  transform: translateY(-50%) scale(1.05);
}

.hero-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-nav-btn.prev {
  left: 24px;
}

.hero-nav-btn.next {
  right: 24px;
}

.hero-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-top: 18px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
}

.hero-dot.active {
  width: 34px;
  background: var(--ink);
}

/* ===== Feature Grid (from layout.css) ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 12px 0 24px;
}

.store-page .feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-card {
  min-height: 92px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: var(--psb-width, 3px) solid var(--feature-border, var(--psb-color, var(--ink)));
  border-radius: var(--psb-radius, 32px);
  background: var(--paper);
}

.store-page .feature-card {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  .store-page .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 560px) {
  .store-page .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.feature-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  overflow: hidden;
  font-size: 20px;
}

.feature-card strong {
  display: block;
  font-size: 0.95rem;
}

.feature-card span {
  color: var(--muted);
  font-size: 0.82rem;
}

/* ===== Products Grid (from layout.css) ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.store-page .products-grid {
  gap: 24px;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  position: relative;
  overflow: visible;
  border: var(--pacco-card-border, 3px solid var(--ink));
  border-radius: 32px;
  background: var(--paco-card-bg, var(--paper));
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--paco-card-shadow, none);
}

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

.product-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0;
  background: #f7f7f8;
  border: var(--pacco-image-border, none);
}

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

/* Sold-out stamp overlay — retro rubber-stamp style */
.sold-out-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-10deg);
  z-index: 5;
  pointer-events: none;
  background: #fff;
  color: #000;
  font-weight: 800;
  font-size: clamp(1rem, 4vw, 1.6rem);
  letter-spacing: 3px;
  text-align: center;
  padding: 12px 10px;
  border: 2px solid #000;
  line-height: 1.2;
  white-space: nowrap;
  width: 70%;
  max-width: 200px;
  box-shadow: none;
  text-shadow: none;
  filter: none !important;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 16px 20px;
  border-top: var(--pacco-card-border, 3px solid var(--ink));
}

.product-kicker {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card .prod-status-badge,
.modal-panel .prod-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border: var(--pacco-status-badge-border, 1px solid transparent) !important;
  border-radius: var(--pacco-badge-radius, 999px) !important;
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  color: var(--pacco-status-badge-color, var(--local-status-color, #565660)) !important;
  background: var(--pacco-status-badge-bg, var(--local-status-bg, #efeff2)) !important;
}

.product-card .prod-status-badge.new,
.modal-panel .prod-status-badge.new {
  --local-status-bg: #fee2e2;
  --local-status-color: #b91c1c;
  background: #fee2e2;
  color: #b91c1c;
}

.product-card .prod-status-badge.coming_soon,
.modal-panel .prod-status-badge.coming_soon {
  --local-status-bg: #fef08a;
  --local-status-color: #713f12;
  background: #fef08a;
  color: #713f12;
}

.product-card .prod-status-badge.restocked,
.modal-panel .prod-status-badge.restocked {
  --local-status-bg: #dbeafe;
  --local-status-color: #1e40af;
  background: #dbeafe;
  color: #1e40af;
}

.product-card .prod-status-badge.paused,
.modal-panel .prod-status-badge.paused {
  --local-status-bg: #efeff2;
  --local-status-color: #565660;
  background: #efeff2;
  color: #565660;
}

/* Outline Mode styling */
.product-card.status-badge-outline .prod-status-badge,
.modal-panel.status-badge-outline .prod-status-badge {
  background: transparent !important;
  border: 1px solid var(--pacco-status-badge-color, var(--local-status-color)) !important;
  color: var(--pacco-status-badge-color, var(--local-status-color)) !important;
}

.product-card.stock-badge-outline .stock-badge,
.modal-panel.stock-badge-outline .stock-badge {
  background: transparent !important;
  border: 1px solid var(--pacco-stock-badge-color, var(--local-stock-color)) !important;
  color: var(--pacco-stock-badge-color, var(--local-stock-color)) !important;
}

.product-title {
  margin: 0 0 2px;
  font-size: 1.05rem;
  line-height: 1.2;
  font-weight: 900;
  color: var(--paco-title-color, var(--ink));
  text-align: var(--paco-text-align, left);
}

.product-desc {
  min-height: 0;
  margin: 0 0 8px;
  color: var(--paco-text-color, var(--muted));
  font-size: 0.88rem;
  text-align: var(--paco-text-align, left);
}

.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  margin-bottom: 16px;
}

.price-group {
  display: flex;
  flex-direction: var(--pacco-price-flex, column);
  gap: 1px;
  line-height: 1.2;
  text-align: var(--pacco-price-align, left);
}
.price-group .price-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.price,
.store-price {
  font-size: var(--pacco-sale-price-size, var(--paco-price-size, 1.35rem));
  font-weight: var(--pacco-sale-price-weight, var(--paco-price-weight, 950));
  color: var(--pacco-sale-price-color, var(--paco-price-color, var(--ink)));
  letter-spacing: -0.02em;
}
.original-price {
  text-decoration: line-through;
  color: var(--pacco-original-price-color, #8E8E93);
  font-size: var(--pacco-original-price-size, 0.72em);
  font-weight: var(--pacco-original-price-weight, 400);
  opacity: var(--pacco-original-price-opacity, 0.55);
  letter-spacing: -0.01em;
}
.sale-price {
  color: var(--pacco-sale-price-color, #111111);
  font-size: var(--pacco-sale-price-size, 1.35rem);
  font-weight: var(--pacco-sale-price-weight, 950);
  letter-spacing: -0.02em;
}
.sale-badge {
  display: inline-block;
  background: var(--pacco-discount-bg, transparent);
  color: var(--pacco-discount-color, #888888);
  font-size: var(--pacco-discount-size, 0.55rem);
  font-weight: var(--pacco-discount-weight, 700);
  padding: var(--pacco-discount-padding, 0px);
  line-height: 1.3;
  border-radius: var(--pacco-discount-radius, 0px);
  vertical-align: baseline;
  letter-spacing: 0.02em;
}
.sale-badge.pill {
  border-radius: 999px;
  padding: 2px 8px;
}
.sale-badge-rect {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  min-height: 18px;
}

/* ===== Homepage Section — Inner Control Radius Sync ===== */
.homepage-section .banner-btn,
.homepage-section .newsletter-input,
.homepage-section .newsletter-btn,
.homepage-section .hero-nav-btn,
.homepage-section .hero-actions .button,
.homepage-section .feature-icon,
.homepage-section .countdown-box,
.homepage-section .btn-play-v2,
.homepage-section .btn-demo,
.homepage-preview-sandbox .banner-btn,
.homepage-preview-sandbox .newsletter-input,
.homepage-preview-sandbox .newsletter-btn,
.homepage-preview-sandbox .hero-nav-btn,
.homepage-preview-sandbox .hero-actions .button,
.homepage-preview-sandbox .feature-icon,
.homepage-preview-sandbox .countdown-box,
.homepage-preview-sandbox .btn-play-v2,
.homepage-preview-sandbox .btn-demo {
  border-radius: var(--pacco-home-radius) !important;
}



/* ===== Overlay (from modals.css) ===== */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(6px);
}

.overlay.open {
  display: block;
}

/* ===== Drawer (Cart) ===== */
.drawer,
.store-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(470px, 100%);
  bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-left: 3px solid var(--ink);
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head,
.store-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px;
  border-bottom: 2px solid #ededf0;
}

.drawer-head h2 {
  margin: 0;
}

.drawer-body,
.store-drawer-body {
  flex: 1;
  overflow: auto;
  padding: 20px;
}

.drawer-foot,
.store-drawer-foot {
  padding: 20px;
  border-top: 2px solid #ededf0;
  background: #fbfbfc;
}

.cart-item,
.order-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 2px solid #ededf0;
}

.cart-item img,
.order-item img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border: 2px solid #ededf0;
  border-radius: 14px;
  background: #f7f7f8;
}

/* Cart remove button — danger styling */
.cart-remove-btn {
  background: none !important;
  border: none !important;
  padding: 4px 6px !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #dc2626 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  transition: opacity 160ms ease !important;
}
.cart-remove-btn:hover {
  opacity: 0.7 !important;
}

/* ===== Modal Base (from modals.css) ===== */
.modal,
.store-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
}

.modal.open {
  opacity: 1;
  visibility: visible;
}

/* ensure auth modal stacks above checkout modal */
#authModal.open {
  z-index: 100;
}

.modal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(8px);
}

/* PAC.CO Product Modal: no backdrop on any device (desktop, iPad, phone) */
#productModal::before {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.modal-panel,
.store-modal-panel {
  position: relative;
  width: min(960px, 100%);
  max-height: min(calc(var(--real-vh, 1vh) * 92), 940px);
  height: fit-content;
  overflow: visible;
  border: 3px solid #000;
  border-radius: 16px;
  background: var(--paper);
  box-shadow: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateY(8px);
  transition: transform 0.25s ease;
}

/* Product modal slide-up from bottom on mobile */
@media (max-width: 820px) {
  #productModal .store-modal-panel {
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.3s ease;
  }
  #productModal.open .store-modal-panel {
    transform: translateY(var(--drag-y, 0));
  }
  /* While dragging, use fast linear transition */
  #productModal .store-modal-panel.is-dragging {
    transition: none !important;
  }
}

.modal.open .modal-panel,
.modal.open .store-modal-panel {
  transform: translateY(0);
}

.modal-panel::-webkit-scrollbar {
  display: none;
}

.modal-head,
.store-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
}

.modal-head h2 {
  margin: 0;
}

.modal-content,
.store-modal-content {
  padding: 0 20px 20px;
}

.modal-close-btn,
.store-modal-close {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--ink);
  border-radius: 50% !important;
  background: var(--paper);
  color: var(--ink);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  flex-shrink: 0;
  box-shadow: none;
  cursor: pointer;
}

.modal-close-btn:hover,
.store-modal-close:hover {
  background: var(--soft);
  border-color: #ebebef;
}

.modal-close-btn:active,
.store-modal-close:active {
  transform: translateY(1px);
}

/* ===== Product Detail Modal ===== */
#productModal .modal-head {
  display: none;
}

.bottom-sheet-drag-handle {
  display: none;
}

#productModal .modal-content {
  padding: 0;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  transition: grid-template-columns 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --dynamic-thumb-pt: 24px;
}

.product-detail.ratio-1-1,
.product-detail.ratio-original {
  grid-template-columns: 1.25fr 0.75fr;
}

.product-detail.ratio-4-5 {
  grid-template-columns: 1fr 1fr;
}

.product-detail.ratio-9-16 {
  grid-template-columns: 0.8fr 1.2fr;
}

.product-detail.ratio-1-1 .detail-image,
.product-detail.ratio-original .detail-image {
  aspect-ratio: 1 / 1;
}

.product-detail.ratio-4-5 .detail-image {
  aspect-ratio: 4 / 5;
}

.product-detail.ratio-9-16 .detail-image {
  aspect-ratio: 9 / 16;
}

.detail-left {
  grid-area: 1 / 1 / 2 / 2;
  padding: 40px 24px 0 40px;
  display: flex;
  flex-direction: column;
}

.detail-right {
  grid-area: 1 / 2 / 2 / 3;
  padding: 40px 40px 0 24px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.detail-thumbs-row {
  grid-area: 2 / 1 / 3 / 2;
  padding: var(--dynamic-thumb-pt, 24px) 24px 60px 40px;
}

.detail-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--paco-image-radius, 0px) !important;
  background: #f7f7f8;
  padding: 0;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.detail-image img {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.thumbs {
  display: flex;
  gap: 10px;
  margin-top: 0px;
  overflow: auto;
  padding: 12px 0;
}

.thumbs button {
  width: 72px;
  height: 72px;
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid #ededf0;
  border-radius: var(--paco-image-radius, 0px) !important;
  background: #fff;
  transition: all 160ms ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumbs button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.thumbs button.active {
  border-color: var(--ink);
  background: var(--paper);
}

.detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.detail-tag {
  padding: 6px 12px;
  background: #f1f1f4;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-title {
  margin: 0 0 2px;
  font-size: 3rem;
  font-weight: 950;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--paco-title-color, var(--ink));
}

.detail-price {
  font-size: var(--paco-price-size, 1.8rem);
  font-weight: var(--paco-price-weight, 950);
  margin-bottom: 8px;
  color: var(--paco-price-color, var(--ink));
}

.price-label {
  display: none;
}

.detail-drop-limit {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.detail-subtitle {
  color: var(--paco-text-color, #888);
  font-size: 0.95rem;
  margin: 0 0 20px;
  line-height: 1.4;
  font-weight: 800;
}

.detail-info {
  margin-top: auto;
  padding-top: 24px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
}

.info-row span {
  color: #999;
}

.stock-status {
  color: #1b6b35;
  font-weight: 900;
}

.detail-actions {
  grid-area: 2 / 2 / 3 / 3;
  padding: var(--dynamic-thumb-pt, 24px) 40px 60px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  justify-content: flex-end;
}

.qty-line {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.9rem;
  font-weight: 950;
  color: #000;
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  background: #f7f7f8;
  border-radius: 999px;
}

.qty-selector button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-weight: 950;
}

.modal-add-btn,
.store-modal-add {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 950;
  transition: all 200ms cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.store-modal-add {
  background: #888;
  color: #fff;
  border-radius: 14px;
  border: none;
}

.modal-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.modal-add-btn:active {
  transform: scale(0.98);
  box-shadow: none;
}

.modal-add-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.modal-add-btn.added {
  background-color: #4ade80 !important;
  background: #4ade80 !important;
  color: #000 !important;
  border: none !important;
  pointer-events: none;
}

/* ===== Option Drops ===== */
.option-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.custom-select-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  user-select: none;
}

.custom-select-container h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.custom-select-trigger {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  background: var(--paper);
  border: 2px solid #ededf0;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 850;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 160ms ease;
}

.custom-select-trigger:hover {
  border-color: var(--ink);
}

.custom-select-trigger svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.custom-select-container.open .custom-select-trigger {
  border-color: var(--ink);
}

.custom-select-container.open .custom-select-trigger svg {
  transform: rotate(180deg);
}

.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 50;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.custom-select-container.open .custom-select-options {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.custom-option {
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  cursor: pointer;
  transition: background 150ms ease;
}

.custom-option:hover {
  background: #f7f7f8;
}

.custom-option.selected {
  background: var(--ink);
  color: var(--paper);
}

.swatch-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

/* ===== Checkout (from modals.css) ===== */
.checkout-panel {
  width: min(640px, 92vw);
  max-height: calc(var(--real-vh, 1vh) * 88);
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
  border-radius: 16px;
}

#checkoutModal .modal-head {
  display: flex;
  position: sticky;
  top: 0;
  background: #f8f8f9;
  padding: 24px 32px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 10;
  align-items: center;
  justify-content: space-between;
}

#checkoutModal .modal-head h2 {
  font-size: 1.35rem;
  font-weight: 950;
  margin: 0;
}

#checkoutModal .modal-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding: 28px 32px;
  background: var(--paper);
  scrollbar-width: none;
}

#checkoutModal .modal-scroll-area::-webkit-scrollbar {
  display: none;
}

.modal-foot-sticky,
.store-modal-foot {
  padding: 24px 32px 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: var(--paper);
  z-index: 2;
}

.order-total-line {
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.order-total-line strong:first-child {
  font-size: 1.1rem;
  color: var(--muted);
}

.checkout-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shipping-summary-box {
  padding: 16px;
  border: 1px solid #ededf0;
  border-radius: 16px;
  background: #f8f8f9;
  margin-bottom: 32px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
}

.summary-line span {
  color: var(--muted);
  flex-shrink: 0;
  width: 60px;
}

.summary-line strong {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 850;
}

/* ===== Payment Grid ===== */
.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 20px;
  border-radius: 20px;
  background: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: pointer;
  transition: all 200ms ease;
  width: 100%;
  text-align: left;
  min-height: 84px;
}

.payment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 0, 0, 0.15);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.payment-card.active {
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.payment-card.promptpay.active {
  border-color: #1e4b8f;
  background: rgba(30, 75, 143, 0.04);
  box-shadow: 0 4px 14px rgba(30, 75, 143, 0.1);
}

.payment-card.promptpay.active .payment-icon {
  background: rgba(30, 75, 143, 0.1);
  color: #1e4b8f;
}

.payment-card.card.active {
  border-color: #222;
  background: rgba(0, 0, 0, 0.03);
}

.payment-card.card.active .payment-icon {
  background: rgba(0, 0, 0, 0.08);
  color: #222;
}

.payment-card.stripe.active {
  border-color: #635bff;
  background: rgba(99, 91, 255, 0.04);
  box-shadow: 0 4px 14px rgba(99, 91, 255, 0.1);
}

.payment-card.stripe.active .payment-icon {
  background: rgba(99, 91, 255, 0.1);
  color: #635bff;
}

.payment-card.bank.active {
  border-color: #475569;
  background: rgba(71, 85, 105, 0.04);
  box-shadow: 0 4px 14px rgba(71, 85, 105, 0.1);
}

.payment-card.bank.active .payment-icon {
  background: rgba(71, 85, 105, 0.1);
  color: #475569;
}

.payment-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f1f4;
  color: var(--ink);
  flex-shrink: 0;
}

.payment-card.active .payment-icon {
  background: var(--soft);
}

.payment-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.payment-info strong {
  font-size: 1.05rem;
  font-weight: 900;
  display: block;
}

.payment-info span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ===== PromptPay ===== */
.promptpay-panel {
  width: min(420px, 92vw);
  border-radius: 42px;
  background: var(--paper);
  overflow: hidden;
}

.promptpay-modal {
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.promptpay-header {
  position: relative;
  text-align: center;
  margin-bottom: 28px;
  width: 100%;
}

.promptpay-close {
  position: absolute;
  top: -8px;
  right: -8px;
}

.pp-logo-circle {
  width: 52px;
  height: 52px;
  background: #1e4b8f;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.promptpay-header h2 {
  font-size: 1.4rem;
  font-weight: 950;
  margin: 0;
}

.promptpay-header p {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.qr-card {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

.qr-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-amount-card {
  width: 100%;
  padding: 16px 20px;
  background: #f7f7f8;
  border-radius: 20px;
  margin-bottom: 16px;
}

.payment-amount-card span {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
  color: var(--muted);
  margin-bottom: 2px;
  letter-spacing: 0.05em;
}

.payment-amount-card strong {
  font-size: 1.8rem;
  font-weight: 950;
  color: var(--ink);
}

.pp-id-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid #ededf0;
  padding: 8px 16px;
  border-radius: 999px;
}

.pp-id-box strong {
  color: var(--ink);
}

.copy-icon-btn {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 150ms ease;
  padding: 0;
}

.copy-icon-btn:hover {
  color: var(--ink);
}

.pp-instructions {
  width: 100%;
  padding: 24px;
  background: #fcfcfc;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 24px;
  text-align: left;
  margin-bottom: 28px;
}

.pp-instructions ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #555;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pp-instructions ol li::marker {
  font-weight: 900;
  color: #1e4b8f;
}

.promptpay-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.pp-timer {
  margin-top: 16px;
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
}

.pp-logo-slate {
  background: #475569 !important;
  border-color: #475569 !important;
}

/* ===== Auth Modal ===== */
.auth-panel {
  width: min(420px, 92vw);
  border-radius: 42px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(calc(var(--real-vh, 1vh) * 90), 700px);
}

/* iPad: centered ~500px */
@media (min-width: 768px) and (max-width: 1024px) {
  .auth-panel {
    width: min(500px, 80vw);
  }
}

/* Phone: full-screen sheet */
@media (max-width: 767px) {
  #authModal {
    align-items: flex-end;
    padding: 0;
    overflow-y: auto;
  }
  #authModal .auth-panel {
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 32px);
    border-radius: 24px 24px 0 0;
    border-bottom: none;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    margin-top: auto;
  }
  #authModal.open .auth-panel {
    transform: translateY(0);
  }
}

.auth-content {
  padding: 0 28px 20px;
  overflow-y: auto;
  flex: none;
  -webkit-overflow-scrolling: touch;
}

.auth-tabs {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  border-bottom: 2px solid #ededf0;
}

.auth-tab {
  padding: 12px 0;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  transition: color 200ms ease;
}

.auth-tab.active {
  color: var(--ink);
}

.auth-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transition: transform 200ms ease;
  transform-origin: left;
}

.auth-tab.active::after {
  transform: scaleX(1);
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 48px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.social-btn.google {
  background: #fff;
  border: 1px solid #ededf0;
  color: #3c4043;
}

.social-btn.apple {
  background: #000;
  border: 1px solid #000;
  color: #fff;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-bottom: 2px solid #ededf0;
}

.auth-divider span {
  padding: 0 12px;
}

.auth-forgot {
  text-align: right;
  margin-top: -8px;
  margin-bottom: 20px;
}

.auth-submit {
  width: 100%;
  height: 48px;
  font-size: 1.05rem;
  border-radius: 14px;
}

.auth-disclaimer {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* Store extra: collection-btn */
.pacbb-collection-btn .collection-btn-text {
  text-transform: uppercase;
  font-weight: 900;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* ===== Store account page extra (from store-account.css) ===== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.collection-count {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 800;
}

/* ===== Responsive — Tablet 1050px ===== */
@media (max-width: 1050px) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ===== Responsive — 820px ===== */
@media (max-width: 820px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-row {
    min-height: 76px;
    padding: 12px 0;
    align-items: center;
    flex-wrap: wrap;
  }

  .brand-logo {
    width: 100px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .hero-section {
    padding-top: 24px;
  }

  .hero-frame {
    flex-direction: column-reverse;
    padding: 36px 24px;
    gap: 16px;
    text-align: center;
    align-items: center;
    min-height: auto;
  }

  .hero-copy {
    align-items: center;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.9rem, 11vw, 2.6rem);
  }

  .hero-media {
    width: 100%;
    max-width: 400px;
  }

  .hero-text {
    margin: 16px 0 24px;
  }

  .hero-nav-btn {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }

  .hero-nav-btn.prev {
    left: 12px;
  }

  .hero-nav-btn.next {
    right: 12px;
  }

  .feature-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }



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

  /*
  .modal-panel,
  .store-modal-panel {
    width: fit-content !important;
    max-width: 96% !important;
    max-height: 92vh !important;
    height: auto !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 24px !important;
  }

  .product-detail {
    display: grid !important;
    grid-template-columns: min-content !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 auto !important;
    height: auto !important;
    overflow: visible !important;
    min-width: 260px !important;
    max-width: 92vw !important;
    transition: none !important;
  }

  .detail-left {
    order: 1 !important;
    grid-area: auto !important;
    padding: 16px 16px 0 !important;
    background: #fff !important;
    display: flex !important;
    justify-content: center !important;
    border-radius: 0 !important;
    overflow: hidden !important;
    width: 100% !important;
  }

  .detail-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto !important;
    border-radius: 28px !important;
    object-fit: cover !important;
    background: #f7f7f8 !important;
  }

  .detail-thumbs-row {
    order: 2 !important;
    grid-area: auto !important;
    padding: 16px 20px !important;
    background: #fff !important;
    display: flex !important;
    justify-content: center !important;
    border-bottom: 1px solid #ededf0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .thumbs {
    display: flex !important;
    gap: 12px !important;
    padding: 0 !important;
    overflow-x: auto !important;
    justify-content: center !important;
    flex-wrap: nowrap !important;
  }

  .detail-right {
    order: 3 !important;
    grid-area: auto !important;
    padding: 24px 24px 40px !important;
    border-left: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .detail-head {
    margin-bottom: 8px;
  }

  .detail-title {
    font-size: 1.8rem;
    line-height: 1.1;
  }

  .detail-price {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .detail-subtitle {
    display: block !important;
    font-size: 0.95rem;
    margin-bottom: 24px;
  }

  .detail-actions {
    order: 4 !important;
    grid-area: auto !important;
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    padding: 12px 24px !important;
    margin: 0 !important;
    border-top: 1.5px solid #ededf0 !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.08) !important;
    z-index: 100 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .qty-line {
    justify-content: space-between !important;
    width: 100% !important;
  }

  .modal-add-btn,
  .store-modal-add {
    width: 100% !important;
    margin: 0 !important;
    min-height: 56px !important;
    font-size: 1.1rem !important;
  }
  */

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== Responsive — 640px (Bento) ===== */
@media (max-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 0 20px;
  }

  .feature-card {
    min-height: auto;
    padding: 10px 12px;
    border-radius: var(--psb-radius, 18px);
    gap: 10px;
    border-width: var(--psb-width, 1.5px);
  }

  .feature-icon {
    width: 28px;
    height: 28px;
  }

  .feature-icon svg {
    width: 14px;
    height: 14px;
  }

  .feature-card strong {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .feature-card span {
    font-size: 0.65rem;
  }
}

/* ===== Responsive — 560px (Mobile) ===== */
@media (max-width: 560px) {
  .store-page .container {
    width: 100%;
    padding: 0 16px;
  }

  .nav-actions {
    gap: 4px;
  }

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

  .button,
  .store-btn {
    min-height: 40px;
    padding-inline: 14px;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 12px !important;
  }

  .product-card {
    border-radius: 20px !important;
  }

  .product-body {
    padding: 12px !important;
  }

  .product-title {
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
  }

  .product-desc {
    display: none !important;
  }

  .product-kicker {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
  .product-kicker > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card .prod-status-badge {
    font-size: 0.55rem !important;
    padding: 3px 7px !important;
    white-space: nowrap;
  }

  .stock-badge {
    font-size: 0.5rem !important;
    padding: 1px 4px !important;
    margin-top: 2px;
  }

  .price,
  .store-price {
    font-size: 0.9rem !important;
  }

  .product-meta {
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
    flex-wrap: nowrap !important;
  }

  .product-body .button,
  .product-body .store-btn {
    margin-top: 8px !important;
    min-height: 36px !important;
    font-size: 0.8rem !important;
    padding: 6px 12px !important;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-form {
    max-width: none;
  }

  .modal,
  .store-modal {
    align-items: center;
    align-items: flex-end !important;
    justify-content: center !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  /*
   * BUG FIX — Product Popup style sync.
   * The mobile bottom-sheet redesign was hard-coding border / radius / background /
   * shadow values, which bypassed the Inventory Card Style tokens applied to
   * `#productModal .modal-panel` by `_paco_applyCardStyleToModal()` in
   * pacco-store.js. These overrides now fall through to the panel's
   * `--pacco-*` / `--paco-*` variables so the popup stays in sync with the
   * Inventory Style Preview and Inventory Product Cards. The bottom-sheet
   * layout (full-width, slide-up, top-only rounded corners) is preserved.
   */
  #productModal .modal-panel {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: calc(var(--real-vh, 1vh) * 90) !important;
    /* Bottom-sheet top corners: only set if no radius-* class is overriding the
       full-panel border-radius. The radius-sharp / -small / -big / -capsule
       class system (applied by sync) takes precedence via !important. */
    border-radius: 0 !important;
    border: var(--pacco-card-border, 3px solid var(--ink)) !important;
    border-bottom: none !important;
    background: var(--paco-card-bg, var(--paper)) !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: var(--paco-card-shadow, var(--shadow)) !important;
  }

  #productModal.open .modal-panel {
    transform: translateY(0) !important;
  }

  #productModal .modal-content {
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain !important;
  }

  #productModal .product-detail {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .bottom-sheet-drag-handle {
    display: block !important;
    width: 40px !important;
    height: 5px !important;
    background: #000 !important;
    border-radius: 999px !important;
    margin: 12px auto 8px !important;
    cursor: grab !important;
    flex-shrink: 0 !important;
  }

  .detail-image {
    width: auto !important;
    height: 280px !important;
    max-height: 280px !important;
    max-width: 100% !important;
    /* BUG FIX: honor Inventory Card Style image tokens (border + corner radius).
       Image display (contain/cover) is driven by --paco-image-display set by
       `_paco_applyCardStyleToModal()`; object-fit on the <img> itself is
       already handled by the .detail-image img rule at css/store.css:4538. */
    border: var(--pacco-image-border, none) !important;
    border-radius: var(--paco-image-radius, 0px) !important;
    background: #f7f7f8 !important;
    object-fit: contain !important;
  }

  .detail-left {
    order: 1 !important;
    padding: 16px 16px 12px !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .detail-thumbs-row {
    width: 100% !important;
    padding: 4px 16px 12px !important;
    background: #fff !important;
    display: flex !important;
    justify-content: flex-start !important;
    box-sizing: border-box !important;
    border-bottom: 2px dashed #000 !important;
    order: 2 !important;
    grid-area: auto !important;
  }

  .thumbs {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    justify-content: flex-start !important;
    width: 100% !important;
  }

  .thumbs button {
    width: 52px !important;
    height: 52px !important;
    border: 2px solid #000 !important;
    border-radius: 8px !important;
    background: #fff !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
  }

  .thumbs button.active {
    border: 3px solid #000 !important;
    background: #f0f0f0 !important;
  }

  .detail-right {
    padding: 38px 16px 32px !important;
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    gap: 5px !important;
    box-sizing: border-box !important;
    order: 3 !important;
    grid-area: auto !important;
  }

  .detail-head {
    grid-area: 1 / 2 / 3 / 3 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    margin: 0 !important;
  }

  .detail-head > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 6px !important;
    width: auto !important;
  }

  .detail-tag,
  .prod-status-badge {
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    padding: 4px 8px !important;
    border: 2px solid #000 !important;
    border-radius: 4px !important;
    background: #fff !important;
    color: #000 !important;
  }

  .prod-status-badge.new {
    background: #fff !important;
    color: #0288d1 !important;
    border: 2px solid #0288d1 !important;
  }

  .detail-title {
    grid-area: 1 / 1 / 2 / 2 !important;
    font-size: 2rem !important;
    font-weight: 950 !important;
    text-transform: uppercase !important;
    margin: -2px 0 0 0 !important;
    line-height: 0.95 !important;
    letter-spacing: -0.04em !important;
    color: #000 !important;
    align-self: flex-start !important;
  }

  .detail-price {
    grid-area: 2 / 1 / 3 / 2 !important;
    font-size: 1.6rem !important;
    font-weight: 950 !important;
    margin: 14px 0 0 0 !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 0 !important;
  }

  .price-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  .price-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .price-label {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin-bottom: 2px !important;
  }

  .price-row.original .price-label {
    color: #999 !important;
  }

  .price-row.sale .price-label {
    color: #000 !important;
  }

  .price-line {
    display: flex !important;
    align-items: center !important;
  }

  .original-price {
    font-size: 1.1rem !important;
    color: #999 !important;
    text-decoration: line-through !important;
  }

  .sale-price {
    font-size: 1.6rem !important;
    font-weight: 950 !important;
    color: #000 !important;
  }

  .sale-badge {
    background: #ff3b30 !important;
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    padding: 3px 8px !important;
    border-radius: 4px !important;
    margin-left: 8px !important;
    text-transform: uppercase !important;
  }

  .detail-drop-limit {
    grid-area: 3 / 1 / 4 / 3 !important;
    text-align: left !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    color: #333 !important;
    margin: 2px 0 !important;
  }

  .detail-subtitle {
    grid-area: 4 / 1 / 5 / 3 !important;
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    color: #666 !important;
    margin: 22px 0 14px 0 !important;
    text-align: left !important;
    font-weight: 800 !important;
  }

  .detail-divider {
    display: none !important;
  }

  .option-row {
    grid-area: 5 / 1 / 6 / 3 !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin: 4px 0 !important;
    width: 100% !important;
  }

  .custom-select-container {
    width: 100% !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .custom-select-container.open {
    z-index: 110 !important;
  }

  .custom-select-options {
    z-index: 110 !important;
  }

  .custom-select-container h4 {
    font-size: 0.75rem !important;
    font-weight: 900 !important;
    margin: 0 0 4px 0 !important;
    color: #666 !important;
    text-transform: uppercase !important;
  }

  .custom-select-trigger {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border: 2px solid #000 !important;
    border-radius: 8px !important;
    padding: 8px 12px !important;
    background: #fff !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .detail-info {
    grid-area: 6 / 1 / 7 / 3 !important;
    display: flex !important;
    gap: 0 !important;
    background: #f7f7f8 !important;
    border: 2px solid #000 !important;
    border-radius: 8px !important;
    padding: 12px 0 !important;
    margin-top: 4px !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .info-row {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 2px 20px !important;
    font-size: 0.75rem !important;
    gap: 4px !important;
    border-right: 2px dashed #000 !important;
    box-sizing: border-box !important;
  }

  .info-row:last-child {
    border-right: none !important;
  }

  .info-row span {
    font-size: 0.65rem !important;
    text-transform: uppercase !important;
    color: #666 !important;
    font-weight: bold !important;
  }

  .info-row strong {
    font-size: 0.85rem !important;
    font-weight: 900 !important;
  }

  .detail-actions {
    position: sticky !important;
    bottom: 0 !important;
    background: #fff !important;
    border-top: 3px solid #000 !important;
    padding: 12px 16px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 100 !important;
    box-shadow: none !important;
    order: 4 !important;
    grid-area: auto !important;
    box-sizing: border-box !important;
    width: 100% !important;
  }

  .qty-line {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .qty-line > span {
    display: block !important;
    font-size: 0.85rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    color: #000 !important;
  }

  /* .qty-selector {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 120px !important;
    border: 2px solid #000 !important;
    border-radius: 999px !important;
    padding: 2px 4px !important;
    background: #fff !important;
  } */

  /* .qty-selector button {
    width: 28px !important;
    height: 28px !important;
    border: 1px solid #000 !important;
    border-radius: 50% !important;
    font-weight: bold !important;
    background: #fff !important;
    cursor: pointer !important;
  }

  .qty-selector strong {
    font-size: 0.95rem !important;
    font-weight: 900 !important;
  } */

  /*
   * BUG FIX — Modal "Add to Cart" button style sync.
   * The mobile responsive override was hard-coding border / radius / background /
   * text color, bypassing the Inventory Card Style button tokens applied to
   * `#productModal` by `_paco_applyCardStyleToModal()`. These now fall through
   * to the `--pacco-button-*` variables.
   */
  .modal-add-btn,
  .store-modal-add {
    margin: 0 !important;
    font-size: 1.1rem !important;
    width: 100% !important;
    flex: none !important;
    min-height: 52px !important;
    border: var(--pacco-button-border, 3px solid #000) !important;
    border-radius: var(--pacco-button-radius, 8px) !important;
    background: #000 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
  }

  .modal-add-btn:active {
    background: var(--pacco-button-bg, #000) !important;
    filter: brightness(0.8);
  }

  .modal-close-btn {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    z-index: 130 !important;
    width: 38px !important;
    height: 38px !important;
    border: 2px solid #000 !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #000 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  #productClose {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    z-index: 130 !important;
    width: 36px !important;
    height: 36px !important;
    border: 2.5px solid #000 !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: #000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 900 !important;
    font-size: 1.1rem !important;
    box-shadow: none !important;
    cursor: pointer !important;
  }

  #productModal .modal-head {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: none !important;
    z-index: 120 !important;
  }

  .checkout-panel {
    width: 100%;
    max-height: calc(var(--real-vh, 1vh) * 94);
    border-radius: 16px;
  }

  #checkoutModal .modal-head {
    padding: 20px;
  }

  #checkoutModal .modal-scroll-area {
    padding: 20px;
  }

  .modal-foot-sticky,
  .store-modal-foot {
    padding: 20px;
  }

  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }
}

/* ===== STORE MARQUEE / TICKER ===== */
.promo-marquee {
  height: 36px;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  align-items: center;
  background: #111;
  color: #fff;
  border: 2px solid;
  border-color: inherit;
  border-radius: 0 !important;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.marquee-track {
  display: inline-flex;
  white-space: nowrap;
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee-scroll var(--speed, 20s) linear infinite;
}

.marquee-content {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  padding-right: 40px;
}

.marquee-sep {
  margin-left: 20px;
  opacity: 0.4;
  font-weight: 400;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }

  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* ===== HOMEPAGE BUILDER PROMO SECTIONS (Store Style) ===== */

/* Store section inner wrapper */
.store-section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  box-sizing: border-box;
}

/* Section vertical spacing */
.dynamic-section {
  margin: 48px 0;
}

@media (max-width: 768px) {
  .dynamic-section {
    margin: 32px 0;
  }
}

/* ===== PROMO BANNER (Store Rounded) ===== */
.promo-banner {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  padding: 80px 40px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.promo-banner .store-section-inner {
  max-width: 700px;
  margin: 0 auto;
  padding: 0;
}

.promo-banner .section-content,
.promo-countdown .section-content {
  max-width: 700px;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.promo-banner.align-left {
  text-align: left;
  align-items: flex-start;
  padding: 60px 80px;
}

.promo-banner.align-right {
  text-align: right;
  align-items: flex-end;
  padding: 60px 80px;
}

.promo-banner h2 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 950;
  line-height: 1;
  margin: 0;
  color: inherit;
  letter-spacing: -0.03em;
}

.promo-banner p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  line-height: 1.5;
  margin: 0;
  color: inherit;
  opacity: 0.85;
}

.promo-banner .banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 24px;
  background: #111;
  color: #fff;
  border: 2px solid #111;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  cursor: pointer;
  width: auto;
  box-sizing: border-box;
}

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

.promo-banner .banner-btn:active {
  transform: scale(0.98);
}

/* ===== COUNTDOWN SECTION (Store Rounded) ===== */
.promo-countdown {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  padding: 80px 40px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.promo-countdown h3 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 0.95;
  text-align: center;
  margin: 0 0 14px;
  color: inherit;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 14px;
  color: inherit;
}

.countdown-box {
  width: 72px;
  height: 72px;
  border: 3px solid var(--ink);
  border-radius: 18px;
  background: rgba(255,255,255,0.75);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.countdown-value {
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: inherit;
}

.countdown-label {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #777;
  margin-top: 2px;
}

/* ===== NEWSLETTER SECTION (Store Rounded) ===== */
.promo-newsletter {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  padding: 60px 40px;
  text-align: center;
  box-sizing: border-box;
}

.promo-newsletter h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: inherit;
}

.promo-newsletter p {
  font-size: 0.9rem;
  margin: 0 0 20px;
  color: inherit;
  opacity: 0.85;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.newsletter-input {
  height: 46px;
  padding: 0 16px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  font-size: 0.9rem;
  color: inherit;
  outline: none;
  min-width: 280px;
  box-sizing: border-box;
}

.newsletter-input:focus {
  border-color: #111;
  background: #fff;
  box-shadow: none;
}

.newsletter-btn {
  height: 46px;
  padding: 0 20px;
  border: 2px solid #111;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-sizing: border-box;
}

.newsletter-btn:hover {
  background: #111;
  color: #fff;
}

.newsletter-success {
  color: #00875A;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 12px;
}

.store-page .promo-newsletter {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
}

.store-page .newsletter-form {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.store-page .newsletter-input {
  width: 100%;
  max-width: 320px;
}

@media (max-width: 760px) {
  .store-page .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .store-page .newsletter-input {
    max-width: 100%;
  }

  .store-page .newsletter-btn {
    width: 100%;
  }
}

/* ===== FAQ SECTION (Store Rounded) ===== */
.promo-faq {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  padding: 60px 40px;
  box-sizing: border-box;
}

.promo-faq h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: inherit;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 2px solid #111;
  overflow: hidden;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-content {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.85;
}

.faq-empty {
  text-align: center;
  padding: 24px;
  font-weight: 700;
  color: inherit;
  opacity: 0.5;
}

/* ===== VIDEO SECTION (Store Rounded) ===== */
.promo-video {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.promo-video .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.promo-video .video-container iframe,
.promo-video .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Responsive promo sections ===== */
@media (max-width: 768px) {
  .promo-banner {
    padding: 40px 20px;
    border-radius: var(--psb-radius, 18px);
  }

  .promo-banner.align-left,
  .promo-banner.align-right {
    padding: 36px 24px;
  }

  .promo-countdown {
    border-radius: var(--psb-radius, 18px);
    padding: 40px 24px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .countdown-value {
    font-size: 1.2rem;
  }

  .promo-newsletter {
    border-radius: var(--psb-radius, 18px);
  }

  .newsletter-input {
    min-width: 200px;
  }

  .promo-faq {
    border-radius: var(--psb-radius, 18px);
  }

  .promo-video {
    border-radius: var(--psb-radius, 18px);
  }
}

/* ===== Responsive marquee ===== */
@media (max-width: 640px) {
  .promo-marquee {
    border-radius: 0 !important;
    height: 32px;
  }

  .marquee-content {
    font-size: 0.65rem;
    padding-right: 28px;
  }

  .marquee-sep {
    margin-left: 14px;
  }
}

/* ===== Responsive marquee (alt) ===== */
@media (max-width: 640px) {
  .promo-marquee {
    border-radius: 0 !important;
    height: 32px;
  }

  .marquee-content {
    font-size: 0.65rem;
    padding-right: 28px;
  }

  .marquee-sep {
    margin-left: 14px;
  }
}



/* ===== FAQ SECTION (Store Rounded) ===== */
.promo-faq {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  padding: 60px 40px;
  box-sizing: border-box;
}

.promo-faq h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 0 20px;
  color: inherit;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 2px solid #111;
  overflow: hidden;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  padding: 16px 20px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: inherit;
}

.faq-question::after {
  content: '+';
  font-size: 1.2rem;
  font-weight: 400;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer-content {
  padding: 0 20px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: inherit;
  opacity: 0.85;
}

.faq-empty {
  text-align: center;
  padding: 24px;
  font-weight: 700;
  color: inherit;
  opacity: 0.5;
}

/* ===== VIDEO SECTION (Store Rounded) ===== */
.promo-video {
  border: var(--psb-width, 3px) solid var(--psb-color, var(--ink));
  border-radius: var(--psb-radius, 32px);
  background: #fff;
  overflow: hidden;
  box-sizing: border-box;
  width: 100%;
  padding: 0;
}

.promo-video .video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
}

.promo-video .video-container iframe,
.promo-video .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== Responsive promo sections ===== */
@media (max-width: 768px) {
  .promo-banner {
    padding: 40px 20px;
    border-radius: var(--psb-radius, 18px);
  }

  .promo-banner.align-left,
  .promo-banner.align-right {
    padding: 36px 24px;
  }

  .promo-countdown {
    border-radius: var(--psb-radius, 18px);
    padding: 40px 24px;
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-box {
    width: 64px;
    height: 64px;
    border-radius: 14px;
  }

  .countdown-value {
    font-size: 1.2rem;
  }

  .promo-newsletter {
    border-radius: var(--psb-radius, 18px);
  }

  .newsletter-input {
    min-width: 200px;
  }

  .promo-faq {
    border-radius: var(--psb-radius, 18px);
  }

  .promo-video {
    border-radius: var(--psb-radius, 18px);
  }
}

/* ===== Responsive marquee ===== */
@media (max-width: 640px) {
  .promo-marquee {
    border-radius: var(--psb-radius, 999px);
    height: 32px;
  }

  .marquee-content {
    font-size: 0.65rem;
    padding-right: 28px;
  }

  .marquee-sep {
    margin-left: 14px;
  }
}

/* ===== Style Preview Dynamic Presets ===== */
.product-card.radius-sharp {
  border-radius: 0px !important;
}

.product-card.radius-small {
  border-radius: 8px !important;
}

.product-card.radius-big {
  border-radius: 18px !important;
}

.product-card.radius-capsule {
  border-radius: 40px !important;
}

.product-media img, .detail-image img {
  border-radius: var(--paco-image-radius, 0px) !important;
}

/* ===== Dynamic Modal Panel Border Radius Presets ===== */
/* Sharp radius overrides */
.modal-panel.radius-sharp,
.store-modal-panel.radius-sharp {
  border-radius: 0px !important;
}
.modal-panel.radius-sharp .modal-close-btn,
.modal-panel.radius-sharp .store-modal-close,
.modal-panel.radius-sharp #productClose,
.modal-panel.radius-sharp .detail-image,
.modal-panel.radius-sharp .custom-select-trigger,
.modal-panel.radius-sharp .custom-select-options,
.modal-panel.radius-sharp .qty-selector,
.modal-panel.radius-sharp .qty-selector button,
.modal-panel.radius-sharp .modal-add-btn,
.modal-panel.radius-sharp .pacco-product-btn,
.modal-panel.radius-sharp .thumbs button,
.modal-panel.radius-sharp .detail-thumbs-row .thumbs button,
.modal-panel.radius-sharp .prod-status-badge,
.modal-panel.radius-sharp .stock-badge,
.modal-panel.radius-sharp .stock-status,
.modal-panel.radius-sharp .detail-tag,
.modal-panel.radius-sharp .field,
.modal-panel.radius-sharp .store-field,
.modal-panel.radius-sharp input,
.modal-panel.radius-sharp .select-field,
.modal-panel.radius-sharp select,
.modal-panel.radius-sharp .social-btn,
.modal-panel.radius-sharp .auth-tab,
.modal-panel.radius-sharp .button,
.modal-panel.radius-sharp .store-btn,
.modal-panel.radius-sharp .account-box,
.modal-panel.radius-sharp .payment-amount-card,
.modal-panel.radius-sharp .pp-id-box,
.modal-panel.radius-sharp img {
  border-radius: 0px !important;
}

/* Small radius overrides */
.modal-panel.radius-small,
.store-modal-panel.radius-small {
  border-radius: 8px !important;
}
.modal-panel.radius-small .detail-image {
  border-radius: 6px !important;
}
.modal-panel.radius-small .modal-close-btn,
.modal-panel.radius-small .store-modal-close,
.modal-panel.radius-small #productClose,
.modal-panel.radius-small .custom-select-trigger,
.modal-panel.radius-small .custom-select-options,
.modal-panel.radius-small .qty-selector,
.modal-panel.radius-small .qty-selector button,
.modal-panel.radius-small .modal-add-btn,
.modal-panel.radius-small .pacco-product-btn,
.modal-panel.radius-small .thumbs button,
.modal-panel.radius-small .detail-thumbs-row .thumbs button,
.modal-panel.radius-small .prod-status-badge,
.modal-panel.radius-small .stock-badge,
.modal-panel.radius-small .stock-status,
.modal-panel.radius-small .detail-tag,
.modal-panel.radius-small .field,
.modal-panel.radius-small .store-field,
.modal-panel.radius-small input,
.modal-panel.radius-small .select-field,
.modal-panel.radius-small select,
.modal-panel.radius-small .social-btn,
.modal-panel.radius-small .auth-tab,
.modal-panel.radius-small .button,
.modal-panel.radius-small .store-btn,
.modal-panel.radius-small .account-box,
.modal-panel.radius-small .payment-amount-card,
.modal-panel.radius-small .pp-id-box,
.modal-panel.radius-small img {
  border-radius: 4px !important;
}

/* Big radius overrides */
.modal-panel.radius-big,
.store-modal-panel.radius-big {
  border-radius: 18px !important;
}
.modal-panel.radius-big .detail-image {
  border-radius: 12px !important;
}
.modal-panel.radius-big .modal-close-btn,
.modal-panel.radius-big .store-modal-close,
.modal-panel.radius-big #productClose,
.modal-panel.radius-big .custom-select-trigger,
.modal-panel.radius-big .custom-select-options,
.modal-panel.radius-big .qty-selector,
.modal-panel.radius-big .qty-selector button,
.modal-panel.radius-big .modal-add-btn,
.modal-panel.radius-big .pacco-product-btn,
.modal-panel.radius-big .thumbs button,
.modal-panel.radius-big .detail-thumbs-row .thumbs button,
.modal-panel.radius-big .prod-status-badge,
.modal-panel.radius-big .stock-badge,
.modal-panel.radius-big .stock-status,
.modal-panel.radius-big .detail-tag,
.modal-panel.radius-big .field,
.modal-panel.radius-big .store-field,
.modal-panel.radius-big input,
.modal-panel.radius-big .select-field,
.modal-panel.radius-big select,
.modal-panel.radius-big .social-btn,
.modal-panel.radius-big .auth-tab,
.modal-panel.radius-big .button,
.modal-panel.radius-big .store-btn,
.modal-panel.radius-big .account-box,
.modal-panel.radius-big .payment-amount-card,
.modal-panel.radius-big .pp-id-box,
.modal-panel.radius-big img {
  border-radius: 8px !important;
}

/* Capsule radius overrides */
.modal-panel.radius-capsule,
.store-modal-panel.radius-capsule {
  border-radius: 40px !important;
}
.modal-panel.radius-capsule .detail-image {
  border-radius: 24px !important;
}
.modal-panel.radius-capsule .modal-close-btn,
.modal-panel.radius-capsule .store-modal-close,
.modal-panel.radius-capsule #productClose,
.modal-panel.radius-capsule .custom-select-trigger,
.modal-panel.radius-capsule .custom-select-options,
.modal-panel.radius-capsule .qty-selector,
.modal-panel.radius-capsule .qty-selector button,
.modal-panel.radius-capsule .modal-add-btn,
.modal-panel.radius-capsule .pacco-product-btn,
.modal-panel.radius-capsule .thumbs button,
.modal-panel.radius-capsule .detail-thumbs-row .thumbs button,
.modal-panel.radius-capsule .prod-status-badge,
.modal-panel.radius-capsule .stock-badge,
.modal-panel.radius-capsule .stock-status,
.modal-panel.radius-capsule .detail-tag,
.modal-panel.radius-capsule .field,
.modal-panel.radius-capsule .store-field,
.modal-panel.radius-capsule input,
.modal-panel.radius-capsule .select-field,
.modal-panel.radius-capsule select,
.modal-panel.radius-capsule .social-btn,
.modal-panel.radius-capsule .auth-tab,
.modal-panel.radius-capsule .button,
.modal-panel.radius-capsule .store-btn,
.modal-panel.radius-capsule .account-box,
.modal-panel.radius-capsule .payment-amount-card,
.modal-panel.radius-capsule .pp-id-box,
.modal-panel.radius-capsule img {
  border-radius: 12px !important;
}

@media (max-width: 560px) {
  .custom-select-container.open-up .custom-select-options {
    top: auto !important;
    bottom: calc(100% + 8px) !important;
    transform: translateY(10px) !important;
  }
  .custom-select-container.open-up.open .custom-select-options {
    transform: translateY(0) !important;
  }
}

/* ===== Cart Add Toast Notice ===== */
.cart-add-toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-50px);
  background: #4ade80 !important;
  color: #000 !important;
  font-size: 0.95rem !important;
  font-weight: 900 !important;
  padding: 12px 24px !important;
  border-radius: 8px !important;
  border: none !important;
  z-index: 9999 !important;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: none !important;
}

.cart-add-toast.show {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Override unscoped modal rules that break product card styling on mobile */
@media (max-width: 560px) {
  .product-body .sale-badge {
    background: var(--pacco-discount-bg, transparent) !important;
    color: var(--pacco-discount-color, #888888) !important;
    font-size: var(--pacco-discount-size, 0.55rem) !important;
    font-weight: var(--pacco-discount-weight, 700) !important;
    padding: var(--pacco-discount-padding, 0px) !important;
    border-radius: var(--pacco-discount-radius, 0px) !important;
    margin-left: 0 !important;
    text-transform: none !important;
  }
  .product-body .product-meta {
    align-items: flex-end !important;
  }
  .product-body .price-group {
    flex-direction: column !important;
  }
  .product-body .price-group .price-line {
    display: inline-flex;
    align-items: center;
    gap: 3px;
  }
  .product-body .price-group .price-line:first-child .price {
    font-size: 0.65rem !important;
    text-decoration: line-through;
    opacity: 0.5;
    white-space: nowrap;
  }
  .product-body .prod-status-badge {
    background: var(--pacco-status-badge-bg, var(--local-status-bg, #efeff2)) !important;
    color: var(--pacco-status-badge-color, var(--local-status-color, #565660)) !important;
    border: var(--pacco-status-badge-border, 1px solid transparent) !important;
    border-radius: var(--pacco-badge-radius, 999px) !important;
    font-size: 0.55rem !important;
    padding: 3px 7px !important;
    white-space: nowrap;
    text-transform: uppercase;
    font-weight: 900;
  }
}
