/*
 * Generated by scripts/build-customer-product-css-bundle.mjs.
 * Do not edit directly; edit the source CSS partials instead.
 */

/* frontend/css/variables.css */
/* frontend/css/variables.css - TOGGLE READY */
:root {
    /* --- DEFAULT (LIGHT) --- */
    --primary: #e91e63;
    --primary-dark: #c2185b;
    --primary-light: #ff6090;
    --primary-text: #c2185b;
    --primary-tint: rgba(233, 30, 99, 0.12);
    --primary-gradient: linear-gradient(135deg, #e91e63 0%, #ff6b9d 100%);

    /* Secondary accent (promo, membership highlights) */
    --secondary: #764ba2;
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);

    --bg-body: linear-gradient(to bottom, #ffffff 0%, #fff5f9 100%);
    --bg-soft: #fff5f9;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-header: #ffffff;
    --bg-footer: #333333;
    --bg-subtle: #f8f9fa;
    --bg-subtle-2: #f5f5f5;
    --bg-danger: #ffebee;
    --bg-success: #e8f5e9;
    --bg-warning: #fff3e0;
    --bg-info: #e3f2fd;
    --bg-credit: #f3e5f5;

    --text-main: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --text-inverse: #ffffff;

    --border-color: #eee;
    --border-highlight: #ffc0cb;

    /* Brand colors */
    --brand-whatsapp: #25D366;
    --brand-whatsapp-dark: #128C7E;

    /* Semantic colors */
    --danger: #dc3545;
    --danger-dark: #c82333;
    --danger-text: #b71c1c;
    --success: #4caf50;
    --success-dark: #388e3c;
    --success-text: #2e7d32;
    --warning: #ff9800;
    --warning-dark: #f57c00;
    --warning-text: #8a5200;
    --info: #2196f3;
    --info-dark: #1976d2;
    --info-link: #1976d2;

    /* Secondary accent (credits, notices) */
    --credit: #9c27b0;

    /* Backward-compatible aliases */
    --error: var(--danger);

    /* Effects */
    --overlay: rgba(0, 0, 0, 0.5);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.12);
    --shadow-primary: 0 6px 18px rgba(233, 30, 99, 0.25);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);

    /* Shared mobile-first sizing tokens (CPWA baseline) */
    --ui-font-body: 15px;
    --ui-font-label: 14px;
    --ui-font-caption: 12px;
    --ui-font-button: 15px;
    --ui-font-button-sm: 13px;
    --ui-font-section: 18px;
    --ui-font-page-title: 24px;
    --ui-font-card-title: 16px;
    --ui-font-brand: 26px;
    --ui-font-hero: 30px;
    --ui-font-pill: 13px;
    --ui-control-min-height: 44px;
    --ui-control-min-height-chip: 36px;
    --ui-control-min-height-comfortable: 48px;
    --ui-control-min-height-hero: 52px;
    --ui-control-padding-y: 12px;
    --ui-control-padding-x: 16px;
    --ui-button-padding-y: 12px;
    --ui-button-padding-x: 18px;
    --ui-control-radius: 12px;
    --ui-card-radius: 16px;
    --ui-chip-radius: 12px;
    --ui-surface-padding: 18px;
    --ui-surface-padding-compact: 14px;
    --ui-stack-gap: 14px;
    --ui-inline-gap: 10px;
    --ui-bottom-nav-height: 78px;
    --ui-bottom-nav-gap: 10px;
    --ui-mobile-sheet-radius: 24px;
}

/* Dark mode is explicit only. CPWA never follows the device theme automatically. */
[data-theme="dark"] {
    --bg-body: #121212;
    --bg-soft: var(--bg-body);
    --bg-card: #1e1e1e;
    --bg-input: #2d2d2d;
    --bg-header: #1e1e1e;
    --bg-footer: #000000;
    --bg-subtle: #252525;
    --bg-subtle-2: #2a2a2a;
    --bg-danger: #2b1d1e;
    --bg-success: #1b2a1e;
    --bg-warning: #2b2318;
    --bg-info: #0d47a1;
    --bg-credit: #4a148c;
    --text-main: #e0e0e0;
    --text-muted: #a0a0a0;
    --text-light: #666666;
    --text-inverse: #ffffff;
    --border-color: #333333;
    --border-highlight: #c2185b;
    --primary-gradient: linear-gradient(135deg, #ad1457 0%, #880e4f 100%);
    --primary-tint: rgba(233, 30, 99, 0.18);
    --secondary: #d1c4e9;
    --secondary-gradient: linear-gradient(135deg, #283593 0%, #4a148c 100%);
    --overlay: rgba(0, 0, 0, 0.65);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow-primary: 0 6px 18px rgba(233, 30, 99, 0.35);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.45);
    --info-link: #bbdefb;
    --credit: #ce93d8;
    --primary-text: #ff8ab0;
    --success-text: #81c784;
    --warning-text: #ffcc80;
    --danger-text: #ef9a9a;
}


/* shared/css/universal-auth-ui.css */
.uauth-container {
  /* Theme tokens (prefer app-level CSS variables, fall back to safe defaults) */
  --uauth-primary: var(--primary, var(--accent-primary, #d81b60));
  --uauth-primary-dark: var(--primary-dark, var(--accent-primary-hover, #ad1457));
  --uauth-text: var(--text-main, var(--text-primary, #f2f2f2));
  --uauth-muted: var(--text-muted, var(--text-secondary, #b8b8b8));
  --uauth-bg: var(--bg-card, var(--bg-elevated, var(--card-surface, #121212)));
  --uauth-input-bg: var(--bg-input, var(--bg-tertiary, var(--bg-secondary, #1a1a1a)));
  --uauth-border: var(--border-color, var(--border, rgba(255, 255, 255, 0.14)));
  --uauth-focus: var(--border-highlight, var(--uauth-primary));
  --uauth-error: var(--error, #f44336);
  --uauth-success: var(--success, #4caf50);
  --uauth-info: var(--info, #2196f3);
  --uauth-warning: var(--warning, #ff9800);
  --uauth-shadow: var(--shadow-md, rgba(0, 0, 0, 0.35));
  --uauth-overlay: var(--overlay, rgba(0, 0, 0, 0.42));
  --uauth-spinner-track: var(--spinner-track, rgba(255, 255, 255, 0.22));
  --uauth-biometric-bg: var(--biometric-bg, #334155);
  --uauth-biometric-bg-hover: var(--biometric-bg-hover, #1e293b);

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 400px;
  margin: 0 auto;
  padding: 24px;
  background: var(--uauth-bg);
  border-radius: 12px;
  box-shadow: 0 4px 20px var(--uauth-shadow);
  position: relative;
  color: var(--uauth-text);
  border: 1px solid var(--uauth-border);
  box-sizing: border-box;
}

.uauth-container [hidden] {
  display: none !important;
}

/* Optional role-specific tweaks (useful if an app doesn't define --primary). */
.uauth-theme-customer {
  --uauth-primary: var(--primary, #b01255);
  --uauth-primary-dark: var(--primary-dark, #8f0f45);
}
.uauth-theme-staff {
  --uauth-primary: var(--primary, #2563eb);
  --uauth-primary-dark: var(--primary-dark, #1d4ed8);
}
.uauth-theme-rider {
  --uauth-primary: var(--primary, #16a34a);
  --uauth-primary-dark: var(--primary-dark, #15803d);
}

.uauth-header {
  text-align: center;
  margin-bottom: 24px;
}
.uauth-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--uauth-text);
  margin: 0 0 8px 0;
}
.uauth-subtitle {
  font-size: 14px;
  color: var(--uauth-muted);
  margin: 0;
}

.uauth-section {
  margin-bottom: 16px;
}

.uauth-phone-group {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.uauth-country-select {
  flex: 0 0 100px;
  padding: 12px;
  border: 2px solid var(--uauth-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--uauth-input-bg);
  color: var(--uauth-text);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.uauth-country-select:focus {
  outline: none;
  border-color: var(--uauth-focus);
}

.uauth-phone-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--uauth-border);
  border-radius: 8px;
  font-size: 18px;
  letter-spacing: 1px;
  background: var(--uauth-input-bg);
  color: var(--uauth-text);
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.uauth-phone-input:focus {
  outline: none;
  border-color: var(--uauth-focus);
}

.uauth-phone-input.uauth-input-invalid,
.uauth-otp-input.uauth-input-invalid {
  border-color: var(--uauth-error);
  box-shadow: 0 0 0 1px rgba(244, 67, 54, 0.2);
}

.uauth-otp-input {
  width: 100%;
  padding: 16px;
  border: 2px solid var(--uauth-border);
  border-radius: 8px;
  font-size: 24px;
  text-align: center;
  letter-spacing: 8px;
  margin-bottom: 16px;
  box-sizing: border-box;
  background: var(--uauth-input-bg);
  color: var(--uauth-text);
}
.uauth-otp-input:focus {
  outline: none;
  border-color: var(--uauth-focus);
}

.uauth-field-error {
  margin: -8px 0 12px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--uauth-error);
}

.uauth-btn {
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, color 0.12s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.uauth-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.uauth-btn-primary {
  background: var(--uauth-primary);
  color: var(--text-inverse, #ffffff);
}
.uauth-btn-primary:hover:not(:disabled) {
  background: var(--uauth-primary-dark);
  transform: translateY(-1px);
}
.uauth-btn-secondary {
  background: transparent;
  border: 2px solid var(--uauth-border);
  color: var(--uauth-text);
}
.uauth-btn-secondary:hover:not(:disabled) {
  border-color: var(--uauth-focus);
  transform: translateY(-1px);
}
.uauth-btn-biometric {
  background: linear-gradient(135deg, var(--uauth-primary), #ad1457);
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 32px rgba(233, 30, 99, 0.32);
  color: var(--text-inverse, #ffffff);
  min-height: 52px;
  letter-spacing: 0;
}
.uauth-btn-biometric:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--uauth-primary-light), var(--uauth-primary-dark));
  transform: translateY(-1px);
}
.uauth-btn-biometric:focus-visible {
  outline: 3px solid rgba(33, 150, 243, 0.45);
  outline-offset: 3px;
}
.uauth-btn-biometric:disabled {
  background: var(--uauth-biometric-bg);
  box-shadow: none;
}
.uauth-btn-link {
  background: transparent;
  color: var(--uauth-muted);
  font-weight: 400;
}
.uauth-btn-link:hover {
  color: var(--uauth-primary);
}
.uauth-icon {
  font-size: 20px;
}

.uauth-status {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  text-align: center;
}
.uauth-status.error {
  background: rgba(244, 67, 54, 0.12);
  color: var(--uauth-error);
  border: 1px solid var(--uauth-error);
}
.uauth-status.success {
  background: rgba(76, 175, 80, 0.12);
  color: var(--uauth-success);
  border: 1px solid var(--uauth-success);
}
.uauth-status.info {
  background: rgba(33, 150, 243, 0.12);
  color: var(--uauth-info);
  border: 1px solid var(--uauth-info);
}

.uauth-phone-display {
  font-size: 18px;
  font-weight: 500;
  text-align: center;
  color: var(--uauth-text);
  margin-bottom: 20px;
  padding: 12px;
  background: var(--uauth-input-bg);
  border-radius: 8px;
  border: 1px solid var(--uauth-border);
}
.uauth-otp-prompt {
  font-size: 14px;
  color: var(--uauth-muted);
  text-align: center;
  margin-bottom: 16px;
}

.uauth-otp-delivery {
  font-size: 13px;
  color: var(--uauth-muted);
  text-align: center;
  margin: -4px 0 12px;
}

.uauth-otp-delivery strong {
  color: var(--uauth-text);
}

.uauth-otp-channel {
  margin-bottom: 12px;
}

.uauth-hidden-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.uauth-otp-channel-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.uauth-customer-method-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 10px 0 8px;
}

.uauth-otp-channel-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  padding: 12px 14px;
  border: 1px solid var(--uauth-border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--uauth-text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

.uauth-otp-channel-card:hover {
  border-color: var(--uauth-focus);
  transform: translateY(-1px);
}

.uauth-otp-channel-card.is-selected {
  border-color: var(--uauth-focus);
  background: rgba(233, 30, 99, 0.12);
  box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.18);
}

.uauth-otp-channel-card[data-channel='telegram'].is-selected {
  border-color: #229ed9;
  background: rgba(34, 158, 217, 0.14);
  box-shadow: 0 0 0 1px rgba(34, 158, 217, 0.2);
}

.uauth-otp-channel-card[data-channel='whatsapp'].is-selected {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.14);
  box-shadow: 0 0 0 1px rgba(37, 211, 102, 0.2);
}

.uauth-otp-channel-card:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.uauth-otp-channel-card.uauth-customer-telegram-primary {
  min-height: 52px;
  align-items: center;
  border-color: rgba(34, 158, 217, 0.72);
  background: linear-gradient(135deg, rgba(34, 158, 217, 0.98), rgba(18, 112, 178, 0.98));
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(34, 158, 217, 0.28);
}

.uauth-otp-channel-card.uauth-customer-telegram-primary:hover:not(:disabled) {
  border-color: #7fd4ff;
  background: linear-gradient(135deg, #27a8e4, #167dc3);
  transform: translateY(-1px);
}

.uauth-otp-channel-card.uauth-customer-telegram-primary .uauth-brand-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: #ffffff;
}

.uauth-otp-channel-card.uauth-customer-telegram-primary .uauth-brand-icon svg {
  width: 18px;
  height: 18px;
}

.uauth-otp-channel-card.uauth-customer-telegram-primary .uauth-otp-channel-copy-title {
  color: #ffffff;
  font-size: 17px;
}

.uauth-customer-telegram-hint {
  color: var(--uauth-muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.uauth-customer-whatsapp-fallback {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--uauth-muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 2px 0;
  text-align: center;
  cursor: pointer;
}

.uauth-customer-whatsapp-fallback:hover:not(:disabled),
.uauth-customer-whatsapp-fallback:focus-visible {
  color: var(--uauth-text);
}

.uauth-customer-whatsapp-fallback:focus-visible {
  outline: 2px solid var(--uauth-primary);
  outline-offset: 3px;
}

.uauth-customer-whatsapp-fallback-link {
  display: block;
  color: var(--uauth-text);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.uauth-customer-whatsapp-fallback-link .uauth-brand-icon,
.uauth-customer-whatsapp-fallback-link .uauth-brand-icon svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  vertical-align: -3px;
}

.uauth-customer-whatsapp-fallback:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.uauth-otp-channel-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.uauth-otp-channel-copy-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--uauth-text);
}

.uauth-otp-channel-copy-desc {
  font-size: 12px;
  line-height: 1.35;
  color: var(--uauth-muted);
}

.uauth-otp-channel-summary {
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--uauth-text);
}

.uauth-otp-channel-select {
  width: 100%;
  padding: 12px 12px 12px 42px;
  border: 2px solid var(--uauth-border);
  border-radius: 8px;
  font-size: 14px;
  background: var(--uauth-input-bg);
  background-image: var(--uauth-channel-icon);
  background-repeat: no-repeat;
  background-position: 12px center;
  background-size: 18px 18px;
  color: var(--uauth-text);
  margin-bottom: 6px;
}

.uauth-otp-channel-select.uauth-channel-telegram {
  border-color: #229ed9;
  background: rgba(34, 158, 217, 0.14);
  color: #d8f2ff;
}

.uauth-otp-channel-select.uauth-channel-whatsapp {
  border-color: #25d366;
  background: rgba(37, 211, 102, 0.14);
  color: #d8ffe8;
}

.uauth-otp-channel-select:focus {
  outline: none;
  border-color: var(--uauth-focus);
}

.uauth-otp-channel-hint {
  display: block;
  color: var(--uauth-muted);
  font-size: 12px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .uauth-otp-channel-cards {
    grid-template-columns: 1fr;
  }
}

.uauth-otp-why-link {
  border: none;
  background: transparent;
  color: #7fd4ff;
  font-size: 12px;
  font-weight: 600;
  margin: 4px 0 0;
  padding: 2px 0;
  text-decoration: underline;
  cursor: pointer;
}

.uauth-otp-why-link:hover {
  color: #b5e8ff;
}

.uauth-btn-secondary.uauth-btn-telegram {
  background: #229ed9;
  border: 2px solid #229ed9;
  color: #ffffff;
}

.uauth-btn-secondary.uauth-btn-telegram:hover:not(:disabled) {
  background: #188ac0;
  border-color: #188ac0;
}

.uauth-btn-secondary.uauth-btn-whatsapp {
  background: #1fa855;
  border: 2px solid #1fa855;
  color: #ffffff;
}

.uauth-btn-secondary.uauth-btn-whatsapp:hover:not(:disabled) {
  background: #198946;
  border-color: #198946;
}

.uauth-btn-secondary.uauth-btn-telegram .uauth-brand-icon,
.uauth-btn-secondary.uauth-btn-whatsapp .uauth-brand-icon {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 999px;
  width: 20px;
  height: 20px;
}

.uauth-btn-secondary.uauth-btn-telegram .uauth-brand-icon svg,
.uauth-btn-secondary.uauth-btn-whatsapp .uauth-brand-icon svg {
  width: 13px;
  height: 13px;
}

.uauth-tg-benefits-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
}

.uauth-tg-benefits-modal[hidden] {
  display: none !important;
}

.uauth-tg-benefits-card {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
  padding: 16px 16px 18px;
  position: relative;
}

.uauth-tg-benefits-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.uauth-tg-benefits-title {
  margin: 4px 0 6px;
  color: #f5f7fb;
  font-size: 20px;
  font-weight: 700;
}

.uauth-tg-benefits-intro {
  margin: 0 0 12px;
  color: #c7d0dd;
  font-size: 14px;
  line-height: 1.45;
}

.uauth-tg-benefits-list {
  margin: 0 0 14px 20px;
  padding: 0;
  color: #e3e7ee;
  font-size: 14px;
  line-height: 1.45;
}

.uauth-tg-benefits-list li + li {
  margin-top: 8px;
}

.uauth-tg-benefits-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  background: #229ed9;
}

.uauth-brand-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.modal-body #login-container {
  min-width: 0;
}

.modal-body .uauth-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.modal-body .uauth-header {
  margin-bottom: 20px;
}

.modal-body .uauth-title {
  font-size: 22px;
}

@media (max-width: 420px) {
  .uauth-phone-group {
    flex-direction: column;
  }

  .uauth-country-select,
  .uauth-phone-input {
    width: 100%;
    flex: 1 1 auto;
  }
}

.uauth-brand-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.uauth-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--uauth-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
}
.uauth-loading[hidden] {
  display: none !important;
}
.uauth-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--uauth-spinner-track);
  border-top-color: var(--uauth-primary);
  border-radius: 50%;
  animation: uauth-spin 1s linear infinite;
}
@keyframes uauth-spin {
  to {
    transform: rotate(360deg);
  }
}

.uauth-fallback-notice {
  font-size: 12px;
  color: var(--uauth-warning);
  text-align: center;
  margin-top: 8px;
}
.uauth-welcome-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 16px;
}
.uauth-welcome-icon {
  font-size: 28px;
}
.uauth-welcome-text {
  font-size: 20px;
  font-weight: 600;
  color: var(--uauth-text);
}


/* frontend/css/components/service-modals.css */
/* Service modals */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.service-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: var(--overlay);
}

.service-modal .modal-content {
    position: relative;
    z-index: 1;
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 480px) {
    .service-modal {
        padding: 12px;
    }
}

/* Shared measurement notice and withdrawal controls. */
.analytics-consent {
    --measurement-bottom-gap: max(16px, env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: var(--measurement-bottom-gap);
    left: max(16px, env(safe-area-inset-left));
    z-index: 9998;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

/* The fixed navigation is present on desktop as well as phones. */
body.has-mobile-bottom-nav .analytics-consent {
    --measurement-bottom-gap: calc(var(--ui-bottom-nav-height, 78px) + env(safe-area-inset-bottom, 0px) + 16px);
}

/* Customer-opened navigation/search takes priority over the automatic notice. */
body.has-mobile-more-open #measurementNotice[data-mode="notice"],
body.has-mobile-search-open #measurementNotice[data-mode="notice"] {
    visibility: hidden;
}

/* Shared surface coordination: never paint competing prompts during async loads. */
body:has(#measurementNotice) .anonymous-registration-prompt,
body:has(.modal.show) .anonymous-registration-prompt,
body.has-mobile-more-open .anonymous-registration-prompt,
body.has-mobile-search-open .anonymous-registration-prompt {
    display: none;
}

.analytics-consent__content {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    width: min(760px, 100%);
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 18px 48px rgba(18, 24, 40, 0.22);
    pointer-events: auto;
}

.analytics-consent__text {
    min-width: 0;
}

#measurementNotice .analytics-consent__content {
    grid-template-columns: minmax(0, 1fr);
    max-height: calc(100dvh - var(--measurement-bottom-gap) - 16px);
    overflow-y: auto;
    padding-right: 64px;
    background: #ffe4ef;
    border-color: #ef9cbb;
    color: #702044;
    box-shadow: 0 12px 36px rgba(157, 23, 77, 0.2);
}

#measurementNotice[data-mode="notice"] .analytics-consent__content {
    padding: 16px 64px 16px 20px;
}

#measurementNotice .analytics-consent__title,
#measurementNotice .analytics-consent__body,
#measurementNotice .analytics-consent__close {
    color: #702044;
}

#measurementNotice .analytics-consent__privacy { color: #a20c50; }

#measurementNotice .analytics-consent__close {
    width: 44px;
    height: 44px;
    font-size: 32px;
    color: #702044;
    border: 1px solid #ef9cbb;
    background: #fff3f8;
}

.measurement-preferences { justify-content: flex-start; }
.measurement-preferences__option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    font-size: 13px;
}

.analytics-consent__title {
    margin: 0 0 5px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.3;
}

.analytics-consent__body {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.5;
}

.analytics-consent__privacy {
    display: inline-block;
    margin-top: 7px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.analytics-consent__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.analytics-consent__button {
    min-height: 42px;
    padding: 9px 14px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.analytics-consent__button {
    background: var(--bg-subtle);
    color: var(--text-main);
}

.analytics-consent__button[aria-pressed="true"] {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--text-inverse);
}

.analytics-consent__current {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
}

.analytics-consent__button:focus-visible,
.analytics-consent__privacy:focus-visible,
.analytics-consent__close:focus-visible {
    outline: 3px solid rgba(233, 30, 99, 0.28);
    outline-offset: 2px;
}

.analytics-consent__close {
    position: absolute;
    top: 7px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--text-muted);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 700px) {
    .analytics-consent__content {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }

    .analytics-consent__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .analytics-consent__button {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .analytics-consent {
        right: max(10px, env(safe-area-inset-right));
        left: max(10px, env(safe-area-inset-left));
    }

    .analytics-consent__actions {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .analytics-consent *,
    .analytics-consent *::before,
    .analytics-consent *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* --- Pulsa --- */
#pulsaModal .modal-content {
    max-width: 520px;
    border-radius: 24px;
    max-height: min(90vh, calc(100dvh - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 0 0 22px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.2), transparent 28%),
        linear-gradient(180deg, rgba(233, 30, 99, 0.05), transparent 22%),
        var(--bg-card);
}

#pulsaModal .modal-header {
    align-items: flex-start;
    gap: 14px;
    padding: 18px 18px 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(255, 107, 157, 0.06));
}

#pulsaModal .pulsa-header-copy {
    flex: 1;
}

#pulsaModal .modal-header h2 {
    margin: 0;
}

#pulsaModal .pulsa-modal-subtitle {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

#pulsaModal .modal-form {
    display: grid;
    gap: 14px;
    padding: 0 18px;
}

#pulsaModal .pulsa-intro-card {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid rgba(233, 30, 99, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(233, 30, 99, 0.08), rgba(255, 255, 255, 0)),
        var(--bg-subtle);
}

#pulsaModal .pulsa-intro-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-main);
    font-size: 15px;
}

#pulsaModal .pulsa-intro-card p {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.45;
}

#pulsaModal .form-section {
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 100%), var(--bg-card);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

#pulsaModal .form-section h3,
#pulsaModal .form-section-title {
    display: block;
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

#pulsaModal .form-section input,
#pulsaModal .form-section select,
#pulsaModal .form-section textarea {
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

#pulsaModal .form-section textarea {
    min-height: 104px;
    resize: vertical;
}

#pulsaModal .form-section input:focus,
#pulsaModal .form-section select:focus,
#pulsaModal .form-section textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.14);
    outline: none;
}

#pulsaModal .form-section input.is-readonly {
    background: var(--bg-subtle);
    color: var(--text-muted);
    border-style: dashed;
}

#pulsaModal .checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-subtle);
}

#pulsaModal .checkbox-row input {
    min-height: auto;
    margin-top: 3px;
    padding: 0;
}

#pulsaModal .checkbox-row span {
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.45;
}

#pulsaModal .pulsa-telco-mode {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(233, 30, 99, 0.14);
    background: linear-gradient(180deg, rgba(233, 30, 99, 0.08), rgba(255, 255, 255, 0)), var(--bg-subtle);
}

#pulsaModal .pulsa-telco-mode.hidden {
    display: none;
}

#pulsaModal .pulsa-telco-mode[data-mode="wallet"] {
    border-color: rgba(255, 183, 77, 0.24);
    background: linear-gradient(180deg, rgba(255, 183, 77, 0.1), rgba(255, 255, 255, 0)), var(--bg-warning);
}

#pulsaModal .pulsa-telco-mode-badge {
    flex: 0 0 auto;
    min-width: 72px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.02em;
}

#pulsaModal .pulsa-telco-mode[data-mode="wallet"] .pulsa-telco-mode-badge {
    background: linear-gradient(135deg, #ff9800, #ffb74d);
}

#pulsaModal .pulsa-telco-mode-copy {
    min-width: 0;
}

#pulsaModal .pulsa-telco-mode-copy strong {
    display: block;
    margin: 0;
    color: var(--text-main);
    font-size: 13px;
}

#pulsaModal .pulsa-telco-mode-copy p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

#pulsaModal .pulsa-amounts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 14px 0 0;
}

#pulsaModal .amount-btn {
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    font-weight: 700;
    transition: all 0.18s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

#pulsaModal .amount-btn:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
    transform: translateY(-1px);
}

#pulsaModal .amount-btn.selected {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border-color: var(--primary);
    box-shadow: var(--shadow-primary);
}

#pulsaModal .pricing-section {
    border-radius: 18px;
    padding: 16px;
    margin: 0;
    border: 1px solid rgba(233, 30, 99, 0.14);
    background:
        linear-gradient(180deg, rgba(233, 30, 99, 0.08), rgba(255, 255, 255, 0)),
        var(--bg-subtle);
}

#pulsaModal .pulsa-pricing-head {
    margin-bottom: 14px;
}

#pulsaModal .pulsa-pricing-head h3 {
    margin: 0;
    font-size: 15px;
    color: var(--text-main);
}

#pulsaModal .pulsa-pricing-head p {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

#pulsaModal #pulsaWalletNotice .pricing-section {
    border-color: rgba(255, 183, 77, 0.28);
    background:
        linear-gradient(180deg, rgba(255, 183, 77, 0.1), rgba(255, 255, 255, 0)),
        var(--bg-warning);
}

#pulsaModal .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 10px 0;
    font-size: 14px;
}

#pulsaModal .price-row.total {
    font-size: 16px;
    font-weight: 800;
    border-top: 1px solid rgba(233, 30, 99, 0.16);
    padding-top: 14px;
    margin-top: 14px;
    color: var(--primary);
}

#pulsaModal .price-note {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

#pulsaModal .confirmation-section {
    text-align: center;
    padding: 8px 18px 0;
}

#pulsaModal .success-icon {
    font-size: 48px;
    margin-bottom: 14px;
}

#pulsaModal .confirmation-section h3 {
    margin-bottom: 8px;
}

#pulsaModal .pulsa-confirm-note {
    margin: 0 0 16px;
    color: var(--text-muted);
}

#pulsaModal .pulsa-confirm-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}

#pulsaModal .pulsa-confirm-card {
    padding: 14px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent), var(--bg-subtle);
}

#pulsaModal .pulsa-confirm-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-muted);
    font-size: 12px;
}

#pulsaModal .pulsa-confirm-card strong,
#pulsaModal .pulsa-confirm-channel strong {
    color: var(--text-main);
    font-size: 15px;
}

#pulsaModal .pulsa-confirm-channel {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Homepage news / promo modal --- */
#homepageNewsModal .modal-content {
    width: min(560px, 100%);
    border-radius: 24px;
    max-height: min(90vh, calc(100dvh - 24px));
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background:
        radial-gradient(circle at top right, rgba(233, 30, 99, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(233, 30, 99, 0.08), transparent 22%),
        var(--bg-card);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

#homepageNewsModal .modal-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 20px 16px;
}

#homepageNewsModal .homepage-news-modal-copy {
    flex: 1;
    min-width: 0;
}

#homepageNewsModal .homepage-news-modal-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.16);
    color: var(--primary);
    border: 1px solid rgba(233, 30, 99, 0.28);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

#homepageNewsModal .modal-header h2 {
    margin: 10px 0 6px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text-main);
}

#homepageNewsModal .homepage-news-modal-meta {
    margin: 0;
    color: var(--text-muted);
    font-size: 13px;
}

#homepageNewsModal .modal-close {
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-subtle);
    color: var(--text-main);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

#homepageNewsModal .homepage-news-modal-body {
    display: grid;
    gap: 16px;
    padding: 0 20px 20px;
}

#homepageNewsModal .homepage-news-promo-highlight {
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(233, 30, 99, 0.18);
    background:
        linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(255, 107, 157, 0.05)),
        var(--bg-subtle);
}

#homepageNewsModal .homepage-news-promo-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 700;
}

#homepageNewsModal .homepage-news-promo-description {
    margin: 10px 0 0;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.55;
}

#homepageNewsModal .homepage-news-section-label {
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-light);
}

#homepageNewsModal .homepage-news-targets-grid {
    display: grid;
    gap: 10px;
}

#homepageNewsModal .homepage-news-target-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 100%), var(--bg-subtle);
}

#homepageNewsModal .homepage-news-target-qty {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 10px;
    border-radius: 14px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    font-size: 14px;
    font-weight: 800;
}

#homepageNewsModal .homepage-news-target-copy {
    min-width: 0;
}

#homepageNewsModal .homepage-news-target-copy h4 {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.4;
}

#homepageNewsModal .homepage-news-target-meta {
    margin: 6px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

#homepageNewsModal .homepage-news-targets-hint {
    margin: 10px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

#homepageNewsModal .homepage-news-modal-text {
    display: grid;
    gap: 10px;
}

#homepageNewsModal .homepage-news-modal-paragraph {
    margin: 0;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.6;
}

#homepageNewsModal .homepage-news-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 0 20px 20px;
}

#homepageNewsModal .homepage-news-modal-secondary,
#homepageNewsModal .homepage-news-modal-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 18px;
    border-radius: 16px;
}

#homepageNewsModal .homepage-news-modal-primary {
    background: var(--primary-gradient);
    border-color: transparent;
    color: var(--text-inverse);
    box-shadow: var(--shadow-primary);
}

#homepageNewsModal .homepage-news-modal-primary:hover:not(:disabled) {
    filter: brightness(1.03);
}

body.homepage-news-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .service-modal {
        align-items: flex-start;
        overflow-y: auto;
        padding: 10px 10px calc(14px + env(safe-area-inset-bottom));
    }

    #pulsaModal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    }

    #homepageNewsModal .modal-content {
        width: 100%;
        max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
        border-radius: 20px;
    }

    #homepageNewsModal .modal-header,
    #homepageNewsModal .homepage-news-modal-body,
    #homepageNewsModal .homepage-news-modal-actions {
        padding-left: 16px;
        padding-right: 16px;
    }

    #homepageNewsModal .homepage-news-modal-actions {
        flex-direction: column-reverse;
    }

    #homepageNewsModal .homepage-news-modal-secondary,
    #homepageNewsModal .homepage-news-modal-primary {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 640px) {
    #pulsaModal .pulsa-confirm-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* frontend/css/components/footer-enhanced.css */
/* Enhanced footer (currently optional) */

.footer-enhanced {
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 60px;
    font-size: 14px;
    color: var(--text-muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 15px;
    margin-top: 0;
}

.footer-col p {
    margin: 0 0 10px 0;
    line-height: 1.6;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--primary);
}

.footer-divider {
    border: none;
    border-top: 2px solid var(--border-color);
    margin: 40px 0;
}

/* Section styles */
.footer-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.section-content h3 {
    font-size: 22px;
    color: var(--text-main);
    margin: 0 0 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    font-size: 28px;
}

.section-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary);
    margin: 0 0 15px 0;
}

.section-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Suppliers section */
.suppliers-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature {
    padding: 15px;
    background: var(--bg-subtle);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
}

.feature-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.contact-info {
    background: var(--bg-info);
    padding: 15px;
    border-left: 4px solid var(--primary);
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-main);
}

.contact-info strong {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
}

.email-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.email-link:hover {
    text-decoration: underline;
}

.contact-details {
    font-size: 12px;
    color: var(--text-light);
    margin: 10px 0 0 0;
}

/* Buttons */
.btn-contact-suppliers,
.btn-contact-reseller {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 15px;
}

.btn-contact-suppliers:hover,
.btn-contact-reseller:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-icon {
    font-size: 16px;
}

/* Reseller specific */
.reseller-info {
    background: var(--primary-tint);
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
    line-height: 1.6;
}

.reseller-steps,
.reseller-requirements {
    margin: 15px 0;
    padding-left: 25px;
}

.reseller-steps li,
.reseller-requirements li {
    margin-bottom: 12px;
    line-height: 1.6;
    color: var(--text-muted);
}

.reseller-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.benefit-item {
    padding: 15px;
    background: var(--bg-info);
    border-radius: 6px;
    text-align: center;
    font-size: 13px;
    color: var(--text-main);
}

.benefit-icon {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
}

.reseller-contact {
    background: var(--bg-warning);
    padding: 20px;
    border-radius: 6px;
    margin: 20px 0;
    color: var(--text-main);
}

.reseller-contact p {
    margin: 0 0 10px 0;
}

.reseller-contact .email-link {
    display: block;
    margin-bottom: 10px;
}

/* Footer bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom-left {
    flex: 1;
    min-width: 200px;
}

.footer-bottom-left p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
}

.footer-legal-links {
    margin-top: 8px;
    font-size: 12px;
}

.footer-legal-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-legal-links a:hover {
    color: var(--primary);
}

.footer-legal-links .divider {
    margin: 0 8px;
    color: var(--border-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-subtle-2);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.2s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary);
    color: var(--text-inverse);
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        padding: 20px;
    }

    .section-content h3 {
        font-size: 18px;
    }

    .suppliers-features,
    .reseller-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 480px) {
    .footer-enhanced {
        padding: 20px 0;
        margin-top: 40px;
    }

    .section-content h3 {
        font-size: 16px;
    }

    .suppliers-features,
    .reseller-benefits {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        gap: 15px;
    }
}



/* frontend/css/style.00-base.css */
/* =========================================================
   PERFORMANCE FIX: DISABLE LOAD TRANSITIONS
   ========================================================= */

.preload * {
    -webkit-transition: none !important;
    -moz-transition: none !important;
    -ms-transition: none !important;
    -o-transition: none !important;
    transition: none !important;
}

.preload .theme-toggle-btn,
.preload .category-btn,
.preload .btn-primary,
.preload .product-card {
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

[data-theme="dark"] img.product-image {
    will-change: filter;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Let the browser style built-in UI (scrollbars/forms) appropriately */
:root[data-theme="dark"] {
    color-scheme: dark;
}

:root[data-theme="light"] {
    color-scheme: light;
}

.hidden {
    display: none !important;
}

/* Global form element defaults (prevents white inputs in dark mode) */
input,
textarea,
select {
    background-color: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-color);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-light);
}

input:disabled,
textarea:disabled,
select:disabled {
    background-color: var(--bg-subtle-2);
    color: var(--text-light);
}

.text-muted {
    color: var(--text-muted) !important;
}

.text-success {
    color: var(--success-dark) !important;
    font-weight: 600;
}

.text-danger {
    color: var(--danger-dark) !important;
    font-weight: 600;
}

.error-text {
    color: var(--error) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-body);
    min-height: 100vh;
    color: var(--text-main);
    font-size: var(--ui-font-body);
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    padding: 7px 0;
    font-size: var(--ui-font-caption);
    position: relative;
    overflow: visible; /* Allow dropdowns to extend beyond top bar */
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    overflow: visible; /* Allow dropdowns to extend beyond container */
}

/* Top bar widgets container (left side - homepage only) */
.top-bar-widgets {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 1 auto;
}

/* Top bar actions container (right side - always visible) */
.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.contact-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--ui-font-caption);
}

.contact-info a {
    color: white;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.divider {
    opacity: 0.5;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-link {
    color: white;
    text-decoration: none;
    font-size: var(--ui-font-caption);
    font-weight: 600;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    min-height: var(--ui-control-min-height-chip);
    padding: 0 12px;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--ui-font-pill);
    font-weight: 700;
    line-height: 1;
}


/* frontend/css/style.01-header-filters.css */

/* frontend/css/style.01-header-filters/top-and-header.css */
/* ========================================
   TOP BAR
   ======================================== */
.top-bar {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-color);
}

.top-bar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    padding: 6px 0;
}

.top-bar-widgets {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.top-bar-widgets:empty {
    display: none;
}

.top-bar-actions {
    display: flex;
    justify-content: flex-end;
}

.user-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.login-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--text-main);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    font-size: var(--ui-font-caption);
    font-weight: 700;
    text-decoration: none;
}

.header-status-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    flex: 1 1 auto;
}

.header-status-row:empty {
    display: none;
}

.header-meta-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-width: 0;
}

/* ========================================
   MAIN HEADER
   ======================================== */
.main-header {
    background: var(--bg-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0 8px;
    position: sticky;
    top: 0;
    z-index: 100;
    overflow: visible;
    border-bottom: 1px solid var(--border-color);
}

.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
    flex-shrink: 0;
}

.logo-image {
    display: block;
    width: 78px;
    height: 74px;
    max-width: min(260px, 72vw);
    object-fit: contain;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.header-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ui-control-min-height);
    height: var(--ui-control-min-height);
    border: 2px solid var(--border-highlight);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

/* The shared partial must not leak a product-only back link onto other pages. */
.product-header-back {
    display: none;
}

.product-header-back[hidden] {
    display: none !important;
}

.header-icon-btn:hover,
.header-icon-btn.active {
    transform: scale(1.04);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.header-icon-btn__icon {
    font-size: 18px;
    line-height: 1;
}


/* frontend/css/style.01-header-filters/search-and-actions.css */
.search-box {
    flex: 1;
    display: flex;
    gap: var(--ui-inline-gap);
    position: relative;
}

/* Search Suggestions Dropdown */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-radius: var(--ui-card-radius);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    margin-top: 8px;
}

.search-suggestions.show {
    display: block;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-header {
    padding: 12px 16px;
    font-size: var(--ui-font-caption);
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.suggestion-header .clear-history {
    font-size: 11px;
    color: var(--primary);
    cursor: pointer;
    text-transform: none;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-item:hover,
.suggestion-item.active {
    background: var(--primary-tint);
}

.suggestion-item img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    object-fit: cover;
    background: var(--bg-subtle-2);
}

.suggestion-item .no-image {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: var(--bg-subtle-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.suggestion-info {
    flex: 1;
    min-width: 0;
}

.suggestion-name {
    font-weight: 500;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
}

.suggestion-name mark {
    background: var(--primary-tint);
    color: var(--primary);
    padding: 0 2px;
    border-radius: 2px;
}

.suggestion-meta {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.suggestion-price {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
    white-space: nowrap;
}

.suggestion-category {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
}

.suggestion-category:hover {
    background: var(--primary-tint);
}

.suggestion-category .cat-icon {
    font-size: 16px;
}

.suggestion-all {
    display: block;
    padding: 12px 16px;
    text-align: center;
    color: var(--primary);
    font-weight: 600;
    border-top: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.2s;
}

.suggestion-all:hover {
    background: var(--primary-tint);
}

.search-history-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.search-history-item:hover {
    background: var(--primary-tint);
}

.search-history-item .history-icon {
    color: var(--text-light);
    font-size: 14px;
}

.search-history-item .history-text {
    flex: 1;
    font-size: 14px;
    color: var(--text-main);
}

.search-history-item .remove-history {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    min-height: 32px;
    padding: 4px;
    margin: -4px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    opacity: 0.55;
    transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.search-history-item:hover .remove-history,
.search-history-item .remove-history:focus-visible {
    opacity: 1;
    background: var(--primary-tint);
    color: var(--primary);
    outline: none;
}

@media (hover: none), (pointer: coarse) {
    .search-history-item .remove-history {
        opacity: 1;
        background: var(--bg-subtle-2);
    }
}

.no-results {
    padding: 30px 16px;
    text-align: center;
    color: var(--text-light);
}

.no-results .no-results-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.no-results p {
    font-size: 14px;
}

.search-input {
    flex: 1;
    min-height: var(--ui-control-min-height);
    padding: 0 16px;
    border: 2px solid var(--border-highlight);
    border-radius: 999px;
    font-size: var(--ui-font-body);
    font-weight: 500;
    outline: none;
    transition: border-color 0.3s;
}

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

.search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    border: none;
    min-height: var(--ui-control-min-height);
    padding: 0 15px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 18px;
    transition: transform 0.2s;
}

.search-btn:hover {
    transform: scale(1.05);
}

.search-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--ui-control-min-height);
    min-width: var(--ui-control-min-height);
    border: 2px solid var(--border-highlight);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.cart-link {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border-radius: 50%;
    text-decoration: none;
    font-size: var(--ui-font-body);
    font-weight: 700;
    position: relative;
    transition: transform 0.2s;
}

.cart-link__icon { display: block; width: 23px; height: 23px; }

.cart-link:hover {
    transform: scale(1.05);
}

.main-header .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    min-width: 0;
}

.main-header .header-actions-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50%;
    padding: 0 3px;
    font-size: 10px;
    font-weight: bold;
}

.cart-badge.cart-badge--bump {
    animation: cartBadgeBump 420ms ease-out;
}

@keyframes cartBadgeBump {
    0%, 100% { transform: scale(1); }
    45% { transform: scale(1.25); }
}

.inbox-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--ui-control-min-height);
    height: var(--ui-control-min-height);
    background: var(--bg-card);
    border: 2px solid var(--border-highlight);
    border-radius: 999px;
    text-decoration: none;
    position: relative;
    transition: transform 0.2s;
}

.inbox-link:hover {
    transform: scale(1.05);
}

.inbox-link--deemphasized {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    opacity: 0.72;
}

.inbox-link--deemphasized:hover {
    transform: none;
    opacity: 0.9;
}

.inbox-icon {
    font-size: 18px;
    line-height: 1;
}

.inbox-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    border: 2px solid var(--bg-header);
}

.main-header .cart-goal-progress {
    width: 148px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: auto;
}

.main-header .cart-goal-progress-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--bg-subtle-2);
    border: 1px solid var(--border-highlight);
    overflow: hidden;
}

.main-header .cart-goal-progress-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f59e0b 0%, #ec4899 55%, #22c55e 100%);
    transition: width 220ms ease;
}

.main-header .cart-goal-progress-label {
    margin: 0;
    color: var(--text-muted);
    font-size: 8px;
    line-height: 1;
    text-align: right;
    max-width: none;
    margin-left: auto;
    white-space: nowrap;
    text-wrap: nowrap;
    letter-spacing: -0.01em;
}


/* frontend/css/style.01-header-filters/navigation-and-mobile.css */
/* ========================================
   CATEGORIES NAVIGATION
   ======================================== */
.categories-nav {
    background: var(--bg-header);
    border-bottom: 2px solid var(--border-highlight);
    padding: 12px 0;
    overflow-x: auto;
}

.categories-wrapper {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-highlight);
    min-height: var(--ui-control-min-height-chip);
    padding: 0 14px;
    border-radius: 999px;
    cursor: pointer;
    font-size: var(--ui-font-label);
    white-space: nowrap;
    transition: all 0.3s;
    color: var(--text-muted);
    font-weight: 600;
}

.category-btn:hover {
    background: var(--primary-tint);
    border-color: var(--primary-light);
}

.category-btn.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--text-inverse);
}

.category-btn.is-disabled {
    cursor: default;
}

/* App Navigation Bar - Pink themed buttons */
.app-nav-bar {
    background: var(--bg-soft);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-highlight);
}

.app-nav .search-box {
    margin-left: auto;
}

.app-nav .category-btn {
    background: var(--primary-gradient);
    border: none;
    color: var(--text-inverse);
    min-height: var(--ui-control-min-height-chip);
    padding: 0 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.app-nav .category-btn:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    transform: scale(1.02);
}

.app-nav .category-btn .cart-badge {
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
}

/* ========================================
   MOBILE SEARCH
   ======================================== */
.mobile-search-overlay[hidden] {
    display: none;
}

.mobile-search-overlay__backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.28);
    z-index: 117;
}

.mobile-search-overlay__panel {
    position: fixed;
    inset: var(--cpwa-search-offset, 92px) 0 auto 0;
    z-index: 118;
}

.mobile-search-shell {
    background: var(--bg-header);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}

.mobile-search-box {
    max-width: none;
}

/* ========================================
   MOBILE BOTTOM NAV
   ======================================== */
/* This navigation stays fixed on desktop too; keep final page actions reachable. */
body.has-mobile-bottom-nav {
    padding-bottom: calc(var(--ui-bottom-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
}

.mobile-bottom-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(6px + env(safe-area-inset-bottom, 0px));
    z-index: 120;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(233, 30, 99, 0.16);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.mobile-bottom-nav[hidden] {
    display: none !important;
}

.mobile-bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 58px;
    padding: 8px 4px;
    border-radius: 18px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
}

.mobile-bottom-nav__item.active {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    box-shadow: var(--shadow-primary);
}

.mobile-bottom-nav__item.is-disabled {
    cursor: default;
}

.mobile-bottom-nav__icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-bottom-nav__label {
    text-align: center;
}

/* ========================================
   MORE SHEET
   ======================================== */
.mobile-more-backdrop[hidden],
.mobile-more-sheet[hidden] {
    display: none;
}

.mobile-more-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 121;
}

.mobile-more-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 122;
    background: var(--bg-card);
    border-top-left-radius: var(--ui-mobile-sheet-radius);
    border-top-right-radius: var(--ui-mobile-sheet-radius);
    box-shadow: 0 -18px 44px rgba(0, 0, 0, 0.2);
    padding: 12px 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.mobile-more-sheet__handle {
    width: 54px;
    height: 5px;
    border-radius: 999px;
    background: var(--border-color);
    margin: 0 auto 12px;
}

.mobile-more-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.mobile-more-sheet__header strong {
    font-size: 16px;
    color: var(--text-main);
}

.mobile-more-sheet__close {
    border: none;
    background: var(--bg-subtle);
    color: var(--text-main);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 16px;
}

.mobile-more-sheet__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.mobile-more-sheet__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 14px;
    border-radius: 18px;
    border: 1px solid var(--border-color);
    background: var(--bg-soft);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.mobile-more-sheet__link--toggle {
    justify-content: space-between;
}

.mobile-more-sheet__icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-more-sheet__text {
    flex: 1;
}

.mobile-more-sheet__meta {
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}


/* frontend/css/style.01-header-filters/filters-and-searchables.css */
/* ========================================
   FILTERS BAR
   ======================================== */
.filters-bar {
    background: var(--bg-card);
    padding: var(--ui-surface-padding);
    margin: 20px 0;
    border-radius: var(--ui-card-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group label {
    font-weight: 600;
    color: var(--text-main);
    font-size: var(--ui-font-label);
    white-space: nowrap;
}

.filter-select {
    min-height: var(--ui-control-min-height);
    padding: 0 16px;
    border: 2px solid var(--border-highlight);
    border-radius: 999px;
    font-size: var(--ui-font-body);
    outline: none;
    background: var(--bg-input);
    cursor: pointer;
    min-width: 140px;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.filter-select:hover {
    border-color: #ff9eb5;
    box-shadow: 0 2px 8px rgba(255, 158, 181, 0.3);
}

.filter-select:focus {
    border-color: #ff7a9e;
    box-shadow: 0 0 0 3px rgba(255, 122, 158, 0.15);
}

/* Shop product search (local to shop.html) */
.products-search-row {
    display: flex;
    align-items: center;
    gap: var(--ui-inline-gap);
    margin-bottom: 14px;
}

/* Shop uses the header search box (mobile-first); keep it visible. */
.products-search-input {
    flex: 1;
    min-height: var(--ui-control-min-height);
    padding: 0 16px;
    border: 2px solid var(--border-highlight);
    border-radius: 999px;
    font-size: var(--ui-font-body);
    outline: none;
    background: var(--bg-input);
    color: var(--text-main);
    transition: all 0.2s ease;
}

.products-search-input:focus {
    border-color: #ff7a9e;
    box-shadow: 0 0 0 3px rgba(255, 122, 158, 0.15);
}

.products-search-btn {
    appearance: none;
    border: 1px solid var(--border-highlight);
    background: var(--bg-soft);
    color: var(--text-main);
    border-radius: 999px;
    min-height: var(--ui-control-min-height-chip);
    padding: 0 14px;
    font-size: var(--ui-font-button-sm);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.products-search-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.filter-group--shop-search {
    flex: 1 1 280px;
    min-width: min(100%, 280px);
}

.filter-search-control {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.filter-group--shop-search .products-search-input {
    min-width: 0;
    width: 100%;
}

/* New Filter Layout - Dropdown Based */
.filters-section {
    background: var(--bg-card);
    padding: var(--ui-surface-padding);
    border-radius: var(--ui-card-radius);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin-bottom: 18px;
}

.filters-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
}

.filters-title {
    font-size: var(--ui-font-label);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.filters-action-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-toggle-btn {
    appearance: none;
    border: 1px solid var(--border-highlight);
    background: var(--bg-soft);
    color: var(--text-main);
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.filters-toggle-btn--icon {
    min-width: 38px;
    padding-inline: 10px;
}

.filters-toggle-btn:hover {
    transform: translateY(-1px);
    border-color: var(--primary);
}

.filters-toggle-btn.is-active-filtered {
    border-color: var(--primary-dark);
    background: var(--primary-tint);
    color: var(--primary-text);
}

.filters-toggle-btn.is-active-filtered:focus-visible,
.filter-tag--reset-all:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
}

.filters-section.is-search-collapsed .shop-search-panel,
.filters-section.is-filters-collapsed .filters-row,
.filters-section.is-collapsed .filters-row {
    display: none;
}

.filters-section.is-filters-collapsed:not(.has-active-filters) .filters-info-row,
.filters-section.is-collapsed .filters-info-row {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.filters-section.is-filters-collapsed.has-active-filters .member-collection-row {
    display: none;
}

.shop-search-panel {
    margin-top: 12px;
}

.shop-filter-status {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px solid var(--border-highlight);
    border-radius: var(--ui-card-radius);
    background: var(--bg-soft);
    color: var(--text-main);
}

.shop-filter-status[hidden] {
    display: none;
}

.shop-filter-status[data-state="failed"],
.shop-filter-status[data-state="partial"],
.shop-filter-status[data-state="session"] {
    border-color: var(--warning);
}

.shop-filter-status > span {
    flex: 1 1 180px;
    min-width: 0;
}

.shop-filter-status button {
    min-height: 44px;
    flex-shrink: 0;
}

.shop-filter-status button:disabled {
    cursor: wait;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .products-search-row {
        margin-bottom: 8px;
    }

    .filters-section {
        padding: 10px 12px;
        margin-bottom: 12px;
        border-radius: 14px;
    }

    .filters-header-row {
        margin-bottom: 0;
    }

    .filters-toggle-btn {
        min-height: 34px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .filters-title {
        font-size: 11px;
        letter-spacing: 0.08em;
    }
}

.filters-row {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.filters-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    gap: 15px;
    flex-wrap: wrap;
}

.member-collection-row {
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.member-collection-btn {
    appearance: none;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(255, 152, 0, 0.75);
    border-radius: 999px;
    background: rgba(255, 152, 0, 0.14);
    color: var(--warning);
    font-size: var(--ui-font-button-sm);
    font-weight: 900;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.member-collection-btn:hover,
.member-collection-btn.is-active {
    background: rgba(255, 152, 0, 0.24);
    color: var(--warning-dark);
    box-shadow: 0 3px 12px rgba(255, 152, 0, 0.22);
    transform: translateY(-1px);
}

.member-age-gate {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(0, 0, 0, 0.62);
}

.member-age-gate.hidden {
    display: none;
}

.member-age-gate__panel {
    width: min(420px, 100%);
    padding: 22px;
    border: 1px solid rgba(255, 152, 0, 0.42);
    border-radius: 18px;
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
}

.member-age-gate__panel h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.member-age-gate__warning {
    margin: 0 0 16px;
    color: var(--text-light);
    line-height: 1.5;
}

.member-age-gate__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-soft);
    font-weight: 700;
    line-height: 1.4;
}

.member-age-gate__check input {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    accent-color: var(--warning);
}

.member-age-gate__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.member-age-gate__cancel,
.member-age-gate__confirm {
    appearance: none;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    font-weight: 900;
    cursor: pointer;
}

.member-age-gate__cancel {
    border: 1px solid var(--border-highlight);
    background: var(--bg-soft);
    color: var(--text-main);
}

.member-age-gate__confirm {
    border: 1px solid rgba(255, 152, 0, 0.75);
    background: var(--warning);
    color: #1d1200;
}

.member-age-gate__confirm:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.filters-info-row:empty,
.filters-info-row:not(:has(.member-collection-row)):not(:has(.filter-tag)) {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.active-filters:empty {
    display: none;
}

.shop-results-count {
    align-self: center;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 600;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 152, 0, 0.14);
    color: var(--warning);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 152, 0, 0.6);
}

.filter-tag:hover {
    background: rgba(255, 152, 0, 0.22);
    color: var(--warning-dark);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 152, 0, 0.24);
    border-color: var(--warning);
}

.filter-tag--reset-all {
    appearance: none;
    min-height: 44px;
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.filter-tag--reset-all:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Searchable Select Dropdown */
.searchable-select {
    position: relative;
    min-width: 160px;
}

.searchable-input {
    cursor: text;
    padding-right: 32px;
    width: 100%;
    box-sizing: border-box;
}

.searchable-select::after {
    content: '▾';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
    font-size: 14px;
}

.searchable-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 280px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 2px solid var(--border-highlight);
    border-radius: 15px;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .filters-row {
        gap: 12px;
    }

    .filter-group {
        width: calc(50% - 6px);
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .filter-group label {
        font-size: 11px;
    }

    .filter-select {
        width: 100%;
        min-width: 0;
        min-height: 40px;
        padding: 0 12px;
        border-radius: 14px;
        font-size: 13px;
    }

    .searchable-select {
        width: 100%;
        min-width: 0;
    }

    .filter-group--shop-search {
        width: 100%;
        flex-basis: 100%;
    }

    .filters-info-row {
        margin-top: 10px;
        padding-top: 10px;
        gap: 10px;
    }

    .member-collection-row {
        justify-content: stretch;
    }

    .member-collection-btn {
        width: 100%;
        min-height: 36px;
        font-size: 12px;
    }

    .filter-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .filters-row {
        gap: 10px;
    }

    .filter-group {
        width: 100%;
    }

    .filters-section {
        padding: 10px 11px;
        border-radius: 12px;
    }

    .filters-toggle-btn {
        min-height: 32px;
        padding: 6px 11px;
    }
}

.searchable-dropdown.show {
    display: block;
    animation: dropdownFade 0.15s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.searchable-option {
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s;
    border-bottom: 1px solid var(--border-color);
}

.searchable-option:last-child {
    border-bottom: none;
}

.searchable-option:hover,
.searchable-option.highlighted {
    background: var(--primary-tint);
}

.searchable-option.selected {
    background: var(--primary-tint);
    color: var(--primary);
    font-weight: 600;
}

.searchable-option:first-child {
    border-radius: 13px 13px 0 0;
}

.searchable-option:last-child {
    border-radius: 0 0 13px 13px;
}

.searchable-no-results {
    padding: 12px 16px;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}



/* frontend/css/style.02-product-grid.css */
/* ========================================
   PRODUCTS GRID
   ======================================== */
.main-content {
    padding: 12px 0 28px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin: 14px 0 18px;
}

.product-card {
    --product-card-media-height: 280px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.2);
}

/* Product Image Wrapper for fallback handling */
.product-image-wrapper {
    position: relative;
    width: 100%;
    height: var(--product-card-media-height);
    background: linear-gradient(135deg, var(--primary-tint) 0%, var(--bg-soft) 100%);
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.product-image {
    width: 100%;
    height: var(--product-card-media-height);
    object-fit: cover;
    background: transparent;
    position: relative;
    z-index: 1;
}

.product-image-link {
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.product-promo-media {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 56px;
    z-index: 12;
    display: flex;
    flex-direction: column;
    gap: 4px;
    pointer-events: none;
}

.product-promo-media.has-preorder-badge {
    top: 44px;
}

.product-video-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 14;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    pointer-events: none;
}

.product-video-badge::before {
    content: "▶";
    font-size: 9px;
}

.product-promo-media-kicker,
.product-promo-media-more {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff6fb;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.product-promo-media-offer {
    max-width: min(220px, 100%);
    padding: 10px 12px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(233, 30, 99, 0.92), rgba(255, 107, 157, 0.84));
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.3);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* No Image Fallback for Product Cards */
.product-image-wrapper .no-image-fallback {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-tint) 0%, var(--bg-soft) 100%);
}

.product-image-wrapper .no-image-icon {
    font-size: 48px;
    opacity: 0.4;
}

/* ========================================
   VARIANT SWATCHES (Product Card)
   ======================================== */
.variant-swatches {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    overflow: hidden;
    z-index: 10;
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.3);
    padding: 6px 8px;
    border-radius: 8px;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

[data-theme="dark"] .variant-swatches {
    background: rgba(0, 0, 0, 0.28);
}

.variant-swatch {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--border-color);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
    background: var(--bg-card);
    flex-shrink: 0;
}

.variant-swatch:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 3px 10px rgba(233, 30, 99, 0.3);
}

.variant-swatch.active {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--bg-card), 0 0 0 4px var(--primary);
}

.variant-swatch.is-out-of-stock {
    border-color: var(--warning);
    opacity: 0.72;
}

.variant-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.variant-swatch-more {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Make swatches smaller on mobile */
@media (max-width: 480px) {
    .variant-swatches {
        gap: 4px;
    }
    .variant-swatch {
        width: 28px;
        height: 28px;
    }
}

/* ========================================
   VARIANT THUMBNAILS (Product Detail Gallery)
   ======================================== */
.gallery-thumbnail.variant-thumbnail {
    border-color: var(--primary);
}

.gallery-thumbnail.variant-thumbnail .thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: var(--text-inverse);
    font-size: 9px;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-info {
    padding: 12px 12px 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.4;
    min-height: 40px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-brand {
    font-size: 11px;
    color: var(--primary-text);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.product-category {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-promo-block {
    margin: 4px 0 10px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 10px 11px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(233, 30, 99, 0.14), rgba(233, 30, 99, 0.04)),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(233, 30, 99, 0.18);
}

.product-promo-chip {
    display: inline-flex;
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(233, 30, 99, 0.16);
    border: 1px solid rgba(233, 30, 99, 0.35);
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.product-promo-summary {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-light);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-promo-lead {
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-promo-note {
    font-size: 10px;
    line-height: 1.35;
    color: var(--primary-light, var(--primary));
    font-weight: 600;
}

.product-promo-more {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.product-price {
    font-size: 18px;
    font-weight: bold;
    color: var(--primary-text);
    margin-top: auto;
}

.product-stock {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.product-stock.in-stock {
    color: var(--success-text);
}

.product-stock.low-stock {
    color: var(--warning-text);
}

.product-stock.out-of-stock {
    color: var(--danger-text);
}

/* ========================================
   QUICK ADD TO CART BUTTON & BADGE
   ======================================== */
/* Cart quantity badge on product card (top right) */
.product-cart-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    z-index: 15;
    box-shadow: var(--shadow-primary);
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-cart-badge.show {
    opacity: 1;
    transform: scale(1);
}

.product-cart-badge.pulse {
    animation: badgePulse 0.4s ease;
}

@keyframes badgePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Quick add button (bottom right of image area) */
.quick-add-btn {
    position: absolute;
    top: calc(var(--product-card-media-height) - 46px);
    right: 8px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-primary);
    transition: all 0.2s ease;
    z-index: 20;
    opacity: 1;
    transform: scale(1) translateY(0);
}

.quick-add-btn:hover {
    transform: scale(1.1) translateY(0);
    box-shadow: var(--shadow-primary);
}

.quick-add-btn:active {
    transform: scale(0.95) translateY(0);
}

.quick-add-btn.adding {
    pointer-events: none;
}

.quick-add-btn.adding::after {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    position: absolute;
}

.quick-add-btn.success {
    background: var(--success);
}

.quick-add-btn:disabled {
    background: var(--bg-subtle-2);
    cursor: not-allowed;
    opacity: 0.6;
}

/* Pre-order quick-add button (orange) */
.quick-add-btn.preorder-btn {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    box-shadow: var(--shadow-md);
}

.quick-add-btn.preorder-btn:hover {
    box-shadow: var(--shadow-lg);
}

/* Toast for quick add feedback */
.quick-add-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
}

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

/* ========================================
   UPDATE NOTIFICATION TOAST
   ======================================== */
.update-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--text-inverse);
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    z-index: 10001;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.update-toast button {
    background: rgba(0, 0, 0, 0.18);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.update-toast button:hover {
    background: rgba(0, 0, 0, 0.28);
    transform: scale(1.05);
}

.update-toast button.dismiss {
    background: transparent;
    color: var(--text-inverse);
    padding: 4px 8px;
    font-size: 18px;
    opacity: 0.8;
}

.update-toast button.dismiss:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   LOADING & EMPTY STATES
   ======================================== */
.loading-spinner {
    text-align: center;
    padding: 44px 18px;
    grid-column: 1 / -1;
}

.spinner {
    border: 4px solid var(--border-highlight);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.empty-state {
    text-align: center;
    padding: 44px 18px;
    grid-column: 1 / -1;
}

.empty-state .empty-icon {
    font-size: 60px;
    margin-bottom: 14px;
}

.empty-state h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-muted);
}

.empty-state .btn-page {
    margin-top: 20px;
}

.empty-state-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.empty-state-actions .btn-page {
    margin-top: 0;
}

/* ========================================
   PAGINATION
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 26px 0 18px;
    flex-wrap: wrap;
}

.pagination--top {
    justify-content: center;
    flex-wrap: nowrap;
    margin: 12px 0 10px;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 18px;
    background: var(--bg-card);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.btn-page {
    background: var(--bg-card);
    border: 2px solid var(--border-highlight);
    padding: 9px 16px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.3s;
}

.btn-page:hover:not(:disabled) {
    background: var(--primary-tint);
    border-color: var(--primary);
}

.btn-page:disabled,
.btn-page[aria-disabled="true"] {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Page Numbers */
.page-numbers {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.btn-page-num {
    width: 34px;
    height: 34px;
    border: 2px solid var(--border-highlight);
    border-radius: 50%;
    background: var(--bg-card);
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-text);
    text-decoration: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-page-num:hover {
    background: var(--primary-tint);
    border-color: var(--primary);
}

.btn-page-num.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--text-inverse);
}

.page-ellipsis {
    color: var(--text-light);
    padding: 0 5px;
}

.page-info {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 768px) {
    .main-content {
        padding: 8px 0 20px;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin: 12px 0 16px;
    }

    .product-card {
        --product-card-media-height: 160px;
        border-radius: 12px;
    }

    .product-image-wrapper {
        border-radius: 12px 12px 0 0;
    }

    .variant-swatches {
        left: 6px;
        right: 6px;
        bottom: 6px;
        padding: 5px 6px;
    }

    .product-info {
        padding: 9px 9px 10px;
    }

    .product-brand {
        font-size: 10px;
        margin-bottom: 6px;
    }

    .product-name {
        font-size: 13px;
        min-height: 34px;
        line-height: 1.3;
        margin-bottom: 5px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-stock {
        font-size: 10px;
        margin-top: 3px;
    }

    .quick-add-btn {
        top: calc(var(--product-card-media-height) - 40px);
        right: 7px;
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .card-preorder-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 9px;
    }

    .pagination {
        gap: 8px;
        margin: 20px 0 14px;
    }

    .pagination--top {
        /* Mobile already has the complete bottom pager. Keeping the duplicate
           top pager hidden prevents it being inserted above visible products
           after the catalog response, which caused a large layout shift. */
        display: none;
    }

    .btn-page {
        padding: 8px 12px;
        font-size: 12px;
    }

    .btn-page-num {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        gap: 8px;
    }

    .product-card {
        --product-card-media-height: 142px;
    }

    .product-promo-media {
        top: 10px;
        left: 10px;
        right: 48px;
    }

    .product-promo-media.has-preorder-badge {
        top: 38px;
    }

    .product-promo-media-offer {
        max-width: 150px;
        padding: 8px 10px;
        font-size: 11px;
    }

    .product-promo-block {
        padding: 9px 10px;
    }

    .product-promo-lead {
        font-size: 12px;
    }

    .variant-swatch-more {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }
}


/* frontend/css/style.03-footer-responsive.css */
/* ========================================
   FOOTER - Modern Aesthetic Design
   ======================================== */
.footer {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    padding: 50px 0 25px;
    margin-top: 60px;
    position: relative;
}

/* Simple Footer Variant */
.footer.footer-simple {
    padding: 30px 0 20px;
}

.footer-simple-content {
    text-align: center;
}

.footer-simple-content .footer-logo {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.footer-simple-content .footer-info {
    margin-bottom: 15px;
}

.footer-simple-content .footer-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.6;
}

.footer-address-nowrap {
    white-space: nowrap;
}

.footer-simple-content .footer-info a {
    color: white;
    text-decoration: none;
}

.footer-simple-content .footer-info a:hover {
    text-decoration: underline;
}

.footer-simple-content .footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    margin: 0;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff69b4, #ffc0cb, #ff69b4);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 35px;
}

.footer-section h3 {
    color: #ff69b4;
    margin-bottom: 12px;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section h4 {
    color: #ffc0cb;
    margin-bottom: 18px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, #ff69b4, transparent);
}

.footer-section p {
    line-height: 1.7;
    color: #b8c5d6;
    font-size: 14px;
    margin-bottom: 8px;
}

.footer-section .tagline {
    font-style: italic;
    color: #ffc0cb;
}

.footer-section .brands-list {
    font-size: 13px;
    color: #8899aa;
}

.footer-section .brands-list strong {
    color: #ffc0cb;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #b8c5d6;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.footer-section ul li a:hover {
    color: #ff69b4;
    padding-left: 5px;
}

/* Contact Section Styling */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-contact-item:hover {
    background: rgba(255, 105, 180, 0.1);
    transform: translateX(3px);
}

.footer-contact-icon {
    font-size: 18px;
    min-width: 24px;
}

.footer-contact-info {
    flex: 1;
}

.footer-contact-info a {
    color: #ffc0cb;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    display: block;
    transition: color 0.3s;
}

.footer-contact-info a:hover {
    color: #ff69b4;
}

.contact-note {
    font-size: 11px;
    color: #7a8899;
    display: block;
    margin-top: 2px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: #7a8899;
    font-size: 13px;
}

.footer-bottom p {
    margin: 0;
}

/* Footer Responsive */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }
}

@media (max-width: 600px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-contact-item {
        justify-content: center;
        text-align: left;
    }

    .footer-section ul li a:hover {
        padding-left: 0;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: row;
        justify-content: space-between;
        gap: 15px;
    }

    .logo {
        flex-shrink: 0;
    }

    .header-content .search-box {
        display: none; /* Hide header search on mobile; keep nav-bar search visible */
    }

    .cart-link {
        flex-shrink: 0;
    }

    .categories-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .categories-wrapper::-webkit-scrollbar {
        display: none;
    }

    .categories-nav.app-nav-bar {
        overflow-x: visible;
    }

    .categories-wrapper.app-nav {
        flex-wrap: wrap;
        overflow-x: visible;
    }

    .app-nav .search-box {
        display: flex;
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-top: 10px;
    }

    .app-nav .search-input {
        min-width: 0;
        padding: 10px 14px;
        font-size: 14px;
    }

    .app-nav .search-btn {
        padding: 10px 16px;
        font-size: 16px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
    }

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

    .filter-group {
        width: 100%;
    }

    .filter-select {
        flex: 1;
    }

    .filters-section {
        padding: 12px 15px;
    }

    .filters-header-row {
        margin-bottom: 10px;
    }

    .filters-row {
        flex-direction: column;
        gap: 12px;
    }

    .filters-info-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .active-filters {
        order: -1;
        width: 100%;
    }

    .results-info {
        margin-left: 0;
        text-align: left;
        width: 100%;
    }

    .results-info {
        margin-left: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-image {
        height: 200px;
    }

    .product-name {
        font-size: 14px;
        min-height: 40px;
    }

    .product-price {
        font-size: 18px;
    }
}


/* frontend/css/style.04-product-detail.css */
/* ========================================
   PRODUCT DETAIL PAGE
   ======================================== */

/* Simple Header for Detail Pages */
.header {
    background: var(--bg-header);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.header .header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    color: var(--primary-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 9999px;
    background: #f8fafc;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.product-back-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.back-btn:hover,
.back-btn:active {
    border-color: #e91e63;
    color: #e91e63;
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.12);
    transform: translateY(-1px);
}

.back-btn:focus-visible,
.product-header-back:focus-visible {
    outline: 3px solid rgba(233, 30, 99, 0.28);
    outline-offset: 3px;
}

.product-breadcrumb {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.4;
}

.product-breadcrumb a {
    color: var(--primary-text);
    text-decoration: none;
}

.product-breadcrumb a:hover {
    text-decoration: underline;
}

#productBreadcrumbName {
    max-width: 36ch;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.product-header-back {
    display: none;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-icon {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background 0.3s;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.btn-icon:hover {
    background: var(--primary-tint);
}

.cart-btn .cart-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--primary);
    color: var(--text-inverse);
    border-radius: 50%;
    font-size: 11px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Loading State */
.loading-state {
    text-align: center;
    padding: 80px 20px;
}

.loading-state p {
    color: var(--text-muted);
    margin-top: 15px;
}

/* Product Detail Container */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    padding: 30px 0;
}

/* Product Image Section */
.product-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 0;
}

.main-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-tint) 0%, var(--bg-soft) 100%);
    min-height: 300px;
    padding: 16px;
    width: 100%;
    min-width: 0;
}

.product-detail-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 468px;
    object-fit: contain;
    object-position: center;
    border-radius: 15px;
    background: transparent;
    display: block;
    min-width: 0;
}

/* No Image Placeholder */
.no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: linear-gradient(135deg, var(--primary-tint) 0%, var(--bg-soft) 100%);
    border-radius: 15px;
    color: var(--text-light);
}

.no-image-icon {
    font-size: 64px;
    opacity: 0.5;
    margin-bottom: 15px;
}

.no-image-text {
    font-size: 14px;
    color: var(--text-light);
}

/* Image Gallery Thumbnails */
.image-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 5px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--border-highlight) var(--bg-subtle);
}

.image-gallery::-webkit-scrollbar {
    height: 6px;
}

.image-gallery::-webkit-scrollbar-track {
    background: var(--bg-subtle);
    border-radius: 3px;
}

.image-gallery::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: 3px;
}

.gallery-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    background: var(--bg-subtle);
}

.gallery-thumbnail:hover {
    border-color: var(--border-highlight);
    transform: scale(1.05);
}

.gallery-thumbnail.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.gallery-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 468px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #111827;
    border-radius: 15px;
}

.gallery-thumbnail.video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.2), transparent 42%),
        linear-gradient(135deg, #111827, #3b1028);
}

.gallery-thumbnail.video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.28));
    pointer-events: none;
}

.video-thumbnail-play {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    color: var(--text-inverse);
    background: rgba(233, 30, 99, 0.92);
    box-shadow: 0 10px 22px rgba(17, 24, 39, 0.32);
    font-size: 15px;
    line-height: 1;
    padding-left: 2px;
    transform: translate(-50%, -50%);
}

.video-thumbnail-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 16px;
    padding: 2px 5px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: var(--text-inverse);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(17, 24, 39, 0.28);
}

.thumbnail-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6);
    color: var(--text-inverse);
    font-size: 9px;
    padding: 2px 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge.in-stock {
    background: var(--bg-success);
    color: var(--success-text);
}

.badge.low-stock {
    background: var(--bg-warning);
    color: var(--warning-text);
}

.badge.out-of-stock {
    background: var(--bg-danger);
    color: var(--danger-text);
}

/* Product Info Section */
.product-info-section {
    padding: 20px 0;
}

.product-info-section .product-brand {
    font-size: 14px;
    color: var(--primary-text);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-package-highlight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 18px;
}

.product-package-highlight-label {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-package-highlight-value {
    color: var(--text-main);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

/* Price Section */
.product-price-section {
    margin-bottom: 25px;
}

.price-primary {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-text);
}

.price-note {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 5px;
}

.product-promo-section {
    margin: 0 0 24px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(233, 30, 99, 0.2);
    background:
      linear-gradient(180deg, rgba(233, 30, 99, 0.09), rgba(233, 30, 99, 0.03)),
      var(--bg-card);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.product-promo-header {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 12px;
}

.product-promo-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-promo-card {
    padding: 14px;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.product-promo-card.is-spotlight {
    background:
        radial-gradient(circle at top right, rgba(255, 107, 157, 0.18), transparent 42%),
        linear-gradient(180deg, rgba(233, 30, 99, 0.16), rgba(233, 30, 99, 0.06)),
        rgba(0, 0, 0, 0.16);
    border-color: rgba(233, 30, 99, 0.26);
    box-shadow: 0 16px 30px rgba(233, 30, 99, 0.14);
}

.product-promo-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.product-promo-type,
.product-promo-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.product-promo-type {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
}

.product-promo-badge {
    background: rgba(233, 30, 99, 0.18);
    color: var(--primary);
    border: 1px solid rgba(233, 30, 99, 0.3);
}

.product-promo-title {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
    color: var(--text-main);
}

.product-promo-highlight-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.product-promo-highlight {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-main);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.product-promo-microcopy {
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.product-promo-copy,
.product-promo-targets,
.product-promo-note {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
}

.product-promo-copy {
    color: var(--text-main);
}

.product-promo-targets {
    margin-top: 10px;
    color: var(--text-light);
}

.product-promo-note {
    margin-top: 10px;
    color: var(--primary-light, var(--primary));
    font-weight: 600;
}

@media (max-width: 768px) {
    .product-promo-section {
        padding: 14px;
        border-radius: 16px;
    }

    .product-promo-title {
        font-size: 17px;
    }

    .product-promo-highlight {
        width: 100%;
        justify-content: center;
    }
}

/* Section Labels */
.section-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 10px;
    display: block;
}

/* Variants Section */
.variants-section {
    margin-bottom: 25px;
}

.variants-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 10px 20px;
    border: 2px solid var(--border-highlight);
    border-radius: 25px;
    background: var(--bg-input);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s;
}

.variant-option:hover:not(.disabled) {
    border-color: var(--primary);
    color: var(--primary);
}

.variant-option.active {
    background: var(--primary-gradient);
    border-color: var(--primary);
    color: var(--text-inverse);
}

.variant-option.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Out of stock variants - clickable for pre-order */
.variant-option.out-of-stock {
    border-color: var(--warning);
    background: var(--bg-warning);
    color: var(--text-main);
    cursor: pointer;
}

[data-theme="dark"] .variant-option.out-of-stock {
    background: var(--bg-warning);
    color: var(--warning);
}

.variant-option.out-of-stock:hover {
    border-color: #f57c00;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffcc80 100%);
}

[data-theme="dark"] .variant-option.out-of-stock:hover {
    background: linear-gradient(135deg, #4e342e 0%, #5d4037 100%);
}

.variant-option.out-of-stock.active {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    border-color: #e65100;
    color: white;
}

/* Pre-order label in variant button */
.variant-preorder-label {
    font-size: 12px;
    margin-left: 5px;
}

/* Quantity Section */
.quantity-section {
    margin-bottom: 25px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: 150px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border-highlight);
    border-radius: 50%;
    background: var(--bg-card);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: var(--primary);
}

.qty-btn:hover {
    background: var(--primary-tint);
    border-color: var(--primary);
}

.qty-input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--border-highlight);
    border-radius: 10px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    outline: none;
}

.qty-input:focus {
    border-color: var(--primary);
}

/* Remove spinner arrows from number input */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qty-input[type=number] {
    appearance: textfield;
}

/* Description */
.product-description {
    margin-bottom: 25px;
}

.product-description p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 15px;
}

.smartpac-product-note {
    margin: 16px 0 22px;
    padding: 14px 16px;
    border: 1px solid rgba(233, 30, 99, 0.28);
    border-radius: 14px;
    background: rgba(233, 30, 99, 0.08);
    color: var(--text-main);
}

.smartpac-product-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--primary-text);
}

.smartpac-product-note p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 14px;
}

/* Action Buttons */
.action-buttons {
    margin-bottom: 30px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    min-height: var(--ui-control-min-height-comfortable);
    padding: var(--ui-button-padding-y) calc(var(--ui-button-padding-x) + 8px);
    border-radius: var(--ui-control-radius);
    font-size: var(--ui-font-button);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-primary);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Outline Button - Same design as primary but with border instead of fill */
.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    min-height: var(--ui-control-min-height-comfortable);
    padding: var(--ui-button-padding-y) calc(var(--ui-button-padding-x) + 8px);
    border-radius: var(--ui-control-radius);
    font-size: var(--ui-font-button);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--primary-tint);
    transform: scale(1.02);
    box-shadow: var(--shadow-primary);
}

.btn-outline.btn-large {
    padding: 18px 35px;
    font-size: 18px;
}

.btn-outline.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #f1c40f 100%);
    color: #333;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-warning:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, var(--success-dark) 100%);
    color: var(--text-inverse);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-success:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, var(--info-dark) 100%);
    color: var(--text-inverse);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-info:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-icon {
    padding: 8px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.btn-icon.btn-danger {
    background: var(--bg-danger);
    color: var(--danger);
    padding: 8px;
    border-radius: 50%;
}

.btn-icon.btn-danger:hover {
    background: var(--danger);
    color: var(--text-inverse);
}

.btn-large {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
}

/* Product Meta */
.product-meta {
    border-top: 1px solid var(--border-color);
    padding-top: 20px;
}

.meta-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
    min-width: 80px;
}

/* Toast Notification */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    bottom: auto;
    transform: translate(-50%, calc(-50% + 12px));
    background: linear-gradient(180deg, rgba(17, 20, 27, 0.98) 0%, rgba(32, 37, 49, 0.98) 100%);
    color: var(--text-inverse);
    padding: 16px 20px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.01em;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    width: min(92vw, 460px);
    max-width: 92vw;
    pointer-events: none;
}

.toast.success {
    background: linear-gradient(135deg, #1c8a54 0%, #2faf6f 100%);
}

.toast.error {
    background: linear-gradient(135deg, #c6284a 0%, #ff5776 100%);
}

.toast.warning {
    background: linear-gradient(135deg, #c56a05 0%, #ff9c2f 100%);
}

.toast.info {
    background: linear-gradient(135deg, #1768c7 0%, #3ea4ff 100%);
}

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

.toast.toast--with-action {
    top: auto;
    bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    text-align: left;
    pointer-events: auto;
    transform: translate(-50%, 12px);
}

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

.toast-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: #14532d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.toast-action:hover,
.toast-action:focus-visible {
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.32);
}

.mobile-product-cart-bar {
    display: none;
}

.toast.toast--critical,
.toast.toast--stock-warning {
    width: min(94vw, 500px);
    padding: 20px 24px;
    border-radius: 20px;
    font-size: clamp(16px, 1rem + 0.35vw, 20px);
}

.toast.toast--critical {
    box-shadow: 0 24px 54px rgba(198, 40, 74, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.toast.toast--stock-warning {
    box-shadow: 0 24px 54px rgba(197, 106, 5, 0.32), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Product Detail Responsive */
@media (max-width: 768px) {
    /* The header itself is sticky, but it lives inside this async component
       slot. Make the slot the sticky owner so the product back control is not
       constrained to the slot's original 101px document box. */
    body[data-guide-page="product"] #header-placeholder {
        position: sticky;
        top: 0;
        z-index: 2147482000;
    }

    body[data-guide-page="product"] .theme-toggle-control,
    body[data-guide-page="product"] #langToggle,
    body[data-guide-page="product"] .inbox-link {
        display: none;
    }

    body[data-guide-page="product"] .main-header .header-actions-row {
        gap: 4px;
    }

    body[data-guide-page="product"] .product-header-back {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        border: 1px solid #e2e8f0;
        border-radius: 9999px;
        background: #f8fafc;
        color: #e91e63;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        font-size: 24px;
        font-weight: 800;
        line-height: 1;
        text-decoration: none;
    }

    .product-back-row {
        align-items: flex-start;
    }

    .back-btn {
        min-height: 48px;
    }

    .product-breadcrumb {
        display: none;
    }

    body[data-guide-page="product"] .main-content {
        padding-bottom: 104px;
    }

    .mobile-product-cart-bar {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(var(--ui-bottom-nav-height, 78px) + 16px + env(safe-area-inset-bottom, 0px));
        z-index: 2147482100;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        max-width: 620px;
        min-height: 68px;
        margin: 0 auto;
        padding: 10px 10px 10px 14px;
        border: 1px solid rgba(233, 30, 99, 0.2);
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 16px 38px rgba(35, 20, 30, 0.24);
        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(calc(100% + 24px));
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
    }

    .mobile-product-cart-bar.is-visible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-product-cart-price-wrap {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .mobile-product-cart-price-label {
        color: var(--text-muted);
        font-size: 10px;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    .mobile-product-cart-price {
        color: var(--primary-text);
        font-size: 17px;
        line-height: 1.25;
        white-space: nowrap;
    }

    .mobile-product-cart-button {
        min-height: 48px;
        min-width: min(62vw, 260px);
        padding: 10px 16px;
        border: 0;
        border-radius: 15px;
        background: var(--primary-gradient);
        color: var(--text-inverse);
        box-shadow: var(--shadow-primary);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
        cursor: pointer;
    }

    .mobile-product-cart-button:disabled {
        cursor: not-allowed;
        filter: grayscale(0.25);
        opacity: 0.58;
    }

    .toast.toast--with-action {
        bottom: calc(var(--ui-bottom-nav-height, 78px) + 104px + env(safe-area-inset-bottom, 0px));
        z-index: 2147482200;
        width: min(94vw, 520px);
        max-width: 94vw;
    }

    .product-detail {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .main-image-wrapper {
        min-height: 0;
        aspect-ratio: 1 / 1;
        padding: 12px;
    }

    .product-detail-image {
        width: 100%;
        max-width: 100%;
        height: 100%;
        max-height: 100%;
        min-width: 0;
        object-fit: contain;
        object-position: center;
    }

    .product-title {
        font-size: 22px;
        margin-bottom: 16px;
    }

    .product-package-highlight {
        gap: 8px;
        margin: 0 0 18px;
    }

    .product-package-highlight-label {
        font-size: 13px;
    }

    .product-package-highlight-value {
        font-size: 22px;
    }

    .price-primary {
        font-size: 26px;
    }

    .header .header-content {
        flex-direction: row;
    }
}

@media (max-width: 420px) {
    .mobile-product-cart-bar {
        gap: 8px;
        padding-left: 12px;
    }

    .mobile-product-cart-button {
        min-width: 0;
        flex: 1;
        padding-inline: 12px;
        font-size: 13px;
    }

    .toast.toast--with-action {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .toast-action {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-product-cart-bar,
    .back-btn {
        transition: none;
    }
}

@media (max-width: 480px) {
    .main-image-wrapper {
        border-radius: 12px;
        padding: 10px;
    }

    .product-detail-image {
        border-radius: 12px;
    }

    .product-title {
        font-size: 20px;
    }

    .variant-option {
        padding: 8px 15px;
        font-size: 13px;
    }
}


/* frontend/css/style.05-modals.css */

/* frontend/css/components/tiktok-login.css */
/* Login Kit controls reuse the existing theme and button tokens. */
.tiktok-login-controls[hidden], :is(#tiktok-profile-settings, #google-profile-settings)[hidden] { display: none !important; }
.tiktok-login-controls, :is(#tiktok-profile-settings, #google-profile-settings) {
  min-width: 0;
  overflow-wrap: anywhere;
}
.tiktok-login-controls > *, :is(#tiktok-profile-settings, #google-profile-settings) > * { margin-bottom: 12px; }
.tiktok-login-controls p, :is(#tiktok-profile-settings, #google-profile-settings) p, :is(#tiktok-register-notice, #google-register-notice) p { line-height: 1.5; }
.tiktok-login-controls button, :is(#tiktok-profile-settings, #google-profile-settings) button { min-height: 44px; white-space: normal; }
.tiktok-login-controls input { width: 100%; min-height: 44px; box-sizing: border-box; }
:is(#tiktok-register-notice, #google-register-notice) label { display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
:is(#tiktok-register-notice, #google-register-notice) input { width: 22px; height: 22px; flex: 0 0 22px; accent-color: var(--primary); }
.tiktok-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.tiktok-legal a { color: var(--text-main); text-decoration: underline; min-height: 44px; display: inline-flex; align-items: center; }

/* Official unmodified icon; localized text remains real, accessible text. */
.tiktok-login-controls .btn.tiktok-provider-button {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 12px;
  min-height: 48px;
  background: #fff;
  color: #161823;
  border: 1px solid #747775;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
}
.tiktok-login-controls .btn.tiktok-provider-button:hover, .tiktok-login-controls .btn.tiktok-provider-button:active { background: #f2f2f2; color: #161823; }
[data-theme="dark"] .tiktok-login-controls .btn.tiktok-provider-button {
  background: #121212;
  color: #fff;
  border-color: #8e918f;
}
[data-theme="dark"] .tiktok-login-controls .btn.tiktok-provider-button:hover,
[data-theme="dark"] .tiktok-login-controls .btn.tiktok-provider-button:active { background: #242424; color: #fff; }
.btn.tiktok-provider-button img { flex: 0 0 20px; width: 20px; height: 20px; object-fit: contain; }

.account-provider-icon { width: 24px; height: 24px; object-fit: contain; flex: 0 0 24px; grid-column: 1; grid-row: 1 / span 2; }
:is(#tiktok-profile-settings, #google-profile-settings) .setting-info { flex-basis: 100%; }
:is(#tiktok-profile-settings, #google-profile-settings) .setting-action .btn { width: auto; margin: 0; }
:is(#tiktok-profile-settings, #google-profile-settings) .tiktok-legal { margin: 0; font-size: 12px; }
.tiktok-login-controls .tiktok-legal { justify-content: center; margin: 0; }
.tiktok-alternative { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 13px; margin: 8px 0 16px; }
.tiktok-alternative::before, .tiktok-alternative::after { content: ''; flex: 1; height: 1px; background: var(--border-color); }

/* One aligned customer entry stack; profile/link-consent cards are unchanged. */
.customer-login-options .uauth-btn { box-sizing: border-box; min-height: 48px; }
.customer-login-options .uauth-section { margin-bottom: 0; }
.customer-login-options .uauth-phone-group { flex-direction: row; }
.customer-login-options .uauth-country-select { flex: 0 0 100px; }
.customer-login-options > .provider-entry ~ .provider-entry .tiktok-alternative { display: none; }
.customer-login-options > .provider-entry:has(~ .provider-entry:not([hidden])) .tiktok-legal { display: none; }
.customer-login-options .tiktok-legal { font-size: 12px; }

/* Official Google G, theme-aware button colours and real localized text. */
@font-face {
  font-family: 'Google Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('/images/branding/google-sans-medium.ttf?v=ca-56d42cbab16d') format('truetype');
}
.tiktok-login-controls .btn.google-provider-button {
  display: flex; width: 100%; box-sizing: border-box;
  align-items: center; justify-content: center; gap: 10px; padding: 8px 12px;
  min-height: 48px; border: 1px solid #747775; border-radius: 4px;
  background: #fff; color: #1f1f1f; font-family: 'Google Sans', sans-serif; font-size: 14px; font-weight: 500;
}
.tiktok-login-controls .btn.google-provider-button:hover { background: #f2f2f2; color: #1f1f1f; }
[data-theme="dark"] .tiktok-login-controls .btn.google-provider-button {
  background: #131314; color: #e3e3e3; border-color: #8e918f;
}
[data-theme="dark"] .tiktok-login-controls .btn.google-provider-button:hover {
  background: #1f1f1f;
}
.btn.google-provider-button img { width: 20px; height: 20px; flex: 0 0 20px; object-fit: contain; background: transparent; }


#loginModal .modal-body .uauth-title { display: none; }
#loginModal .modal-body .uauth-container { padding: 0; border: 0; box-shadow: none; background: transparent; }
#loginModal .modal-body .uauth-header { margin-bottom: 16px; }

/* ========================================
   LOGIN MODAL
   ======================================== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay);
    z-index: 10001;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--text-light);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: var(--bg-subtle-2);
    color: var(--text-main);
}

.modal-close:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Modal Large */
.modal-lg {
    max-width: 700px;
}

.modal-body {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--text-main);
}

/* ========================================
   CONFIRM MODAL (UI.showConfirm)
   ======================================== */
.confirm-modal-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.confirm-modal {
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.2s ease;
}

.confirm-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.confirm-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
}

.confirm-modal-body {
    padding: 18px 20px;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.confirm-modal-footer {
    padding: 12px 20px 16px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.confirm-modal-footer .btn {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
    line-height: 1.2;
}

.confirm-modal-footer .btn-secondary {
    background: var(--bg-input);
    color: var(--text-main);
    border-color: var(--border-color);
}

.confirm-modal-footer .btn-secondary:hover {
    box-shadow: var(--shadow-md);
}

.confirm-modal-footer .btn-primary {
    background: var(--primary-gradient);
    color: var(--text-inverse);
}

.confirm-modal-footer .btn-primary:hover {
    transform: none;
    box-shadow: var(--shadow-primary);
}

.confirm-modal-footer .btn-danger {
    background: var(--danger);
    color: var(--text-inverse);
}

.confirm-modal-footer .btn-danger:hover {
    background: var(--danger-dark);
}

@media (max-width: 420px) {
    .confirm-modal-footer {
        flex-direction: column;
    }

    .confirm-modal-footer .btn {
        width: 100%;
    }
}

/* Edit Order Form Styles */
.edit-order-form {
    padding: 10px 0;
}

.edit-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.edit-section:last-of-type {
    border-bottom: none;
}

.edit-section h3 {
    font-size: 16px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.edit-note {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.edit-items-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.edit-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-subtle);
    border-radius: 10px;
    gap: 15px;
}

.edit-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.edit-item-info .item-name {
    font-weight: 600;
    color: var(--text-main);
}

.edit-item-info .item-variant {
    font-size: 12px;
    color: var(--text-muted);
}

.edit-item-info .item-price {
    font-size: 13px;
    color: var(--text-muted);
}

.edit-item-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.quantity-control {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-subtle-2);
    cursor: pointer;
    font-size: 18px;
    color: var(--text-main);
    transition: background 0.2s;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.qty-input {
    width: 45px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.item-subtotal {
    font-weight: 600;
    color: var(--primary);
    min-width: 70px;
    text-align: right;
}

.edit-totals {
    margin-top: 15px;
    padding: 15px;
    background: var(--primary-tint);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.edit-totals-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.edit-totals-row.discount {
    color: var(--success);
}

.edit-totals-row.total {
    border-top: 2px solid var(--border-highlight);
    margin-top: 10px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
}

.edit-totals-row.total span:last-child {
    color: var(--primary);
}

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

.edit-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 15px;
    flex-wrap: wrap;
}

.edit-help {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-warning);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.edit-help p {
    margin: 5px 0;
}

.edit-help a {
    color: var(--brand-whatsapp);
    font-weight: 600;
}

.edit-order-form .error-message {
    text-align: center;
    padding: 30px;
    color: var(--danger);
}

/* Form Inputs for Edit */
.edit-order-form textarea,
.edit-order-form input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-highlight);
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.edit-order-form textarea:focus,
.edit-order-form input[type="text"]:focus {
    border-color: var(--primary);
    outline: none;
}

.edit-order-form textarea {
    resize: vertical;
    min-height: 60px;
}

/* Mobile responsiveness for edit form */
@media (max-width: 600px) {
    .edit-item-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .edit-item-actions {
        width: 100%;
        justify-content: space-between;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .edit-actions {
        flex-direction: column;
    }

    .edit-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Login step visibility control using .active class */
.login-step {
    display: none;
}

.login-step.active {
    display: block;
}

.login-step h2 {
    font-size: 24px;
    color: var(--text-main);
    margin-bottom: 8px;
    text-align: center;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 14px;
    text-align: center;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 8px;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-highlight);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
}

.country-code {
    background: var(--bg-subtle);
    padding: 12px 15px;
    font-weight: 600;
    color: var(--text-muted);
    border-right: 2px solid var(--border-highlight);
}

.phone-input-group input {
    flex: 1;
    border: none;
    padding: 12px 15px;
    font-size: 16px;
    outline: none;
}

.input-hint {
    display: block;
    margin-top: 8px;
    color: var(--text-light);
    font-size: 12px;
}

.otp-input {
    width: 100%;
    padding: 15px;
    font-size: clamp(18px, 6vw, 24px);
    text-align: center;
    letter-spacing: clamp(2px, 1.6vw, 8px);
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    border: 2px solid var(--border-highlight);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.otp-input:focus {
    border-color: var(--primary);
}

.btn-full {
    width: 100%;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.btn-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.resend-section {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
    color: var(--text-muted);
}

.error-message {
    background: var(--bg-danger);
    color: var(--danger-dark);
    padding: 12px 15px;
    border-radius: 10px;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4caf50 0%, #81c784 100%);
    color: white;
    font-size: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

/* Login Modal Responsive */
@media (max-width: 480px) {
    .modal-content {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .login-step h2 {
        font-size: 20px;
    }

    .otp-input {
        font-size: clamp(17px, 5.5vw, 20px);
        letter-spacing: clamp(1px, 1.2vw, 5px);
    }
}


/* frontend/css/style.06-cart-identify.css */
/* ========================================
   CART PAGE STYLES
   ======================================== */
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.cart-item-details {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-main);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.cart-item-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}

.cart-smartpac-warning {
    display: inline-block;
    max-width: 100%;
    margin: 2px 0 6px;
    padding: 3px 7px;
    border: 1px solid var(--danger);
    border-radius: 4px;
    background: var(--bg-danger);
    color: var(--danger-text);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.35;
}

#smartpacBlockedNotice .notice-title {
    color: var(--danger-text);
    font-weight: 700;
}

.cart-item-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    border-radius: 8px;
    padding: 5px;
}

.cart-qty-btn {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-btn:hover {
    background: var(--primary);
    color: var(--text-inverse);
}

.cart-qty-btn:active {
    transform: scale(0.95);
}

.cart-qty-value {
    min-width: 30px;
    text-align: center;
    font-weight: 600;
    font-size: 15px;
}

.cart-item-remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
    padding: 5px;
}

.cart-item-remove:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Cart Summary */
.cart-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-muted);
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.summary-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
    padding-top: 15px;
    margin-top: 5px;
    border-top: 2px solid var(--primary);
}

.summary-total span:last-child {
    color: var(--primary);
}

.summary-note {
    font-size: 13px;
    color: var(--text-light);
    margin: 10px 0 0 0;
    font-style: italic;
}

.cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.delivery-note {
    background: var(--bg-warning);
    border-radius: 10px;
    padding: 15px;
    font-size: 14px;
    color: var(--warning-dark);
}

.delivery-note p {
    margin: 5px 0;
}

/* ========================================
   CUSTOMER IDENTIFICATION PAGE
   ======================================== */
.identify-container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
}

.identify-container .page-title {
    text-align: center;
    margin-bottom: 10px;
}

.identify-container .page-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* Identify step visibility control using .active class */
.identify-step {
    display: none;
    animation: fadeIn 0.3s ease;
}

.identify-step.active {
    display: block;
}

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

/* Customer Type Selection */
.customer-type-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.customer-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.customer-type-btn:hover {
    border-color: var(--primary);
    background: var(--primary-tint);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.15);
}

.customer-type-btn .type-icon {
    font-size: 40px;
    margin-bottom: 10px;
}

.customer-type-btn .type-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 5px;
}

.customer-type-btn .type-desc {
    font-size: 14px;
    color: var(--text-muted);
}

/* Identify Form Styles */
.identify-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.identify-form h2 {
    text-align: center;
    margin-bottom: 25px;
    color: var(--text-main);
}

.identify-form .form-group {
    margin-bottom: 20px;
}

.identify-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.identify-form input[type="text"],
.identify-form input[type="tel"],
.identify-form input[type="email"],
.identify-form input[type="date"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.identify-form input:focus {
    outline: none;
    border-color: var(--primary);
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.phone-input-group:focus-within {
    border-color: var(--primary);
}

.phone-input-group .phone-prefix {
    padding: 14px 12px;
    background: var(--bg-subtle);
    color: var(--text-muted);
    font-weight: 500;
    border-right: 1px solid var(--border-color);
}

.phone-input-group input {
    flex: 1;
    border: none !important;
    padding: 14px 16px;
}

.phone-input-group input:focus {
    outline: none;
}

/* DOB Dropdown Group */
.dob-input-group {
    display: flex;
    gap: 10px;
}

.dob-select {
    flex: 1;
    padding: 14px 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 15px;
    background: var(--bg-input);
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.dob-select:focus {
    outline: none;
    border-color: var(--primary);
}

.dob-select option {
    padding: 10px;
}

/* Make month selector wider */
.dob-select:nth-child(2) {
    flex: 1.5;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Consent Checkbox */
.consent-group {
    margin-top: 25px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-label .checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-label input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-label input:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.consent-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
}

.consent-text a {
    color: var(--primary);
    text-decoration: none;
}

.consent-text a:hover {
    text-decoration: underline;
}

/* Back Link */
.back-link {
    text-align: center;
    margin-top: 20px;
}

.cart-page-toolbar {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 10px;
}

.cart-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.cart-back-btn__icon {
    font-size: 14px;
    line-height: 1;
}

.cart-back-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.back-link a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}

.back-link a:hover {
    color: var(--primary);
}

/* OTP Input Group */
.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 25px 0;
}

.otp-input-group input {
    width: 50px;
    height: 60px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.2s;
}

.otp-input-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-tint);
}

.otp-instruction {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.otp-instruction strong {
    color: var(--text-main);
}

/* Error & Success Messages */
.error-message {
    background: var(--bg-danger);
    color: var(--danger-dark);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.success-message {
    background: var(--bg-success);
    color: var(--success-dark);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-error-message {
    background: var(--bg-danger);
    color: var(--danger-dark);
    padding: 12px 16px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
    font-size: 14px;
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.attempts-warning {
    text-align: center;
    color: var(--warning);
    font-size: 13px;
    margin-top: 10px;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 20px;
}

.resend-section p {
    color: var(--text-muted);
    font-size: 14px;
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-dark);
}

/* Lockout Screen */
.lockout-container {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.lockout-icon {
    font-size: 60px;
    display: block;
    margin-bottom: 20px;
}

.lockout-container h2 {
    color: var(--danger-dark);
    margin-bottom: 15px;
}

.lockout-timer {
    font-size: 18px;
    margin: 20px 0;
}

.lockout-timer strong {
    font-size: 28px;
    color: var(--primary);
    font-family: monospace;
}

.lockout-help {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 20px;
}

.lockout-help a {
    color: var(--primary);
}


/* frontend/css/style.08-mobile-responsive.css */

/* frontend/css/style.08-mobile-responsive/global-and-shell.css */
/* ========================================
   COMPREHENSIVE MOBILE RESPONSIVE STYLES
   ======================================== */

/* --- Global Mobile Improvements --- */
@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 16px;
    }

    /* Top Bar Mobile */
    .top-bar {
        padding: 0;
        font-size: var(--ui-font-caption);
    }

    .top-bar-content {
        min-height: 34px;
        gap: 10px;
    }

    .top-bar-widgets {
        gap: 6px;
        min-width: 0;
    }

    .top-bar-actions {
        gap: 0;
    }

    .contact-info {
        font-size: 12px;
    }

    .user-actions {
        gap: 6px;
    }

    .login-link {
        min-height: 30px;
        padding: 0 10px;
        font-size: 11px;
    }

    /* Main Header Mobile */
    .main-header {
        padding: 6px 0 5px;
    }

    .logo-image {
        width: 67px;
        height: 64px;
        max-width: min(228px, 72vw);
    }

    .header-content {
        gap: 8px;
    }

    .header-meta-row {
        gap: 6px;
        margin-top: 7px;
    }

    .header-status-row {
        gap: 3px;
        max-width: none;
    }

    /* Main Content Mobile */
    .main-content {
        padding: 15px 0;
    }

    /* Filters Bar Improvements */
    .filters-bar {
        padding: var(--ui-surface-padding-compact);
        border-radius: 12px;
    }

    .filter-select {
        width: 100%;
        padding: 10px;
    }

    /* Product Card Mobile */
    .product-card {
        border-radius: 10px;
    }

    .product-info {
        padding: 12px;
    }

    .product-name {
        font-size: 13px;
        line-height: 1.3;
    }

    .product-brand {
        font-size: 11px;
    }

    .product-price {
        font-size: 16px;
    }

    .add-to-cart-btn {
        min-height: var(--ui-control-min-height);
        padding: 10px 12px;
        font-size: 14px;
    }

    /* Cart Link Mobile */
    .cart-link {
        min-height: 44px;
        padding: 0;
    }

    .main-header .header-actions {
        min-width: 0;
        flex: 1;
        gap: 6px;
    }

    .main-header .header-actions-row {
        gap: 6px;
        justify-content: flex-end;
        flex-wrap: wrap;
        max-width: 100%;
    }

    .main-header .cart-goal-progress {
        width: 150px;
    }

    .main-header .cart-goal-progress-label {
        font-size: 7.8px;
    }

    .cart-badge {
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }

    .header-icon-btn,
    .inbox-link {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .theme-toggle-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .mobile-search-shell {
        padding: 10px;
        border-radius: 20px;
    }

    .mobile-bottom-nav {
        left: 10px;
        right: 10px;
        bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        padding: 9px;
        gap: 6px;
    }

    .mobile-bottom-nav__item {
        min-height: 54px;
        padding: 7px 4px;
        font-size: 10px;
    }

    .mobile-more-sheet__grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* --- Small Mobile (480px and below) --- */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 12px;
    }

    /* Top bar very small mobile */
    .top-bar {
        padding: 5px 0;
        font-size: 12px;
    }

    .top-bar-content {
        gap: 6px;
    }

    .top-bar-widgets {
        gap: 4px;
    }

    .top-bar-actions {
        gap: 8px;
    }

    .main-header .header-actions {
        min-width: 0;
    }

    .main-header .cart-goal-progress {
        width: 150px;
    }

    .header-meta-row {
        gap: 5px;
        margin-top: 7px;
    }

    .header-status-row {
        gap: 3px;
        max-width: none;
    }

    /* Hero Section Mobile - Ensure visibility */
    .hero-section {
        padding: 10px 0 8px !important;
        min-height: 0 !important;
        height: auto !important;
        display: block !important;
        width: 100% !important;
        background: var(--primary-gradient) !important;
        text-align: center !important;
        color: var(--text-inverse) !important;
        visibility: visible !important;
        overflow: visible !important;
    }

    .hero-content {
        position: relative !important;
        z-index: 1 !important;
        display: block !important;
        width: 100% !important;
    }

    .hero-section h2 {
        font-size: 1.06rem !important;
        margin: 0 auto 5px !important;
        line-height: 1.08 !important;
        color: white !important;
        font-weight: 700 !important;
        display: block !important;
        width: 100% !important;
        max-width: 19ch !important;
        text-wrap: balance !important;
    }

    .hero-section p {
        font-size: 12px !important;
        margin: 0 auto 2px !important;
        line-height: 1.22 !important;
        color: white !important;
        width: 100% !important;
        max-width: 29ch !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Header Adjustments */
    .logo-image {
        width: 67px;
        height: 64px;
        max-width: min(228px, 72vw);
    }

    .search-input {
        min-height: 40px;
        font-size: 14px;
        padding: 0 14px;
    }

    .search-btn {
        min-height: 40px;
        padding: 0 11px;
    }

    /* Product Grid 2 Columns */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-card {
        --product-card-media-height: 142px;
    }

    .product-image-wrapper,
    .product-image {
        height: var(--product-card-media-height);
    }

    .product-info {
        padding: 9px;
    }

    .product-name {
        font-size: 11.5px;
        min-height: 32px;
        -webkit-line-clamp: 2;
    }

    .product-price {
        font-size: 14px;
    }

    .add-to-cart-btn {
        padding: 8px;
        font-size: 12px;
    }

    /* Filters Stacked */
    .filter-group {
        width: 100%;
    }

    .filter-group label {
        font-size: 11px;
    }

    /* Modal Mobile */
    .modal {
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
        border-radius: 15px;
        max-width: 100%;
    }

    .login-step h2 {
        font-size: 20px;
    }

    /* Toast Mobile */
    .toast {
        width: min(90vw, 480px);
        max-width: 90vw;
        padding: 14px 18px;
        font-size: 15px;
        border-radius: 18px;
    }

    .toast.toast--critical,
    .toast.toast--stock-warning {
        width: min(92vw, 520px);
        padding: 18px 20px;
        font-size: clamp(16px, 4.3vw, 19px);
    }

    .logo h1 {
        font-size: 19px;
    }

    .tagline {
        display: none;
    }

    .header-icon-btn,
    .inbox-link {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .theme-toggle-btn {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .cart-link {
        min-height: 44px;
        padding: 0;
    }

    .mobile-bottom-nav__icon {
        font-size: 17px;
    }

    .mobile-bottom-nav__label {
        font-size: 9px;
    }

    .mobile-more-sheet {
        padding-left: 14px;
        padding-right: 14px;
    }

    .mobile-more-sheet__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Very Small Screens (360px and below) --- */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }

    .products-grid {
        gap: 8px;
    }

    .product-card {
        --product-card-media-height: 126px;
    }

    .product-image-wrapper,
    .product-image {
        height: var(--product-card-media-height);
    }

    .product-name {
        font-size: 13px;
    }

    .product-price {
        font-size: 13px;
    }

    .category-btn {
        padding: 6px 10px;
        font-size: 11px;
    }

    .search-input {
        min-height: 40px;
        padding: 0 12px;
    }
}


/* frontend/css/style.08-mobile-responsive/account-orders-cart.css */
/* ========================================
   ACCOUNT PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .account-container {
        padding: 15px;
    }

    .account-header {
        flex-direction: column;
        text-align: center;
        padding: 25px 20px;
    }

    .profile-photo {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }

    .profile-info h1 {
        font-size: 20px;
    }

    .account-nav {
        justify-content: center;
        gap: 6px;
    }

    .account-nav button {
        min-height: 40px;
        padding: 8px 14px;
        font-size: 12px;
    }

    .account-section {
        padding: 20px 15px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .credit-balance {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .account-header {
        padding: 20px 15px;
        border-radius: 12px;
        margin-bottom: 20px;
    }

    .profile-photo {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .profile-info h1 {
        font-size: 16px;
    }

    .profile-info p {
        font-size: 14px;
    }

    .tier-badge {
        font-size: 11px;
        padding: 3px 8px;
    }

    .account-nav {
        gap: 8px;
    }

    .account-nav button {
        min-height: 38px;
        padding: 8px 10px;
        font-size: 12px;
        flex: 1;
        min-width: 0;
    }

    .section-title {
        font-size: 16px;
    }

    .order-card {
        padding: 12px;
    }

    .order-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .order-footer {
        flex-direction: column;
        gap: 10px;
    }

    .credit-card {
        padding: 20px;
    }

    .credit-balance {
        font-size: 24px;
    }
}

/* ========================================
   ORDERS PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .orders-container {
        padding: 15px;
    }

    .orders-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .orders-header h1 {
        font-size: 22px;
    }

    .orders-filters {
        padding: 15px;
    }

    .filter-group {
        flex: 1;
        min-width: calc(50% - 10px);
    }

    .filter-group select,
    .filter-group input {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 0;
    }

    .orders-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
    }

    .stat-card .stat-value {
        font-size: 22px;
    }

    .stat-card .stat-label {
        font-size: 12px;
    }

    .order-card-header {
        padding: 15px;
    }

    .order-card-body {
        padding: 15px;
    }

    .order-items-preview {
        gap: 8px;
    }

    .item-thumb {
        width: 50px;
        height: 50px;
    }

    .order-info {
        gap: 15px;
    }

    .order-total {
        font-size: 18px;
    }

    .order-card-footer {
        padding: 12px 15px;
    }

    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .orders-header h1 {
        font-size: 18px;
    }

    .orders-filters {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
        min-width: 0;
    }

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

    .stat-card {
        padding: 12px;
    }

    .stat-card .stat-value {
        font-size: 20px;
    }

    .order-card-header {
        flex-wrap: wrap;
        gap: 10px;
    }

    .order-items-preview {
        flex-wrap: wrap;
    }

    .item-thumb,
    .more-items {
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .more-items {
        font-size: 12px;
    }

    .order-summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .order-info {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .order-info-item {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .order-total {
        align-self: flex-end;
        margin-top: 10px;
    }

    .order-card-footer {
        justify-content: stretch;
    }

    .order-card-footer .btn {
        flex: 1;
        justify-content: center;
    }

    .empty-state {
        padding: 40px 20px;
    }

    .empty-state-icon {
        font-size: 48px;
    }

    .pagination button {
        padding: 6px 12px;
        font-size: 13px;
    }
}

/* ========================================
   CART PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .cart-container {
        padding: 15px;
    }

    .cart-header h1 {
        font-size: 22px;
    }

    .cart-item {
        padding: 15px;
    }

    .cart-item-image {
        width: 80px;
        height: 80px;
    }

    .cart-item-name {
        font-size: 15px;
    }

    .cart-item-price {
        font-size: 16px;
    }

    .cart-summary {
        padding: 20px;
    }

    .checkout-btn {
        padding: 15px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cart-item {
        padding: 12px;
    }

    .cart-item-image {
        width: 60px;
        height: 60px;
    }

    .cart-item-name {
        font-size: 14px;
    }

    .quantity-control button {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .quantity-control span {
        width: 30px;
        font-size: 14px;
    }

    .cart-summary-row {
        font-size: 14px;
    }

    .cart-total {
        font-size: 18px;
    }
}


/* frontend/css/style.08-mobile-responsive/tracking-credits-product.css */
/* ========================================
   ORDER TRACKING PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .tracking-container {
        padding: 15px;
    }

    .tracking-header h1 {
        font-size: 22px;
    }

    .tracking-timeline {
        padding-left: 30px;
    }

    .timeline-item::before {
        left: -25px;
    }

    .order-details-card {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .tracking-header h1 {
        font-size: 18px;
    }

    .tracking-search input {
        padding: 12px 15px;
    }

    .timeline-item h4 {
        font-size: 14px;
    }

    .timeline-item p {
        font-size: 13px;
    }
}

/* ========================================
   CREDITS PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .credits-container {
        padding: 15px;
    }

    .balance-card {
        padding: 25px;
    }

    .balance-amount {
        font-size: 36px;
    }

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .package-card {
        padding: 20px;
    }

    .package-amount {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .balance-card {
        padding: 20px;
    }

    .balance-amount {
        font-size: 28px;
    }

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

    .transactions-list {
        padding: 0;
    }

    .transaction-item {
        padding: 12px;
    }
}

/* ========================================
   PRODUCT DETAIL PAGE RESPONSIVE
   ======================================== */
@media (max-width: 768px) {
    .product-detail-container {
        padding: 15px;
    }

    .product-gallery {
        margin-bottom: 20px;
    }

    .product-main-image {
        height: 350px;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .thumbnail {
        width: 60px;
        height: 60px;
    }

    .product-title {
        font-size: 22px;
    }

    .product-price-main {
        font-size: 26px;
    }

    .variant-options {
        gap: 8px;
    }

    .variant-option {
        padding: 10px 16px;
    }

    .quantity-section {
        flex-wrap: wrap;
    }

    .add-to-cart-large {
        width: 100%;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .product-main-image {
        height: 280px;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price-main {
        font-size: 22px;
    }

    .variant-option {
        padding: 8px 14px;
        font-size: 13px;
    }

    .product-description {
        font-size: 14px;
    }
}


/* frontend/css/style.08-mobile-responsive/accessibility-and-chat.css */
/* ========================================
   TOUCH-FRIENDLY IMPROVEMENTS
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .btn,
    .category-btn,
    .filter-select,
    .add-to-cart-btn,
    .variant-option {
        min-height: 44px;
    }

    /* Remove hover effects on touch devices */
    .product-card:hover {
        transform: none;
    }

    .btn:hover {
        transform: none;
    }

    /* Add active states instead */
    .btn:active {
        transform: scale(0.98);
    }

    .product-card:active {
        transform: scale(0.98);
    }

    /* Improve scrolling */
    .categories-wrapper {
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .category-btn {
        scroll-snap-align: start;
    }
}

/* ========================================
   LANDSCAPE MOBILE ORIENTATION
   ======================================== */
@media (max-width: 900px) and (orientation: landscape) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

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

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

    .modal-content {
        max-width: 80%;
        max-height: 85vh;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .product-card {
        border: 2px solid #333;
    }

    .btn-primary {
        border: 2px solid white;
    }

    .category-btn.active {
        border: 2px solid #333;
    }
}



/* frontend/css/style.09-home-print-preorder.css */

/* frontend/css/components/home-shopping.css */
.home-shopping { --watch-shop-action: #b31245; padding-top: 12px; padding-bottom: 8px; }
.home-shopping [hidden] { display: none !important; }
.home-shopping__reassurance {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border-highlight);
    background: var(--primary-tint);
    color: var(--text-main);
    font-size: 13px;
}
.home-shopping__reassurance > strong { width: 100%; color: var(--primary-text); font-size: 16px; }
.home-shopping__delivery { display: grid; width: 100%; gap: 6px; grid-template-rows: minmax(1.5em, auto) minmax(1.5em, auto); }
.home-payment { padding-top: 5px; padding-bottom: 0; }
.home-payment .home-shopping__reassurance { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 10px; }
.home-payment__heading { display: grid; align-content: center; gap: 0; min-width: 0; }
.home-payment__heading > strong { font-size: 13px; line-height: 1.15; }
.home-payment #homeShoppingHelp { display: inline-flex; align-items: center; align-self: center; min-height: 44px; font-size: 12px; font-weight: 700; color: var(--primary-text); white-space: nowrap; }
.home-payment .home-shopping__reassurance > p, .home-payment__heading > p { width: 100%; margin: 0; font-size: 12px; line-height: 1.2; }
.home-payment #homePaymentOptions { font-weight: 600; }
.home-payment #homePaymentCash, .home-payment .home-shopping__delivery { grid-column: 1 / -1; }
.home-payment .home-shopping__delivery { display: flex; flex-wrap: wrap; gap: 1px 10px; font-size: 11px; line-height: 1.2; }
.home-status { display: grid; grid-template-columns: minmax(0, 1fr); padding-top: 4px; padding-bottom: 0; }
.home-status[hidden], .home-status__item[hidden] { display: none !important; }
.home-status__item { display: flex; align-items: center; gap: 6px; min-width: 0; box-sizing: border-box; min-height: 34px; padding: 3px 8px; border: 1px solid var(--border-color); border-radius: 9px; background: var(--bg-card); color: var(--text-main); }
.home-status__icon { flex: 0 0 auto; font-size: 15px; line-height: 1; }
.home-status__copy { display: flex; align-items: baseline; flex-wrap: wrap; min-width: 0; gap: 1px 6px; line-height: 1.12; }
.home-status__copy strong { font-size: 12px; }
.home-status__copy > span { font-size: 12px; overflow-wrap: anywhere; }
.home-shopping__promotion { padding: 10px 14px; background: var(--primary-tint); border-radius: 12px; margin-top: 8px; }
.home-shopping__promotion summary { min-height: 44px; align-content: center; cursor: pointer; font-weight: 700; color: var(--primary-text); }
.home-shopping__promotion p { font-size: 13px; line-height: 1.5; white-space: pre-line; }
.home-shopping__promotion--pending summary:empty { min-height: 44px; }
.home-shopping h2 { font-size: 18px; margin: 10px 0 8px; }
.home-shopping #homeTikTokProfile { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; min-height: 1.3em; line-height: 1.3; margin: 0 0 8px; font-family: inherit; font-size: 24px; font-weight: 400; color: var(--text-main); }
.home-tiktok-profile__metric { white-space: nowrap; }
.home-tiktok-profile__metric strong { font-size: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) {
    .home-shopping #homeTikTokProfile { column-gap: 14px; font-size: 20px; }
}
.home-shopping__frame { display: grid; position: relative; }
.home-shopping__frame > * { grid-area: 1 / 1; min-width: 0; }
.home-shopping__geometry { visibility: hidden; pointer-events: none; padding-bottom: 10px; }
.watch-shop__space { display: block; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--bg-subtle); }
#homeVideoRegion[aria-busy="true"] .home-shopping__geometry { visibility: visible; }
#homeVideoStatus { position: absolute; inset: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; margin: 0; padding: 8px; text-align: center; }
#homeVideoStatus p { margin: 0; font-size: 13px; line-height: 1.4; }
.home-shopping__status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
#homeVideoRegion:not(:has(.watch-shop__space)) #homeVideoStatus { position: static; }
#homeVideoStatus a, #homeVideoStatus button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 6px 12px; color: var(--primary-text); font: inherit; }
#homeVideoDismiss { background: transparent; border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; }
.home-shopping__videos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 12px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x proximity; }
.home-shopping__video-card { border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; background: var(--bg-card); scroll-snap-align: start; }
.home-shopping__media { position: relative; display: grid; place-items: center; height: 240px; background: var(--bg-secondary); }
.home-shopping__media > img, .home-shopping__media > video { width: 100%; height: 100%; object-fit: contain; }
.home-shopping__media > img { position: absolute; inset: 0; pointer-events: none; }
.home-shopping__media > iframe { width: 100%; height: 100%; border: 0; }
.home-shopping__media:has(iframe) { height: 420px; }
.home-shopping__media > button + p { align-self: end; font-size: 12px; margin: 0; }
.home-shopping .home-shopping__media > button { position: absolute; padding: 10px 18px; min-height: 44px; border: 0; border-radius: 24px; color: var(--text-inverse); background: var(--primary-gradient); font-weight: 700; cursor: pointer; }
.home-shopping__media p { padding: 16px; }
.home-shopping__product { display: flex; gap: 10px; padding: 10px; align-items: center; text-decoration: none; color: var(--text-main); }
.home-shopping__product img { flex-shrink: 0; object-fit: contain; border-radius: 6px; }
.home-shopping__product > span { display: grid; gap: 4px; font-size: 12px; min-width: 0; }
.home-shopping__product strong { font-size: 13px; overflow-wrap: anywhere; }
.home-shopping a:focus-visible, .home-shopping button:focus-visible, .home-shopping summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
@media (max-width: 480px) {
    .home-shopping__videos { grid-auto-columns: 78%; }
    .home-shopping__media { height: 210px; }
}
.home-shopping__videos:has(.watch-shop__grid) { position: relative; display: block; overflow: visible; }
.watch-shop__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; touch-action: pan-y; overscroll-behavior-x: contain; }
.watch-shop__page-controls { position: absolute; z-index: 2; inset: 50% 0 auto; transform: translateY(-50%); display: flex; align-items: center; justify-content: space-between; margin: 0; pointer-events: none; }
.watch-shop__page-controls[hidden], .watch-shop__page-status[hidden] { display: none; }
.home-shopping .watch-shop__page-controls button { position: relative; flex: 0 0 44px; display: grid; place-items: center; width: 44px; height: 72px; min-width: 44px; min-height: 72px; max-width: none; padding: 0; border: 0; background: transparent; color: #fff; font-size: 0; pointer-events: auto; }
.home-shopping .watch-shop__page-controls button::before { content: ''; position: absolute; inset: 4px 6px; border-radius: 8px; background: rgb(31 31 31 / 88%); box-shadow: 0 2px 10px rgb(0 0 0 / 32%); }
.home-shopping .watch-shop__page-controls button::after { content: ''; position: relative; width: 12px; height: 18px; background: currentColor; clip-path: polygon(65% 0, 100% 0, 35% 50%, 100% 100%, 65% 100%, 0 50%); }
.home-shopping .watch-shop__page-controls button:last-child::after { transform: scaleX(-1); }
.home-shopping .watch-shop__page-controls button:hover:not(:disabled)::before { background: rgb(15 15 15 / 96%); }
.home-shopping .watch-shop__page-controls button:focus-visible { outline: 3px solid #ff9fc2; outline-offset: -2px; border-radius: 10px; }
.home-shopping .watch-shop__page-controls button:disabled { opacity: .58; }
.watch-shop__page-indicator { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.watch-shop__page-status { margin: 5px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.3; text-align: center; }
.watch-shop__tile { position: relative; display: block; min-width: 0; width: 100%; aspect-ratio: 3 / 4; overflow: hidden; border: 0; border-radius: 8px; padding: 0; background: #142334; color: #fff; cursor: pointer; }
.watch-shop__tile > img { width: 100%; height: 100%; object-fit: cover; }
.watch-shop__tile > picture { display: block; width: 100%; height: 100%; }
.watch-shop__tile > picture > img { width: 100%; height: 100%; object-fit: cover; }
.watch-shop__skeleton { background: var(--bg-subtle); color: transparent; border-color: transparent; cursor: default; pointer-events: none; }
.home-shopping span.watch-shop__more { display: block; }
.watch-shop__tile-play { position: absolute; inset: 0; display: grid; place-content: center; width: 32px; height: 32px; margin: auto; border: 2px solid #fff; border-radius: 50%; background: rgb(0 0 0 / 70%); color: #fff; font-size: 14px; }
.watch-shop__tile-copy { position: absolute; inset: auto 0 0; display: block; overflow: hidden; padding: 22px 5px 7px; background: linear-gradient(transparent, rgb(0 0 0 / 90%)); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; text-overflow: ellipsis; }
.watch-shop-viewer-open { overflow: hidden; }
.watch-shop__viewer { position: fixed; inset: 0; display: none; box-sizing: border-box; width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); background: #080808; color: #fff; }
.watch-shop__viewer[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.watch-shop__viewer::backdrop { background: #080808; }
.watch-shop__viewer-header, .watch-shop__viewer-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 12px; }
.watch-shop__viewer-header { border-bottom: 1px solid #444; }
.watch-shop__viewer-header > a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 8px 14px; border: 1px solid #ff8fb5; border-radius: 10px; color: #fff; font-weight: 700; text-decoration: none; }
.watch-shop__viewer-header > .watch-shop__cart-link { width: 44px; padding: 0; }
.watch-shop__cart-link .cart-link__icon { width: 23px; height: 23px; }
.home-shopping .watch-shop__viewer .btn-secondary { min-height: 44px; padding: 8px 12px; background: #242424; border-color: #555; color: #fff; }
.watch-shop__active { display: grid; grid-template-rows: minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); min-height: 0; border: 0; border-radius: 0; background: #080808; }
.watch-shop__viewer .home-shopping__media, .watch-shop__viewer .home-shopping__media:has(iframe) { height: 100%; min-height: 0; background: #080808; }
.watch-shop__viewer .home-shopping__media > iframe, .watch-shop__viewer .home-shopping__media > video { width: 100%; height: 100%; max-width: 100%; }
.watch-shop__products { min-width: 0; }
.watch-shop__viewer .watch-shop__products { padding: 8px 12px; background: #1c1720; border-top: 1px solid #66505b; }
.watch-shop__products-heading { margin: 0 0 6px; color: #ffb3ce; font-size: 13px; font-weight: 700; }
.watch-shop__product-list { display: flex; gap: 8px; overflow-x: auto; }
.watch-shop__products .home-shopping__product { flex-wrap: wrap; }
.watch-shop__viewer .home-shopping__product { display: grid; grid-template-columns: minmax(0, 1fr) auto; flex: 0 0 min(320px, 100%); box-sizing: border-box; gap: 6px 12px; padding: 8px 12px; border: 1px solid #75636c; border-radius: 10px; background: #29212b; color: #fff; }
.watch-shop__viewer .home-shopping__product strong { grid-column: 1 / -1; width: 100%; font-size: 13px; line-height: 1.25; }
.watch-shop__viewer .home-shopping__product > a { color: #d9e8ff; font-size: 12px; }
.watch-shop__viewer .watch-shop__selector { position: absolute; inset: auto 0 0; box-sizing: border-box; width: 100%; max-width: 540px; max-height: 85dvh; margin: 0 auto; border-radius: 16px 16px 0 0; box-shadow: 0 -20px 50px rgb(0 0 0 / 65%); padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.watch-shop__viewer .watch-shop__selector .btn-secondary { background: var(--bg-card); border-color: var(--border-color); color: var(--text-main); }
.home-shopping .btn-secondary { min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-card); color: var(--text-main); font: inherit; cursor: pointer; }
.home-shopping .btn-secondary:disabled { opacity: .55; cursor: not-allowed; }
.watch-shop__selector { box-sizing: border-box; width: min(420px, calc(100vw - 24px)); max-height: 85dvh; overflow: hidden; padding: 14px; border-radius: 14px; background: var(--bg-card, #fff); color: var(--text-main, #222); border: 1px solid var(--border-color, #ddd); }
.watch-shop__selector[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.watch-shop__selector > h3 { margin: 0 0 12px; }
.watch-shop__selector-content { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.watch-shop__selector-content > p { margin: 10px 0; }
.watch-shop__selector-actions { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border-color, #ddd); }
.watch-shop__selector-actions > p { grid-column: 1 / -1; margin: 0; font-weight: 700; }
.watch-shop__selector-actions > p:empty { display: none; }
.watch-shop__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.watch-shop__tiles button { min-width: 0; display: grid; justify-items: center; gap: 6px; border: 2px solid var(--border-color, #ccc); overflow-wrap: anywhere; }
.home-shopping .watch-shop__tiles button[aria-pressed="true"] { border-color: var(--watch-shop-action); box-shadow: inset 0 0 0 1px var(--watch-shop-action); font-weight: 700; }
.watch-shop__exact { width: 100%; height: 180px; object-fit: contain; }
.watch-shop__selector::backdrop { background: rgb(0 0 0 / 45%); }
.home-shopping .watch-shop__primary, .home-shopping .watch-shop__viewer .watch-shop__primary { min-height: 44px; background: var(--watch-shop-action); border: 1px solid var(--watch-shop-action); color: #fff; font-weight: 700; }
.home-shopping .watch-shop__primary:hover:not(:disabled) { background: #900d36; border-color: #900d36; }
.home-shopping .watch-shop__primary:disabled { opacity: 1; background: #615860; border-color: #615860; color: #fff; }
.home-shopping .watch-shop__primary:focus-visible { outline: 3px solid #ff9fc2; outline-offset: 3px; }
.watch-shop__more, .watch-shop__submit { grid-column: 1 / -1; width: 100%; }
@media (min-width: 900px) { .watch-shop__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (min-width: 700px) { .watch-shop__viewer .home-shopping__media > iframe, .watch-shop__viewer .home-shopping__media > video { max-width: 540px; } }
@media (max-width: 360px) {
    .home-payment .home-shopping__delivery { min-height: 2.4em; }
    .home-status__item { gap: 4px; padding-inline: 5px; }
    .home-status__icon { font-size: 13px; }
}

/* ========================================
   HOMEPAGE STYLES
   ======================================== */
.hero-section {
    background: var(--primary-gradient) !important;
    padding: 18px 0 12px !important;
    text-align: center !important;
    color: var(--text-inverse) !important;
    position: relative !important;
    overflow: hidden !important;
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    visibility: visible !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Ccircle cx='30' cy='30' r='5'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 390px;
    margin: 0 auto;
}

.hero-section h1,
.hero-section h2 {
    font-size: 1.28rem;
    line-height: 1.06;
    margin-bottom: 5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-wrap: balance;
}

.hero-section p {
    max-width: 25rem;
    margin: 0 auto 0;
    font-size: 13px;
    line-height: 1.2;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-btn {
    display: inline-block;
    background: var(--bg-card);
    color: var(--primary);
    padding: 9px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .hero-btn {
    background: rgba(18, 18, 18, 0.75);
    color: var(--text-inverse);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .hero-btn:hover {
    border-color: rgba(255, 255, 255, 0.28);
}

/* Homepage Sections */
.home-section {
    padding: 40px 0;
}

.home-section--categories {
    padding: 12px 0;
}

.home-section--member-perks {
    padding-top: 18px;
    padding-bottom: 18px;
}

.home-section.bg-light {
    background: var(--bg-soft);
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
}

.section-header h2,
.section-header h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Restore the familiar category cards; customer-safe links are supplied by JS. */
.home-section--categories .section-header,
.home-section--brands .section-header { text-align: left; margin-bottom: 8px; }
.home-section--categories .section-header h2,
.home-section--brands .section-header h2 { margin: 0; font-size: 18px; }
.home-section--categories .category-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.home-section--categories .category-cards:empty { display: none; }
.home-section--categories .category-card {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    min-height: 88px;
    box-sizing: border-box;
    padding: 11px 8px;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 18px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 8%);
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.home-section--categories .category-card:hover,
.home-section--categories .category-card:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgb(233 30 99 / 15%);
    border-color: var(--border-highlight);
    color: var(--primary-text);
}
.home-section--categories .category-card .cat-icon { font-size: 32px; line-height: 1; }
.home-section--categories .category-card .cat-name { line-height: 1.15; }
.home-section--categories .view-all-container { margin-top: 4px; text-align: left; }
.home-section--categories .view-all-btn { display: inline-flex; align-items: center; min-height: 44px; }

/* Promo Banner */
.promo-banner {
    background: var(--secondary-gradient);
    border-radius: 20px;
    padding: 24px 20px;
    color: var(--text-inverse);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.promo-banner h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    position: relative;
}

.promo-banner p {
    opacity: 0.9;
    margin-bottom: 14px;
    position: relative;
    font-size: 0.92rem;
    line-height: 1.4;
}

.promo-banner .promo-btn {
    display: inline-block;
    background: var(--bg-card);
    color: var(--secondary);
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: transform 0.3s;
}

[data-theme="dark"] .promo-banner .promo-btn {
    background: var(--bg-card);
    color: var(--text-inverse);
    border: 1px solid var(--border-color);
}

.promo-banner .promo-btn:hover {
    transform: scale(1.05);
}

/* Featured Products */
.featured-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Fixed-height discovery rail, matching Watch & Shop's native scroll-snap. */
.home-section--brands { padding: 18px 0; }
.home-section--brands .brand-logos {
    display: grid; grid-auto-flow: column; grid-auto-columns: 140px;
    grid-template-rows: 72px; gap: 8px; overflow-x: auto;
    padding: 3px 3px 10px; scroll-snap-type: x proximity; scroll-padding-inline: 3px;
    overscroll-behavior-x: contain;
}
.home-section--brands .section-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand-controls { display: flex; gap: 6px; flex-shrink: 0; }
.brand-controls[hidden] { display: none; }
.brand-controls button {
    width: 44px; height: 44px; border: 1px solid var(--border-color); border-radius: 10px;
    background: var(--bg-card); color: var(--text-main); font-size: 26px; cursor: pointer;
}
.brand-controls button:disabled { opacity: 0.4; cursor: default; }
.brand-controls button:focus-visible, .brand-logo:focus-visible { outline: 2px solid var(--primary-color, #6c2c91); outline-offset: 1px; }
.home-section--brands:has(.brand-logos:empty) { display: none; }
.home-section--brands .brand-logo {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-width: 0;
    min-height: 62px;
    padding: 7px 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    scroll-snap-align: start;
    overflow-wrap: anywhere;
    overflow: hidden;
}
.home-section--brands .brand-logo:hover,
.home-section--brands .brand-logo:focus-visible { border-color: var(--border-highlight); color: var(--primary-text); }
.home-section--brands .brand-logo--image { background: #fff; }
.home-section--brands .brand-logo--dark-artwork { background: #262626; }
.home-section--brands .brand-logo__fallback[hidden] { display: none; }
.home-section--brands .brand-logo > * { grid-area: 1 / 1; }
.home-section--brands .brand-logo img { display: block; width: 100%; max-width: 150px; height: 46px; object-fit: contain; }
.home-section--brands .brand-logo img:not(.brand-logo__loaded) { opacity: 0; }
.home-section--brands .brand-logo img[hidden] { display: none; }

/* News/Updates Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.news-card {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-card .news-content {
    padding: 20px;
}

.news-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.news-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.news-card .news-date {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 10px;
}

/* View All Button */
.view-all-container {
    text-align: center;
    margin-top: 16px;
}

.view-all-btn {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    padding: 10px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.view-all-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-primary);
}

/* Mobile responsive for homepage */
@media (max-width: 768px) {
    .hero-section {
        padding: 8px 0 7px !important;
        min-height: auto !important;
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        background: var(--primary-gradient) !important;
    }

    .hero-content {
        display: block !important;
        width: 100% !important;
        visibility: visible !important;
        max-width: 300px !important;
    }

    .hero-section h1,
    .hero-section h2 {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
        line-height: 1.08 !important;
        color: white !important;
        display: block !important;
        width: 100% !important;
        max-width: 19ch !important;
        text-wrap: balance !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .home-section--categories .category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .home-section--brands .brand-logos {
        grid-auto-columns: 140px;
        gap: 8px;
    }

    .home-section--brands .brand-logo {
        min-height: 62px;
        padding: 7px 10px;
    }

    .home-section--brands .brand-logo img { height: 46px; }

    .hero-section p {
        font-size: 12px !important;
        margin: 0 auto 0 !important;
        max-width: 30ch !important;
        line-height: 1.16 !important;
        color: white !important;
        width: 100% !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .category-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-card .cat-icon {
        font-size: 30px;
    }

    .category-card .cat-name {
        font-size: 12px;
    }

    .view-all-container {
        margin-top: 12px;
    }

    .view-all-btn {
        padding: 8px 18px;
        font-size: 12px;
    }

    .home-section--categories {
        padding-bottom: 12px;
    }

    .home-section--member-perks {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .promo-banner {
        padding: 18px 16px;
        border-radius: 18px;
    }

    .promo-banner h3 {
        font-size: 1.08rem;
        margin-bottom: 6px;
    }

    .promo-banner p {
        margin-bottom: 10px;
        font-size: 12px;
        line-height: 1.32;
    }

    .promo-banner .promo-btn {
        padding: 9px 18px;
        font-size: 12px;
    }

}

@media (max-width: 540px) {
    .hero-section p { display: none !important; }
}

@media (min-width: 541px) and (max-width: 768px) {
    .hero-content { max-width: 100% !important; }
    .hero-section p {
        display: block !important;
        width: auto !important;
        max-width: none !important;
        white-space: nowrap;
    }
}

[data-theme="dark"] .refresh-info,
body:not([data-theme="light"]) .refresh-info {
    color: #aeb8c6;
}

[data-theme="dark"] .seller-card .product-category {
    color: #aeb8c6;
}

.seller-card .rank-badge {
    background: #c2185b;
    color: #fff;
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .top-bar,
    .main-header,
    .categories-nav,
    .filters-bar,
    .add-to-cart-btn,
    .cart-link,
    .modal {
        display: none !important;
    }

    .container {
        max-width: 100%;
        padding: 0;
    }

    .product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    body {
        background: white;
    }
}

/* ========================================
   PRE-ORDER SECTION
   ======================================== */
.preorder-section {
    margin-top: 20px;
    padding: 20px;
    background: var(--bg-warning);
    border-radius: 15px;
    border: 2px dashed var(--warning);
}

.preorder-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--warning);
    color: var(--text-inverse);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
}

.preorder-badge .badge-icon {
    font-size: 16px;
}

.preorder-info {
    color: var(--text-main);
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.preorder-details {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
}

.preorder-details > div {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-color);
}

.preorder-details > div:last-child {
    border-bottom: none;
}

.preorder-details .label {
    color: var(--text-muted);
    font-size: 13px;
}

.preorder-details .value {
    font-weight: 600;
    color: var(--text-main);
}

.preorder-note {
    color: var(--danger-dark);
    font-size: 13px;
    margin-top: 10px;
    padding: 10px;
    background: var(--bg-danger);
    border-radius: 8px;
}

/* Pre-Order Modal */
.customer-preorder {
    box-sizing: border-box;
    width: min(500px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-main);
    background: var(--bg-card);
    overflow-y: auto;
}
.customer-preorder::backdrop { background: rgb(0 0 0 / 60%); }
.customer-preorder .modal-content { padding: 0; margin: 0; width: 100%; max-height: none; overflow: visible; border: 0; box-shadow: none; animation: none; }
.customer-preorder h2 { font-size: 20px; margin-bottom: 12px; }
.customer-preorder .preorder-modal-summary { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px; text-align: left; align-items: start; }
.customer-preorder .preorder-modal-image { width: 72px; height: 96px; object-fit: contain; }
.customer-preorder .modal-close { float: right; position: static; min-width: 44px; min-height: 44px; }
.customer-preorder .preorder-modal-actions { display: grid; grid-template-columns: 1fr 1fr; position: sticky; bottom: -16px; background: var(--bg-card); padding: 10px 0; }
.customer-preorder .preorder-modal-actions button { min-height: 44px; padding: 10px; }
.customer-preorder [hidden] { display: none !important; }
.preorder-modal-content {
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.preorder-modal-summary {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: var(--bg-subtle);
    border-radius: 10px;
    margin-bottom: 20px;
}

.preorder-modal-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.preorder-modal-details h3 {
    font-size: 16px;
    margin-bottom: 5px;
}

.preorder-modal-variant {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.preorder-modal-qty,
.preorder-modal-price {
    font-size: 14px;
    margin: 3px 0;
}

.preorder-modal-tc {
    margin-bottom: 20px;
}

.preorder-modal-tc h4 {
    font-size: 15px;
    margin-bottom: 10px;
    color: var(--text-main);
}

.preorder-tc-content {
    max-height: 200px;
    overflow-y: auto;
    padding: 15px;
    background: var(--bg-subtle);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.preorder-tc-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.preorder-tc-checkbox input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.preorder-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.preorder-modal-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
}

/* Spinner small for buttons */
.spinner-small {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Pre-Order Overlay on Product Image */
.preorder-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 152, 0, 0.90);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: inherit;
}

.preorder-overlay-content {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.preorder-overlay-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.preorder-overlay-text {
    font-size: 32px;
    font-weight: 800;
    display: block;
    letter-spacing: 2px;
}

.preorder-overlay-subtext {
    font-size: 16px;
    font-weight: 500;
    display: block;
    margin-top: 8px;
    opacity: 0.95;
}

/* Pre-Order Warning Banner */
.preorder-warning-banner {
    background: var(--bg-warning);
    border: 2px solid var(--warning);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.preorder-warning-banner .warning-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.preorder-warning-banner .warning-text {
    flex: 1;
}

.preorder-warning-banner .warning-text strong {
    display: block;
    color: var(--warning-dark);
    font-size: 16px;
    margin-bottom: 4px;
}

.preorder-warning-banner .warning-text span {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.4;
}

/* Pre-Order Button (orange) */
.btn-preorder {
    background: linear-gradient(135deg, var(--warning) 0%, var(--warning-dark) 100%);
    color: var(--text-inverse);
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.4);
}

.btn-preorder:hover {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.5);
}

.btn-preorder:disabled {
    background: var(--border-color);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

/* Pre-Order Acknowledge Checkbox */
.preorder-acknowledge-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    padding: 12px;
    background: var(--bg-warning);
    border: 2px solid var(--warning);
    border-radius: 8px;
}

.preorder-acknowledge-checkbox input {
    margin-top: 3px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.preorder-acknowledge-checkbox span {
    color: var(--warning-dark);
    font-weight: 600;
    line-height: 1.4;
}

/* Product Grid Pre-Order Badge */
.card-preorder-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--bg-warning);
    color: var(--warning-text);
    border: 1px solid currentColor;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Mobile adjustments for pre-order */
@media (max-width: 480px) {
    body.page-shop .card-preorder-badge {
        top: 8px;
        left: 8px;
        padding: 3px 8px;
        border-radius: 999px;
        font-size: 9px;
    }

    .preorder-modal-summary {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .preorder-modal-image {
        width: 100px;
        height: 100px;
    }

    .preorder-modal-actions {
        flex-direction: column;
    }

    .preorder-modal-actions button {
        width: 100%;
    }

    .preorder-overlay-icon {
        font-size: 36px;
    }

    .preorder-overlay-text {
        font-size: 24px;
    }

    .preorder-overlay-subtext {
        font-size: 14px;
    }

    .preorder-warning-banner {
        padding: 12px;
    }

    .preorder-warning-banner .warning-text strong {
        font-size: 14px;
    }

    .preorder-warning-banner .warning-text span {
        font-size: 13px;
    }
}

/* Pre-Order Cards (Account Page) */
.preorders-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.preorder-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.preorder-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.preorder-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: var(--bg-subtle);
    border-bottom: 1px solid var(--border-color);
}

.preorder-number {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
}

.preorder-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 500;
}

.preorder-status.status-pending,
.preorder-status.status-held {
    background: var(--bg-warning);
    color: var(--warning-dark);
}

.preorder-status.status-sourcing {
    background: var(--bg-info);
    color: var(--info-link);
}

.preorder-status.status-shipped,
.preorder-status.status-ready {
    background: var(--bg-success);
    color: var(--success-dark);
}

.preorder-status.status-fulfilled {
    background: var(--bg-success);
    color: var(--success-dark);
}

.preorder-status.status-cancelled,
.preorder-status.status-expired {
    background: var(--bg-danger);
    color: var(--danger-dark);
}

.preorder-card-body {
    padding: 15px;
}

.preorder-product {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.preorder-image {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-subtle);
}

.preorder-details h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    color: var(--text-main);
}

.preorder-qty,
.preorder-price {
    margin: 3px 0;
    font-size: 13px;
    color: var(--text-muted);
}

.preorder-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: var(--bg-subtle);
    border-top: 1px solid var(--border-color);
}

.preorder-date {
    font-size: 12px;
    color: var(--text-light);
}

.section-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
}

/* Clean Footer Support */
.footer-simple {
    background-color: var(--bg-footer);
    color: var(--text-inverse);
}
.footer-link {
    color: var(--text-inverse);
    text-decoration: none;
    font-size: 13px;
}
.footer-divider {
    color: rgba(255,255,255,0.6);
    margin: 0 10px;
}

/* Global Form Dark Mode Fix */
input, select, textarea {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* Fix Placeholders (Grey text) */
::placeholder {
    color: var(--text-muted) !important;
}
.home-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 24px;
  /* Keep the last links above the fixed navigation and collapsed guide. */
  padding: 12px 16px calc(var(--ui-bottom-nav-height, 78px) + 48px + env(safe-area-inset-bottom, 0px));
}

.home-legal-links a {
  /* Legal navigation stays above the floating guide's transparent hit area.
     Only the links are raised: empty footer padding must not cover the guide. */
  position: relative;
  z-index: 2147482001;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* frontend/css/style.10-darkmode-image-account.css */
/* =========================================================
   PHASE 4: DARK MODE CONTENT FIXES (Products & Modals)
   ========================================================= */

[data-theme="dark"] {

    /* 1. Fix Product Cards */
    .product-card, .card {
        background-color: var(--bg-card) !important;
        border-color: var(--border-color) !important;
        box-shadow: 0 4px 6px rgba(0,0,0,0.3) !important;
    }

    /* Fix Product Titles & Prices */
    .product-title, .card-title {
        color: var(--text-main) !important;
    }
    .product-price, .price {
        color: var(--primary-light) !important; /* Make prices pop in pink */
    }

    /* 2. Fix Login Modal & Popups */
    .modal-content, .popup-content {
        background-color: var(--bg-card) !important;
        border: 1px solid var(--border-color);
    }
    .modal-header h2, .login-title {
        color: var(--text-main) !important;
    }
    .modal-close, .close-btn {
        color: var(--text-muted) !important;
    }

    /* 3. Fix Filters & Dropdowns (Shop Page) */
    .filter-section, .dropdown-menu {
        background-color: var(--bg-card) !important;
        color: var(--text-main) !important;
    }
    select {
        background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E") !important;
    }
}

/* =========================================================
   PHASE 5: DARK MODE COMPLETION & TOGGLE UI
   ========================================================= */

.theme-toggle-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

/* --- 1. THE TOGGLE BUTTON UI --- */
.theme-toggle-btn,
.language-toggle-btn {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border-color));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 8%, var(--bg-card));
    color: var(--text-main);
    cursor: pointer;
    margin-left: 4px;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 3px 10px rgba(33, 20, 28, 0.12);
}

.language-toggle-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}

.theme-toggle-btn:hover,
.language-toggle-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 58%, var(--border-color));
    background: color-mix(in srgb, var(--primary) 14%, var(--bg-card));
    transform: translateY(-1px);
}

.theme-toggle-btn:active,
.language-toggle-btn:active {
    transform: translateY(0) scale(0.96);
}

.theme-toggle-btn:focus-visible,
.language-toggle-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

.theme-toggle-symbol {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    line-height: 1;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-symbol--moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle-symbol--sun {
    opacity: 0;
    transform: rotate(-75deg) scale(0.62);
}

[data-theme="dark"] .theme-toggle-symbol--moon {
    opacity: 0;
    transform: rotate(75deg) scale(0.62);
}

[data-theme="dark"] .theme-toggle-symbol--sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-toggle-btn,
[data-theme="dark"] .language-toggle-btn {
    border-color: color-mix(in srgb, #ffd76a 38%, var(--border-color));
    background: color-mix(in srgb, #ffd76a 10%, var(--bg-input));
}

.theme-toggle-coachmark {
    position: absolute;
    z-index: 1002;
    top: calc(100% + 10px);
    right: 0;
    width: max-content;
    max-width: min(240px, calc(100vw - 32px));
    padding: 9px 12px;
    border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--border-color));
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.theme-toggle-coachmark::before {
    content: '';
    position: absolute;
    right: 15px;
    bottom: 100%;
    border: 6px solid transparent;
    border-bottom-color: color-mix(in srgb, var(--primary) 42%, var(--border-color));
}

.theme-toggle-coachmark::after {
    content: '';
    position: absolute;
    right: 16px;
    bottom: 100%;
    border: 5px solid transparent;
    border-bottom-color: var(--bg-card);
}

.theme-toggle-coachmark.is-visible {
    opacity: 1;
    transform: translateY(0);
}

html,
body,
.header,
.main-header,
.product-card,
.card,
.modal-content,
.popup-content {
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
    .theme-toggle-btn,
    .theme-toggle-symbol,
    .theme-toggle-coachmark,
    html,
    body,
    .header,
    .main-header,
    .product-card,
    .card,
    .modal-content,
    .popup-content {
        transition: none !important;
    }
}

/* --- 2. ACCOUNT PAGE FIXES (Overrides internal <style>) --- */
[data-theme="dark"] .account-section,
[data-theme="dark"] .account-nav button {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .section-title {
    color: var(--text-main) !important;
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .form-group label {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-control {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .order-card {
    border-color: var(--border-color) !important;
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .order-number,
[data-theme="dark"] .order-number-link,
[data-theme="dark"] .order-total {
    color: var(--primary-light) !important;
}

/* --- 3. CART & CHECKOUT FIXES --- */
[data-theme="dark"] .cart-item,
[data-theme="dark"] .cart-summary {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .empty-state {
    color: var(--text-muted) !important;
}

/* --- 4. PRODUCT NAME FIX (The "Unreadable" Fix) --- */
[data-theme="dark"] .product-name,
[data-theme="dark"] .product-title,
[data-theme="dark"] .card-title {
    color: var(--text-main) !important;
}

[data-theme="dark"] .product-price {
    color: var(--primary-light) !important;
}

/* =========================================================
   PHASE 6: IMAGE HANDLING & FINAL ACCOUNT POLISH
   ========================================================= */

/* --- 1. THE "SUNGLASSES" FILTER FOR IMAGES --- */
[data-theme="dark"] img.product-image,
[data-theme="dark"] .profile-photo img,
[data-theme="dark"] .order-item-img {
    filter: brightness(0.85);       /* Dim the glare by 15% */
    transition: filter 0.3s ease;   /* Smooth transition */
}

/* Brighten up slightly when user hovers to see details */
[data-theme="dark"] img.product-image:hover {
    filter: brightness(1);
}

/* --- 2. ACCOUNT PAGE SPECIFIC PATCHES --- */

/* Fix the Profile Photo Circle (Was white) */
[data-theme="dark"] .profile-photo {
    background-color: var(--bg-input) !important;
    color: var(--primary-light) !important;
    border: 2px solid var(--border-color);
}

/* Darken the Account Pink Header (Too bright for dark mode) */
[data-theme="dark"] .account-header {
    background: linear-gradient(135deg, #880e4f 0%, #ad1457 100%) !important; /* Deep Pink */
    color: var(--text-inverse) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Fix Status Badges (Pending/Shipped backgrounds were too light) */
[data-theme="dark"] .status-pending { background: #4a3b00 !important; color: #ffca28 !important; }
[data-theme="dark"] .status-confirmed { background: #00363a !important; color: #4dd0e1 !important; }
[data-theme="dark"] .status-processing { background: #0d47a1 !important; color: #64b5f6 !important; }
[data-theme="dark"] .status-shipped { background: #1b5e20 !important; color: #81c784 !important; }
[data-theme="dark"] .status-delivered { background: #1b5e20 !important; color: #a5d6a7 !important; }
[data-theme="dark"] .status-cancelled { background: #b71c1c !important; color: #ef9a9a !important; }

/* Fix "Order Edit" Info Box */
[data-theme="dark"] .order-edit-hint {
    background-color: #3e2723 !important; /* Dark Orange/Brown */
    color: #ffcc80 !important;
}

/* Fix Address Cards */
[data-theme="dark"] .address-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

/* Fix Pagination Buttons */
[data-theme="dark"] .pagination button {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}
[data-theme="dark"] .pagination button.active {
    background-color: var(--primary) !important;
    color: white !important;
    border-color: var(--primary) !important;
}


/* frontend/css/style.11-shop-header-cart-credit-density.css */
/* =========================================================
   PHASE 7: SHOP FILTERS & SEARCH FIXES
   ========================================================= */

/* 1. Fix the Top Filter Bar (Typo Correction) */
[data-theme="dark"] .filters-section {
    background-color: var(--bg-card) !important; /* Was white */
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

/* 2. Fix the "Active Filters" Tags (The little pill buttons) */
[data-theme="dark"] .filter-tag {
    background-color: rgba(255, 152, 0, 0.14) !important;
    color: var(--warning) !important;
    border: 1px solid rgba(255, 152, 0, 0.6);
    font-weight: 800;
}

[data-theme="dark"] .filter-tag:hover {
    background-color: rgba(255, 152, 0, 0.22) !important;
    color: var(--warning-dark) !important;
    border-color: var(--warning);
}

[data-theme="dark"] .filter-tag--reset-all,
[data-theme="dark"] .filter-tag--reset-all:hover {
    background-color: var(--primary-dark) !important;
    color: #fff !important;
    border-color: var(--primary-dark);
}

/* 3. Fix Search Suggestions (The box that drops down when you type) */
[data-theme="dark"] .search-suggestions {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .suggestion-item {
    border-bottom-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .suggestion-item:hover,
[data-theme="dark"] .suggestion-item.active {
    background-color: var(--bg-input) !important;
}

[data-theme="dark"] .suggestion-header {
    background-color: var(--bg-input) !important;
    color: var(--text-muted) !important;
    border-bottom-color: var(--border-color) !important;
}

/* =========================================================
   PHASE 8: HEADER & TEXT VISIBILITY OVERHAUL
   ========================================================= */

/* 1. Kill the Pink Top Bar -> Make it Dark */
[data-theme="dark"] .top-bar {
    background: var(--bg-header) !important;
    background-image: none !important; /* Removes the pink gradient */
    border-bottom: 1px solid var(--border-color);
}

/* 2. Kill the White Logo Area -> Make it Dark */
[data-theme="dark"] .main-header {
    background-color: var(--bg-header) !important;
}

/* 3. Fix the Navigation Bar (Beranda, Produk, etc.) */
[data-theme="dark"] .app-nav-bar,
[data-theme="dark"] .categories-nav {
    background-color: var(--bg-header) !important;
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .mobile-search-shell,
[data-theme="dark"] .mobile-bottom-nav,
[data-theme="dark"] .mobile-more-sheet {
    background-color: rgba(20, 20, 20, 0.84) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .mobile-bottom-nav__item,
[data-theme="dark"] .mobile-more-sheet__link,
[data-theme="dark"] .mobile-more-sheet__close,
[data-theme="dark"] .header-icon-btn {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .mobile-bottom-nav__item.active {
    background: var(--primary-gradient) !important;
    color: #fff !important;
    border-color: transparent !important;
}

[data-theme="dark"] .mobile-search-overlay__backdrop,
[data-theme="dark"] .mobile-more-backdrop {
    background: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="dark"] .prayer-times-compact,
[data-theme="dark"] .status-display {
    background: rgba(20, 20, 20, 0.94) !important;
    border-color: var(--border-color) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .prayer-name,
[data-theme="dark"] .status-text {
    color: var(--text-main) !important;
}

[data-theme="dark"] .prayer-time,
[data-theme="dark"] .status-hours,
[data-theme="dark"] .prayer-toggle {
    color: var(--text-muted) !important;
}

/* 4. Force Text Visibility (Logo & Links) */
[data-theme="dark"] .logo h1 {
    color: var(--text-inverse) !important; /* Force "SitiJY" to White */
}

[data-theme="dark"] .logo .tagline {
    color: var(--text-muted) !important; /* Force Tagline to Grey */
}

[data-theme="dark"] .category-btn {
    color: var(--text-main) !important; /* Force Menu Links to White */
}

[data-theme="dark"] .category-btn:hover,
[data-theme="dark"] .category-btn.active {
    background-color: var(--bg-input) !important;
    color: var(--primary-light) !important;
}

/* 5. Fix Search Bar Text (Often invisible grey-on-grey) */
[data-theme="dark"] .search-box input {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important; /* White text when typing */
}
[data-theme="dark"] .search-box .search-btn {
    color: var(--text-muted) !important;
}

/* =========================================================
   PHASE 9: ACTIVE NAVIGATION VISIBILITY FIX
   ========================================================= */

/* Force the "Active" button to be Solid Pink with White Text */
[data-theme="dark"] .category-btn.active {
    background-color: var(--primary) !important; /* Solid Pink */
    color: #ffffff !important;                   /* Bright White Text */
    border-color: var(--primary) !important;
    font-weight: 600;                            /* Make text bolder */
    box-shadow: 0 0 10px rgba(233, 30, 99, 0.4); /* subtle glow */
}

/* Ensure Hover state is also visible */
[data-theme="dark"] .category-btn:hover {
    background-color: var(--bg-input) !important;
    color: var(--primary-light) !important;
}

/* Fix the Mobile Bottom Bar (if you use one) just in case */
[data-theme="dark"] .bottom-nav {
    background-color: var(--bg-header) !important;
    border-top-color: var(--border-color) !important;
}

/* =========================================================
   PHASE 10: PRAYER WIDGET DARK MODE FIX
   ========================================================= */

/* 1. The Main Dropdown Box */
[data-theme="dark"] .prayer-dropdown {
    background-color: var(--bg-card) !important; /* Dark Grey/Black */
    border-color: var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6) !important;
}

/* 2. List Items & Text */
[data-theme="dark"] .prayer-item {
    border-bottom-color: var(--border-color) !important;
}

[data-theme="dark"] .prayer-item .name {
    color: var(--text-main) !important; /* White Text */
}

[data-theme="dark"] .prayer-item .time {
    color: var(--primary-light) !important; /* Pink/White Time */
    font-weight: 600;
}

[data-theme="dark"] .prayer-item .status {
    color: var(--text-muted) !important;
}

/* 3. Hover State */
[data-theme="dark"] .prayer-item:hover {
    background-color: var(--bg-input) !important; /* Slightly lighter grey */
}

/* 4. "Next Prayer" Highlight (Was bright blue) */
[data-theme="dark"] .prayer-item.next {
    background-color: rgba(233, 30, 99, 0.15) !important; /* Subtle Pink Tint */
    border-left: 3px solid var(--primary);
}

/* 5. Date at the bottom */
[data-theme="dark"] .prayer-date {
    color: var(--text-muted) !important;
    border-top: 1px solid var(--border-color);
}

/* =========================================================
   PHASE 11: SHOPPING CART CONTROLS FIX
   ========================================================= */

/* 1. Fix Quantity Buttons (- and +) */
[data-theme="dark"] .qty-btn,
[data-theme="dark"] .quantity-btn,
[data-theme="dark"] .btn-quantity,
[data-theme="dark"] .cart-item button.minus,
[data-theme="dark"] .cart-item button.plus {
    background-color: var(--bg-input) !important; /* Dark Grey */
    color: var(--text-main) !important;           /* White Text */
    border: 1px solid var(--border-color) !important;
    transition: all 0.2s ease;
}

[data-theme="dark"] .qty-btn:hover,
[data-theme="dark"] .quantity-btn:hover {
    background-color: var(--primary) !important;  /* Pink on Hover */
    color: white !important;
    border-color: var(--primary) !important;
}

/* 2. Fix the Quantity Input Box (The number in the middle) */
[data-theme="dark"] .qty-input,
[data-theme="dark"] .quantity-input,
[data-theme="dark"] input[type="number"].quantity {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* 3. Fix "Remove" / "Trash" Icons if they are buttons */
[data-theme="dark"] .remove-item-btn,
[data-theme="dark"] .btn-remove {
    background-color: transparent !important;
    color: var(--text-muted) !important;
}
[data-theme="dark"] .remove-item-btn:hover {
    color: var(--danger) !important;
    background-color: var(--bg-danger) !important;
}

/* 4. Fix Cart Summary Box (Total price area) */
[data-theme="dark"] .cart-summary,
[data-theme="dark"] .checkout-summary {
    background-color: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5) !important;
}

[data-theme="dark"] .cart-summary .summary-row {
    color: var(--text-main) !important;
    border-bottom-color: var(--border-color) !important;
}

/* =========================================================
   PHASE 12: HOMEPAGE WIDGETS FIX (News, Services, Sellers)
   ========================================================= */

/* --- 1. NEWS & PROMOTION SECTION --- */
[data-theme="dark"] .news-item {
    background-color: var(--bg-card) !important; /* Was #fff */
    border-color: var(--border-color) !important;
}

/* Fix Hover Effect */
[data-theme="dark"] .news-item:hover {
    background-color: var(--bg-input) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}

/* Fix the "Placeholder" items (Grey boxes) */
[data-theme="dark"] .news-item.placeholder {
    background-color: var(--bg-input) !important; /* Was #f9f9f9 */
    border-color: var(--border-color) !important;
}

/* Fix Text Colors */
[data-theme="dark"] .news-content h4 {
    color: var(--text-main) !important; /* Was #212121 */
}
[data-theme="dark"] .news-excerpt {
    color: var(--text-muted) !important; /* Was #666 */
}
[data-theme="dark"] .news-date {
    color: var(--text-muted) !important;
}
[data-theme="dark"] .view-all-link {
    color: var(--primary-light) !important;
}

/* Compact Quick Services buttons in dark mode. */
[data-theme="dark"] .service-btn {
    background-color: var(--bg-card) !important; /* The buttons */
    border-color: var(--border-color) !important;
    box-shadow: none !important;
}

[data-theme="dark"] .service-btn:hover {
    background-color: var(--bg-header) !important;
}

[data-theme="dark"] .service-name {
    color: var(--text-main) !important;
}

/* --- 3. TOP SELLERS CARD (Small Horizontal Cards) --- */
[data-theme="dark"] .seller-card {
    background-color: var(--bg-card) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .seller-card .product-name {
    color: var(--text-main) !important;
}

[data-theme="dark"] .seller-card .product-category {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .seller-card .price {
    color: var(--primary-light) !important;
}

[data-theme="dark"] .section-header-compact h3 {
    color: var(--text-main) !important;
}

/* =========================================================
   FINAL CART BUTTON FIX
   ========================================================= */

/* Target ANY button inside a cart item or quantity wrapper */
[data-theme="dark"] .cart-item button,
[data-theme="dark"] .quantity-wrapper button,
[data-theme="dark"] .qty-selector button {
    background-color: var(--bg-input) !important; /* Dark Grey */
    color: var(--text-main) !important;           /* White Text */
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

/* Ensure the input box between buttons is also dark */
[data-theme="dark"] .cart-item input,
[data-theme="dark"] .quantity-wrapper input {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* Fix the "Checkout" Section background */
[data-theme="dark"] .cart-footer,
[data-theme="dark"] .checkout-container {
    background-color: var(--bg-card) !important;
    border-top: 1px solid var(--border-color) !important;
}

/* Fix Login Modal Inputs */
[data-theme="dark"] .phone-input-group,
[data-theme="dark"] .otp-input {
    background-color: var(--bg-input) !important;
    border-color: var(--border-color) !important;
    color: var(--text-main) !important;
}

[data-theme="dark"] .country-code {
    background-color: var(--bg-input) !important;
    color: var(--text-muted) !important;
    border-right: 1px solid var(--border-color) !important;
}

/* =========================================================
   FINAL CART BUTTON FIX (TARGETING TAGS)
   ========================================================= */

/* Force ALL buttons inside cart items to be Dark */
[data-theme="dark"] .cart-item button,
[data-theme="dark"] .cart-item .btn,
[data-theme="dark"] .qty-container button {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

/* Fix the Input Box (Quantity Number) */
[data-theme="dark"] .cart-item input,
[data-theme="dark"] .qty-container input {
    background-color: var(--bg-card) !important;
    color: var(--text-main) !important;
    border-color: var(--border-color) !important;
}

/* Hover State for Buttons */
[data-theme="dark"] .cart-item button:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* =========================================================
   PHASE 13: NUCLEAR CART INPUT FIX
   ========================================================= */

/* 1. Target the Input Box by TYPE (cannot be escaped) */
[data-theme="dark"] input[type="number"] {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: none !important;
}

/* 2. Target the +/- Buttons using WILDCARDS */
/* Matches .qty-btn, .quantity-btn, .btn-qty, etc. */
[data-theme="dark"] [class*="qty"] button,
[data-theme="dark"] [class*="quantity"] button,
[data-theme="dark"] button.minus,
[data-theme="dark"] button.plus {
    background-color: var(--bg-input) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-color) !important;
}

/* 3. Hover Effects for the wildcard buttons */
[data-theme="dark"] [class*="qty"] button:hover,
[data-theme="dark"] [class*="quantity"] button:hover {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

/* 4. Fix the "Total" row background in Cart/Checkout */
[data-theme="dark"] .cart-total,
[data-theme="dark"] .checkout-total-row {
    background-color: transparent !important;
    color: var(--text-main) !important;
}

/* =========================================================
   PHASE 14: CREDIT CARD COLOR STANDARDIZATION
   ========================================================= */

/* Override Account Page Internal Blue Style */
.credit-card,
.account-section .credit-card {
    background: var(--primary-gradient) !important;
    color: var(--text-inverse) !important;
    box-shadow: var(--shadow-primary) !important;
}

/* Ensure the text inside is white */
.credit-card .credit-label,
.credit-card .credit-balance {
    color: var(--text-inverse) !important;
    opacity: 1 !important;
}

/* =========================================================
   PHASE 15: MOBILE DENSITY (COMPACT HEADER / FOOTER)
   ========================================================= */

@media (max-width: 768px) {
    /* --- Footer: reduce whitespace-driven scrolling on mobile --- */
    .footer {
        margin-top: 30px;
        padding: 28px 0 16px;
    }

    .footer.footer-simple {
        padding: 18px 0 14px;
    }

    .footer-simple-content .footer-logo {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .footer-simple-content .footer-info {
        margin-bottom: 10px;
    }

    .footer-simple-content .footer-info p {
        font-size: 13px;
        line-height: 1.4;
    }

    .footer-divider {
        margin: 0 6px;
    }

    /*
      Compact header mode on "flow" pages (checkout/credits/etc.) to reduce
      the top stack height without changing navigation structure.
    */
    body[data-page="cart"] .top-bar,
    body[data-page="checkout"] .top-bar,
    body[data-page="credits"] .top-bar,
    body[data-page="identify"] .top-bar,
    body[data-page="policies"] .top-bar,
    body[data-page="wa-checkout"] .top-bar,
    body[data-page="delivery-tracking"] .top-bar {
        display: none;
    }

    body[data-page="cart"] .main-header,
    body[data-page="checkout"] .main-header,
    body[data-page="credits"] .main-header,
    body[data-page="identify"] .main-header,
    body[data-page="policies"] .main-header,
    body[data-page="wa-checkout"] .main-header,
    body[data-page="delivery-tracking"] .main-header {
        padding: 10px 0;
    }

    body[data-page="cart"] .header-content,
    body[data-page="checkout"] .header-content,
    body[data-page="credits"] .header-content,
    body[data-page="identify"] .header-content,
    body[data-page="policies"] .header-content,
    body[data-page="wa-checkout"] .header-content,
    body[data-page="delivery-tracking"] .header-content {
        gap: 12px;
    }

    body[data-page="cart"] .logo-image,
    body[data-page="checkout"] .logo-image,
    body[data-page="credits"] .logo-image,
    body[data-page="identify"] .logo-image,
    body[data-page="policies"] .logo-image,
    body[data-page="wa-checkout"] .logo-image,
    body[data-page="delivery-tracking"] .logo-image {
        height: 64px;
        max-width: min(228px, 72vw);
    }

    body[data-page="cart"] .logo h1,
    body[data-page="checkout"] .logo h1,
    body[data-page="credits"] .logo h1,
    body[data-page="identify"] .logo h1,
    body[data-page="policies"] .logo h1,
    body[data-page="wa-checkout"] .logo h1,
    body[data-page="delivery-tracking"] .logo h1 {
        font-size: 20px;
    }

    body[data-page="cart"] .logo .tagline,
    body[data-page="checkout"] .logo .tagline,
    body[data-page="credits"] .logo .tagline,
    body[data-page="identify"] .logo .tagline,
    body[data-page="policies"] .logo .tagline,
    body[data-page="wa-checkout"] .logo .tagline,
    body[data-page="delivery-tracking"] .logo .tagline {
        display: none;
    }

    body[data-page="cart"] .cart-link,
    body[data-page="checkout"] .cart-link,
    body[data-page="credits"] .cart-link,
    body[data-page="identify"] .cart-link,
    body[data-page="policies"] .cart-link,
    body[data-page="wa-checkout"] .cart-link,
    body[data-page="delivery-tracking"] .cart-link {
        padding: 0 14px;
        min-height: 44px;
        border-radius: 22px;
        font-size: 14px;
    }

    body[data-page="cart"] .mobile-bottom-nav,
    body[data-page="checkout"] .mobile-bottom-nav,
    body[data-page="identify"] .mobile-bottom-nav,
    body[data-page="wa-checkout"] .mobile-bottom-nav,
    body[data-page="delivery-tracking"] .mobile-bottom-nav {
        display: none !important;
    }

    body[data-page="checkout"] .main-header .cart-goal-progress,
    body[data-page="credits"] .main-header .cart-goal-progress,
    body[data-page="identify"] .main-header .cart-goal-progress,
    body[data-page="wa-checkout"] .main-header .cart-goal-progress,
    body[data-page="delivery-tracking"] .main-header .cart-goal-progress {
        display: none !important;
    }
}


/* frontend/css/pwa.css */
/* ========================================
   PWA STYLES
   ======================================== */

/* Install Banner */
.pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: var(--primary-gradient);
  color: var(--text-inverse);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(0);
}

.pwa-install-banner.pwa-install-visible {
  transform: translateY(-100px);
}

.pwa-install-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.pwa-install-icon {
  font-size: 40px;
  flex-shrink: 0;
}

.pwa-install-text {
  flex: 1;
}

.pwa-install-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.pwa-install-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.pwa-install-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pwa-btn-install {
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.pwa-btn-install:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.pwa-btn-install:active {
  transform: translateY(0);
}

.pwa-btn-dismiss {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-inverse);
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pwa-btn-dismiss:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Update Banner */
.pwa-update-banner {
  position: fixed;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--success);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  z-index: 9999;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 320px;
}

.pwa-update-banner.pwa-update-visible {
  top: 20px;
}

.pwa-update-content {
  display: flex;
  align-items: center;
  padding: 15px 20px;
  gap: 15px;
}

.pwa-update-text {
  flex: 1;
}

.pwa-update-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 4px;
}

.pwa-update-text p {
  margin: 0;
  font-size: 14px;
  opacity: 0.9;
}

.pwa-btn-update {
  background: var(--bg-card);
  color: var(--success);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pwa-btn-update:hover {
  transform: scale(1.05);
}

/* Network Status Notification */
.pwa-network-status {
  position: fixed;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 14px;
  z-index: 9999;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.pwa-network-status.pwa-network-visible {
  top: 20px;
}

.pwa-network-online {
  background: var(--success);
  color: var(--text-inverse);
}

.pwa-network-offline {
  background: var(--warning);
  color: var(--text-inverse);
}

/* Loading States */
.loading-shimmer {
  background: linear-gradient(
    90deg,
    var(--bg-subtle) 25%,
    var(--bg-subtle-2) 50%,
    var(--bg-subtle) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Header Slot Stabilizer */
#header-placeholder {
  position: relative;
  min-height: 144px;
}

body.header-slot-lite #header-placeholder {
  min-height: 108px;
}

body.header-slot-compact #header-placeholder {
  min-height: 118px;
}

#header-placeholder:empty {
  background:
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) 20px 18px / 152px 52px no-repeat,
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) calc(100% - 182px) 24px / 40px 40px no-repeat,
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) calc(100% - 130px) 24px / 40px 40px no-repeat,
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) calc(100% - 20px) 24px / 100px 40px no-repeat,
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) 20px calc(100% - 28px) / 46% 12px no-repeat,
    linear-gradient(
      90deg,
      var(--bg-subtle) 25%,
      var(--bg-subtle-2) 50%,
      var(--bg-subtle) 75%
    ) calc(100% - 28% - 20px) calc(100% - 28px) / 28% 12px no-repeat,
    var(--bg-card, #fff);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  animation: shimmer 1.5s infinite;
}

#header-placeholder:not(:empty) {
  min-height: 0;
}

@media screen and (max-width: 768px) {
  #header-placeholder[data-component-state="loading"] {
    min-height: 101px;
  }

  #header-placeholder {
    min-height: 101px;
  }

  body.header-slot-lite #header-placeholder {
    min-height: 88px;
  }

  body.header-slot-compact #header-placeholder {
    min-height: 96px;
  }

  #header-placeholder:empty {
    background:
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) 16px 14px / 116px 42px no-repeat,
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) calc(100% - 144px) 18px / 34px 34px no-repeat,
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) calc(100% - 100px) 18px / 34px 34px no-repeat,
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) calc(100% - 16px) 18px / 74px 34px no-repeat,
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) 16px calc(100% - 20px) / 44% 10px no-repeat,
      linear-gradient(
        90deg,
        var(--bg-subtle) 25%,
        var(--bg-subtle-2) 50%,
        var(--bg-subtle) 75%
      ) calc(100% - 30% - 16px) calc(100% - 20px) / 30% 10px no-repeat,
      var(--bg-card, #fff);
  }
}

/* Skeleton Loaders */
.skeleton-product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.skeleton-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.skeleton-title {
  width: 80%;
  height: 20px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.skeleton-text {
  width: 60%;
  height: 16px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.skeleton-price {
  width: 40%;
  height: 24px;
  border-radius: 4px;
  margin-bottom: 15px;
}

.skeleton-button {
  width: 100%;
  height: 40px;
  border-radius: 8px;
}

/* Responsive Design for PWA */
@media screen and (max-width: 768px) {
  .pwa-install-content {
    padding: 12px 15px;
    gap: 12px;
  }

  .pwa-install-icon {
    font-size: 32px;
  }

  .pwa-install-text strong {
    font-size: 15px;
  }

  .pwa-install-text p {
    font-size: 13px;
  }

  .pwa-btn-install {
    padding: 8px 18px;
    font-size: 13px;
  }

  .pwa-update-banner {
    min-width: calc(100% - 40px);
    max-width: calc(100% - 40px);
  }

  .pwa-network-status {
    font-size: 13px;
    padding: 10px 20px;
  }
}

.cpwa-install-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  left: 50%;
  z-index: 1200;
  width: min(calc(100vw - 24px), 540px);
  transform: translate(-50%, calc(-100% - 16px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
}

.cpwa-install-toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.cpwa-install-toast__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(15, 18, 28, 0.96);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.32),
    0 4px 12px rgba(0, 0, 0, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.cpwa-install-toast__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cpwa-install-toast__text strong {
  font-size: 0.96rem;
  color: var(--text-primary, #fff);
  line-height: 1.25;
}

.cpwa-install-toast__text p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-secondary, rgba(255, 255, 255, 0.82));
  line-height: 1.35;
}

.cpwa-install-toast__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cpwa-install-toast__install,
.cpwa-install-toast__close {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease,
    background-color 0.2s ease;
}

.cpwa-install-toast__install {
  padding: 10px 18px;
  background: linear-gradient(135deg, var(--primary, #ff2d7a), #ff4f9c);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 8px 18px rgba(255, 45, 122, 0.28);
}

.cpwa-install-toast__close {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary, #fff);
  font-size: 1.15rem;
  line-height: 1;
}

.cpwa-install-toast__install:hover,
.cpwa-install-toast__close:hover {
  transform: translateY(-1px);
}

.cpwa-install-toast__install:active,
.cpwa-install-toast__close:active {
  transform: translateY(0);
}

@media screen and (max-width: 768px) {
  .cpwa-install-toast {
    top: calc(env(safe-area-inset-top, 0px) + 10px);
    width: calc(100vw - 16px);
  }

  .cpwa-install-toast__content {
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
  }

  .cpwa-install-toast__text strong {
    font-size: 0.92rem;
  }

  .cpwa-install-toast__text p {
    font-size: 0.8rem;
  }

  .cpwa-install-toast__actions {
    gap: 8px;
  }

  .cpwa-install-toast__install {
    padding: 9px 15px;
    font-size: 0.84rem;
  }

  .cpwa-install-toast__close {
    width: 34px;
    height: 34px;
  }
}

/* iOS Specific Fixes */
@supports (-webkit-touch-callout: none) {
  .pwa-install-banner,
  .pwa-update-banner,
  .pwa-network-status {
    /* Account for iOS safe areas */
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Offline Indicator for Images */
img.offline-placeholder {
  background: linear-gradient(135deg, var(--bg-subtle) 0%, var(--bg-subtle-2) 100%);
  position: relative;
}

img.offline-placeholder::after {
  content: '📷 Offline';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--text-light);
  font-size: 14px;
}

/* Enhanced Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

.slide-in-up {
  animation: slideInUp 0.5s ease-out;
}

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

/* Smooth Transitions */
* {
  transition-property: background-color, border-color, color, fill, stroke, opacity, box-shadow, transform;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
}

/* But disable transitions during page load to avoid flickering */
.no-transitions * {
  transition: none !important;
}
