/* ============================================================
   IRUCHE — Design tokens
   Signature: the hexagon (honeycomb cell) as a structural device,
   not decoration — it's literal to "iruche" (ruche = beehive).
   Used for: stock/urgency badges, section dividers, image clipping,
   the price tag. Everything else stays quiet so the hexagon reads
   as intentional, not applied everywhere.
   ============================================================ */

:root {
  /* Color: burnt-honey espresso ground, raw-honey gold signal,
     thyme sage for secondary/success, warm ivory for surfaces. */
  --ink: #241705;
  --ground: #1E1508;
  --ground-soft: #2B1D0D;
  --gold: #E8A33D;
  --gold-deep: #B8651B;
  --sage: #6B7F5B;
  --ivory: #FAF3E4;
  --ivory-dim: #EDE2CB;
  --danger: #C1441E;

  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Work Sans", "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", monospace;

  --radius: 6px;
  --hex-size: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  direction: rtl;
}

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Headings default to dark ink, but inside dark-background sections
   (hero, navbar, footer) they must switch to ivory explicitly —
   otherwise the inherited light color loses to the more specific
   h1/h2/h3 selector above and text becomes invisible (dark-on-dark). */
.lp-hero h1, .lp-hero h2, .lp-hero h3,
.navbar h1, .navbar h2, .navbar h3,
.footer h1, .footer h2, .footer h3 {
  color: var(--ivory);
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Navbar ---------- */
.navbar {
  background: var(--ground);
  color: var(--ivory);
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(232, 163, 61, 0.25);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: 1160px;
  margin: 0 auto;
}
.navbar__brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.navbar__links { display: flex; gap: 22px; font-size: 0.95rem; }
.navbar__links a:hover { color: var(--gold); }
.navbar__cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: var(--radius);
  font-weight: 600;
}
.navbar__search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232,163,61,0.3);
  border-radius: 100px;
  padding: 4px 4px 4px 14px;
  flex: 1;
  max-width: 320px;
  margin: 0 16px;
}
.navbar__search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 100%;
}
.navbar__search input::placeholder { color: #a89a7f; }
.navbar__search button {
  background: var(--gold);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* ---------- Hexagon signature elements ---------- */
.hex {
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.hex-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 14px 10px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-data);
  font-weight: 700;
  font-size: 0.95rem;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  text-align: center;
}
.hex-badge--danger { background: var(--danger); color: var(--ivory); }
.hex-badge--sage { background: var(--sage); color: var(--ivory); }

.hex-divider {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 48px 0;
}
.hex-divider span {
  width: 14px;
  height: 14px;
  background: var(--gold-deep);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.hex-divider span:nth-child(2) { background: var(--gold); transform: scale(1.4); }

.honeycomb-bg {
  background-image:
    radial-gradient(circle at 10% 20%, rgba(232, 163, 61, 0.07) 0, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(107, 127, 91, 0.08) 0, transparent 40%);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: 2px; }
.btn--primary {
  background: var(--gold-deep);
  color: var(--ivory);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184, 101, 27, 0.35); }
.btn--block { width: 100%; }

/* ---------- Landing page ---------- */
.lp-hero {
  background: var(--ground);
  color: var(--ivory);
  padding: 40px 0 60px;
}
.lp-hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 860px) {
  .lp-hero__grid { grid-template-columns: 1fr 1fr; align-items: center; }
}
.lp-hero__image-wrap {
  position: relative;
  padding: 10px;
}
.lp-hero__image {
  clip-path: polygon(4% 0%, 96% 0%, 100% 8%, 100% 92%, 96% 100%, 4% 100%, 0% 92%, 0% 8%);
  border: 3px solid var(--gold);
}
.lp-hero__eyebrow {
  font-family: var(--font-data);
  color: var(--gold);
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.lp-hero__headline { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 6px; }
.lp-hero__subheadline { color: var(--ivory-dim); font-size: 1.1rem; margin-bottom: 22px; }

.price-row { display: flex; align-items: baseline; gap: 14px; margin: 18px 0; }
.price-now { font-family: var(--font-data); font-size: 2.2rem; font-weight: 700; color: var(--gold); }
.price-was { font-family: var(--font-data); font-size: 1.1rem; color: #9c8f77; text-decoration: line-through; }
.discount-tag {
  background: var(--danger); color: var(--ivory);
  font-family: var(--font-data); font-size: 0.8rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}

.urgency-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.urgency-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232, 163, 61, 0.12);
  border: 1px solid rgba(232, 163, 61, 0.35);
  color: var(--ivory);
  padding: 8px 14px; border-radius: 100px;
  font-size: 0.88rem;
}
.urgency-pill .dot {
  width: 8px; height: 8px; border-radius: 50%; background: #57C25E;
  box-shadow: 0 0 0 0 rgba(87,194,94,.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(87,194,94,.6); }
  70% { box-shadow: 0 0 0 8px rgba(87,194,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(87,194,94,0); }
}

.countdown { display: flex; gap: 10px; margin: 22px 0; }
.countdown__unit {
  background: var(--ground-soft);
  border: 1px solid rgba(232,163,61,0.3);
  border-radius: var(--radius);
  padding: 10px 14px;
  text-align: center;
  min-width: 64px;
}
.countdown__value { font-family: var(--font-data); font-size: 1.4rem; font-weight: 700; color: var(--gold); }
.countdown__label { font-size: 0.7rem; color: var(--ivory-dim); }

.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--ivory-dim); border-radius: var(--radius); overflow: hidden; }
.qty-stepper button { background: var(--ground-soft); color: var(--ivory); border: none; width: 40px; height: 44px; font-size: 1.1rem; cursor: pointer; }
.qty-stepper input { width: 50px; text-align: center; border: none; background: transparent; color: var(--ivory); font-family: var(--font-data); font-size: 1.05rem; }

.trust-strip { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; font-size: 0.85rem; color: var(--ivory-dim); }
.trust-strip span::before { content: "✓ "; color: var(--sage); font-weight: 700; }

/* ---------- Product story section ---------- */
.section { padding: 60px 0; }
.section--soft { background: var(--ivory-dim); }
.section__title { font-size: 1.8rem; margin-bottom: 8px; }
.section__lead { color: #5b4a35; max-width: 640px; margin-bottom: 32px; }

/* ---------- Footer ---------- */
.footer { background: var(--ground); color: var(--ivory-dim); padding: 44px 0 24px; margin-top: 60px; }
.footer a:hover { color: var(--gold); }
.footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 24px; margin-bottom: 24px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 18px; font-size: 0.8rem; text-align: center; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  text-align: center;
  padding: 8px 16px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.announcement-bar a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero banner carousel ---------- */
.banner-carousel { position: relative; overflow: hidden; }
.banner-slide { display: none; position: relative; }
.banner-slide.is-active { display: block; }
.banner-slide img { width: 100%; max-height: 480px; object-fit: cover; }
.banner-slide__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 8%;
  background: linear-gradient(to left, rgba(30,21,8,0.65), rgba(30,21,8,0.05));
}
.banner-slide__content h2 {
  color: var(--ivory);
  font-size: clamp(1.5rem, 4vw, 2.6rem);
  margin: 0 0 8px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.banner-slide__content p {
  color: var(--ivory-dim);
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  margin: 0 0 18px;
  max-width: 480px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.banner-dots {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.banner-dot {
  width: 12px; height: 12px;
  border: none;
  cursor: pointer;
  background: rgba(250,243,228,0.45);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  padding: 0;
}
.banner-dot.is-active { background: var(--gold); transform: scale(1.3); }

@media (max-width: 600px) {
  .banner-slide img { max-height: 260px; }
  .banner-slide__content { padding: 0 5%; }
  .banner-slide__content .btn { width: auto; padding: 10px 20px; font-size: 0.9rem; }
}

/* ---------- Product cards (shared component) ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.product-card {
  background: #fff;
  border: 1px solid var(--ivory-dim);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(36,23,5,0.1); }
.product-card__img-wrap { position: relative; aspect-ratio: 1; background: var(--ivory-dim); }
.product-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card__placeholder {
  width: 80px; height: 80px; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.6rem;
  position: absolute; inset: 0; margin: auto;
}
.product-card__badge {
  position: absolute; top: 10px; right: 10px;
  background: var(--danger); color: var(--ivory);
  font-family: var(--font-data); font-size: 0.75rem; font-weight: 700;
  padding: 4px 10px; border-radius: 100px;
}
.product-card__body { padding: 14px; }
.product-card__category { font-size: 0.75rem; color: #8a7860; display: block; }
.product-card__name { display: block; margin: 4px 0 8px; }
.product-card__prices { display: flex; align-items: baseline; gap: 8px; }
.product-card__price { font-family: var(--font-data); font-weight: 700; font-size: 1.15rem; color: var(--gold-deep); }

/* ---------- Rich description (admin-formatted HTML) ---------- */
.rich-description { line-height: 1.85; }
.rich-description h2 { font-size: 1.35rem; margin: 18px 0 8px; }
.rich-description h3 { font-size: 1.1rem; margin: 14px 0 6px; }
.rich-description ul, .rich-description ol { padding-right: 22px; margin: 10px 0; }
.rich-description li { margin-bottom: 6px; }

/* ---------- Product detail page ---------- */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}
@media (min-width: 720px) {
  .product-detail-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ---------- Mobile (< 600px) ---------- */
@media (max-width: 600px) {
  .navbar__inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }
  .navbar__links {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 16px;
    font-size: 0.85rem;
  }
  .navbar__brand { font-size: 1.25rem; }
  .navbar__cart { padding: 6px 12px; font-size: 0.9rem; }
  .navbar__search { order: 2; width: 100%; max-width: none; margin: 0; }

  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .lp-hero { padding: 28px 0 40px; }

  .price-now { font-size: 1.7rem; }
  .countdown { flex-wrap: wrap; }
  .countdown__unit { min-width: 56px; padding: 8px 10px; }

  .urgency-row { flex-direction: column; align-items: flex-start; }
  .trust-strip { flex-direction: column; gap: 8px; }

  .btn { width: 100%; }
  .qty-stepper { width: 100%; justify-content: space-between; }
}

/* Prevent horizontal scroll from any oversized element on small screens */
html, body { max-width: 100%; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
