:root {
  --sand-bg: #e8dfd0;
  --sand-paper: #faf5ec;
  --sand-terracotta: #c4552d;
  --sand-cream: #fff7ea;
  --sand-pill: #f0d9b5;
  --sand-ink: #4a2f1b;
  --sand-line: #d9c7a8;
  --sand-card: #fffdf8;
  --font-head: "Noto Naskh Arabic", "Playfair Display", Georgia, serif;
  --font-body: "Noto Sans Arabic", "Source Sans 3", Tahoma, Arial, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sand-bg);
  color: var(--sand-ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--sand-terracotta);
}

.sand-page {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  background: var(--sand-paper);
  min-height: 100vh;
  box-shadow: 0 0 30px rgba(74, 47, 27, 0.12);
  overflow: hidden;
}

/* ---------- Hero ---------- */
.hero-sand {
  padding: 26px 20px 12px;
  text-align: center;
}

.hero-tag {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--sand-terracotta);
  font-weight: 600;
}

.hero-sand h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--sand-ink);
}

.hero-line {
  margin: 8px 0 0;
  font-size: 15px;
}

.hero-photo {
  position: relative;
  margin: 18px 0 0;
  border: 1px solid var(--sand-line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--sand-card);
  aspect-ratio: 1 / 1;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.stamp-badge {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  z-index: 2;
  transform: rotate(-6deg);
  padding: 6px 12px;
  background: var(--sand-cream);
  color: var(--sand-terracotta);
  border: 2px solid var(--sand-terracotta);
  border-radius: 4px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- Buttons ---------- */
.cta-wrap {
  padding: 0 20px;
  margin: 20px 0;
}

.sand-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 58px;
  padding: 12px 18px;
  border: 0;
  border-radius: 14px;
  background: var(--sand-terracotta);
  color: var(--sand-cream);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* ---------- Video ---------- */
.video-block {
  padding: 0 20px;
}

.video-block video {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  background: #000;
}

.sec-title {
  margin: 28px 20px 16px;
  font-family: var(--font-head);
  font-size: 26px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
  color: var(--sand-ink);
}

.video-block .sec-title {
  margin: 24px 0 14px;
}

/* ---------- Usage tiles ---------- */
.tile-group {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 18px;
}

.tile-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  margin: 0;
  background: var(--sand-card);
  border: 1px solid var(--sand-line);
  border-radius: 16px;
}

.tile-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.tile-pill {
  display: inline-block;
  padding: 10px 20px;
  background: var(--sand-pill);
  color: var(--sand-ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.pill-end {
  align-self: flex-end;
}

.pill-start {
  align-self: flex-start;
}

/* ---------- Story ---------- */
.story-block {
  padding: 0 20px;
}

.lead-text {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  line-height: 1.8;
}

.wide-photo {
  margin: 18px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--sand-line);
  background: var(--sand-card);
}

.wide-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.body-text {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

/* ---------- Specs ---------- */
.spec-block .sec-title {
  margin-top: 36px;
}

.spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 20px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  background: var(--sand-card);
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  min-width: 0;
}

.spec-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--sand-terracotta);
}

.spec-val {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.spec-note {
  margin: 14px 20px 0;
  font-size: 15px;
  text-align: center;
}

/* ---------- Accent pills ---------- */
.accent-block {
  padding: 0 20px;
  margin-top: 8px;
}

.accent-row {
  display: flex;
  margin: 12px 0;
}

.accent-end {
  justify-content: flex-end;
}

.accent-start {
  justify-content: flex-start;
}

.perk-pill {
  margin: 0;
  padding: 10px 20px;
  background: var(--sand-pill);
  color: var(--sand-ink);
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  max-width: 100%;
}

/* ---------- Gallery ---------- */
.gallery-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0 20px 14px;
  -webkit-overflow-scrolling: touch;
}

.gallery-item {
  flex: 0 0 85%;
  scroll-snap-align: center;
  margin: 0;
  background: var(--sand-card);
  border: 1px solid var(--sand-line);
  border-radius: 16px;
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

/* ---------- Shipping ---------- */
.ship-block {
  padding: 0 20px;
}

.ship-block .sec-title {
  margin-top: 36px;
}

.ship-item {
  margin: 0 0 12px;
  padding: 16px;
  background: var(--sand-card);
  border: 1px solid var(--sand-line);
  border-radius: 16px;
  text-align: center;
}

.ship-icon {
  display: block;
  font-size: 28px;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ship-item h3 {
  margin: 0 0 4px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
}

.ship-item p {
  margin: 0;
  font-size: 16px;
}

/* ---------- Price ---------- */
.price-block {
  margin: 24px 20px 0;
  padding: 20px;
  background: var(--sand-card);
  border: 2px solid var(--sand-terracotta);
  border-radius: 18px;
  text-align: center;
}

.price-label {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sand-terracotta);
}

.price-value {
  margin: 0;
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sand-terracotta);
  direction: ltr;
}

.price-note {
  margin: 6px 0 0;
  font-size: 15px;
}

/* ---------- Order form ---------- */
.order-block {
  padding: 8px 20px 28px;
}

.order-block .sec-title {
  margin-top: 32px;
}

.order-sub {
  margin: -8px 0 18px;
  text-align: center;
  font-size: 16px;
}

.order-form {
  display: flex;
  flex-direction: column;
}

.order-form label {
  font-weight: 600;
  margin-bottom: 6px;
}

.order-form input {
  width: 100%;
  min-height: 56px;
  margin-bottom: 14px;
  padding: 0 16px;
  border: 1px solid var(--sand-line);
  border-radius: 14px;
  background: #fff;
  color: var(--sand-ink);
  font-family: var(--font-body);
  font-size: 16px;
}

.order-form input[type="tel"] {
  direction: ltr;
  text-align: start;
}

.order-form input:focus {
  outline: 2px solid var(--sand-terracotta);
  outline-offset: 1px;
}

.sand-submit {
  margin-top: 4px;
}

.consent {
  margin: 14px 0 0;
  font-size: 15px;
  text-align: center;
}

/* ---------- Footer ---------- */
.sand-footer {
  padding: 26px 20px 34px;
  background: var(--sand-ink);
  color: var(--sand-cream);
  text-align: center;
  font-size: 15px;
}

.sand-footer a {
  color: var(--sand-pill);
}

.foot-brand {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

.foot-line {
  margin: 4px 0;
}

.foot-links {
  margin: 14px 0 10px;
  line-height: 2;
}

.sep {
  margin: 0 8px;
  opacity: 0.7;
}

.foot-copy {
  margin: 8px 0 4px;
}

.foot-cookie {
  margin: 0;
  font-size: 14px;
  opacity: 0.85;
}

/* ---------- Policy pages ---------- */
.policy-page {
  padding: 26px 20px 30px;
}

.policy-title {
  margin: 0 0 18px;
  font-family: var(--font-head);
  font-size: 28px;
  line-height: 1.4;
  font-weight: 700;
  text-align: center;
}

.policy-sec {
  margin-bottom: 18px;
  padding: 14px 16px;
  background: var(--sand-card);
  border: 1px solid var(--sand-line);
  border-radius: 16px;
}

.policy-sec h2 {
  margin: 0 0 6px;
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--sand-terracotta);
}

.policy-sec p {
  margin: 0;
  font-size: 16px;
}

.policy-page .sand-cta {
  margin-top: 18px;
  text-decoration: none;
}

/* ---------- Thank you page ---------- */
.thank-block {
  padding: 48px 20px 34px;
  text-align: center;
}

.thank-title {
  margin: 0 0 16px;
  font-family: var(--font-head);
  font-size: 30px;
  line-height: 1.4;
  font-weight: 700;
}

.thank-text {
  margin: 0 0 22px;
  font-size: 16px;
}

.thank-block .sand-cta {
  text-decoration: none;
}

/* ---------- Small screens ---------- */
@media (max-width: 340px) {
  .hero-sand h1 {
    font-size: 26px;
  }

  .price-value {
    font-size: 30px;
  }

  .spec-grid {
    grid-template-columns: 1fr;
  }
}