/* Homepage component styles — plain CSS, reliable, scoped to [data-home].
   Extracted from Index.php. Relies on the CSS custom properties emitted by the
   inline <style type="text/tailwindcss"> @theme block (var(--color-*) etc.). */

/* Compatibility layer — the shared _hdr_auth.php partial was written for the
   _head_2026 token namespace (--color-bone/carbon/vermilion/stone + .btn).
   Alias those onto the homepage's own tokens so the Sign-in button and the
   logged-in avatar/shield render correctly here too. */
[data-home] {
  --color-bone:       var(--color-bg);
  --color-bone-2:     var(--color-surface);
  --color-bone-3:     var(--color-surface-2);
  --color-carbon:     var(--color-ink);
  --color-carbon-2:   var(--color-ink-2);
  --color-vermilion:  var(--color-brand);
  --color-vermilion-2:var(--color-brand-2);
  --color-stone:      var(--color-muted);
  --color-stone-2:    var(--color-muted-2);
}
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer;
       font-family: var(--font-sans); font-weight:600; font-size:14px; line-height:1; border-radius:10px;
       padding:12px 22px; white-space:nowrap; text-decoration:none;
       transition: background .18s, color .18s, border-color .18s, box-shadow .2s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn-dark      { background: var(--color-ink); color: var(--color-bg); }
.btn-dark:hover{ background: var(--color-ink-2); }
.btn-primary   { background: var(--color-brand); color:#fff; }
.btn-primary:hover { background: var(--color-brand-2); }
.btn-secondary { background: transparent; color: var(--color-ink); border:1px solid var(--color-line-2); }
.btn-secondary:hover { border-color: var(--color-ink); background: var(--color-surface); }

.hp-container { width:100%; max-width:1240px; margin-left:auto; margin-right:auto;
                padding-left: clamp(16px,4vw,40px); padding-right: clamp(16px,4vw,40px); }
.hp-display { font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.hp-eyebrow { font-family: var(--font-mono); font-size:12px; font-weight:500; text-transform:uppercase;
              letter-spacing:.16em; color: var(--color-brand); }
.hp-tag { font-family: var(--font-mono); font-size:11px; font-weight:500; text-transform:uppercase;
          letter-spacing:.1em; color: var(--color-muted); }

.hp-btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; border:0; cursor:pointer;
          font-family: var(--font-sans); font-weight:600; font-size:14px; line-height:1; border-radius:10px;
          padding:13px 22px; white-space:nowrap;
          transition: background .18s, color .18s, border-color .18s, box-shadow .2s, transform .12s; }
.hp-btn:active { transform: scale(.98); }
.hp-btn--brand { background: var(--color-brand); color:#fff;
                 box-shadow: 0 1px 2px rgba(79,70,229,.25), 0 4px 14px -4px rgba(79,70,229,.45); }
.hp-btn--brand:hover { background: var(--color-brand-2); box-shadow: 0 6px 20px -4px rgba(79,70,229,.55); }
.hp-btn--dark { background: var(--color-ink); color: var(--color-bg); }
.hp-btn--dark:hover { background: var(--color-ink-2); }
.hp-btn--ghost { background: transparent; color: var(--color-ink); border:1px solid var(--color-line-2); }
.hp-btn--ghost:hover { border-color: var(--color-ink); background: var(--color-surface); }
.hp-btn--lg { padding:16px 30px; font-size:15px; }

.hp-card { background: var(--color-bg); border:1px solid var(--color-line); border-radius:16px;
           transition: box-shadow .28s cubic-bezier(.16,1,.3,1), transform .28s cubic-bezier(.16,1,.3,1), border-color .28s; }
.hp-card:hover { transform: translateY(-4px); border-color: var(--color-line-2);
                 box-shadow: 0 20px 40px -16px rgba(15,23,42,.18); }

.hp-reveal { opacity:0; transform: translate3d(0,26px,0);
             transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1); }
.hp-reveal.is-revealed { opacity:1; transform:none; }
.hp-stagger > * { opacity:0; transform: translate3d(0,18px,0); }
.hp-stagger.is-revealed > * { animation: hp-fade-up .55s cubic-bezier(.16,1,.3,1) both; }
.hp-stagger.is-revealed > *:nth-child(1){animation-delay:.0s}
.hp-stagger.is-revealed > *:nth-child(2){animation-delay:.05s}
.hp-stagger.is-revealed > *:nth-child(3){animation-delay:.10s}
.hp-stagger.is-revealed > *:nth-child(4){animation-delay:.15s}
.hp-stagger.is-revealed > *:nth-child(5){animation-delay:.20s}
.hp-stagger.is-revealed > *:nth-child(6){animation-delay:.25s}
.hp-stagger.is-revealed > *:nth-child(7){animation-delay:.30s}
.hp-stagger.is-revealed > *:nth-child(8){animation-delay:.35s}

/* count-up stat numbers — tabular figures stop the width jitter while animating */
.hp-count { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

/* Hero backdrop — soft brand glow + subtle grid */
.hp-hero { position:relative; overflow:hidden;
           background:
             radial-gradient(900px 380px at 50% -120px, color-mix(in srgb, var(--color-brand) 14%, transparent), transparent 70%),
             var(--color-surface); }
.hp-hero::before { content:''; position:absolute; inset:0; pointer-events:none; opacity:.5;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(700px 320px at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 320px at 50% 30%, #000 0%, transparent 75%); }

.hp-nav { position:sticky; top:0; z-index:50; background: color-mix(in srgb, var(--color-bg) 88%, transparent);
          backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
          border-bottom:1px solid var(--color-line); }
.hp-navlink { padding:8px 14px; border-radius:9px; font-size:14px; font-weight:500; color:var(--color-muted);
              transition: color .18s, background .18s; }
.hp-navlink:hover { color:var(--color-ink); background:var(--color-surface); }
.hp-iconbtn { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; border-radius:10px;
              color:var(--color-muted); background:transparent; border:0; cursor:pointer; position:relative;
              transition: color .18s, background .18s; }
.hp-iconbtn:hover { color:var(--color-ink); background:var(--color-surface); }
.hp-badge { position:absolute; top:2px; right:2px; min-width:16px; height:16px; padding:0 4px; border-radius:999px;
            background:var(--color-brand); color:#fff; font-size:10px; font-weight:700; line-height:16px; text-align:center; }

:focus-visible { outline:2px solid var(--color-brand); outline-offset:2px; }

/* Anchor targets clear the 68px sticky nav (no hiding under it) */
[data-home] [id] { scroll-margin-top: 88px; }

/* Consistent vertical rhythm between sections */
.hp-section { padding-top: clamp(64px, 8vw, 112px); padding-bottom: clamp(64px, 8vw, 112px); }
.hp-section--tight { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(48px, 6vw, 80px); }
/* A band sitting on the surface tone, fenced with hairline borders */
.hp-band { background: var(--color-surface); border-top: 1px solid var(--color-line); border-bottom: 1px solid var(--color-line); }

@media (prefers-reduced-motion: reduce){
  .hp-reveal,.hp-stagger>*{opacity:1!important;transform:none!important;animation:none!important}
  html{scroll-behavior:auto}
}

/* ============================================================
   Mobile menu + responsive guards
   ============================================================ */

/* never allow sideways scroll from off-canvas hero decorations / drawers */
html { overflow-x: hidden; }

/* on small phones the nav shows just the "DP" mark so the icons always fit */
@media (max-width: 459px) { .hp-nav__wordmark { display: none; } }

/* mobile slide-in menu (uses the shared .overlay / --right drawer shell) */
.hp-menu__panel { display: flex; flex-direction: column; width: min(380px, 100%); padding: 18px 18px 22px; overflow-y: auto; }
.hp-menu__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.hp-menu__nav { display: flex; flex-direction: column; gap: 2px; }
.hp-menu__nav a {
  display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px;
  font-size: 15px; font-weight: 500; color: var(--color-ink); text-decoration: none;
  transition: background .15s, color .15s;
}
.hp-menu__nav a:hover { background: var(--color-surface); }
.hp-menu__nav a svg { width: 18px; height: 18px; color: var(--color-muted); }
.hp-menu__logout, .hp-menu__logout svg { color: #dc2626 !important; }
.hp-menu__div { height: 1px; background: var(--color-line); margin: 12px 0; }
.hp-menu__user { display: flex; align-items: center; gap: 12px; padding: 4px 12px 14px; }
.hp-menu__avatar {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: 16px;
}
.hp-menu__cta { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }
.hp-menu__cta .hp-btn { width: 100%; }
.hp-menu__theme {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px; padding: 12px;
  border-radius: 11px; border: 1px solid var(--color-line); background: transparent;
  color: var(--color-ink); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.hp-menu__theme:hover { background: var(--color-surface); border-color: var(--color-line-2); }
.hp-menu__theme svg { width: 18px; height: 18px; }

/* ---- Browse by Country ---- */
.ctry-search { display: flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  border: 1px solid var(--color-line); background: var(--color-bg); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.ctry-search svg, .ctry-search i { color: var(--color-muted); flex: 0 0 auto; }
.ctry-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; color: var(--color-ink); font-family: inherit; }
.ctry-search input::placeholder { color: var(--color-muted-2); }

.ctry-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (min-width: 640px)  { .ctry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .ctry-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1280px) { .ctry-grid { grid-template-columns: repeat(6, 1fr); } }

.ctry-card { display: flex; flex-direction: column; border: 1px solid var(--color-line); border-radius: 16px;
  overflow: hidden; background: var(--color-bg); text-decoration: none;
  transition: transform .18s, box-shadow .2s, border-color .18s; }
.ctry-card:hover { transform: translateY(-3px); border-color: var(--color-line-2); box-shadow: 0 14px 30px -16px rgba(15,23,42,.3); }
.ctry-card__flag { aspect-ratio: 4 / 3; background: var(--color-surface-2); display: block; }
.ctry-card__flag img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ctry-card__name { padding: 12px 14px 0; font-weight: 600; font-size: 15px; color: var(--color-ink); line-height: 1.25; }
.ctry-card__count { padding: 3px 14px 14px; font-size: 13px; color: var(--color-muted); }

/* ---- active nav link (current page) ---- */
.hp-navlink { white-space: nowrap; }
.hp-navlink--active { color: var(--color-brand) !important; background: color-mix(in srgb, var(--color-brand) 10%, transparent); }

/* ---- legal pages ---- */
.legal-prose h2 { font-family: var(--font-sans); font-weight: 700; font-size: 18px; margin: 28px 0 8px; color: var(--color-ink); }
.legal-prose h2:first-child { margin-top: 0; }
.legal-prose p { font-size: 15px; line-height: 1.72; color: var(--color-muted); margin: 0 0 10px; }
.legal-prose .legal-note { margin-top: 30px; padding: 14px 16px; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-line); font-size: 13px; }

/* ---- testimonial carousel ---- */
.t-fade { transition: opacity .35s ease; }
.t-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--color-line); background: var(--color-surface-2); flex: 0 0 auto; }
.t-dots { display: flex; justify-content: center; gap: 8px; margin-top: 30px; }
.t-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: var(--color-line-2); cursor: pointer; transition: background .2s, transform .2s; }
.t-dot:hover { background: var(--color-muted); }
.t-dot.is-active { background: var(--color-brand); transform: scale(1.35); }

/* ---- floating contact buttons (Instagram / WhatsApp) ---- */
.dp-fab { position: fixed; right: clamp(14px, 3vw, 26px); bottom: clamp(14px, 3vw, 26px); z-index: 900; display: flex; flex-direction: column; gap: 12px; }
.dp-fab__btn { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #fff; font-size: 25px; box-shadow: 0 10px 26px -8px rgba(0,0,0,.4); text-decoration: none; transition: transform .18s, box-shadow .2s; }
.dp-fab__btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 34px -8px rgba(0,0,0,.5); color: #fff; }
.dp-fab__btn:active { transform: scale(.95); }
.dp-fab__btn--wa { background: #25D366; }
.dp-fab__btn--tg { background: #229ED9; }
.dp-fab__btn--ig { background: linear-gradient(45deg, #F58529 0%, #DD2A7B 50%, #8134AF 80%, #515BD4 100%); }
@media (max-width: 480px) { .dp-fab__btn { width: 48px; height: 48px; font-size: 22px; } }

/* ---- full cart page ---- */
.cartp-item { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--color-line); border-radius: 14px; margin-bottom: 12px; background: var(--color-bg); }
.cartp-item__img { width: 88px; height: 66px; flex: 0 0 auto; border-radius: 10px; background: var(--color-surface-2) center / cover no-repeat; display: block; }
.cartp-item__info { flex: 1; min-width: 0; }
.cartp-item__title { display: block; font-weight: 600; font-size: 15px; color: var(--color-ink); text-decoration: none; line-height: 1.3; }
.cartp-item__title:hover { color: var(--color-brand); }
.cartp-item__tag { font-size: 13px; color: var(--color-muted); }
.cartp-item__price { font-weight: 700; font-size: 16px; white-space: nowrap; }
.cartp-item__remove { flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; border: 1px solid var(--color-line); background: transparent; color: var(--color-muted); cursor: pointer; transition: color .15s, border-color .15s, background .15s; }
.cartp-item__remove:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }
.cartp-item__remove svg { width: 17px; height: 17px; }
.cartp-empty { text-align: center; padding: 56px 24px; border: 1px dashed var(--color-line-2); border-radius: 16px; }
.cartp-empty svg { width: 40px; height: 40px; color: var(--color-muted-2); margin: 0 auto 10px; }
.cartp-empty p { font-family: var(--font-sans); font-weight: 700; font-size: 18px; color: var(--color-ink); }
.cartp-empty span { display: block; color: var(--color-muted); font-size: 14px; margin-top: 4px; }
