/* ══════════════════════════════════
   كاميرتي HDQ15 — style.css
   Wyze-inspired Clean White Theme
══════════════════════════════════ */

/* ─── VARIABLES ─── */
:root {
  --teal: #00BFB3;
  --teal-dark: #009990;
  --teal-light: #e6faf9;
  --navy: #1a2332;
  --dark: #222222;
  --gray: #666666;
  --gray-light: #f5f5f5;
  --border: #e5e5e5;
  --white: #ffffff;
  --red: #e53e3e;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --transition: all 0.25s ease;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ar); background: var(--white); color: var(--dark); direction: rtl; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── LANGUAGE ─── */
.hidden { display: none !important; }
.ar-text { font-family: var(--font-ar); }
body.en-mode { direction: ltr; font-family: var(--font-en); }
body.en-mode .ar-text { display: none !important; }
body.en-mode span.en-text { display: inline !important; }
body.en-mode p.en-text,
body.en-mode h2.en-text,
body.en-mode h3.en-text,
body.en-mode strong.en-text,
body.en-mode div.en-text,
body.en-mode a.en-text,
body.en-mode label.en-text { display: block !important; }
body.en-mode p, body.en-mode h1, body.en-mode h2, body.en-mode h3,
body.en-mode label, body.en-mode input, body.en-mode select,
body.en-mode button { font-family: var(--font-en); }

/* ─── PRIMARY BUTTON ─── */
.btn-primary {
  display: block;
  width: 100%;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-ar);
}
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,191,179,0.35); }

/* ─── ANNOUNCEMENT BAR ─── */
.announcement-bar {
  background: var(--teal);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 10px 16px;
}

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  direction: ltr;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
}
.nav-cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  border: 2px solid var(--teal);
  padding: 6px 16px;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-cta:hover { background: var(--teal); color: var(--white); }

/* ─── LANG TOGGLE ─── */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}
.toggle-label { font-size: 11px; font-weight: 700; color: var(--gray); font-family: var(--font-en); }
.toggle-track {
  width: 40px;
  height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  transition: var(--transition);
}
.toggle-track.active { background: var(--teal); }
.toggle-thumb {
  width: 16px;
  height: 16px;
  background: var(--white);
  border-radius: 50%;
  position: absolute;
  top: 3px;
  right: 3px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
body.en-mode .toggle-thumb { right: auto; left: 3px; }

/* ─── PRODUCT HERO ─── */
.product-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.product-gallery { position: relative; }
.main-slider {
  border-radius: var(--radius);
  overflow-x: auto;
  background: var(--gray-light);
  aspect-ratio: 1;
  display: flex;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.main-slider::-webkit-scrollbar {
  display: none;
}
.slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
}
.slide.active { z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}
.sdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.sdot.active { background: var(--teal); width: 22px; border-radius: 4px; }

/* ─── PRODUCT INFO ─── */
.product-info { padding-top: 8px; }
.rating-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.stars { color: #F59E0B; font-size: 16px; }
.rating-count { font-size: 13px; color: var(--gray); }
.product-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 8px;
}
.product-subtitle { font-size: 14px; color: var(--gray); margin-bottom: 20px; line-height: 1.5; }
.price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.price-now {
  font-size: 32px;
  font-weight: 800;
  color: var(--teal);
}
.price-now small { font-size: 16px; }
.price-was {
  font-size: 18px;
  color: var(--gray);
  text-decoration: line-through;
}
.price-save {
  background: #fff3f3;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}
.qty-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--dark);
  font-weight: 600;
}
.qty-ctrl {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 36px;
  height: 36px;
  background: var(--gray-light);
  border: none;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--teal); color: var(--white); }
#qtyDisplay, #formQtyDisplay {
  min-width: 44px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 4px;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
}
.qty-total { font-size: 14px; color: var(--teal); font-weight: 700; }

/* ─── TRUST BADGES ─── */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.trust-badge {
  text-align: center;
  font-size: 12px;
  color: var(--dark);
  font-weight: 600;
  line-height: 1.4;
}
.badge-icon { font-size: 18px; display: block; margin-bottom: 4px; color: var(--teal); }

/* ─── TABS BAR ─── */
.tabs-bar {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: var(--white);
  border-bottom: 2px solid var(--border);
}
.tabs-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.tabs-inner::-webkit-scrollbar { display: none; }
.tab-btn {
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  font-family: var(--font-ar);
  margin-bottom: -2px;
}
.tab-btn:hover { color: var(--teal); }
.tab-btn.active { color: var(--teal); border-bottom-color: var(--teal); }
body.en-mode .tab-btn { font-family: var(--font-en); }

/* ─── TAB SECTIONS ─── */
.tab-section { display: none; }
.tab-section.active { display: block; }

/* ─── FEATURES GRID ─── */
.features-grid-section {
  background: var(--gray-light);
  padding: 60px 20px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-header h2 {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--navy);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon-wrap { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.feature-card p { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ─── FEATURE SHOWCASE ─── */
.feature-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  align-items: center;
}
.dark-panel { background: var(--navy); }
.light-panel { background: var(--white); }
.showcase-text {
  padding: 60px 48px;
}
.dark-panel .showcase-text { color: var(--white); }
.light-panel .showcase-text { color: var(--navy); }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.showcase-text h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.showcase-text p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  margin-bottom: 24px;
}
.showcase-list { display: flex; flex-direction: column; gap: 10px; }
.showcase-list li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.check {
  width: 22px;
  height: 22px;
  background: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
  color: white;
}
.showcase-img { height: 100%; min-height: 440px; overflow: hidden; }
.showcase-img img { width: 100%; height: 100%; object-fit: cover; }

/* ─── SPECS ─── */
.specs-section { max-width: 800px; margin: 0 auto; padding: 60px 20px; }
.specs-table { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: center;
  gap: 16px;
}
.spec-row:last-child { border-bottom: none; }
.spec-row:nth-child(even) { background: var(--gray-light); }
.spec-label { font-weight: 700; color: var(--navy); }
.spec-value { color: var(--dark); }

/* ─── IN THE BOX ─── */
.inbox-section { max-width: 600px; margin: 0 auto; padding: 60px 20px; }
.inbox-list { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.inbox-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--gray-light);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.inbox-icon { font-size: 28px; flex-shrink: 0; }
.inbox-item strong { font-size: 15px; font-weight: 700; color: var(--navy); display: block; }
.inbox-item p { font-size: 13px; color: var(--gray); margin-top: 2px; }

/* ─── FAQ ─── */
.faq-section { max-width: 700px; margin: 0 auto; padding: 60px 20px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--navy);
  text-align: right;
  transition: var(--transition);
  font-family: var(--font-ar);
}
body.en-mode .faq-q { text-align: left; font-family: var(--font-en); }
.faq-q:hover { background: var(--teal-light); }
.faq-icon { font-size: 22px; color: var(--teal); flex-shrink: 0; transition: var(--transition); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s ease; background: var(--gray-light); }
.faq-a.open { max-height: 300px; padding: 0 20px 18px; }
.faq-a p { font-size: 14px; color: var(--gray); line-height: 1.7; padding-top: 14px; }

/* ─── ORDER SECTION ─── */
.order-section {
  background: var(--gray-light);
  padding: 60px 20px;
}
.order-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.order-header {
  background: var(--navy);
  color: var(--white);
  padding: 24px 28px;
}
.order-header h2 { font-size: 18px; font-weight: 800; margin-bottom: 10px; }
.order-trust {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.85;
}
.order-product-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
}
.order-thumb { width: 60px; height: 60px; object-fit: contain; border-radius: 8px; background: var(--gray-light); padding: 4px; }
.order-product-info strong { font-size: 14px; font-weight: 700; color: var(--navy); display: block; }
.order-price-mini { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.price-now-sm { font-size: 18px; font-weight: 800; color: var(--teal); }
.price-was-sm { font-size: 13px; color: var(--gray); text-decoration: line-through; }

.order-form { padding: 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 700; color: var(--dark); }
.form-group input,
.form-group select {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--dark);
  background: var(--white);
  font-family: var(--font-ar);
  transition: var(--transition);
  outline: none;
  direction: rtl;
}
body.en-mode .form-group input,
body.en-mode .form-group select { direction: ltr; font-family: var(--font-en); }
.form-group input:focus,
.form-group select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,191,179,0.15); }
.form-group input::placeholder { color: #bbb; }
.form-group select option { background: var(--white); }
.qty-form-row { flex-direction: row; align-items: center; gap: 14px; flex-wrap: wrap; }
.form-total { font-size: 15px; font-weight: 800; color: var(--teal); margin-right: auto; }
body.en-mode .form-total { margin-right: 0; margin-left: auto; }
.submit-btn { margin-top: 4px; font-size: 17px; padding: 18px; }
.form-note { font-size: 12px; color: var(--gray); text-align: center; }

/* ─── REVIEWS ─── */
.reviews-section { padding: 60px 20px; background: var(--white); }
.reviews-inner { max-width: 1000px; margin: 0 auto; }
.rating-summary {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.rating-big {
  font-size: 72px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}
.rating-detail { flex: 1; min-width: 200px; }
.stars-big { color: #F59E0B; font-size: 22px; margin-bottom: 4px; }
.rating-detail p { font-size: 13px; color: var(--gray); margin-bottom: 12px; }
.rating-bars { display: flex; flex-direction: column; gap: 6px; }
.rbar { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.bar { flex: 1; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; }
.fill { height: 100%; background: var(--teal); border-radius: 4px; }
.rbar span:last-child { min-width: 30px; color: var(--gray); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 24px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.review-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.reviewer-avatar {
  width: 42px;
  height: 42px;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.review-header strong { font-size: 14px; font-weight: 700; display: block; color: var(--navy); }
.review-stars { color: #F59E0B; font-size: 13px; margin-top: 2px; }
.review-card p { font-size: 13px; color: var(--dark); line-height: 1.65; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); color: rgba(255,255,255,0.75); padding-bottom: 80px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 20px 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo { font-size: 24px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer-brand p { font-size: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; transition: var(--transition); }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  text-align: center;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
}

/* ─── STICKY BAR ─── */
.sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-left { display: flex; align-items: center; gap: 12px; }
.sticky-thumb { width: 44px; height: 44px; object-fit: contain; background: var(--gray-light); border-radius: 8px; padding: 4px; }
.sticky-name { font-size: 13px; font-weight: 700; color: var(--navy); }
.sticky-price { font-size: 16px; font-weight: 800; color: var(--teal); }
.sticky-cta-btn { width: auto; padding: 12px 24px; font-size: 14px; }

/* ─── ANIMATIONS ─── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 20px;
  }
  .feature-showcase {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .showcase-img { min-height: 260px; order: -1; }
  .dark-panel .showcase-img { order: -1; }
  .showcase-text { padding: 32px 20px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .rating-summary { gap: 20px; }
}

@media (max-width: 480px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .trust-badges { grid-template-columns: 1fr; gap: 8px; }
  .tab-btn { padding: 12px 14px; font-size: 13px; }
}
