/* OURPLACES — brand stylesheet
   Colors & type per brand guidelines:
   Bordo #8A1E26, Dusty Rose #C67A7A, Warm Beige #F2E7DB, Soft Cream #FAF6F0, Espresso #3B2F2F
   Latin: Montserrat (primary) / Playfair Display (secondary)
   Arabic: Cairo (primary) / Amiri (secondary) */

:root {
  --bordo: #8A1E26;
  --bordo-dark: #6e1620;
  --dusty-rose: #C67A7A;
  --warm-beige: #F2E7DB;
  --soft-cream: #FAF6F0;
  --espresso: #3B2F2F;

  --font-primary: 'Montserrat', sans-serif;
  --font-display: 'Playfair Display', serif;
  --font-primary-ar: 'Cairo', sans-serif;
  --font-display-ar: 'Amiri', serif;

  --radius-lg: 1.75rem;
  --radius-md: 1rem;
  --radius-sm: 0.5rem;
  --radius-img: 10px;
  --shadow-soft: 0 10px 30px -12px rgba(59, 47, 47, 0.25);
  --max-width: 72rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--soft-cream);
  color: var(--espresso);
  font-family: var(--font-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: var(--font-primary-ar);
}

.font-display { font-family: var(--font-display); }
html[lang="ar"] .font-display { font-family: var(--font-display-ar); }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 640px) {
  .container { padding-inline: 2rem; }
}

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--soft-cream);
  color: var(--bordo);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid rgba(59, 47, 47, 0.1);
}

/* ---------- Header ---------- */
.site-header {
  width: 100%;
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
  background: #8d2428;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

body[data-page="product"] .site-header .container {
  justify-content: center;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 0;
  transition: transform 0.2s ease;
}
.brand:hover { transform: scale(1.02); }

.brand-logo {
  height: 2.6rem;
  width: auto;
}

.brand-tagline {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--soft-cream);
  opacity: 0.7;
  white-space: nowrap;
}
html[lang="ar"] .brand-tagline { text-transform: none; letter-spacing: 0.02em; }

@media (max-width: 640px) {
  .brand-tagline { display: none; }
  .brand-logo { height: 2.1rem; }
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

@media (max-width: 400px) {
  .main-nav { gap: 1rem; }
  .main-nav a { font-size: 0.82rem; }
}

.main-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--soft-cream);
  opacity: 0.8;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.main-nav a:hover { opacity: 1; color: var(--dusty-rose); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
html[lang="ar"] .btn { font-family: var(--font-primary-ar); font-weight: 700; }

.btn:hover { transform: scale(1.03); }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--bordo); color: var(--soft-cream); }
.btn-outline { background: transparent; color: var(--bordo); border: 2px solid var(--bordo); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.95rem; }

/* ---------- Hero ---------- */
.hero {
  padding-block: 2.5rem 1rem;
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-img);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
@media (min-width: 640px) { .hero-visual { aspect-ratio: 16 / 9; } }

.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-copy { text-align: center; max-width: 46rem; margin-inline: auto; padding-block: 3rem 1rem; }

.hero-title {
  font-weight: 700;
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  line-height: 1.02;
  color: var(--espresso);
}

.hero-title .accent { color: var(--bordo); }

.hero-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  font-size: 1rem;
}

.stars { display: flex; gap: 0.15rem; color: var(--bordo); }

.hero-rating .count { font-weight: 600; opacity: 0.8; }

.hero-cta { display: flex; justify-content: center; margin-top: 1.5rem; }

/* ---------- Sections ---------- */
.section { padding-block: 3.5rem; }
.section-tight { padding-block: 2rem; }

.section-title {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center;
  margin-bottom: 2.5rem;
}

.grid-3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.why-card { position: relative; }

.why-card img,
.why-card video {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-img);
  margin-bottom: 1rem;
  display: block;
  background: var(--espresso);
}

.step-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  z-index: 1;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--bordo);
  color: var(--soft-cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}
html[lang="ar"] .step-badge { font-family: var(--font-display-ar); }

.why-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; margin: 0 0 0.4rem; }
html[lang="ar"] .why-card h3 { font-family: var(--font-display-ar); }

.why-card p { font-size: 0.92rem; color: var(--espresso); opacity: 0.78; line-height: 1.6; margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: var(--warm-beige);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-stars { color: var(--bordo); display: flex; gap: 0.15rem; }

.testimonial-quote { font-size: 0.95rem; line-height: 1.65; flex-grow: 1; }

.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--dusty-rose);
  color: var(--soft-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.avatar svg { width: 1.15rem; height: 1.15rem; }

.author-name { font-weight: 700; font-size: 0.9rem; }
.author-loc { font-size: 0.78rem; opacity: 0.65; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: var(--bordo);
  color: var(--soft-cream);
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin-inline: 1.25rem;
}
@media (min-width: 640px) { .cta-banner { margin-inline: 2rem; } }

.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  margin: 0 0 1.5rem;
}
html[lang="ar"] .cta-banner h2 { font-family: var(--font-display-ar); }

.cta-banner .btn-primary { background: var(--soft-cream); color: var(--bordo); }

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 3rem 2rem;
  text-align: center;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-nav a { font-size: 0.85rem; font-weight: 600; opacity: 0.75; }
.footer-nav a:hover { opacity: 1; color: var(--bordo); }

.footer-made { font-size: 0.9rem; opacity: 0.65; margin-bottom: 0.25rem; }
.footer-rights { font-size: 0.75rem; opacity: 0.45; }

.free-delivery-note {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bordo);
  margin: 0.75rem 0 0;
}

/* ---------- UGC carousel ---------- */
.ugc-carousel-wrap {
  position: relative;
}

.ugc-carousel {
  display: flex;
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.ugc-carousel::-webkit-scrollbar { display: none; }

.ugc-carousel img {
  flex: 0 0 auto;
  width: 62%;
  max-width: 300px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-img);
  box-shadow: var(--shadow-soft);
  scroll-snap-align: start;
}
@media (min-width: 640px) { .ugc-carousel img { width: 30%; } }
@media (min-width: 1000px) { .ugc-carousel img { width: 23%; } }

.ugc-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--soft-cream);
  border: 1px solid rgba(59, 47, 47, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  color: var(--espresso);
  z-index: 2;
  transition: transform 0.2s ease;
}
.ugc-arrow:hover { transform: translateY(-50%) scale(1.06); }
.ugc-arrow svg { width: 1.2rem; height: 1.2rem; }
.ugc-arrow.prev { inset-inline-start: -0.6rem; }
.ugc-arrow.next { inset-inline-end: -0.6rem; }
html[dir="rtl"] .ugc-arrow svg { transform: scaleX(-1); }

@media (max-width: 480px) {
  .ugc-arrow { display: none; }
}

.review-strip {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.75rem;
}
@media (min-width: 640px) { .review-strip { grid-template-columns: repeat(3, 1fr); } }

.review-mini {
  background: var(--soft-cream);
  border: 1px solid rgba(59, 47, 47, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
}
.review-mini .stars { display: flex; gap: 0.1rem; color: var(--bordo); margin-bottom: 0.5rem; }
.review-mini .quote { font-size: 0.88rem; line-height: 1.55; margin: 0 0 0.75rem; }
.review-mini .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  flex-wrap: wrap;
}
.review-mini .author { font-weight: 700; }
.review-mini .verified {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--bordo);
  font-weight: 600;
}
.review-mini .verified svg { width: 0.85rem; height: 0.85rem; }

/* ---------- Checkout drawer ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(59, 47, 47, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 60;
}
.drawer-overlay.open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  margin-inline: auto;
  width: 100%;
  max-width: 32rem;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--soft-cream);
  border-radius: 1.5rem 1.5rem 0 0;
  box-shadow: 0 -10px 40px -10px rgba(59, 47, 47, 0.35);
  padding: 1.25rem 1.5rem 2rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 61;
}
.drawer.open { transform: translateY(0); }

.drawer-handle {
  width: 2.5rem;
  height: 0.3rem;
  border-radius: 999px;
  background: rgba(59, 47, 47, 0.15);
  margin: 0 auto 1rem;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.drawer-header h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0;
}
html[lang="ar"] .drawer-header h3 { font-family: var(--font-display-ar); }

.drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--espresso);
  padding: 0.25rem;
  line-height: 0;
}
.drawer-close svg { width: 1.4rem; height: 1.4rem; }

.drawer-summary {
  background: var(--warm-beige);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
}
.drawer-summary .row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 700;
}
.drawer-summary .cod-note {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.4rem;
}

.drawer-error {
  color: var(--bordo);
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0.5rem 0 0;
  display: none;
}
.drawer-error.visible { display: block; }

.drawer-success {
  text-align: center;
  padding: 1.5rem 0.5rem 0.5rem;
  display: none;
}
.drawer-success.visible { display: block; }
.drawer-success svg { width: 3rem; height: 3rem; color: var(--bordo); margin-bottom: 0.75rem; }
.drawer-success h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; margin: 0 0 0.5rem; }
html[lang="ar"] .drawer-success h3 { font-family: var(--font-display-ar); }
.drawer-success p { font-size: 0.9rem; opacity: 0.8; margin: 0; }

/* ---------- Product page ---------- */
.product-layout {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: 1fr;
  padding-block: 1rem 1rem;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}
.product-rating .stars { display: flex; gap: 0.1rem; color: var(--bordo); }
.product-rating .rating-count { font-weight: 600; opacity: 0.8; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--soft-cream);
  border-top: 1px solid rgba(59, 47, 47, 0.12);
  box-shadow: 0 -6px 20px -8px rgba(59, 47, 47, 0.25);
  padding: 0.75rem 1.1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.sticky-cta.hidden { transform: translateY(100%); opacity: 0; }

.sticky-cta-price { display: flex; flex-direction: column; line-height: 1.15; flex-shrink: 0; }
.sticky-cta-price .now { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--bordo); }
html[lang="ar"] .sticky-cta-price .now { font-family: var(--font-display-ar); }
.sticky-cta-price .was { font-size: 0.78rem; opacity: 0.45; text-decoration: line-through; }

.sticky-cta .btn { font-size: 0.92rem; padding: 0.75rem 1.25rem; white-space: nowrap; }

@media (max-width: 899px) {
  .sticky-cta { display: flex; }
  body[data-page="product"] { padding-bottom: 4.75rem; }
}

.trust-badges {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-inline: 0.9rem;
  margin-bottom: -1rem;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}
.badge-pill.outline {
  border: 1.5px solid rgba(59, 47, 47, 0.12);
  background: var(--soft-cream);
  color: var(--espresso);
}
.badge-pill.outline .stars { display: flex; gap: 0.05rem; color: #FBBF24; }
.badge-pill.solid { background: var(--bordo); color: var(--soft-cream); }

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  margin-bottom: 0.75rem;
  border-radius: var(--radius-img);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 899px) {
  .gallery-main {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    margin-bottom: 1rem;
  }
}

.gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius-img);
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
}
.gallery-thumbs img:hover { border-color: var(--bordo); }

.product-tagline { font-size: 1.05rem; color: var(--bordo); font-weight: 600; margin: 0.25rem 0 0.6rem; }

.product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  line-height: 1.15;
  margin: 0;
}
html[lang="ar"] .product-name { font-family: var(--font-display-ar); }

.product-desc { font-size: 0.98rem; opacity: 0.8; line-height: 1.65; margin: 0.75rem 0 1.25rem; }

.price-row { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1.5rem; }
.price-now { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--bordo); }
html[lang="ar"] .price-now { font-family: var(--font-display-ar); }
.price-was { text-decoration: line-through; opacity: 0.45; font-size: 1.05rem; }
.price-badge {
  background: var(--dusty-rose);
  color: var(--soft-cream);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
}

.bundle-group { display: grid; gap: 0.75rem; margin-bottom: 1.75rem; }

.bundle-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid rgba(59,47,47,0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bundle-option:hover { border-color: var(--dusty-rose); }
.bundle-option.selected { border-color: var(--bordo); background: var(--warm-beige); }

.bundle-option .label { font-weight: 700; font-size: 0.95rem; }
.bundle-option .savings { display:block; font-size: 0.75rem; color: var(--bordo); font-weight: 600; margin-top: 0.15rem; }
.bundle-option .prices { text-align: end; }
.bundle-option .prices .now { font-weight: 700; }
.bundle-option .prices .was { font-size: 0.8rem; opacity: 0.45; text-decoration: line-through; margin-inline-start: 0.35rem; }

.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.85rem; font-weight: 700; margin-bottom: 0.4rem; }
.form-field input, .form-field textarea {
  width: 100%;
  border: 2px solid rgba(59,47,47,0.14);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--soft-cream);
  color: var(--espresso);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--bordo);
}
.form-field textarea { resize: vertical; min-height: 4.5rem; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(59,47,47,0.08);
}
@media (min-width: 500px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }

.trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.4rem; }
.trust-item svg { width: 1.35rem; height: 1.35rem; color: var(--bordo); }
.trust-item p { font-size: 0.72rem; font-weight: 600; opacity: 0.8; line-height: 1.3; margin: 0; white-space: pre-line; }

/* ---------- FAQ ---------- */
.faq { max-width: 42rem; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid rgba(59,47,47,0.12);
  padding-block: 1.1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--bordo);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0.75rem 0 0; font-size: 0.92rem; opacity: 0.78; line-height: 1.6; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
