@import 'design-system.css';

/**
 * store.css — Filamorfosis Store UI Styles
 * Covers: cart drawer, auth modal, checkout, account, order confirmation
 * Dark theme: #0a0e1a background, Poppins font, vibrant accent colors
 */

/* ── Promo banner height CSS variable ─────────────────────────────────────── */
:root {
  --promo-banner-height: 0px;
}

/* ── Reset / base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

.dark-theme {
  background: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family-heading), var(--font-family-body), sans-serif;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: var(--promo-banner-height, 0px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.navbar__brand {
  font-family: monospace;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 1.8rem;
}

.navbar__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar__link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}
.navbar__link:hover { color: var(--color-text-primary); }

.navbar__username {
  color: var(--color-accent-purple);
  font-weight: 600;
  font-size: 1rem;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  background: var(--color-gradient-brand);
  color: var(--color-text-primary);
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--color-bg-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.14); }

.btn-outline {
  padding: 0.5rem 1rem;
  background: transparent;
  color: var(--color-accent-purple);
  border: 1px solid var(--color-accent-purple);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.btn-outline:hover { background: rgba(167,139,250,0.1); }

.btn-danger {
  background: rgba(239,68,68,0.15);
  color: var(--color-error);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-danger:hover { background: rgba(239,68,68,0.25); }

.btn-sm { padding: 0.35rem 0.7rem; font-size: 1rem; }

/* ── Cart icon / badge ────────────────────────────────────────────────────── */
.cart-icon {
  position: relative;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: var(--color-accent-purple);
  color: var(--color-text-primary);
  font-size: 1rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ── Cart drawer ──────────────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
}

.cart-drawer.open { pointer-events: all; }

.cart-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  transition: opacity 0.3s;
}
.cart-drawer.open .cart-drawer__backdrop { opacity: 1; }

.cart-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg-elevated);
  border-left: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.cart-drawer.open .cart-drawer__panel { transform: translateX(0); }

@media (min-width: 769px) {
  .cart-drawer__panel {
    width: 420px;
  }
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
}
.cart-drawer__header h2 { margin: 0; font-size: 1.1rem; }

.cart-drawer__close {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.cart-drawer__close:hover { color: var(--color-text-primary); }

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}

.cart-drawer__empty {
  color: var(--color-text-disabled);
  text-align: center;
  margin-top: 2rem;
}

.cart-drawer__footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--color-border);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 1rem;
}
.cart-drawer__total strong { font-size: 1.2rem; color: var(--color-accent-purple); }

.cart-drawer__checkout {
  width: 100%;
  justify-content: center;
}

/* ── Cart item ────────────────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child { border-bottom: none; }

.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 600; font-size: 1rem; margin: 0 0 0.2rem; }
.cart-item__variant { color: var(--color-text-muted); font-size: 1rem; margin: 0 0 0.2rem; }
.cart-item__price { color: var(--color-accent-purple); font-size: 1rem; margin: 0; }

.cart-item__design-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  font-size: 1rem;
  color: var(--color-info);
  cursor: pointer;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--color-bg-surface);
  border: none;
  border-radius: 4px;
  color: var(--color-text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: rgba(255,255,255,0.15); }

.cart-item__remove {
  background: none;
  border: none;
  color: var(--color-text-disabled);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.2rem;
  align-self: center;
}
.cart-item__remove:hover { color: var(--color-error); }

/* ── Auth modal ───────────────────────────────────────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
}

.auth-modal__box {
  position: relative;
  background: var(--color-bg-elevated);
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.auth-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--color-text-disabled);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}
.auth-modal__close:hover { color: var(--color-text-primary); }

.auth-modal__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.auth-tab {
  background: none;
  border: none;
  color: var(--color-text-disabled);
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.auth-tab.active {
  color: var(--color-accent-purple);
  background: rgba(167,139,250,0.1);
}

/* ── Auth form ────────────────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 1rem; }

.auth-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.auth-form__field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.auth-form__field label {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.auth-form__field input {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1.5rem;
  outline: none;
  transition: border-color 0.2s;
}
.auth-form__field input:focus { border-color: var(--color-accent-purple); }

.auth-form__error {
  color: var(--color-error);
  font-size: 1rem;
  min-height: 1em;
}

.auth-form__success {
  color: var(--color-success);
  font-size: 1rem;
}

.auth-form__hint {
  color: var(--color-text-disabled);
  font-size: 1rem;
}

.auth-form__link {
  color: var(--color-info);
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
}
.auth-form__link:hover { text-decoration: underline; }

/* ── Form fields (shared) ─────────────────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-size: 1rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: var(--color-text-primary);
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus { border-color: var(--color-accent-purple); }
.form-field input:disabled { opacity: 0.5; cursor: not-allowed; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.form-success {
  color: var(--color-success);
  font-size: 1rem;
}

/* ── Checkout page ────────────────────────────────────────────────────────── */
.checkout-page {
  padding: 2rem 1.5rem 4rem;
}

.checkout-page__title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 2rem;
  background: var(--color-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .auth-form__row { grid-template-columns: 1fr; }
}

@media (min-width: 769px) {
  .checkout-layout { grid-template-columns: 3fr 2fr; }
}

.checkout-form-section h2,
.checkout-summary h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--color-text-secondary);
}

.address-list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }

.address-option {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.address-option.selected { border-color: var(--color-accent-purple); background: rgba(167,139,250,0.08); }
.address-option input[type=radio] { margin-top: 2px; accent-color: var(--color-accent-purple); }

.new-address-form {
  margin-top: 0.5rem;
}
.new-address-form summary {
  color: var(--color-info);
  cursor: pointer;
  font-size: 1rem;
  padding: 0.5rem 0;
  list-style: none;
}
.new-address-form summary::-webkit-details-marker { display: none; }
.new-address-form form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.75rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px solid var(--color-border);
}

.checkout-summary {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}

.checkout-item {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
}
.checkout-item:last-child { border-bottom: none; }
.checkout-item__name { font-weight: 600; }
.checkout-item__variant { color: var(--color-text-muted); }
.checkout-item__qty { color: var(--color-text-disabled); }
.checkout-item__price { color: var(--color-accent-purple); font-weight: 600; text-align: right; }

.checkout-summary__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 1rem 0;
  font-size: 1rem;
  font-weight: 600;
}
.checkout-summary__total strong { color: var(--color-accent-purple); font-size: 1.2rem; }

.checkout-error {
  display: block;
  color: var(--color-error);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  min-height: 1.2em;
}

.checkout-summary__pay {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
}

/* ── Account page ─────────────────────────────────────────────────────────── */
.account-page {
  padding: 2rem 1.5rem 4rem;
}

.account-page h1 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--color-gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.account-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0;
}

.account-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--color-text-disabled);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 1rem;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.account-tab.active {
  color: var(--color-accent-purple);
  border-bottom-color: var(--color-accent-purple);
}

.account-panel {
  max-width: 600px;
}

.account-panel form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.address-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}
.address-card p { margin: 0; }

/* ── Orders list ──────────────────────────────────────────────────────────── */
.order-row {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 0.75rem;
}

.order-row__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.order-row__id { font-weight: 600; font-family: monospace; }
.order-row__date { color: var(--color-text-muted); }
.order-row__total { color: var(--color-accent-purple); font-weight: 600; }

.order-status-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.order-row__expand {
  margin-top: 0.5rem;
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  font-size: 1rem;
}

.order-row__detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.order-item {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  padding: 0.3rem 0;
  color: var(--color-text-secondary);
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
  display: flex;
  gap: 0.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border-strong);
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0.35rem 0.7rem;
  font-family: inherit;
  font-size: 1rem;
}
.page-btn.active {
  background: rgba(167,139,250,0.2);
  border-color: var(--color-accent-purple);
  color: var(--color-accent-purple);
}

/* ── Order confirmation page ──────────────────────────────────────────────── */
.confirmation-page {
  padding: 3rem 1.5rem;
  display: flex;
  justify-content: center;
}

.confirmation-loading {
  color: #64748b;
  text-align: center;
  padding: 4rem;
}

.confirmation-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.confirmation-card h1 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.confirmation-card p {
  color: var(--color-text-muted);
  margin: 0;
  font-size: 1rem;
}

.confirmation-order-id {
  background: var(--color-bg-surface);
  border-radius: 8px;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  color: var(--color-text-secondary);
}
.confirmation-order-id strong {
  font-family: monospace;
  color: var(--color-accent-purple);
  margin-left: 0.25rem;
}

.confirmation-items {
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.confirmation-total {
  display: flex;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
}
.confirmation-total strong { color: #a78bfa; }

.confirmation-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.5rem;
}

/* ── Tap target minimum size on touch devices ─────────────────────────────── */
@media (pointer: coarse) {
  button, a, input[type="button"], input[type="submit"], [role="button"] {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Prevent horizontal overflow ─────────────────────────────────────────── */
html, body { overflow-x: hidden; max-width: 100%; }

.checkout-layout {
  min-width: 0;
  max-width: 100%;
}

/* ── Cart drawer panel enhancements ──────────────────────────────────────── */
.cart-drawer__panel.card {
  border-radius: 0;
  padding: 0;
}

.cart-drawer__continue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s;
}
.cart-drawer__continue:hover { color: var(--color-text-primary); }

.cart-drawer__shipping-note {
  font-size: 1rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 0.75rem;
}

/* ── Cart item thumbnail ──────────────────────────────────────────────────── */
.cart-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.cart-item__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #475569;
  font-size: 1.1rem;
}

/* ── Trust badges in cart ─────────────────────────────────────────────────── */
.cart-trust-badges {
  display: flex;
  justify-content: space-around;
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 12px;
}
.cart-trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  color: #94a3b8;
  text-align: center;
}
.cart-trust-badge i { font-size: 1rem; color: var(--color-accent-purple); }

/* ── Design upload indicator ──────────────────────────────────────────────── */
.cart-design-warn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1rem;
  color: var(--color-warning);
  margin-top: 4px;
  padding: 4px 8px;
  background: rgba(245,158,11,0.1);
  border-radius: 6px;
  border: 1px solid rgba(245,158,11,0.3);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.cart-empty-state {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
}
.cart-empty-cta {
  margin-top: 1rem;
}

/* ═══════════════════════════════════════════════
   UX ENHANCEMENTS — Checkout additions (Task 14)
   ═══════════════════════════════════════════════ */

/* ── Progress indicator ───────────────────────────────────────────────────── */
.checkout-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  gap: 0;
}
.checkout-progress__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  flex: 1;
  max-width: 120px;
}
.checkout-progress__step + .checkout-progress__step::before {
  content: '';
  position: absolute;
  top: 16px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
}
.checkout-progress__step--done + .checkout-progress__step::before,
.checkout-progress__step--active + .checkout-progress__step::before {
  background: var(--color-accent-purple);
}
.checkout-progress__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  position: relative;
  z-index: 1;
}
.checkout-progress__step--done .checkout-progress__icon {
  background: var(--color-accent-purple);
  border-color: var(--color-accent-purple);
  color: var(--color-text-primary);
}
.checkout-progress__step--active .checkout-progress__icon {
  background: rgba(167,139,250,0.2);
  border-color: var(--color-accent-purple);
  color: var(--color-accent-purple);
}
.checkout-progress__label {
  font-size: 1rem;
  color: #64748b;
  font-weight: 500;
}
.checkout-progress__step--active .checkout-progress__label { color: var(--color-accent-purple); }
.checkout-progress__step--done .checkout-progress__label { color: var(--color-text-muted); }

/* ── Coupon field ─────────────────────────────────────────────────────────── */
.checkout-coupon {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}
.checkout-coupon input {
  flex: 1;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
}
.checkout-coupon input:focus { border-color: var(--color-accent-purple); }

/* ── What happens next ────────────────────────────────────────────────────── */
.checkout-whats-next {
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  font-size: 1rem;
}
.checkout-whats-next h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-purple);
  margin: 0 0 0.75rem;
}
.checkout-whats-next ol {
  padding-left: 1.25rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #cbd5e1;
}

/* ── Trust badges ─────────────────────────────────────────────────────────── */
.checkout-trust {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkout-trust__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 1rem;
  color: #94a3b8;
}
.checkout-trust__badges span {
  display: flex;
  align-items: center;
  gap: 4px;
}
.checkout-trust__badges i { color: var(--color-success); }
.checkout-payment-logos {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.checkout-payment-logos img { height: 20px; }
.checkout-payment-text { font-size: 1rem; color: #64748b; }
.checkout-return-policy a {
  font-size: 1rem;
  color: #64748b;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.checkout-return-policy a:hover { color: #94a3b8; }

/* ── Inline validation hints ──────────────────────────────────────────────── */
.form-field__hint {
  font-size: 1rem;
  margin-top: 4px;
  display: block;
}
.form-field__hint--valid { color: var(--color-success); }
.form-field__hint--info  { color: var(--color-text-muted); }

/* ── Estimated delivery ───────────────────────────────────────────────────── */
.checkout-estimated-delivery {
  font-size: 1rem;
  color: #94a3b8;
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.checkout-estimated-delivery i { color: var(--color-accent-purple); }

/* ── Guest checkout button ────────────────────────────────────────────────── */
.checkout-guest-btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════
   UX ENHANCEMENTS — Confirmation page (Task 16)
   ═══════════════════════════════════════════════ */

/* ── Gradient title ───────────────────────────── */
.confirmation-gradient-title {
  background: linear-gradient(135deg, #a78bfa, #60a5fa, #ec4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

/* ── Rewards card ─────────────────────────────── */
.confirmation-rewards {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(167,139,250,0.08);
  border: 1px solid rgba(167,139,250,0.2);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  text-align: left;
}
.confirmation-rewards__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0 0 4px;
  color: var(--color-text-primary);
}
.confirmation-rewards__sub {
  font-size: 1rem;
  color: #94a3b8;
  margin: 0;
}

/* ── Social share ─────────────────────────────── */
.confirmation-share {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
}
.confirmation-share p {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: #94a3b8;
  margin: 0 0 4px;
}

/* ── Pending spinner ──────────────────────────── */
.confirmation-spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(167,139,250,0.2);
  border-top-color: var(--color-accent-purple);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.confirmation-pending__eta {
  font-size: 1rem;
  color: #64748b;
}

/* ── Order item row (confirmation) ───────────────*/
.confirmation-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 1rem;
  text-align: left;
}
.confirmation-item:last-child { border-bottom: none; }
.confirmation-item__thumb {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.confirmation-item__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #475569;
  font-size: 1.1rem;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  flex-shrink: 0;
}
.confirmation-item__info { flex: 1; min-width: 0; }
.confirmation-item__name { font-weight: 600; color: var(--color-text-primary); margin: 0 0 2px; }
.confirmation-item__variant { color: var(--color-text-muted); margin: 0 0 2px; }
.confirmation-item__price { color: var(--color-accent-purple); font-weight: 600; margin: 0; }


/* ═══════════════════════════════════════════════
   UX ENHANCEMENTS — Account page (Tasks 17 & 18)
   ═══════════════════════════════════════════════ */

/* ── Account header ───────────────────────────── */
.account-header {
  background: linear-gradient(135deg, rgba(99,102,241,0.08) 0%, rgba(139,92,246,0.06) 50%, rgba(236,72,153,0.04) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
#account-bg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.account-header__content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
/* legacy alias */
.account-header__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 800px;
}
.account-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent-indigo), var(--color-accent-purple), var(--color-accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
  flex-shrink: 0;
  text-transform: uppercase;
}
.account-gradient-name {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.account-header__name {
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 4px;
}
.account-header__email { color: #94a3b8; font-size: 1rem; margin: 0; }
.account-header__logout { margin-left: auto; flex-shrink: 0; }
.account-logout-btn { margin-left: auto; }

/* ── Breadcrumb ───────────────────────────────── */
.breadcrumb,
.account-breadcrumb ol {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  gap: 0.5rem;
  font-size: 1rem;
  color: #64748b;
}
.breadcrumb li + li::before,
.account-breadcrumb ol li + li::before { content: '/'; margin-right: 0.5rem; }
.breadcrumb a,
.account-breadcrumb a { color: #94a3b8; text-decoration: none; }
.breadcrumb a:hover,
.account-breadcrumb a:hover { color: #e2e8f0; }

/* ── Address card (enhanced) — default badge ─── */
.address-card--default .address-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 1rem;
  background: rgba(167,139,250,0.15);
  color: #a78bfa;
  border: 1px solid rgba(167,139,250,0.3);
  border-radius: 50px;
  padding: 2px 8px;
  margin-left: 8px;
}

/* ── Add address animated form ────────────────── */
.add-address-form {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.add-address-form.open {
  max-height: 600px;
}

/* ── Floating label ───────────────────────────── */
.float-field { position: relative; margin-bottom: 1.5rem; }
.float-field__input {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  padding: 1.2rem 0.85rem 0.4rem;
  color: #e2e8f0;
  font-family: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.float-field__input:focus { border-color: #a78bfa; }
.float-field__input:disabled { opacity: 0.5; cursor: not-allowed; }
.float-field__label {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
  transition: all 0.2s ease;
}
.float-field__input:focus ~ .float-field__label,
.float-field__input:not(:placeholder-shown) ~ .float-field__label {
  top: 0.3rem;
  font-size: 1rem;
  color: #a78bfa;
}
.float-field__hint {
  font-size: 1rem;
  margin-top: 4px;
  display: block;
  min-height: 1em;
}
.float-field__hint--valid { color: #34d399; }
.float-field__hint--error { color: #f87171; }

/* ── Slide-down form animation ────────────────── */
.slide-down-form {
  animation: slide-down 0.3s ease;
  overflow: hidden;
}

/* ── Order timeline ───────────────────────────── */
.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1rem 0;
  overflow-x: auto;
}
.order-timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 60px;
  position: relative;
}
.order-timeline__step + .order-timeline__step::before {
  content: '';
  position: absolute;
  top: 12px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
}
.order-timeline__step--done + .order-timeline__step::before { background: #a78bfa; }
.order-timeline__dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}
.order-timeline__step--done .order-timeline__dot {
  background: #a78bfa;
  border-color: #a78bfa;
  color: #fff;
  animation: timeline-fill 0.4s ease;
}
.order-timeline__step--active .order-timeline__dot {
  background: rgba(167,139,250,0.2);
  border-color: #a78bfa;
  color: #a78bfa;
}
.order-timeline__label {
  font-size: 1rem;
  color: #64748b;
  text-align: center;
  white-space: nowrap;
}
.order-timeline__step--done .order-timeline__label,
.order-timeline__step--active .order-timeline__label { color: #a78bfa; }

/* ── Orders search ────────────────────────────── */
.orders-search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 1rem;
}
.orders-search-wrap input {
  background: none;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
}
.orders-search-wrap input::placeholder { color: #64748b; }

/* ── Orders filter tabs ───────────────────────── */
.orders-filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.orders-filter-tab {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.orders-filter-tab.active {
  background: rgba(167,139,250,0.15);
  border-color: #a78bfa;
  color: #a78bfa;
}

/* ── Section divider ──────────────────────────── */
.orders-section-divider {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin: 1rem 0 0.5rem;
}

/* ── Order card expanded detail ───────────────── */
.order-item__thumb {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.order-item__thumb--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: #475569;
  font-size: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  flex-shrink: 0;
}
.order-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-size: 1rem;
  color: #cbd5e1;
}
.order-item:last-child { border-bottom: none; }
.order-item__info { flex: 1; min-width: 0; }
.order-item__name { font-weight: 600; color: #e2e8f0; margin: 0 0 2px; }
.order-item__variant { color: #94a3b8; margin: 0; font-size: 1rem; }
.order-item__price { color: #a78bfa; font-weight: 600; white-space: nowrap; }

/* ── Estimated delivery badge ─────────────────── */
.order-estimated-delivery {
  font-size: 1rem;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.order-estimated-delivery i { color: #a78bfa; }

/* ── Order card action buttons ────────────────── */
.order-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

/* ── Orders empty state ───────────────────────── */
.orders-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #64748b;
}
.orders-empty-state i {
  font-size: 3rem;
  opacity: 0.3;
  display: block;
  margin-bottom: 1rem;
}
.orders-empty-state p { margin: 0 0 1rem; font-size: 1rem; }

/* ── Orders section label ─────────────────────── */
.orders-section-label {
  font-size: 1rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-bottom: 0.5rem;
}


/* ═══════════════════════════════════════════════
   TASK 23 — ACCESSIBILITY AUDIT & FIXES
   ═══════════════════════════════════════════════ */

/* Accessibility: ensure all interactive elements have visible focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-accent-purple, #8b5cf6);
  outline-offset: 3px;
}
/* Remove bare outline:none without replacement */
button { outline: none; }
button:focus-visible { outline: 2px solid var(--color-accent-purple, #8b5cf6); outline-offset: 3px; }

/* Accessibility: images */
img:not([alt]) { outline: 2px solid red; } /* dev helper — remove in prod */

/* ═══════════════════════════════════════════════
   TASK 24 — PERFORMANCE AUDIT & FIXES
   ═══════════════════════════════════════════════ */

/* Performance: lazy loading for below-fold images */
.cart-item__thumb,
.confirmation-item__thumb,
.order-item__thumb,
.modal-related-card__img img,
.search-autocomplete-item__img {
  loading: lazy; /* hint — actual loading="lazy" set in JS */
}

/* Network error state */
.api-error-state {
  text-align: center;
  padding: 2rem;
  color: #f87171;
  font-size: 1rem;
}
.api-error-state i { font-size: 2rem; display: block; margin-bottom: 0.75rem; opacity: 0.6; }


/* ═══════════════════════════════════════════════
   TASK 2 — Nav_Shell, Cart_Icon, Profile_Menu
   ═══════════════════════════════════════════════ */

/* ── Navbar full-width fix ────────────────────── */
.navbar {
  width: 100%;
  left: 0;
  right: 0;
}

/* ── Navbar scroll backdrop-blur class ───────── */
.navbar--scrolled {
  background: rgba(10, 14, 26, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

/* ── Cart icon enhanced ───────────────────────── */
.cart-icon--enhanced {
  font-size: 1.4rem;
  padding: 0.4rem 0.5rem;
  transition: transform 0.2s, color 0.2s;
}
.cart-icon--enhanced:hover {
  transform: scale(1.1);
  color: #a78bfa;
}
.cart-icon--enhanced .cart-badge {
  min-width: 20px;
  height: 20px;
  font-size: 1rem;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.7), 0 0 16px rgba(168, 85, 247, 0.4);
  animation: badge-glow 2s ease-in-out infinite alternate;
}

@keyframes badge-glow {
  from { box-shadow: 0 0 6px rgba(168, 85, 247, 0.6), 0 0 12px rgba(168, 85, 247, 0.3); }
  to   { box-shadow: 0 0 12px rgba(168, 85, 247, 0.9), 0 0 24px rgba(168, 85, 247, 0.5); }
}

/* ── Hide cart badge when zero ────────────────── */
.cart-badge:empty,
.cart-badge--hidden {
  display: none;
}

/* ── Cart badge pulse animation ──────────────── */
.cart-badge--pulse {
  animation: badge-pulse 0.3s ease;
}

/* ── Profile dropdown ─────────────────────────── */
.navbar__profile-item {
  position: relative;
}

.profile-dropdown {
  position: relative;
}

.profile-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  background: none;
  border: none;
  color: #e2e8f0;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.3rem 0.4rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.profile-dropdown__trigger:hover {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
}

.profile-dropdown__arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}
.profile-dropdown.open .profile-dropdown__arrow {
  transform: rotate(180deg);
}

.profile-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.4rem 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1100;
}
.profile-dropdown.open .profile-dropdown__menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.profile-dropdown__item {
  display: block;
  width: 100%;
  padding: 0.6rem 1rem;
  color: #cbd5e1;
  font-size: 1rem;
  font-family: inherit;
  text-decoration: none;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.profile-dropdown__item:hover {
  background: rgba(167, 139, 250, 0.1);
  color: #e2e8f0;
}
.profile-dropdown__item--logout {
  color: #f87171;
}
.profile-dropdown__item--logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
}

/* ── Hamburger menu — ≤ 992px ─────────────────── */
@media (max-width: 992px) {
  /* Show cart icon inside hamburger menu (override main.css hide) */
  .navbar__menu #cart-nav-icon {
    display: inline-flex;
  }

  .navbar__menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem 1.5rem;
    gap: 0.25rem;
    z-index: 999;
  }
  .navbar__menu.active {
    display: flex;
  }
  .navbar__menu li {
    width: 100%;
  }
  .navbar__menu li a,
  .navbar__menu li button:not(.profile-dropdown__trigger):not(.profile-dropdown__item) {
    display: block;
    padding: 0.65rem 0;
    color: #cbd5e1;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-decoration: none;
    width: 100%;
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
  }
  .navbar__menu li a:hover { color: #a78bfa; }

  .navbar__cart-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .navbar__profile-item {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Profile dropdown in mobile menu — show inline */
  .profile-dropdown__menu {
    position: static;
    opacity: 1;
    pointer-events: all;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    border-radius: 6px;
    padding: 0.25rem 0;
    margin-top: 0.25rem;
    display: none;
  }
  .profile-dropdown.open .profile-dropdown__menu {
    display: block;
  }

  .navbar__lang-item {
    padding: 0.5rem 0;
  }

  .navbar__toggle {
    display: flex;
  }
}

@media (min-width: 993px) {
  .navbar__menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
  }
  .navbar__toggle {
    display: none;
  }
}

/* ═══════════════════════════════════════════════
   HERO SECTION — Product-First Redesign (Task 4)
   ═══════════════════════════════════════════════ */

/* ── Hero headline & subheadline ──────────────── */
.hero-headline {
  font-family: var(--font-family-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-text-primary);
  line-height: var(--line-height-tight);
  margin: 0 0 var(--space-lg);
  text-shadow:
    0 0 40px rgba(0, 0, 0, 0.9),
    0 4px 24px rgba(0, 0, 0, 0.95),
    0 2px 8px rgba(0, 0, 0, 1);
}

.hero-subheadline {
  font-family: var(--font-family-body);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: rgba(255, 255, 255, 0.9);
  font-weight: var(--font-weight-regular);
  margin: 0 0 var(--space-2xl);
  text-shadow:
    0 2px 16px rgba(0, 0, 0, 0.95),
    0 4px 24px rgba(0, 0, 0, 0.9);
}

/* ── Hero CTA buttons ─────────────────────────── */
.hero-cta__primary,
.hero-cta__secondary {
  min-width: 180px;
}

/* ── Hero trust bar ───────────────────────────── */
.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
  flex-wrap: wrap;
}

.hero-trust-bar__item {
  font-family: var(--font-family-heading);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: var(--space-sm) var(--space-lg);
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

/* ── Responsive: ≤ 768px ──────────────────────── */
@media (max-width: 768px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta__primary,
  .hero-cta__secondary {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .hero-trust-bar {
    gap: var(--space-sm);
  }

  .hero-trust-bar__item {
    flex: 1 1 calc(50% - var(--space-sm));
    text-align: center;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════ */

#category-strip {
  padding: var(--space-lg) 0;
  background: var(--color-bg-primary, #0a0e1a);
}

#category-strip.cat-strip--hidden {
  display: none;
}

.cat-strip-section {
  padding: var(--space-lg, 1.5rem) 0;
  background: var(--color-bg-primary, #0a0e1a);
}

.cat-strip__list {
  display: flex;
  gap: var(--space-md, 1rem);
  list-style: none;
  margin: 0;
  padding: 0 var(--space-lg, 1.5rem);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Hide scrollbar visually but keep functionality */
.cat-strip__list::-webkit-scrollbar { height: 4px; }
.cat-strip__list::-webkit-scrollbar-track { background: transparent; }
.cat-strip__list::-webkit-scrollbar-thumb {
  background: rgba(167, 139, 250, 0.3);
  border-radius: 2px;
}

.cat-strip__item {
  flex-shrink: 0;
}

.cat-strip__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs, 0.5rem);
  padding: var(--space-md, 1rem);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
  min-width: 100px;
  max-width: 130px;
  font-family: inherit;
  color: var(--color-text-secondary, #94a3b8);
}

.cat-strip__card:hover {
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.3);
  transform: translateY(-2px);
}

.cat-strip__card--active {
  background: rgba(167, 139, 250, 0.12);
  border-color: var(--color-accent-primary, #a78bfa);
  color: var(--color-text-primary, #e2e8f0);
  box-shadow: 0 0 12px rgba(167, 139, 250, 0.25);
}

.cat-strip__img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md, 8px);
  object-fit: cover;
  flex-shrink: 0;
}

.cat-strip__img-placeholder {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md, 8px);
  background: linear-gradient(135deg, #7c3aed, #a855f7, #ec4899);
  flex-shrink: 0;
}

.cat-strip__name {
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
  color: inherit;
  word-break: break-word;
}

.cat-strip__count {
  font-size: 1rem;
  color: var(--color-text-muted, #64748b);
  text-align: center;
}

.cat-strip__card--active .cat-strip__count {
  color: var(--color-accent-primary, #a78bfa);
}

/* ── Mobile: horizontal scroll-snap (≤ 768px) ─── */
@media (max-width: 768px) {
  .cat-strip__list {
    scroll-snap-type: x mandatory;
    padding: 0 var(--space-md, 1rem);
    gap: var(--space-sm, 0.75rem);
  }

  .cat-strip__item {
    scroll-snap-align: start;
  }

  .cat-strip__card {
    min-width: 88px;
    max-width: 110px;
    padding: var(--space-sm, 0.75rem);
  }

  .cat-strip__img,
  .cat-strip__img-placeholder {
    width: 48px;
    height: 48px;
  }
}

/* ═══════════════════════════════════════════════
   Featured Carousels — Task 6
   ═══════════════════════════════════════════════ */

.featured-section {
  padding: 2rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.featured-section--hidden {
  display: none;
}

.featured-section__header {
  margin-bottom: 1.25rem;
}

.featured-section__title {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  color: #e2e8f0;
  margin: 0;
}

.featured-section__swiper {
  position: relative;
  overflow: hidden;
}

/* ── Featured card ─────────────────────────────── */
.featured-card {
  width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}

.featured-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.4);
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.2);
}

.featured-card__img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.featured-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card__badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(10, 14, 26, 0.85);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--color-accent-purple);
  font-size: 1rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.featured-card__body {
  padding: 0.75rem 1rem;
}

.featured-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.featured-card__price {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.featured-card__price-single {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-purple);
}

.featured-card__price-original {
  font-size: 1rem;
  color: #64748b;
  text-decoration: line-through;
}

.featured-card__price-effective {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-orange);
}

/* ── Swiper overrides for featured sections ─────── */
.featured-section__swiper .swiper-button-prev,
.featured-section__swiper .swiper-button-next {
  color: var(--color-accent-purple);
  background: rgba(10, 14, 26, 0.8);
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 50%;
  width: 36px;
  height: 36px;
}

.featured-section__swiper .swiper-button-prev::after,
.featured-section__swiper .swiper-button-next::after {
  font-size: 1rem;
}

.featured-section__swiper .swiper-pagination-bullet {
  background: rgba(167, 139, 250, 0.4);
}

.featured-section__swiper .swiper-pagination-bullet-active {
  background: var(--color-accent-purple);
}

/* ═══════════════════════════════════════════════
   TASK 7 — Product Grid: skeleton, load more,
   error state, empty state, badge overlays
   ═══════════════════════════════════════════════ */

/* ── Skeleton loading cards ───────────────────── */
@keyframes skeleton-shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton-pulse {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 800px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
  border-radius: 4px;
}

.cat-card--skeleton {
  pointer-events: none;
}

.cat-skeleton-img {
  height: 220px;
  border-radius: 8px 8px 0 0;
}

.cat-skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 4px;
}

.cat-skeleton-line--short  { width: 60%; }
.cat-skeleton-line--medium { width: 80%; }
.cat-skeleton-line--long   { width: 90%; }

.cat-skeleton-btn {
  height: 36px;
  width: 100%;
  border-radius: 8px;
  margin-top: 8px;
}

/* ── Load More button ─────────────────────────── */
.cat-load-more-wrap {
  text-align: center;
  padding: 1.5rem 1rem;
}

.cat-load-more-wrap--hidden {
  display: none;
}

.cat-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: rgba(167, 139, 250, 0.12);
  color: var(--color-accent-purple);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.cat-load-more-btn:hover {
  background: rgba(167, 139, 250, 0.22);
  border-color: rgba(167, 139, 250, 0.6);
  transform: translateY(-1px);
}

.cat-load-more-btn:active {
  transform: translateY(0);
}

/* ── Error state card ─────────────────────────── */
.cat-error-card {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2.5rem 1.5rem;
  color: #f87171;
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.2);
  border-radius: 12px;
}

.cat-error-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.cat-error-msg {
  font-size: 1rem;
  margin: 0 0 1rem;
  color: var(--color-error);
}

.cat-error-retry {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  background: rgba(239, 68, 68, 0.12);
  color: var(--color-error);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cat-error-retry:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* ── Empty state ──────────────────────────────── */
.cat-empty--hidden {
  display: none;
}

/* ── Badge overlays (no inline styles) ───────── */
.cat-card-badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.cat-card-discount-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-size: 1rem;
  padding: 3px 8px;
}

/* ── Tabs wrap shadow (class-toggled) ─────────── */
.cat-tabs-wrap--shadow {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ── Modal hint hidden state ──────────────────── */
.modal-table-hint--hidden {
  opacity: 0;
}

/* ── Variant qty wrap visible state ──────────── */
.variant-qty-wrap {
  display: none;
  align-items: center;
  gap: 6px;
}

.variant-qty-wrap--visible {
  display: flex;
}

/* ── Modal gallery thumb active border ────────── */
.cat-modal-gallery-thumb {
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.cat-modal-gallery-thumb.active {
  border-color: var(--color-accent-purple);
}

/* ═══════════════════════════════════════════════
   TASK 8 — Product Card Design
   ═══════════════════════════════════════════════ */

/* ── Product card hover state ─────────────────── */
.product-card--hovered {
  transform: translateY(-4px);
  border-color: var(--color-accent-purple, #8b5cf6);
  box-shadow: 0 0 0 1px var(--color-accent-purple, #8b5cf6),
              0 8px 32px rgba(139, 92, 246, 0.25);
}

/* ── Description excerpt (max 2 lines) ────────── */
.cat-card-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 1rem;
  color: var(--color-text-muted, #94a3b8);
  line-height: var(--line-height-normal, 1.6);
  min-height: 0;
}

/* ── Price wrap ───────────────────────────────── */
.cat-card-price-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ── Strikethrough original price ─────────────── */
.cat-card-price-original {
  font-size: 1rem;
  color: var(--color-text-disabled, #475569);
  text-decoration: line-through;
}

/* ── Effective (discounted) price ─────────────── */
.cat-card-price--effective {
  color: var(--color-accent-orange, #f97316);
  font-weight: var(--font-weight-bold, 700);
}

/* ── Unavailable price state ──────────────────── */
.cat-card-price--unavailable {
  color: var(--color-text-disabled, #475569);
  font-size: 1rem;
  font-style: italic;
}

/* ── Disabled CTA button ──────────────────────── */
.cat-card-cta--disabled,
.cat-card-cta:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════
   TASK 10 — Product Detail Page (PDP)
   ═══════════════════════════════════════════════ */

/* ── SPA view visibility helpers ─────────────── */
.spa-view--hidden {
    display: none;
}

.spa-section--hidden {
    display: none !important;
}

/* ── PDP loading spinner ──────────────────────── */
.pdp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.pdp-loading__icon {
    font-size: 2.5rem;
    color: var(--color-accent-purple, #8b5cf6);
    opacity: 0.7;
}

/* ── PDP error card ───────────────────────────── */
.pdp-error-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--color-error, #ef4444);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-lg, 14px);
    max-width: 480px;
    margin: 2rem auto;
}

.pdp-error-card__icon {
    font-size: 2.5rem;
    opacity: 0.7;
}

.pdp-error-card__msg {
    font-size: 1rem;
    color: #fca5a5;
    margin: 0;
}

/* ── PDP page wrapper ─────────────────────────── */
.pdp-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 4rem;
}

/* ── Breadcrumb ───────────────────────────────── */
.pdp-breadcrumb {
    margin-bottom: 1.5rem;
}

.pdp-breadcrumb__list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
    color: var(--color-text-muted, #94a3b8);
}

.pdp-breadcrumb__item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.pdp-breadcrumb__link {
    background: none;
    border: none;
    color: var(--color-text-muted, #94a3b8);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0;
    transition: color var(--transition-fast, 0.15s ease);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pdp-breadcrumb__link:hover {
    color: var(--color-text-primary, #e2e8f0);
}

.pdp-breadcrumb__link:focus-visible {
    outline: 2px solid var(--color-accent-purple, #8b5cf6);
    outline-offset: 2px;
    border-radius: 3px;
}

.pdp-breadcrumb__sep {
    color: var(--color-text-disabled, #475569);
    font-size: 1rem;
    margin: 0 0.1rem;
}

.pdp-breadcrumb__text {
    font-size: 1rem;
    color: var(--color-text-muted, #94a3b8);
}

.pdp-breadcrumb__text--current {
    color: var(--color-text-primary, #e2e8f0);
    font-weight: var(--font-weight-semibold, 600);
}

/* ── PDP two-column layout ────────────────────── */
.pdp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

@media (max-width: 768px) {
    .pdp-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ── Gallery ──────────────────────────────────── */
.pdp-gallery {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.pdp-gallery__main-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-lg, 14px);
    overflow: hidden;
    background: var(--color-bg-surface, rgba(255,255,255,0.04));
    border: 1px solid var(--color-border, rgba(255,255,255,0.07));
}

.pdp-gallery__main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base, 0.25s ease);
}

.pdp-gallery__main-wrap:hover .pdp-gallery__main-img {
    transform: scale(1.03);
}

.pdp-gallery__main-wrap--placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--color-text-disabled, #475569);
}

.pdp-gallery__placeholder-icon {
    font-size: 3rem;
}

.pdp-gallery__placeholder-text {
    font-size: 1rem;
}

.pdp-gallery__thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}

.pdp-gallery__thumbs::-webkit-scrollbar { height: 4px; }
.pdp-gallery__thumbs::-webkit-scrollbar-track { background: transparent; }
.pdp-gallery__thumbs::-webkit-scrollbar-thumb {
    background: rgba(167, 139, 250, 0.3);
    border-radius: 2px;
}

.pdp-gallery__thumb {
    flex-shrink: 0;
    width: 72px;
    height: 72px;
    border-radius: var(--radius-md, 8px);
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition-fast, 0.15s ease);
}

.pdp-gallery__thumb:hover {
    border-color: rgba(167, 139, 250, 0.5);
}

.pdp-gallery__thumb--active {
    border-color: var(--color-accent-purple, #8b5cf6);
}

.pdp-gallery__thumb:focus-visible {
    outline: 2px solid var(--color-accent-purple, #8b5cf6);
    outline-offset: 2px;
}

.pdp-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Product info panel ───────────────────────── */
.pdp-title {
    font-family: var(--font-family-heading, 'Poppins', sans-serif);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-text-primary, #e2e8f0);
    margin: 0 0 1rem;
    line-height: var(--line-height-tight, 1.2);
}

.pdp-desc {
    font-size: 1rem;
    color: var(--color-text-secondary, #cbd5e1);
    line-height: var(--line-height-normal, 1.6);
    margin: 0 0 1.5rem;
}

/* ── Variants section ─────────────────────────── */
.pdp-variants {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.pdp-variants__empty {
    font-size: 1rem;
    color: var(--color-text-disabled, #475569);
    font-style: italic;
    margin: 0;
}

/* ── Variant row ──────────────────────────────── */
.pdp-variant-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--color-bg-surface, rgba(255,255,255,0.04));
    border: 1px solid var(--color-border, rgba(255,255,255,0.07));
    border-radius: var(--radius-md, 8px);
    transition: border-color var(--transition-fast, 0.15s ease), background var(--transition-fast, 0.15s ease);
}

.pdp-variant-row--disabled {
    opacity: 0.5;
    pointer-events: none;
}

.pdp-variant-row--selected {
    border-color: var(--color-accent-purple, #8b5cf6);
    background: rgba(139, 92, 246, 0.08);
}

.pdp-variant-row__check-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    cursor: pointer;
    min-width: 0;
}

.pdp-variant-cb {
    width: 18px;
    height: 18px;
    accent-color: var(--color-accent-purple, #8b5cf6);
    cursor: pointer;
    flex-shrink: 0;
}

.pdp-variant-row__label {
    font-size: 1rem;
    color: var(--color-text-primary, #e2e8f0);
    font-weight: var(--font-weight-medium, 500);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pdp-variant-row__price-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
}

.pdp-variant__price {
    font-size: 1rem;
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-accent-purple, #a78bfa);
}

.pdp-variant__price--effective {
    color: var(--color-accent-orange, #f97316);
}

.pdp-variant__price--unavailable {
    color: var(--color-text-disabled, #475569);
    font-weight: var(--font-weight-regular, 400);
    font-style: italic;
}

.pdp-variant__price-original {
    font-size: 1rem;
    color: var(--color-text-disabled, #475569);
    text-decoration: line-through;
}

.pdp-variant__unavailable-label {
    font-size: 1rem;
    color: var(--color-text-disabled, #475569);
    font-style: italic;
}

/* ── Qty stepper ──────────────────────────────── */
.pdp-variant-row__qty-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pdp-variant-row__qty-wrap--hidden {
    display: none;
}

.pdp-qty-btn {
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--color-border-strong, rgba(255,255,255,0.12));
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text-primary, #e2e8f0);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast, 0.15s ease);
    font-family: inherit;
}

.pdp-qty-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.pdp-qty-btn:focus-visible {
    outline: 2px solid var(--color-accent-purple, #8b5cf6);
    outline-offset: 2px;
}

.pdp-qty-input {
    width: 48px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border-strong, rgba(255,255,255,0.12));
    border-radius: var(--radius-sm, 6px);
    color: var(--color-text-primary, #e2e8f0);
    font-size: 1rem;
    font-family: inherit;
    padding: 0.25rem 0.3rem;
    outline: none;
}

.pdp-qty-input:focus {
    border-color: var(--color-accent-purple, #8b5cf6);
}

/* ── Design file upload ───────────────────────── */
.pdp-variant-row__upload-wrap {
    width: 100%;
    margin-top: 0.25rem;
}

.pdp-variant-row__upload-wrap--hidden {
    display: none;
}

.pdp-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 1rem;
    color: var(--color-info, #3b82f6);
    cursor: pointer;
    transition: color var(--transition-fast, 0.15s ease);
}

.pdp-upload-label:hover {
    color: #60a5fa;
}

.pdp-design-file {
    display: none;
}

/* ── Total row ────────────────────────────────── */
.pdp-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-top: 1px solid var(--color-border, rgba(255,255,255,0.07));
    border-bottom: 1px solid var(--color-border, rgba(255,255,255,0.07));
    margin-bottom: 1rem;
}

.pdp-total-label {
    font-size: 1rem;
    color: var(--color-text-muted, #94a3b8);
    font-weight: var(--font-weight-medium, 500);
}

.pdp-total-amount {
    font-size: 1.2rem;
    font-weight: var(--font-weight-bold, 700);
    color: var(--color-accent-purple, #a78bfa);
}

/* ── Add to cart button ───────────────────────── */
.pdp-add-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: var(--color-gradient-brand, linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%));
    color: #fff;
    border: none;
    border-radius: var(--radius-md, 8px);
    font-family: var(--font-family-heading, 'Poppins', sans-serif);
    font-size: 1rem;
    font-weight: var(--font-weight-semibold, 600);
    cursor: pointer;
    transition: opacity var(--transition-fast, 0.15s ease), transform var(--transition-fast, 0.15s ease);
    margin-bottom: 0.75rem;
}

.pdp-add-btn:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pdp-add-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none;
}

.pdp-add-btn:focus-visible {
    outline: 2px solid var(--color-accent-purple, #8b5cf6);
    outline-offset: 3px;
}

/* ── Back to catalog link ─────────────────────── */
.pdp-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: none;
    color: var(--color-text-muted, #94a3b8);
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    padding: 0.4rem 0;
    transition: color var(--transition-fast, 0.15s ease);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.pdp-back-link:hover {
    color: var(--color-text-primary, #e2e8f0);
}

.pdp-back-link:focus-visible {
    outline: 2px solid var(--color-accent-purple, #8b5cf6);
    outline-offset: 2px;
    border-radius: 3px;
}

/* ── Responsive: mobile stacks gallery above info ─ */
@media (max-width: 768px) {
    .pdp-page {
        padding: 1rem 1rem 3rem;
    }

    .pdp-gallery__thumb {
        width: 60px;
        height: 60px;
    }

    .pdp-variant-row {
        flex-wrap: wrap;
    }
}


/* ═══════════════════════════════════════════════
   TASK 11 — Services Section (Secondary Content)
   Positioned below Product_Grid in the page layout
   ═══════════════════════════════════════════════ */

/* ── Service panel CTA button ─────────────────── */
.showcase-service-cta {
  margin-top: 1.25rem;
}

.showcase-service-cta__btn {
  font-size: 1rem;
  padding: 0.65rem 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Coming soon placeholder (replaces inline styles) ── */
.showcase-media-item--coming-soon {
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.75rem;
  color: #64748b;
  min-height: 200px;
}

.showcase-coming-soon-icon {
  font-size: 4rem;
  line-height: 1;
}

.showcase-coming-soon-text {
  font-size: 1rem;
}

/* ── Responsive: ≤ 768px — service panels stack vertically ── */
@media (max-width: 768px) {
  /* Showcase section layout: stack sidebar above panels */
  .showcase-section {
    display: flex;
    flex-direction: column;
  }

  /* Service sidebar stacks above the panels */
  .service-sidebar {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* Showcase panels: full width, stacked */
  .showcase-panel {
    width: 100%;
  }

  /* Service info: stack text above media grid */
  .showcase-service-info {
    flex-direction: column;
  }

  /* Media grid: single column on mobile */
  .showcase-media-grid {
    grid-template-columns: 1fr;
  }

  .showcase-media-item--wide {
    grid-column: span 1;
  }

  /* CTA button: full width on mobile */
  .showcase-service-cta {
    width: 100%;
  }

  .showcase-service-cta__btn {
    width: 100%;
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════
   TASK 12 — Trust Signals & Promo Banner
   ═══════════════════════════════════════════════ */

/* ── WhatsApp modal hidden state ──────────────── */
.wa-modal-overlay--hidden {
  display: none;
}


/* ═══════════════════════════════════════════════
   TASK 12 — Trust Signals, Social Proof, Promo Banner
   ═══════════════════════════════════════════════ */

/* ── Footer contact links ─────────────────────── */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-secondary, #94a3b8);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: var(--color-text-primary, #e2e8f0);
}

.footer-contact-link--wa i   { color: #25d366; }
.footer-contact-link--email i { color: var(--color-accent-purple, #8b5cf6); }
.footer-contact-link--ig i   { color: #ec4899; }

/* ── Footer trademark ─────────────────────────── */
.footer-trademark {
  font-size: 1rem;
  color: var(--color-text-muted, #64748b);
  text-align: center;
  margin: 0.25rem 0 0;
}


/* ── Colorful Store Link ──────────────────────────────────────────────────── */
.nav-store-link {
  background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-store-link:hover {
  transform: translateY(-2px);
  filter: brightness(1.2);
}

.nav-store-link i {
  -webkit-text-fill-color: #8b5cf6;
  background: none;
  margin-right: 0.25rem;
}


/* ── Modern Promo Banner Slider ───────────────────────────────────────────── */
.promo-slider {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  margin-top: var(--promo-banner-height, 0px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.promo-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.promo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.promo-slide--active {
  opacity: 1;
  pointer-events: auto;
}

.promo-slide--active .promo-slide__content {
  animation: slideInLeft 0.8s ease-out;
}

.promo-slide--active .promo-slide__image {
  animation: slideInRight 0.8s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.promo-slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.promo-slide__bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.promo-slide .container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.promo-slide__content {
  flex: 1;
  max-width: 600px;
  color: #fff;
}

.promo-slide__badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.promo-slide__title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.promo-slide__desc {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.95;
}

.promo-slide__cta .btn {
  padding: 1rem 2rem;
  font-size: 1.125rem;
  background: #fff;
  color: #1e293b;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.promo-slide__cta .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.3);
}

.promo-slide__image {
  flex: 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-slide__image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Navigation Dots */
.promo-slider__dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.75rem;
}

.promo-slider__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-slider__dot:hover {
  background: rgba(255, 255, 255, 0.6);
  transform: scale(1.2);
}

.promo-slider__dot--active {
  background: #fff;
  width: 32px;
  border-radius: var(--radius-full);
}

/* Navigation Arrows */
.promo-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-slider__arrow:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.promo-slider__arrow--prev {
  left: 2rem;
}

.promo-slider__arrow--next {
  right: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .promo-slider {
    height: 400px;
  }

  .promo-slide .container {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .promo-slide__content {
    max-width: 100%;
  }

  .promo-slide__title {
    font-size: 2rem;
  }

  .promo-slide__desc {
    font-size: 1rem;
  }

  .promo-slide__image {
    display: none;
  }

  .promo-slider__arrow {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .promo-slider__arrow--prev {
    left: 1rem;
  }

  .promo-slider__arrow--next {
    right: 1rem;
  }
}

/* ── Store Stats Bar (Catchy) ───────────────────────────────────────────── */
.store-stats-bar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.store-stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

.store-stats-grid {
  display: grid;
  grid-template-columns: repeat(7, auto);
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.store-stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  animation: fadeInUp 0.6s ease-out backwards;
}

.store-stat-item:nth-child(1) { animation-delay: 0.1s; }
.store-stat-item:nth-child(3) { animation-delay: 0.2s; }
.store-stat-item:nth-child(5) { animation-delay: 0.3s; }
.store-stat-item:nth-child(7) { animation-delay: 0.4s; }

.store-stat-icon {
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.store-stat-item:hover .store-stat-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.store-stat-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.store-stat-num {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.store-stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-stat-divider {
  width: 2px;
  height: 3rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .store-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
  }

  .store-stat-divider {
    display: none;
  }

  .store-stat-item {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .store-stats-bar {
    padding: 1.5rem 0;
  }

  .store-stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .store-stat-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.25rem;
  }

  .store-stat-num {
    font-size: 1.5rem;
  }

  .store-stat-label {
    font-size: 1rem;
  }
}


/* ── Reviews Section Title ───────────────────────────────────────────── */
.reviews-section__title {
  text-align: center;
  margin-bottom: 2.5rem;
}

/* ── Certifications Section ───────────────────────────────────────────── */
.certifications-section {
  background: #0f172a;
  padding: 3rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.certifications-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.certification-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.certification-icon {
  font-size: 1.5rem;
  color: #8b5cf6;
}

.certification-label {
  font-size: 1rem;
  color: #94a3b8;
  font-weight: 600;
}

/* ── Footer Contact ───────────────────────────────────────────── */
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #94a3b8;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.2s;
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-contact-icon {
  font-size: 1.125rem;
}

.footer-contact-icon--whatsapp {
  color: #25d366;
}

.footer-contact-icon--email {
  color: #8b5cf6;
}

.footer-contact-icon--instagram {
  color: #ec4899;
}

/* ── Responsive: Brand Story Grid ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .brand-story-grid {
    grid-template-columns: 1fr !important;
  }
}
