:root {
  --cream: #f7f3ee;
  --cream-2: #f3ece4;
  --ink: #4a2c34;
  --wine: #6d3142;
  --wine-deep: #542636;
  --muted: #7c675f;
  --line: #e7ddd3;
  --white: #fffdfb;
  --focus: #6d3142;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Readex Pro", "Segoe UI", Tahoma, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

html[lang="ar"] body { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }

button, input, select { font: inherit; color: inherit; }

a { color: inherit; text-decoration: none; }

h1, h2, .price {
  font-family: "Cormorant Garamond", "Noto Naskh Arabic", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] .price {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  letter-spacing: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -48px;
  background: var(--white);
  padding: 8px 12px;
  z-index: 8;
}

.skip:focus { top: 8px; }

.announce {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 8px 16px;
  background: var(--cream-2);
  color: var(--wine);
  font-size: 0.82rem;
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--wine);
}

.top {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 28px;
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 243, 238, 0.94);
  border-bottom: 1px solid transparent;
}

.logo { height: 46px; width: auto; }

.brand { display: flex; flex: 0 0 auto; }

.nav {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex: 1;
  font-size: 0.95rem;
}

.nav a { padding: 8px 0; }

.nav a:hover { color: var(--wine); }

.tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.socials { display: flex; align-items: center; gap: 6px; }

.socials a {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.socials svg { width: 26px; height: 26px; display: block; }

.langs { display: flex; align-items: center; gap: 4px; color: var(--wine); }

.langs button {
  appearance: none;
  background: transparent;
  border: 0;
  min-height: 44px;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
}

.langs button[aria-pressed="true"] {
  color: var(--wine);
  box-shadow: inset 0 -2px 0 var(--wine);
}

.bag {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.bag svg, .trust svg, .mark svg, .arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bag svg { width: 22px; height: 22px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 10px;
}

.hero-copy { max-width: 34rem; padding: 12px 8px 12px 0; }

h1 {
  margin: 0;
  color: var(--wine-deep);
  font-size: clamp(3rem, 6vw, 4.6rem);
  line-height: 0.95;
}

html[lang="ar"] h1 { line-height: 1.25; font-size: clamp(2.4rem, 5vw, 3.6rem); }

.lead {
  margin: 16px 0 0;
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 28rem;
}

.price {
  margin: 18px 0 0;
  color: var(--wine);
  font-size: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--wine);
  color: #fff;
  border: 1px solid var(--wine);
  cursor: pointer;
  text-decoration: none;
  font-weight: 500;
}

.btn:hover { background: var(--wine-deep); }

.btn.ghost {
  background: transparent;
  color: var(--wine);
}

.arrow { width: 18px; height: 18px; }

html[dir="rtl"] .arrow { transform: scaleX(-1); }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 22px;
  list-style: none;
  margin: 28px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  color: var(--wine);
  font-size: 0.88rem;
}

.trust li, .points li { display: flex; align-items: center; gap: 8px; }

.trust svg { width: 22px; height: 22px; }

.hero-photo {
  width: 100%;
  height: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: center 18%;
  background: #e7dfd6;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px 32px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 28px 64px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  background: #e7dfd6;
}

.details h2, .sheet h2, .done h2 {
  margin: 0 0 18px;
  color: var(--wine-deep);
  font-size: 2.4rem;
  line-height: 1.05;
}

html[lang="ar"] .details h2,
html[lang="ar"] .sheet h2 { font-size: 2rem; line-height: 1.35; }

.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.mark {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid #e4cfc6;
  border-radius: 50%;
  color: var(--wine);
  flex: none;
}

.mark svg { width: 24px; height: 24px; }

.points strong { display: block; font-weight: 600; }

.points small { display: block; color: var(--muted); font-size: 0.92rem; }

.order { position: sticky; top: 88px; scroll-margin-top: 88px; }

.sheet {
  position: relative;
  background: var(--white);
  border: 1px solid #eadfd6;
  border-radius: 18px;
  padding: 26px 22px 18px;
  overflow: hidden;
}

.leaf {
  position: absolute;
  inset-inline-end: -6px;
  top: 8px;
  width: 92px;
  height: 92px;
  fill: #e7d5cc;
  opacity: 0.7;
  pointer-events: none;
}

.field, .sizes, .colors { display: block; margin: 0 0 14px; border: 0; padding: 0; min-inline-size: 0; }

.field span, .sizes legend, .colors legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 0.92rem;
  width: 100%;
}

.sizes legend a { color: var(--wine); text-decoration: underline; text-underline-offset: 2px; font-size: 0.82rem; }

.swatches { display: flex; gap: 10px; }

.swatch {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd4cc;
  background: var(--swatch);
  cursor: pointer;
  padding: 0;
}

.swatch[aria-pressed="true"] {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.field input, .field select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e4dcd4;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.field input.bad, .size-row.bad { outline: 2px solid #9f1239; }

.size-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

.size {
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid #e4dcd4;
  background: #fff;
  cursor: pointer;
}

.size[aria-pressed="true"] {
  background: var(--wine);
  color: #fff;
  border-color: var(--wine);
}

.submit { width: 100%; margin-top: 6px; }

.cod-note {
  margin: 10px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.status { min-height: 1.3em; margin: 8px 0 0; font-size: 0.92rem; }

.status.bad { color: #9f1239; }

.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}

html:not([data-ready]) .i18n-block { opacity: 0; }

.done p { margin: 0; }

.wa-widget {
  position: fixed;
  z-index: 7;
  inset-inline-start: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding-block: 8px;
  padding-inline: 10px 16px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  box-shadow: 0 8px 22px rgba(20, 90, 40, 0.28);
}

.wa-widget svg { width: 34px; height: 34px; flex: none; }

.wa-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  font-size: 0.72rem;
}

.wa-copy strong { font-size: 1rem; font-weight: 700; }

.wa-phone { font-weight: 600; letter-spacing: 0.02em; }

.guide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px 72px;
}

.guide h2 {
  margin: 0 0 8px;
  color: var(--wine-deep);
  font-size: 2.4rem;
}

.guide h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-family: "Readex Pro", sans-serif;
  font-weight: 600;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
  padding-bottom: 4px;
}

.table-wrap { overflow-x: auto; }

.guide table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  background: #fff;
  font-size: 0.92rem;
}

.guide th, .guide td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.guide thead th { font-weight: 600; }

.guide tbody th { font-weight: 700; }

.guide-note { color: var(--muted); font-size: 0.85rem; }

.dock { display: none; }

.noscript { margin: 12px 16px; background: #fff; padding: 12px; }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero, .story { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .hero-copy { padding: 8px 0 0; }
  .hero-photo { max-height: 520px; }
  .order { position: static; }
  .guide { padding-left: 16px; padding-right: 16px; padding-bottom: 110px; }
  .wa-widget { bottom: 74px; inset-inline-start: 10px; }
  .dock {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 6;
    background: var(--wine-deep);
    color: #fff;
    min-height: 58px;
    padding: 10px 16px;
  }
  .dock strong { font-family: "Cormorant Garamond", serif; font-size: 1.4rem; font-weight: 600; }
  body { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
