/* =========================================================================
   Yildiz Trading Group, E-Katalog Oleh-oleh Haji & Umrah
   Design tokens + base + components
   Palette: Navy #122E55 + Gold. Premium-spiritual, ornamen Islami minimalis.
   ========================================================================= */

:root {
  /* ----- Color ----- */
  --navy:        #122E55;
  --navy-deep:   #0D2140;
  --navy-700:    #1C3D6B;
  --navy-soft:   #294A78;
  --navy-line:   #24426F;

  --gold:        #C4A24C;
  --gold-deep:   #A8842F;
  --gold-light:  #E2C982;
  --gold-soft:   #F2E6C4;
  --gold-tint:   #FBF4DF;

  --cream:       #FBF7EE;
  --cream-2:     #F5EEDF;
  --paper:       #FFFFFF;

  --ink:         #16263F;
  --ink-2:       #3A4A63;
  --muted:       #647697;
  --hairline:    #E9E0CC;
  --hairline-2:  #EFE8D8;

  /* marketplace */
  --shopee:   #EE4D2D;
  --tokopedia:#03AC0E;
  --tiktok:   #111418;
  --whatsapp: #1FA855;

  /* ----- Type ----- */
  --serif: "Playfair Display", "Noto Serif", Georgia, serif;
  --sans:  "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* elderly-friendly base; scaled by [data-text-scale] */
  --fs-base: 18px;
  --fs-mult: 1;

  /* ----- Spacing / radius / shadow ----- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --sh-sm: 0 1px 2px rgba(18,46,85,.06), 0 1px 3px rgba(18,46,85,.05);
  --sh-md: 0 6px 18px rgba(18,46,85,.08), 0 2px 6px rgba(18,46,85,.05);
  --sh-lg: 0 24px 60px rgba(13,33,64,.16), 0 6px 18px rgba(13,33,64,.08);
  --sh-gold: 0 10px 30px rgba(168,132,47,.22);

  --maxw: 1200px;
}

/* ===================== reset / base ===================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: calc(var(--fs-base) * var(--fs-mult));
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[data-text-scale="large"]  { --fs-mult: 1.12; }
[data-text-scale="xlarge"] { --fs-mult: 1.24; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1,h2,h3,h4 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0; letter-spacing: -.01em; }
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 84px 0; }
.section-tight { padding: 56px 0; }

/* ===================== utility ===================== */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
/*.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }*/
.lead { color: var(--ink-2); font-size: 1.06rem; }
.muted { color: var(--muted); }

/* section heading block */
.head { max-width: 720px; }
.head h2 { font-size: clamp(2rem, 3.4vw, 2.9rem); margin-top: 14px; }
.head.center { margin: 0 auto; text-align: center; }
.head.center .eyebrow { justify-content: center; }
.head p { margin-top: 16px; }

/* ===================== ornament ===================== */
/* 8-point star (Rub el Hizb) = two overlapping squares */
.star8 { position: relative; display: inline-block; width: 1em; height: 1em; color: var(--gold); }
.star8::before, .star8::after {
  content: ""; position: absolute; inset: 0;
  background: currentColor;
}
.star8::before { clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); }
.star8::after  { clip-path: polygon(15% 15%,85% 15%,85% 85%,15% 85%); transform: rotate(45deg) scale(.78); }

.rule {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--gold);
}
.rule::before, .rule::after {
  content: ""; height: 1.5px; width: clamp(40px, 12vw, 140px);
  background: linear-gradient(90deg, transparent, var(--gold));
}
.rule::after { background: linear-gradient(90deg, var(--gold), transparent); }
.rule .star8 { font-size: 14px; }

/* faint geometric lattice background */
.lattice {
  background-image:
    linear-gradient(45deg, rgba(196,162,76,.06) 25%, transparent 25%, transparent 75%, rgba(196,162,76,.06) 75%),
    linear-gradient(45deg, rgba(196,162,76,.06) 25%, transparent 25%, transparent 75%, rgba(196,162,76,.06) 75%);
  background-size: 34px 34px;
  background-position: 0 0, 17px 17px;
}

/* ===================== buttons ===================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: .98rem; letter-spacing: .01em;
  padding: 15px 26px; min-height: 52px; border-radius: var(--r-pill);
  border: 1.5px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: var(--sh-gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-700); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--hairline); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-deep); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(226,201,130,.45); }
.btn-ghost-light:hover { border-color: var(--gold); color: var(--gold-light); }
.btn .lucide { width: 20px; height: 20px; }

/* marketplace mini buttons */
.mkt { display: flex; flex-wrap: wrap; gap: 8px; }
.mkt-btn {
  display: inline-flex; align-items: center; gap: 8px; flex: 1 1 auto;
  justify-content: center;
  font-weight: 700; font-size: .9rem; padding: 12px 14px; min-height: 46px;
  border-radius: var(--r-pill); color: #fff; border: 1.5px solid rgba(255,255,255,.25); transition: filter .18s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
}
.mkt-btn:hover { filter: brightness(1.12); box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.mkt-btn:active { transform: translateY(1px); }
.mkt-btn .lucide { width: 17px; height: 17px; }
.mkt-shopee   { background: var(--shopee); }
.mkt-tokopedia{ background: var(--tokopedia); }
.mkt-tiktok   { background: var(--tiktok); }
.mkt-wa       { background: var(--whatsapp); }
.mkt-more     { background: var(--cream-2); color: var(--navy); border: 1.5px solid var(--hairline); }
.hmkt-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 320px; align-items: center; justify-items: center; }
.foot-top .hmkt-logos { grid-template-columns: 1fr 1fr; max-width: 320px; gap: 4px; align-items: center; justify-items: center; }
.mkt-logo-img { height: 44px; width: 100%; object-fit: contain; cursor: pointer; transition: transform .2s ease, filter .2s ease, box-shadow .2s ease; opacity: .85; background: #fff; padding: 12px 16px; border-radius: 10px; display: block; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.mkt-logo-img:hover { transform: scale(1.08); opacity: 1; box-shadow: 0 4px 12px rgba(0,0,0,.18); }

/* ===================== chips / badges ===================== */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .8rem; font-weight: 700; padding: 6px 13px; border-radius: var(--r-pill);
  background: var(--gold-tint); color: var(--gold-deep); border: 1px solid var(--gold-soft);
}
.chip .lucide { width: 15px; height: 15px; }
.chip-light { background: var(--cream-2); color: var(--ink-2); border-color: var(--hairline); }

.badge-saudi {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .49rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  padding: 6px 10px 6px 9px; border-radius: var(--r-pill);
  background: linear-gradient(180deg, #fff, #FBF4DF);
  color: var(--navy); border: 1.5px solid var(--gold); box-shadow: 0 6px 16px rgba(168,132,47,.22);
}
.badge-saudi .star8 { width: 10px; height: 10px; }

/* ===================== image placeholder ===================== */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, rgba(18,46,85,.05) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #EDE7D8, #E3DAC4);
  display: flex; align-items: flex-end; justify-content: flex-start;
}
/* .ph::after {
  content: attr(data-label);
  font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--navy); background: rgba(255,255,255,.78); backdrop-filter: blur(2px);
  padding: 5px 10px; margin: 10px; border-radius: 6px; border: 1px solid var(--hairline);
} */
.ph-navy {
  background:
    repeating-linear-gradient(135deg, rgba(226,201,130,.10) 0 2px, transparent 2px 11px),
    linear-gradient(160deg, #1A3A6B, #122E55);
  background-color: #16335f;
}
.ph-navy::after { color: var(--navy); }

/* ===================== card primitives ===================== */
.card {
  background: var(--paper); border: 1px solid var(--hairline-2); border-radius: var(--r-lg);
  box-shadow: var(--sh-sm); overflow: hidden;
}

/* Product title link + detail button */
.prod-title-link { color: inherit; text-decoration: none; transition: color .15s; }
.prod-title-link:hover { color: var(--gold-deep); }
.detail-link { display:inline-flex; align-items:center; gap:6px; color:var(--gold-deep); font-weight:700; font-size:.88rem; text-decoration:none; transition:gap .15s; margin-bottom:4px; }
.detail-link:hover { gap:10px; }
.detail-link .lucide { width:14px; height:14px; }

/* ============ Discount badge + Rating row (shared) ============ */
.disc-badge {
  position: absolute; top: 12px; right: 12px; z-index: 1;
  background: #E53935; color: #fff;
  font-weight: 800; font-size: .55rem; letter-spacing: .02em;
  padding: 5px 9px; border-radius: var(--r-sm);
  box-shadow: 0 4px 12px rgba(229,57,53,.3);
  font-family: var(--sans);
}
.rating-row {
  display: flex; align-items: center; gap: 6px;
  margin-top: 6px; font-size: .88rem; font-family: var(--sans);
}
.rating-row .lucide { width: 15px; height: 15px; color: var(--gold); fill: var(--gold); }
.rating-row .num { color: var(--navy); font-weight: 800; }
.rating-row .lbl { display: none; }
.rating-row .sep { display: none; }
.wt-inline {
  color: var(--gold-deep); font-weight: 800; font-size: .78rem; letter-spacing: .01em;
  border-left: 1.5px solid var(--hairline); padding-left: 8px; margin-left: 2px;
}

/* ===================== site footer (shared) ===================== */
footer.site { background: var(--navy); color: #9FB1CC; position: relative; overflow: hidden; }
footer.site::before {
  content: "";
  position: absolute; inset: 0;
  background: url('assets/img/pattern-oleh-oleh.png') repeat;
  background-size: 320px 320px;
  mix-blend-mode: screen;
  opacity: .09;
  pointer-events: none;
  z-index: 0;
}
footer.site > * { position: relative; z-index: 1; }

/* ── TOP ZONE ─────────────────────────── */
.foot-top { padding: 68px 0 52px; border-bottom: 1px solid var(--navy-line); }
.foot-top-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 52px; align-items: start; }
.foot-masthead { font-family: var(--serif); font-weight: 800; color: #fff; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1.0; letter-spacing: -.025em; display: block; margin-bottom: 18px; }
.foot-brand-desc { font-size: .9rem; color: #5A7090; line-height: 1.7; max-width: 26ch; }
.foot-mkt { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.foot-col-head { font-family: var(--sans); font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 14px; }
.foot-nav-col { display: flex; flex-direction: column; }
.foot-nav-group { margin-bottom: 28px; }
.foot-nav-group:last-child { margin-bottom: 0; }
footer.site a { display: block; padding: 5px 0; color: #9FB1CC; font-size: .92rem; transition: color .15s; }
footer.site a:hover { color: var(--gold-light); }
.foot-big-nav { display: flex; flex-direction: column; }
.foot-big-link { font-family: var(--serif); font-size: 1.38rem; font-weight: 700; color: #fff; padding: 4px 0; line-height: 1.2; transition: color .15s; }
.foot-big-link:hover { color: var(--gold-light); }
.foot-sub-row { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--navy-line); flex-wrap: wrap; }
.foot-sub-row a { font-size: .86rem; color: #5A7090; padding: 0; display: inline; }
.foot-sub-row a:hover { color: var(--gold-light); }

/* ── FEATURED ZONE ────────────────────── */
.foot-featured { background: var(--navy-deep); padding: 52px 0; }
.foot-feat-grid { display: grid; grid-template-columns: 1fr 1.1fr 0.85fr; gap: 40px; align-items: center; }
.foot-feat-img { aspect-ratio: 4/3; border-radius: var(--r-lg); }
.foot-feat-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 10px; }
.foot-feat-title { font-family: var(--serif); font-size: clamp(1.7rem, 2.6vw, 2.4rem); color: #fff; line-height: 1.1; margin-bottom: 12px; }
.foot-feat-desc { font-size: .9rem; color: #5A7090; line-height: 1.7; margin-bottom: 22px; }
.foot-stock-head { font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 14px; }
.foot-stock-link { display: block; padding: 8px 0; color: #9FB1CC; font-size: .92rem; border-bottom: 1px solid var(--navy-line); transition: color .15s; }
.foot-stock-link:last-of-type { border-bottom: none; }
.foot-stock-link:hover { color: var(--gold-light); }
.foot-stock-all { display: inline-block; margin-top: 16px; font-size: .84rem; font-weight: 700; color: var(--gold-deep); padding: 0; }
.foot-stock-all:hover { color: var(--gold-light); }

/* ── FOOT BAR ─────────────────────────── */
.foot-bar { padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: #3A5070; }

/* ===================== floating whatsapp button ===================== */
.float-wa {
  position: fixed; bottom: 28px; right: 28px; z-index: 40;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(31,168,85,.3);
  transition: transform .18s ease, box-shadow .2s ease;
  text-decoration: none; border: none; cursor: pointer;
}
.float-wa:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(31,168,85,.45); }
.float-wa:active { transform: scale(0.95); }
.float-wa .lucide { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .foot-top-grid { grid-template-columns: 1fr 1fr; }
  .foot-feat-grid { grid-template-columns: 1fr 1fr; }
  .foot-feat-img { display: none; }
  .float-wa { bottom: 20px; right: 20px; width: 52px; height: 52px; }
  .float-wa .lucide { width: 24px; height: 24px; }
}
@media (max-width: 640px) {
  .foot-top-grid, .foot-feat-grid { grid-template-columns: 1fr; }
}
