/*
 * Generated by scripts/build-customer-home-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-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;
    --success: #4caf50;
    --success-dark: #388e3c;
    --warning: #ff9800;
    --warning-dark: #f57c00;
    --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 (Activated by System OR Toggle) --- */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --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;
    }
}

/* Force Dark Mode when Toggle is ON */
[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;
}


/* 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: 88px;
  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-otp-channel-card.uauth-customer-telegram-primary .uauth-otp-channel-copy-desc {
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
}

.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: #d8ffe8;
  outline: none;
}

.uauth-customer-whatsapp-fallback-link {
  color: #63e696;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 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;
    }
}

/* --- 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: auto;
    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;
}

.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;
    gap: 8px;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    min-height: var(--ui-control-min-height);
    padding: 0 15px;
    border-radius: 999px;
    text-decoration: none;
    font-size: var(--ui-font-body);
    font-weight: 700;
    position: relative;
    transition: transform 0.2s;
}

.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 {
    background: var(--bg-card);
    color: var(--primary);
    border-radius: 50%;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
}

.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
   ======================================== */
.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-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 .filters-info-row,
.filters-section.is-collapsed .filters-info-row {
    display: none;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

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

@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;
}

.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);
}

/* 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-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);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .variant-swatches {
        background: rgba(0, 0, 0, 0.28);
    }
}

[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.is-out-of-stock::after {
    content: 'PO';
    position: absolute;
    right: 2px;
    bottom: 2px;
    padding: 1px 3px;
    border-radius: 4px;
    background: var(--warning);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
}

.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;
}

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

.product-category {
    font-size: 11px;
    color: var(--text-light);
    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);
    margin-top: auto;
}

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

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

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

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

/* ========================================
   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);
    transition: all 0.3s;
}

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

.btn-page:disabled {
    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);
    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 {
        justify-content: center;
        flex-wrap: wrap;
        margin: 10px 0 8px;
        padding: 8px;
        border-radius: 14px;
    }

    .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.05-modals.css */
/* ========================================
   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-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;
    }

    body.has-mobile-bottom-nav {
        padding-bottom: calc(var(--ui-bottom-nav-height) + 28px + env(safe-area-inset-bottom, 0px));
    }

    /* 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 {
        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: 38px;
        padding: 0 12px;
        font-size: 12px;
    }

    .main-header .header-actions {
        min-width: 0;
        gap: 6px;
    }

    .main-header .header-actions-row {
        gap: 6px;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }

    .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,
    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        min-width: 38px;
        min-height: 38px;
    }

    .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 {
        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,
    .theme-toggle-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
    }

    .cart-link {
        min-height: 36px;
        padding: 0 10px;
        font-size: 11px;
    }

    .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 */
/* ========================================
   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-bottom: 18px;
}

.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;
}

/* Category Cards */
.category-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
}

.category-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 25px 15px;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.15);
    border-color: var(--border-highlight);
}

.category-card .cat-icon {
    font-size: 40px;
    margin-bottom: 10px;
    display: block;
}

.category-card .cat-name {
    font-weight: 600;
    font-size: 14px;
}

/* 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;
}

/* Brand Logos */
.brand-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: center;
}

.brand-logo {
    background: var(--bg-card);
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s;
}

.brand-logo:hover {
    color: var(--primary);
    box-shadow: var(--shadow-primary);
}

/* 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: 10px 0 8px !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: 1.02rem !important;
        margin-bottom: 4px !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;
    }

    .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;
    }

}

[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 */
.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(--warning);
    color: var(--text-inverse);
    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;
}


/* frontend/css/style.10-darkmode-image-account.css */
/* =========================================================
   PHASE 4: DARK MODE CONTENT FIXES (Products & Modals)
   ========================================================= */

@media (prefers-color-scheme: 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
   ========================================================= */

/* --- 1. THE TOGGLE BUTTON UI --- */
.theme-toggle-btn {
    position: relative;
    width: 48px;
    height: 28px;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-card);
    color: var(--text-main);
    cursor: pointer;
    margin-left: 8px;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.theme-toggle-btn:hover {
    background-color: var(--bg-input);
    transform: translateY(-1px);
}

.theme-toggle-track {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 0 7px;
}

.theme-toggle-symbol {
    position: relative;
    z-index: 1;
    font-size: 11px;
    line-height: 1;
    opacity: 0.82;
}

.theme-toggle-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: transform 0.2s ease, background-color 0.2s ease;
}

[data-theme="dark"] .theme-toggle-btn {
    background: var(--bg-input);
}

[data-theme="dark"] .theme-toggle-thumb {
    transform: translateX(20px);
    background: #f7f4ea;
}

/* --- 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);
}

/* 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-light) !important;
}
[data-theme="dark"] .view-all-link {
    color: var(--primary-light) !important;
}

/* --- 2. QUICK SERVICES GRID (The 4 buttons row) --- */
[data-theme="dark"] .quick-services-grid {
    background-color: var(--bg-input) !important; /* The container box */
    border-color: var(--border-color) !important;
}

[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-light) !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/header-enhancements.css */
/* ====================================
   HEADER ENHANCEMENTS - Prayer Times & Store Status
   Tuned for the lighter compact mobile header
   ==================================== */

/* Header Layout Update */
.header-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
}

.logo {
    flex-shrink: 0;
}

.logo-image {
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, 0.08));
}

/* Legacy header widgets container (deprecated - widgets now in top bar) */
.header-widgets {
    display: none;
}

/* ====================================
   PRAYER TIMES WIDGET
   ==================================== */

.prayer-times-widget {
    position: relative;
    z-index: 1000; /* Ensure dropdown appears above all content */
}

.prayer-times-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 9px;
    cursor: pointer;
    font-size: 11px;
    border: 1px solid rgba(233, 30, 99, 0.16);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    transition: all 0.2s ease;
    color: var(--text-main);
    width: auto;
    max-width: none;
}

.prayer-times-compact:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(233, 30, 99, 0.28);
    box-shadow: 0 10px 24px rgba(233, 30, 99, 0.14);
}

.prayer-times-compact .icon {
    font-size: 14px;
}

.prayer-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.prayer-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 9px;
}

.prayer-time {
    color: var(--text-muted);
    font-size: 8px;
}

.prayer-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-light);
    padding: 0 4px;
    transition: transform 0.2s;
}

.prayer-toggle:active {
    transform: rotate(180deg);
}

/* Prayer Times Dropdown */
.prayer-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    z-index: 10000; /* Very high z-index to appear above everything */
    min-width: 200px;
    padding: 8px 0;
    animation: slideDown 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

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

.prayer-list {
    display: flex;
    flex-direction: column;
}

.prayer-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.1s;
}

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

.prayer-item:hover {
    background: var(--bg-subtle);
}

.prayer-item.done {
    opacity: 0.6;
}

.prayer-item.next {
    background: var(--bg-info);
    font-weight: 500;
}

.prayer-item .name {
    font-weight: 500;
    color: var(--text-main);
    min-width: 60px;
}

.prayer-item .time {
    color: var(--text-muted);
    text-align: right;
    font-size: 12px;
}

.prayer-item .status {
    color: var(--text-light);
    font-size: 12px;
    margin-left: 8px;
}

.prayer-date {
    display: block;
    text-align: center;
    padding: 8px;
    color: var(--text-light);
    font-size: 11px;
}

/* ====================================
   STORE STATUS WIDGET
   ==================================== */

.store-status-widget {
    position: relative;
    display: flex;
    align-items: center;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 7px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 9px;
    border: 1px solid rgba(233, 30, 99, 0.16);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    width: auto;
    max-width: none;
}

.status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

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

.status-text {
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-main);
}

.status-hours {
    font-size: 8px;
    color: var(--text-muted);
    white-space: nowrap;
}

.status-dot.open {
    background: var(--success);
}

.status-dot.closed {
    background: var(--danger);
    animation: none;
}

.status-dot.emergency {
    background: var(--warning);
    animation: pulse-orange 1s infinite;
}

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

@keyframes pulse-orange {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}


/* ====================================
   MOBILE RESPONSIVE - Top Bar Widgets
   ==================================== */

@media (max-width: 768px) {
    body.homepage-shell-stable .top-sellers-grid {
        min-height: 468px;
    }

    .header-content {
        gap: 8px;
    }

    .prayer-times-compact,
    .status-display {
        padding: 3px 7px;
        font-size: 9px;
        gap: 4px;
    }

    .header-meta-row {
        gap: 6px;
        margin-top: 7px;
    }

    .header-status-row {
        gap: 3px;
    }

    .prayer-info {
        min-width: 0;
    }

    .prayer-name {
        font-size: 9px;
    }

    .prayer-time {
        font-size: 8px;
    }

    .status-text {
        font-size: 9px;
    }

    .status-hours {
        font-size: 8px;
    }

    .prayer-dropdown {
        left: 0;
        right: auto;
        width: 280px;
        max-width: calc(100vw - 24px);
    }

    .status-modal {
        left: 0;
        right: auto;
        width: 240px;
        max-width: calc(100vw - 24px);
    }
}

@media (max-width: 480px) {
    body.homepage-shell-stable .top-sellers-grid {
        min-height: 492px;
    }

    .logo-image {
        height: 64px;
        max-width: min(228px, 72vw);
    }

    .prayer-times-compact,
    .status-display {
        font-size: 9px;
        padding: 3px 6px;
        border-radius: 8px;
    }

    .header-meta-row {
        gap: 5px;
        margin-top: 7px;
    }

    .header-status-row {
        gap: 3px;
        flex-wrap: nowrap;
    }

    .prayer-times-compact .icon {
        font-size: 11px;
    }

    .prayer-info {
        min-width: 0;
    }

    .prayer-name {
        font-size: 8px;
    }

    .prayer-time {
        font-size: 7px;
        line-height: 1.2;
    }

    .status-info {
        min-width: 0;
    }

    .status-text {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        font-size: 8px;
        line-height: 1.2;
    }

    .status-hours {
        font-size: 7px;
        line-height: 1.2;
    }

    .status-dot {
        width: 6px;
        height: 6px;
    }
}

/* ====================================
   TOP SELLERS SECTION
   ==================================== */

body.homepage-shell-stable .header-status-row {
    min-height: 38px;
}

body.homepage-shell-stable .header-status-row:empty {
    display: flex;
}

body.homepage-shell-stable .header-status-row:empty::before,
body.homepage-shell-stable .header-status-row:empty::after {
    content: '';
    display: block;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.05) 100%
    );
    background-size: 200% 100%;
    animation: homepageSkeletonPulse 1.6s ease-in-out infinite;
}

body.homepage-shell-stable .header-status-row:empty::before {
    width: 128px;
}

body.homepage-shell-stable .header-status-row:empty::after {
    width: 118px;
}

.top-sellers-section {
    padding: 24px 0;
}

.section-header-compact {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    padding: 0 0 8px 0;
    border-bottom: 2px solid var(--border-color);
}

.section-header-compact h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
}

.section-header-compact .refresh-info {
    font-size: 11px;
    color: var(--text-light);
}

body.homepage-shell-stable .section-header-compact .refresh-info {
    display: inline-block;
    min-width: 108px;
    min-height: 16px;
    text-align: right;
}

/* Top Sellers Grid */
.top-sellers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

body.homepage-shell-stable .top-sellers-grid {
    min-height: 436px;
}

.top-sellers-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.top-sellers-placeholder .btn-page,
.news-item.placeholder .btn-page {
    display: inline-flex;
    margin-top: 14px;
}

.seller-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

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

.seller-card--skeleton .rank-badge {
    opacity: 0.8;
}

.product-thumb--skeleton,
.product-name--skeleton,
.product-category--skeleton,
.product-stats--skeleton,
.product-footer--skeleton {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.06) 0%,
        rgba(255, 255, 255, 0.12) 50%,
        rgba(255, 255, 255, 0.06) 100%
    );
    background-size: 200% 100%;
    animation: homepageSkeletonPulse 1.6s ease-in-out infinite;
    border-radius: 8px;
}

.product-thumb--skeleton {
    width: 100%;
    height: 120px;
    margin: 0 0 8px 0;
}

.product-name--skeleton {
    height: 32px;
    margin: 0 0 8px 0;
}

.product-category--skeleton {
    height: 26px;
    margin: 0 0 8px 0;
}

.product-stats--skeleton {
    height: 40px;
    margin: 0 0 10px 0;
}

.product-footer--skeleton {
    height: 42px;
}

@keyframes homepageSkeletonPulse {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.seller-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
}

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--text-inverse);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    font-size: 10px;
    font-weight: 700;
    padding: 0;
    border-radius: 6px;
    z-index: 10;
}

.rank-badge.new {
    background: var(--warning);
}

.product-thumb {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin: 0 0 8px 0;
}

.product-quick-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.seller-card .product-category {
    font-size: 10px;
    color: var(--text-light);
    margin: 0 0 8px 0;
    line-height: 1.35;
    min-height: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-stats {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 10px;
    color: var(--text-muted);
}

.stock-info {
    font-size: 10px;
}
.stock-info--ok {
    color: var(--success);
}
.stock-info--low {
    color: var(--warning);
}

.sales-badge {
    background: var(--bg-warning);
    padding: 2px 4px;
    border-radius: 3px;
    color: var(--warning-dark);
    font-weight: 500;
}

.rating {
    font-size: 11px;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid var(--border-color);
}

.price {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
}

.btn-quick-add {
    background: var(--primary);
    color: var(--text-inverse);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.btn-quick-add:hover {
    background: var(--primary-dark);
}

.update-info {
    margin-top: 12px;
    text-align: center;
    font-size: 11px;
    color: var(--text-light);
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .top-sellers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .product-thumb {
        height: 100px;
    }

    .product-name {
        font-size: 13px;
        min-height: 28px;
    }
}

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

    .seller-card {
        padding: 8px;
    }

    .product-thumb {
        height: 80px;
        margin: 0 0 6px 0;
    }

    .rank-badge {
        top: 8px;
        left: 8px;
        min-width: 22px;
        height: 22px;
        font-size: 9px;
    }

    .product-name {
        font-size: 13px;
    }
}

/* ====================================
   QUICK SERVICES SECTION
   ==================================== */

.quick-services-section {
    padding: 16px 0;
}

.quick-services-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-gradient);
    color: var(--text-inverse);
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.2s ease;
    margin-bottom: 0;
}

.quick-services-header:hover {
    box-shadow: var(--shadow-primary);
    transform: translateY(-2px);
}

.quick-services-header:active {
    transform: translateY(0);
}

.header-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-label .icon {
    font-size: 18px;
}

.toggle-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
    display: inline-block;
}
.quick-services-header.is-open .toggle-arrow {
    transform: rotate(180deg);
}

.quick-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 12px;
    padding: 12px;
    background: var(--bg-subtle);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.quick-service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.quick-service-item--featured {
    grid-column: span 2;
}

.service-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    min-height: 80px;
    justify-content: center;
}

.service-btn:hover {
    background: var(--bg-input);
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.service-btn:active {
    transform: translateY(0);
}

.service-btn--featured {
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 94px;
    padding: 14px 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent 36%),
        linear-gradient(180deg, rgba(233, 30, 99, 0.08), rgba(233, 30, 99, 0.02));
    border-color: rgba(233, 30, 99, 0.22);
}

.service-btn--featured:hover {
    border-color: rgba(233, 30, 99, 0.34);
}

.service-btn--featured .service-icon,
.service-btn--rate .service-icon {
    font-size: 20px;
}

.service-btn--featured .service-name,
.service-btn--featured .service-meta,
.service-btn--rate .service-name,
.service-btn--rate .service-meta {
    width: 100%;
    text-align: left;
}

.service-btn--featured .service-name {
    font-size: 13px;
}

.service-icon {
    font-size: 24px;
}

.service-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
}

.service-meta {
    width: 100%;
    margin-top: 2px;
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.35;
    text-align: center;
}

@media (max-width: 768px) {
    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 8px;
    }

    .service-btn {
        padding: 10px;
        min-height: 70px;
    }

    .service-btn--featured {
        min-height: 86px;
        padding: 12px 14px;
    }

    .service-icon {
        font-size: 20px;
    }

    .service-name {
        font-size: 11px;
    }

    .service-meta {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .quick-services-header {
        padding: 10px 12px;
        font-size: 14px;
    }

    .quick-services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
        padding: 6px;
        margin-top: 8px;
    }

    .service-btn {
        padding: 8px;
        min-height: 60px;
    }

    .service-btn--featured {
        min-height: 82px;
        padding: 11px 12px;
    }

    .service-icon {
        font-size: 18px;
    }

    .service-name {
        font-size: 10px;
    }

    .service-meta {
        font-size: 9px;
    }
}

/* ====================================
   NEWS & ANNOUNCEMENTS SECTION
   ==================================== */

.news-section {
    padding: 20px 0;
}

.view-all-link {
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.view-all-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

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

.news-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.news-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.news-item--interactive:focus-visible {
    outline: 3px solid rgba(233, 30, 99, 0.28);
    outline-offset: 2px;
}

.news-item.placeholder {
    cursor: default;
    padding: 24px 12px;
    text-align: center;
    background: var(--bg-subtle);
}

.news-item.placeholder:hover {
    box-shadow: none;
    border-color: var(--border-color);
    transform: none;
}

.news-item--promotion {
    border-color: rgba(233, 30, 99, 0.3);
    background:
        linear-gradient(135deg, rgba(233, 30, 99, 0.12), rgba(255, 107, 157, 0.05)),
        var(--bg-card);
    box-shadow: 0 8px 24px rgba(233, 30, 99, 0.08);
}

.news-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    font-size: 22px;
    flex-shrink: 0;
    line-height: 1;
}

.news-item--promotion .news-icon {
    background: rgba(233, 30, 99, 0.18);
    box-shadow: 0 8px 18px rgba(233, 30, 99, 0.16);
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    margin: 0;
    line-height: 1.4;
}

.news-excerpt {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
}

.news-item--promotion .news-cta {
    color: var(--primary-dark);
}

.news-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.news-pill {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.news-pill--promotion {
    background: rgba(233, 30, 99, 0.18);
    color: var(--primary);
    border: 1px solid rgba(233, 30, 99, 0.28);
}

.news-date {
    font-size: 11px;
    color: var(--text-light);
}

.news-item.placeholder h3,
.news-item.placeholder h4 {
    color: var(--text-light);
    font-size: 13px;
}

.seller-card .product-category,
.news-pill,
.news-date {
    color: #596270;
}

.sales-badge {
    color: #704700;
}

.stock-info--ok {
    color: #15803d;
}

.price,
.news-cta,
.news-item--promotion .news-cta {
    color: #c2185b;
}

:root[data-theme="dark"] .seller-card .product-category,
:root[data-theme="dark"] .news-pill,
:root[data-theme="dark"] .news-date {
    color: #b7c0ce;
}

:root[data-theme="dark"] .sales-badge {
    color: #ffd38a;
}

:root[data-theme="dark"] .stock-info--ok {
    color: #78d990;
}

:root[data-theme="dark"] .price,
:root[data-theme="dark"] .news-cta,
:root[data-theme="dark"] .news-item--promotion .news-cta {
    color: #ff9fc8;
}

.news-item.placeholder p {
    margin: 0;
    color: var(--text-light);
    font-size: 12px;
}

@media (max-width: 768px) {
    .section-header-compact {
        font-size: 14px;
    }

    .news-item {
        padding: 10px;
        gap: 10px;
    }

    .news-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    .news-content h4 {
        font-size: 13px;
    }

    .news-excerpt {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .news-item {
        padding: 8px;
        gap: 8px;
    }

    .news-icon {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }

    .news-content h4 {
        font-size: 12px;
    }

    .news-excerpt {
        font-size: 12px;
    }

    .news-date {
        font-size: 12px;
    }
}


/* 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: 124px;
  }

  #header-placeholder {
    min-height: 112px;
  }

  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;
}
