/* ===== Tokens ===== */
:root {
  --color-rose: #A4596B;
  --color-rose-light: #E8D3D8;
  --color-blush: #F2E4E6;
  --color-cream: #F7F4F1;
  --color-charcoal: #1A1A1A;
  --color-white: #FFFFFF;

  --font-serif: "Amiri", "Playfair Display", serif;
  --font-sans: "Cairo", "Inter", sans-serif;

  --container-max: 1200px;
  --gap-section: clamp(3rem, 8vw, 7rem);
  --nav-height: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-cream);
  color: var(--color-charcoal);
  font-family: var(--font-sans);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

h1, h2, h3, .wordmark {
  font-family: var(--font-serif);
  font-weight: 600;
  margin: 0;
}

/* Directional icons (trucks, forward arrows) should face the reading direction in RTL */
html[dir="rtl"] .icon-flip {
  transform: scaleX(-1);
}

/* Phone numbers stay LTR even inside an RTL page */
[dir="ltr"].field-ltr,
.field-ltr input {
  direction: ltr;
  text-align: end;
}

/* ===== Announcement bar ===== */
.announce {
  display: flex;
  justify-content: center;
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: 0.6rem 1rem;
}

.announce__viewport {
  position: relative;
  overflow: hidden;
  height: 1.3rem;
  width: 100%;
  max-width: 360px;
}

.announce__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.announce__slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 400ms ease, transform 400ms ease;
}

.announce__slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.announce__slide.is-leaving {
  opacity: 0;
  transform: translateY(-100%);
}

.announce__slide svg {
  color: var(--color-rose-light);
  flex-shrink: 0;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: rgba(247, 244, 241, 0.95);
  backdrop-filter: blur(6px);
  color: var(--color-charcoal);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.nav__wordmark {
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.nav__cart {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
}

.nav__cart svg { width: 20px; height: 20px; flex-shrink: 0; }

/* ===== Section 1: PDP (gallery + info + order) ===== */
.pdp {
  padding: clamp(1.5rem, 4vw, 3rem) 0;
}

.pdp__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

/* Gallery */
.gallery__main {
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
}

.gallery__main img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  background-color: var(--color-rose-light);
  color: transparent;
  font-size: 0;
  transition: opacity 250ms ease;
}

.gallery__main img.is-fading { opacity: 0; }

.gallery__thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 3px;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--color-rose-light);
  transition: border-color 0.15s ease;
}

.thumb img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  object-position: center top;
  color: transparent;
  font-size: 0;
}

.thumb:hover { border-color: #d8c9c0; }
.thumb.is-active { border-color: var(--color-rose); }

/* Info column */
.pdp__info {
  position: sticky;
  top: calc(var(--nav-height) + 1rem);
}

/* Rating badge */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-blush);
  border: 1px solid rgba(164, 89, 107, 0.15);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.04);
}

.rating-badge__stars {
  color: #c79232;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.rating-badge__score { font-weight: 700; }
.rating-badge__sep { color: #c2b3ae; }
.rating-badge__count { color: #6b6b6b; }

/* Title */
.product__kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--color-rose);
  margin-bottom: 0.55rem;
}

.product__name {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.18;
  margin-bottom: 0;
}

.product__name-accent {
  display: inline-block;
  margin-top: 0.1em;
  color: var(--color-rose);
  font-weight: 700;
}

.product__divider {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--color-rose);
  margin: 1.1rem 0 1.25rem;
}

.product__desc {
  font-size: 1.02rem;
  color: #5a5a5a;
  margin-bottom: 1.5rem;
}

.product__colors {
  margin-bottom: 1.5rem;
}

.product__colors-label {
  display: block;
  font-size: 0.9rem;
  color: #4a4a4a;
  margin-bottom: 0.75rem;
}

.product__colors-label strong {
  color: var(--color-charcoal);
  font-weight: 600;
}

.swatches {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  padding: 3px;
  background: var(--swatch-color);
  background-clip: content-box;
  box-shadow: 0 0 0 1px #e6dfdb;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.swatch:hover {
  border-color: #d8c9c0;
  transform: scale(1.12);
}

.swatch.is-active {
  border-color: var(--color-rose);
  box-shadow: 0 0 0 1px #e6dfdb, 0 0 0 3px var(--color-rose-light);
}

/* Urgency / FOMO box */
.urgency-box {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, var(--color-blush), #f0dde0);
  border: 1px solid rgba(164, 89, 107, 0.18);
  border-radius: 10px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 8px rgba(164, 89, 107, 0.08);
}

.urgency-box__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-white);
  color: var(--color-rose);
  flex-shrink: 0;
}

.urgency-box__text strong {
  display: block;
  font-size: 0.92rem;
  color: var(--color-charcoal);
  margin-bottom: 0.45rem;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
}

.countdown__unit {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  min-width: 2.4rem;
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: 5px;
  padding: 0.3rem 0.5rem;
  font-weight: 700;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.countdown__unit small {
  font-weight: 400;
  font-size: 0.68rem;
  margin-inline-start: 0.15rem;
  opacity: 0.75;
}

.countdown__sep { color: var(--color-rose); font-weight: 700; }

/* Price box */
.price-box {
  border: 1px solid #e6dfdb;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  background: var(--color-white);
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.05);
}

.price-box__price {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin: 0 0 1rem;
}

.price-box__trust {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: #4a4a4a;
}

.price-box__trust li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.price-box__trust svg {
  color: var(--color-rose);
  flex-shrink: 0;
}

.stock-bar__label {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: #4a4a4a;
  margin-bottom: 0.6rem;
}

.stock-bar__label strong { color: var(--color-rose); }

.stock-bar__track {
  background: #ece4e0;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.stock-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, #c0394f, var(--color-rose));
  border-radius: 999px;
  transition: width 600ms ease;
}

/* Offer selector */
.size-select {
  margin-bottom: 1.5rem;
}

.size-select__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-bottom: 0.6rem;
}

.size-select__buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.size-btn {
  cursor: pointer;
}

.size-btn input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.size-btn span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 44px;
  border: 1.5px solid #e6dfdb;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-charcoal);
  background: #fff;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
  padding: 0 0.75rem;
}

.size-btn:hover span,
.size-btn.is-active span,
.size-btn:has(input:checked) span {
  border-color: var(--color-rose);
  background: var(--color-blush);
  color: var(--color-rose);
}

.btn--cta {
  margin-bottom: 1.75rem;
}

.product__details {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: #4a4a4a;
  border-top: 1px solid #e6dfdb;
  border-bottom: 1px solid #e6dfdb;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  background: linear-gradient(135deg, #232323, var(--color-charcoal));
  color: var(--color-white);
  border: none;
  border-radius: 6px;
  padding: 1rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  text-align: center;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.15);
}

.btn:hover {
  background: linear-gradient(135deg, var(--color-rose), #8f4a5b);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(164, 89, 107, 0.3);
}

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

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

/* Order form (now inline in the info column) */
.pdp__order-title {
  font-size: 1.3rem;
  margin-bottom: 1.25rem;
}

.order__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field { display: flex; flex-direction: column; gap: 0.4rem; }

.field label {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b6b6b;
}

.field input,
.field textarea {
  background: var(--color-white);
  border: 1px solid #ddd3cd;
  color: var(--color-charcoal);
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  border-radius: 3px;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-rose);
}

.field-error {
  font-size: 0.8rem;
  color: #b03a52;
  min-height: 1em;
}

.order__summary {
  background: var(--color-blush);
  border: 1px solid #e6dfdb;
  border-radius: 3px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #4a4a4a;
}

/* ===== Thank-you page ===== */
.thankyou {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

.thankyou__card {
  max-width: 480px;
  width: 100%;
  text-align: center;
}

.thankyou__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--color-blush);
  color: var(--color-rose);
  display: flex;
  align-items: center;
  justify-content: center;
}

.thankyou__card h1 {
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.thankyou__card p {
  font-size: 1.02rem;
  color: #4a4a4a;
  margin-bottom: 2rem;
}

.order__success {
  text-align: center;
  background: var(--color-blush);
  border: 1px solid var(--color-rose);
  border-radius: 4px;
  padding: 2rem 1.5rem;
}

.order__success h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.order__success p { color: #4a4a4a; }

@media (max-width: 860px) {
  .pdp__grid {
    grid-template-columns: 1fr;
  }
  .pdp__info {
    position: static;
  }
}

/* ===== Section 2: Editorial brand experience ===== */
.editorial__banner {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-charcoal);
  overflow: hidden;
}

.editorial__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  background-color: var(--color-charcoal);
  color: transparent;
  font-size: 0;
}

.editorial__banner-text {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 600px;
  padding: 0 1.5rem;
  margin: 0 auto;
  width: 100%;
  max-width: var(--container-max);
}

.editorial__banner-text h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  margin-bottom: 1.1rem;
  max-width: 14ch;
}

.editorial__banner-text p {
  font-size: 1.05rem;
  max-width: 32ch;
  opacity: 0.9;
}

.story {
  background: var(--color-blush);
  padding: var(--gap-section) 0;
}

.story__inner {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
  justify-content: center;
}

.story__text {
  max-width: 480px;
  text-align: center;
}

.story__text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.story__text p { font-size: 1.02rem; color: #3a3a3a; }

.story__oval {
  width: clamp(180px, 28vw, 280px);
  height: clamp(240px, 36vw, 360px);
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-rose-light);
}

.story__oval img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  font-size: 0;
}

.section-kicker {
  display: block;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-rose);
  margin-bottom: 0.6rem;
}

/* ===== Craft story ===== */
.craft {
  background: var(--color-cream);
  padding: var(--gap-section) 0;
}

.craft__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.craft__title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
}

.craft p {
  font-size: 1.02rem;
  color: #4a4a4a;
}

/* ===== Detail shots ===== */
.detail-shots {
  background: var(--color-cream);
  padding: 0 0 var(--gap-section);
}

.detail-shots__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.detail-shots__item {
  margin: 0;
}

.detail-shots__item img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 8px;
  background-color: var(--color-rose-light);
  color: transparent;
  font-size: 0;
  box-shadow: 0 4px 16px rgba(26, 26, 26, 0.06);
}

.detail-shots__item figcaption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.88rem;
  color: #6b6b6b;
  font-style: italic;
}

/* ===== Comparison table ===== */
.compare {
  background: var(--color-blush);
  padding: var(--gap-section) 0;
}

.compare__title {
  text-align: center;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 2.5rem;
}

.compare__table {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.compare__row {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1.3fr;
  border-bottom: 1px solid #f0e9e6;
}

.compare__row:last-child { border-bottom: none; }

.compare__row--head {
  background: var(--color-charcoal);
}

.compare__row--head .compare__col {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  padding: 1.1rem 1rem;
}

.compare__row--head .compare__col--brand { color: var(--color-rose-light); }
.compare__row--head .compare__col--muted { color: #b8b0ac; }

.compare__criterion {
  display: flex;
  align-items: center;
  padding: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-charcoal);
  background: var(--color-cream);
}

.compare__col {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.compare__col svg { flex-shrink: 0; }

.compare__col--brand {
  color: var(--color-charcoal);
  background: var(--color-blush);
}

.compare__col--brand svg { color: var(--color-rose); }

.compare__col--muted {
  color: #948c88;
  background: var(--color-white);
}

.compare__col--muted svg { color: #c2b3ae; }

@media (max-width: 640px) {
  .compare__row { grid-template-columns: 1fr; }
  .compare__criterion { background: var(--color-charcoal); color: var(--color-white); }
}

/* ===== Trust strip ===== */
.trust {
  background: var(--color-cream);
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.trust__item svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--color-rose);
  margin-bottom: 0.75rem;
}

.trust__item h3 {
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.trust__item p {
  font-size: 0.88rem;
  color: #4a4a4a;
  margin: 0;
}

/* ===== Footer ===== */
.footer {
  background: var(--color-charcoal);
  color: #cfcfcf;
  padding: 3rem 0 2rem;
  text-align: center;
}

.footer__wordmark {
  color: var(--color-white);
  font-size: 1.6rem;
  margin-bottom: 1.25rem;
}

.footer__social {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer__social svg { width: 20px; height: 20px; flex-shrink: 0; }

.footer__copy { font-size: 0.8rem; color: #777; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
