/* ============================================================
   NEXTTREND CHILD THEME — main.css
   Design tokens + base + buttons + glass cards + pills + nav
   Gradient: #A855F7 → #6D28D9 | Ink: #1A1523 | Page bg: #E9E7F0
   Fonts: Manrope (UI/body) | Sora (display/headings)
   ============================================================ */

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

:root {
  --nt-purple-light: #A855F7;
  --nt-purple-dark:  #6D28D9;
  --nt-gradient:     linear-gradient(135deg, var(--nt-purple-light) 0%, var(--nt-purple-dark) 100%);
  --nt-ink:          #1A1523;
  --nt-ink-soft:     rgba(26, 21, 35, 0.65);
  --nt-ink-faint:    rgba(26, 21, 35, 0.42);
  --nt-bg:           #E9E7F0;
  --nt-white:        #FFFFFF;

  --nt-glass-bg:      rgba(255, 255, 255, 0.55);
  --nt-glass-border:  rgba(255, 255, 255, 0.7);
  --nt-glass-shadow:  rgba(26, 21, 35, 0.06) 0px 20px 60px;
  --nt-card-shadow:   rgba(26, 21, 35, 0.08) 0px 12px 30px;

  --nt-btn-shadow:    rgba(124, 58, 237, 0.35) 0px 8px 22px;
  --nt-pill-bg:       rgba(124, 58, 237, 0.08);
  --nt-pill-border:   rgba(124, 58, 237, 0.12);

  --nt-radius-card: 32px;
  --nt-radius-btn:  14px;
  --nt-radius-pill: 99px;

  --f-body:    'Manrope', system-ui, sans-serif;
  --f-display: 'Sora', sans-serif;
}

html { scroll-behavior: smooth; }

body.nexttrend-theme {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--nt-ink);
  background: radial-gradient(130% 90% at 0% 0%, #F3EEFA 0%, #ECEAF2 45%, var(--nt-bg) 100%);
  overflow-x: hidden;
}

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

.nt-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HEADINGS ─────────────────────────────────────────────── */
.nt-h1, .nt-h2, .nt-h3, .nt-logo {
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.2px;
  margin: 0;
}
.nt-h1 { font-size: 32px; line-height: 1.15; }
.nt-h2 { font-size: 22px; line-height: 1.25; }
.nt-h3 { font-size: 17px; line-height: 1.3; }

.nt-eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  letter-spacing: 3.5px;
  color: var(--nt-ink-faint);
  text-transform: uppercase;
  font-weight: 700;
}

/* ── BUTTONS ──────────────────────────────────────────────── */
.nt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font-family: var(--f-body);
  font-weight: 700;
  font-size: 16px;
  height: 56px;
  padding: 0 22px;
  border-radius: var(--nt-radius-btn);
  letter-spacing: -0.2px;
  transition: transform 0.12s ease, box-shadow 0.2s ease;
  text-align: center;
}
.nt-btn:active { transform: scale(0.98); }

.nt-btn--primary {
  background: var(--nt-gradient);
  color: var(--nt-white);
  box-shadow: var(--nt-btn-shadow);
}
.nt-btn--primary:hover { box-shadow: rgba(124, 58, 237, 0.45) 0px 10px 26px; }

.nt-btn--secondary {
  height: 50px;
  background: var(--nt-white);
  color: #6B6478;
  border: 1.5px solid rgba(26, 21, 35, 0.08);
}

.nt-btn--block { width: 100%; }

/* ── GLASS CARD ───────────────────────────────────────────── */
.nt-glass {
  background: var(--nt-glass-bg);
  border: 1px solid var(--nt-glass-border);
  border-radius: var(--nt-radius-card);
  box-shadow: var(--nt-glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nt-card {
  background: var(--nt-white);
  border-radius: 20px;
  box-shadow: var(--nt-card-shadow);
}

/* ── PILL / BADGE ─────────────────────────────────────────── */
.nt-pill {
  display: inline-flex;
  align-items: center;
  font-family: var(--f-body);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--nt-purple-dark);
  background: var(--nt-pill-bg);
  border: 1px solid var(--nt-pill-border);
  border-radius: var(--nt-radius-pill);
  padding: 8px 14px;
  white-space: nowrap;
}

.nt-badge-gradient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--nt-gradient);
  color: var(--nt-white);
  padding: 3px 7px;
  border-radius: 6px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
}

.nt-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--nt-ink);
}
.nt-rating::before {
  content: '★';
  color: #FFB020;
}

/* ── TOP NAV (desktop / tablet, above mobile-nav breakpoint) ─ */
.nt-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: 0.5px solid rgba(26, 21, 35, 0.07);
}
.nt-topnav__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nt-topnav__logo {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 20px;
  background: var(--nt-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nt-topnav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nt-topnav__links a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--nt-ink-soft);
}
.nt-topnav__links a:hover,
.nt-topnav__links a.is-active { color: var(--nt-purple-dark); }

.nt-topnav__actions { display: flex; align-items: center; gap: 14px; }
.nt-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.08);
  color: var(--nt-purple-dark);
}
.nt-icon-btn__count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  border-radius: 99px;
  background: var(--nt-gradient);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ── SECTION HEADER (used by shop/home rows) ─────────────── */
.nt-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}
.nt-section-head a { font-size: 13.5px; font-weight: 700; color: var(--nt-purple-dark); }

/* ── FORM FIELDS (shared by login/checkout/search) ─────────── */
.nt-field { margin-bottom: 16px; }
.nt-field label {
  display: block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--nt-ink-faint);
  margin-bottom: 6px;
}
.nt-field input,
.nt-field select,
.nt-field textarea {
  width: 100%;
  height: 50px;
  border-radius: var(--nt-radius-btn);
  border: 1.5px solid rgba(26, 21, 35, 0.08);
  background: var(--nt-white);
  padding: 0 16px;
  font-family: var(--f-body);
  font-size: 15px;
  color: var(--nt-ink);
}
.nt-field textarea { height: auto; padding: 12px 16px; }
.nt-field input:focus,
.nt-field select:focus,
.nt-field textarea:focus {
  outline: none;
  border-color: var(--nt-purple-light);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
}

/* Mobile-first content spacing; desktop nav takes over above the
   bottom-nav breakpoint defined in mobile-nav.css */
main.nt-main { padding-bottom: 40px; }

/* ── HOME SCREEN (nested inside .nt-container, so no extra
   max-width/padding here — just vertical rhythm) ────────────── */
.nt-home-greeting { padding-top: 24px; }
.nt-home-sub { color: var(--nt-ink-soft); font-size: 14px; margin: 6px 0 0; }

.nt-search {
  display: flex;
  align-items: center;
  height: 52px;
  margin: 20px 0;
  padding: 0 18px;
}
.nt-search input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--f-body);
  font-size: 14.5px;
  color: var(--nt-ink);
}
.nt-search input:focus { outline: none; }

.nt-promo-scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin: 0 0 28px;
  scrollbar-width: none;
}
.nt-promo-scroller::-webkit-scrollbar { display: none; }
.nt-promo-card {
  flex-shrink: 0;
  width: 260px;
  padding: 22px;
  border-radius: 24px;
  background: var(--nt-gradient);
  color: #fff;
}
.nt-promo-card .nt-eyebrow { color: rgba(255, 255, 255, 0.75); }
.nt-promo-card .nt-h2 { color: #fff; margin: 8px 0 6px; }
.nt-promo-card p { font-size: 13px; color: rgba(255, 255, 255, 0.85); margin: 0 0 16px; }
.nt-promo-card .nt-btn--secondary { height: 40px; padding: 0 16px; font-size: 13px; }

.nt-trending { margin-top: 8px; }
