﻿/* ═══════════════════════════════════════════════════════
   PILARX DZ — style.css
   Mobile-First RTL | Dark Automotive Theme
═══════════════════════════════════════════════════════ */

/* ── CSS Reset & Root Variables ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-body: #080808;
  --bg-page: #0F0F10;
  --bg-card: #161618;
  --bg-elevated: #1C1C1F;
  --accent: #E10600;
  --accent-hover: #FF1A17;
  --accent-dim: rgba(225, 6, 0, 0.15);
  --text-primary: #FFFFFF;
  --text-secondary: #8E8E8E;
  --text-muted: #555558;
  --border: rgba(142, 142, 142, 0.15);
  --border-accent: rgba(225, 6, 0, 0.4);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-btn: 0 4px 20px rgba(225,6,0,0.35);
  --font-arabic: 'Cairo', sans-serif;
  --font-eng: 'Orbitron', 'Chakra Petch', monospace;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Fullscreen PILARX Watermark Pattern (PC, iPad, Mobile Outer & Inner) ── */
body {
  background-color: var(--bg-body);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='170' viewBox='0 0 280 170'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='rgba(255,255,255,0.045)' font-family='Impact, Arial Black, sans-serif' font-weight='900' font-size='56' transform='rotate(-20 140 85)' letter-spacing='5'%3EPILARX%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 170px;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ── Page Wrapper ── */
.page-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background-color: var(--bg-page);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='280' height='170' viewBox='0 0 280 170'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='middle' text-anchor='middle' fill='rgba(255,255,255,0.038)' font-family='Impact, Arial Black, sans-serif' font-weight='900' font-size='56' transform='rotate(-20 140 85)' letter-spacing='5'%3EPILARX%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 280px 170px;
  min-height: 100vh;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.95);
}

/* ── Typography ── */
.eng-font { font-family: var(--font-eng); }

/* ════════════════════════════════════════
   BUTTONS
════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #E10600 0%, #B30500 100%);
  color: #fff;
  font-family: var(--font-arabic);
  font-weight: 800;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: var(--shadow-btn);
  width: 100%;
  text-align: center;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #FF1A17 0%, #E10600 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(225,6,0,0.5);
  outline: none;
}
.btn-primary:active { transform: translateY(0); }

.btn-sm { width: auto; padding: 10px 18px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-hero { font-size: 16px; padding: 16px 24px; border-radius: var(--radius-lg); }
.btn-card { font-size: 13px; padding: 12px 16px; border-radius: var(--radius-sm); margin-top: 4px; }
.btn-submit { font-size: 16px; padding: 18px 24px; border-radius: var(--radius-md); letter-spacing: 0.03em; }
.modal-close-btn { width: auto; padding: 12px 32px; border-radius: var(--radius-md); }

/* ════════════════════════════════════════
   S01 — ANNOUNCEMENT BAR
════════════════════════════════════════ */
.announcement-bar {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  position: relative;
  z-index: 10;
}

/* ════════════════════════════════════════
   S02 — HEADER
════════════════════════════════════════ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(15,15,16,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}
.logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.header-center { flex: 1; text-align: center; }
.brand-slogan {
  font-family: var(--font-eng);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.header-cta { white-space: nowrap; flex-shrink: 0; }

/* ════════════════════════════════════════
   S03 — HERO SECTION
════════════════════════════════════════ */
.hero-section {
  padding: 32px 20px 28px;
  text-align: center;
  position: relative;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.hero-headline {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}
.hero-visual {
  position: relative;
  margin: 0 -20px 28px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.hero-img-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at bottom, rgba(225,6,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-trust {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ════════════════════════════════════════
   S04 — MARQUEE
════════════════════════════════════════ */
.marquee-wrapper {
  overflow: hidden;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-accent);
  border-bottom: 1px solid var(--border-accent);
  padding: 11px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 30s linear infinite;
}
.marquee-content {
  display: inline-block;
  white-space: nowrap;
  font-family: var(--font-eng);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  padding: 0 8px;
}
.marquee-content strong, .marquee-content span { color: var(--accent); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ════════════════════════════════════════
   SHARED SECTION STYLES
════════════════════════════════════════ */
.section-padded { padding: 40px 20px; }
.section-dark { background: var(--bg-elevated); }
.section-header { text-align: center; margin-bottom: 24px; }
.section-tag {
  display: inline-block;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.section-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 6px;
}
.section-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
}
.full-width-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  display: block;
  object-fit: contain;
}

/* ════════════════════════════════════════
   S05 — BEFORE / AFTER COMPARISON
════════════════════════════════════════ */
.comparison-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  border: 1px solid var(--border);
  background: #111;
}
.comp-img {
  display: block;
  width: 100%;
  height: auto;
}
.comp-after {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}
.comp-before {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}
.comp-slider-line {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 3px;
  background: var(--accent);
  z-index: 3;
  cursor: ew-resize;
}
.comp-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px rgba(225,6,0,0.6);
  border: 2.5px solid #fff;
}
.comp-label {
  position: absolute;
  top: 12px;
  z-index: 4;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  letter-spacing: 0.04em;
}
.comp-label-before { right: 12px; }
.comp-label-after { left: 12px; }

/* ════════════════════════════════════════
   S08 — PRODUCT CATALOG
════════════════════════════════════════ */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(225,6,0,0.15);
}
.product-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent), 0 8px 32px rgba(225,6,0,0.25);
}
.card-img-wrap {
  position: relative;
  aspect-ratio: 1/1;
  background: #111;
  overflow: hidden;
}
.card-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #111;
  transition: transform 0.4s ease;
}
.product-card:hover .card-main-img { transform: scale(1.04); }
.card-preview-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,0.3);
  background: #000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.card-preview-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0a0a0a;
}
.card-body {
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}
.color-swatches {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.swatch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-arabic);
}
.swatch.active { border-color: var(--accent); color: var(--text-primary); background: var(--accent-dim); }
.swatch:hover:not(.active) { border-color: var(--text-muted); color: var(--text-primary); }
.swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}
.swatch-dot-black { background: #222; border: 1px solid #555; }
.swatch-dot-red { background: var(--accent); }

.card-price-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.price-current {
  font-size: 16px;
  font-weight: 900;
  color: var(--accent);
}
.price-old {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.card-qty-row {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  width: 32px;
  height: 32px;
  background: transparent;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qty-btn:hover { background: var(--accent); }
.qty-value {
  min-width: 28px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-primary);
  padding: 0 4px;
  border-right: 1px solid var(--border);
  border-left: 1px solid var(--border);
  line-height: 32px;
}

/* ════════════════════════════════════════
   S09 — ORDER FORM / CHECKOUT
════════════════════════════════════════ */
.checkout-section {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-page) 100%);
  border-top: 1px solid var(--border-accent);
}

/* Order Summary */
.order-summary {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 28px;
}
.summary-header {
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 16px;
  letter-spacing: 0.03em;
}
.summary-body { padding: 4px 0; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid var(--border);
  gap: 8px;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { font-size: 12.5px; color: var(--text-secondary); font-weight: 600; }
.summary-val { font-size: 13px; font-weight: 800; color: var(--text-primary); text-align: left; }
.summary-total-row { background: rgba(225,6,0,0.06); }
.summary-total { color: var(--accent); font-size: 17px; }
.summary-empty {
  padding: 20px 16px;
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* Form */
#orderForm { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
.form-input,
.form-select {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-arabic);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
.form-input::placeholder { color: var(--text-muted); font-weight: 500; }
.form-input:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(225,6,0,0.12);
}
.form-input.error,
.form-select.error { border-color: #FF453A; }
.form-select { background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%238E8E8E' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; padding-left: 36px; }
.form-select option { background: #1C1C1F; color: #fff; }
.field-error { font-size: 12px; color: #FF453A; font-weight: 600; min-height: 16px; }

/* Radio Group */
.radio-group { display: flex; flex-direction: column; gap: 10px; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.radio-option input[type="radio"] { display: none; }
.radio-custom {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--text-muted);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), background var(--transition);
}
.radio-option:has(input:checked) .radio-custom {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}
.radio-label { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.trust-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.6;
  padding: 4px 0;
}

/* ════════════════════════════════════════
   S10 — FOOTER
════════════════════════════════════════ */
.site-footer {
  background: #0A0A0B;
  padding: 32px 20px 28px;
  text-align: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}
.footer-trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.5;
}
.badge-sep { color: var(--border); }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer-logo { height: 36px; width: auto; object-fit: contain; opacity: 0.85; }
.footer-slogan { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.06em; }
.footer-socials { display: flex; gap: 16px; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.social-link:hover { color: var(--text-primary); border-color: var(--text-muted); background: var(--bg-elevated); }
.footer-copy { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ════════════════════════════════════════
   SUCCESS MODAL
════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  text-align: center;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.8);
}
.modal-overlay.active .modal-box { transform: scale(1) translateY(0); }
.modal-icon { font-size: 48px; line-height: 1; }
.modal-title { font-size: 20px; font-weight: 900; color: var(--text-primary); }
.modal-msg { font-size: 13.5px; color: var(--text-secondary); line-height: 1.7; }

/* ════════════════════════════════════════
   SUBMIT LOADING STATE
════════════════════════════════════════ */
.btn-submit.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}
.btn-submit.loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }

/* ════════════════════════════════════════
   SCROLL REVEAL ANIMATION
════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════
   SELECTED CARD PULSE
════════════════════════════════════════ */
@keyframes selectedPulse {
  0% { box-shadow: 0 0 0 0 rgba(225,6,0,0.4); }
  70% { box-shadow: 0 0 0 10px rgba(225,6,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); }
}
.product-card.selected { animation: selectedPulse 0.6s ease-out; }

/* ════════════════════════════════════════
   SCROLLBAR STYLING
════════════════════════════════════════ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }


/* ════════════════════════════════════════
   PRODUCT DETAIL MODAL (Bottom Sheet)
════════════════════════════════════════ */
.pmodal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.pmodal-overlay.active {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.pmodal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-accent);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.34, 1.15, 0.64, 1);
  scrollbar-width: none;
}
.pmodal-box::-webkit-scrollbar { display: none; }
.pmodal-overlay.active .pmodal-box { transform: translateY(0); }

.pmodal-drag-handle {
  width: 40px; height: 4px;
  background: var(--border);
  border-radius: 999px;
  margin: 10px auto 0;
}

.pmodal-close {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  font-family: monospace;
}
.pmodal-close:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

.pmodal-main-wrap {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #111;
}
.pmodal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #111;
  display: block;
  transition: opacity 0.18s ease;
}
.pmodal-main-img.fading { opacity: 0; }

/* ════════════════════════════════════════
   PRODUCT THUMBNAILS GALLERY ROW
════════════════════════════════════════ */
.pmodal-thumb-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 16px 20px;
  padding: 20px 20px 24px;
  background: #0A0A0C;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: visible;
  min-height: 110px;
}

.pmodal-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.65;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
  padding: 4px;
}

.pmodal-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.pmodal-thumb.active {
  opacity: 1;
  transform: translateY(-2px);
}

.pmodal-thumb img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  background: #141416;
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  padding: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pmodal-thumb.active img {
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(225,6,0,0.6);
  background: #1A1A1E;
}

.pmodal-thumb-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.pmodal-thumb.active .pmodal-thumb-label {
  color: var(--text-primary);
}

.pmodal-body {
  padding: 18px 18px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pmodal-name {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1.2;
}
.pmodal-price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pmodal-qty-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.pmodal-qty { width: auto; }
.pmodal-confirm { font-size: 15px; }



/* ════════════════════════════════════════
   MODAL IMAGE INTERACTIVE LENS ZOOM
════════════════════════════════════════ */
.pmodal-main-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #0B0B0D;
  cursor: zoom-in;
  user-select: none;
  touch-action: pan-y;
}

.pmodal-main-wrap.zoomed {
  cursor: zoom-out;
}

.pmodal-main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #0B0B0D;
  display: block;
  transition: transform 0.22s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.18s ease;
  transform-origin: center center;
  pointer-events: none;
}

.pmodal-main-wrap.zoomed .pmodal-main-img {
  transform: scale(2.8) translate(0px, 0px);
  transition: transform 0.05s linear;
}

.pmodal-zoom-hint {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  border: 1px solid rgba(255,255,255,0.2);
  z-index: 5;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

.pmodal-main-wrap.zoomed .pmodal-zoom-hint {
  background: var(--accent);
  border-color: var(--accent);
}


/* ════════════════════════════════════════
   MOBILE SPEED & GPU ACCELERATION OPTIMIZATIONS
════════════════════════════════════════ */
.marquee-track {
  will-change: transform;
  transform: translateZ(0);
}

.comp-before, .comp-slider-line {
  will-change: clip-path, left;
  transform: translateZ(0);
}

.pmodal-overlay, .pmodal-box {
  will-change: transform, opacity;
  -webkit-backdrop-filter: blur(10px);
}

.product-card {
  will-change: transform;
  transform: translateZ(0);
}

section {
  contain: layout style;
}


/* ════════════════════════════════════════
   FLOATING STICKY ORDER CTA BUTTON
════════════════════════════════════════ */
.floating-cta-bar {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 24px);
  max-width: 456px;
  z-index: 990;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  will-change: transform, opacity;
}

.btn-floating-cta {
  width: 100%;
  padding: 16px 20px;
  font-size: 16px;
  font-weight: 800;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(225, 6, 0, 0.5);
  animation: pulseCta 2s infinite ease-in-out;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pulseCta {
  0% { box-shadow: 0 0 0 0 rgba(225,6,0,0.6); }
  70% { box-shadow: 0 0 0 14px rgba(225,6,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(225,6,0,0); }
}

.floating-cta-bar.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 20px);
  pointer-events: none;
}


/* ════════════════════════════════════════
   MOBILE TOUCH ZOOM CONTROLS & OVERLAY
════════════════════════════════════════ */
.pmodal-zoom-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 10;
}

.zoom-ctrl-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.85);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: transform 0.15s ease, background 0.15s ease;
}
.zoom-ctrl-btn:active {
  transform: scale(0.9);
  background: var(--accent);
}

.pmodal-main-img {
  pointer-events: auto;
  touch-action: none;
}


/* ════════════════════════════════════════
   ERROR POPUP MODAL STYLES
════════════════════════════════════════ */
.error-modal-box {
  border-color: #E10600 !important;
  box-shadow: 0 0 35px rgba(225, 6, 0, 0.4) !important;
  background: #141012 !important;
}

.error-modal-icon {
  background: rgba(225, 6, 0, 0.15);
  border: 1px solid var(--accent);
  color: #E10600;
  font-size: 32px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.error-modal-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: right;
  margin: 12px 0 18px;
  background: rgba(225, 6, 0, 0.08);
  border: 1px solid rgba(225, 6, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.error-modal-item {
  color: #FF6B6B;
  font-weight: 700;
  font-size: 13.5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.error-modal-item::before {
  content: '❌';
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.error-modal-btn {
  background: linear-gradient(135deg, #E10600 0%, #B30500 100%) !important;
  width: 100%;
}
