/* ============================================
   NAKTIBALDA — Global Styles
   Light, minimal, Yeezy-style
============================================ */

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

:root {
  --bg: #f5f5f3;
  --bg-soft: #efedea;
  --bg-card: #f1efec;
  --ink: #111111;
  --ink-soft: #767676;
  --ink-muted: #aaaaaa;
  --ink-ghost: #d4d4d2;
  --line: #e0ddd8;
  --line-soft: #ebe8e3;
  --accent: #111111;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: 0.01em;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  letter-spacing: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  padding: 20px 28px;
  background: var(--bg);
  height: 56px;
}

.site-logo {
  font-size: 11px;
  letter-spacing: 0.35em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--ink);
}

.site-nav {
  display: flex;
  gap: 32px;
  justify-content: center;
}

.site-nav a {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 400;
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.site-nav a:hover, .site-nav a.active {
  opacity: 1;
}

.site-actions {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
  align-items: center;
}

.site-actions a, .site-actions button {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  opacity: 0.5;
  transition: opacity 0.25s ease;
}

.site-actions a:hover, .site-actions button:hover {
  opacity: 1;
}

/* ============ MAIN ============ */
main {
  padding-top: 56px;
}

/* Pages that need full-viewport-height main (e.g. cart when empty) can opt in */
.main-fullheight {
  min-height: 100vh;
}

/* ============ MARQUEE / PROMO BAR ============ */

.promo-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}

.promo-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  will-change: transform;
}

.promo-item {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  padding: 0 32px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 32px;
}

.promo-item::after {
  content: '◆';
  color: var(--bg);
  opacity: 0.4;
  font-size: 8px;
  margin-left: 32px;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.promo-bar:hover .promo-track {
  animation-play-state: paused;
}

/* When promo bar is present, push header and main content below it */
body.has-promo .site-header {
  top: 36px;
}

body.has-promo main,
body.has-promo .main {
  padding-top: 36px;
}

/* ============ NEWSLETTER CAPTURE ============ */

.newsletter {
  padding: 64px 28px;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
}

.newsletter-inner {
  max-width: 640px;
  margin: 0 auto;
}

.newsletter-eyebrow {
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, 0.5);
  margin-bottom: 18px;
}

.newsletter-headline {
  font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--bg);
  font-weight: 300;
  line-height: 1.25;
  margin-bottom: 14px;
}

.newsletter-headline em {
  font-style: italic;
  color: rgba(245, 245, 243, 0.6);
}

.newsletter-sub {
  font-size: 12px;
  line-height: 1.55;
  color: rgba(245, 245, 243, 0.6);
  letter-spacing: 0.02em;
  font-weight: 300;
  max-width: 440px;
  margin: 0 auto 28px;
}

.newsletter-form {
  display: flex;
  max-width: 440px;
  margin: 0 auto;
  gap: 0;
  border-bottom: 1px solid rgba(245, 245, 243, 0.35);
  transition: border-color 0.3s ease;
}

.newsletter-form:focus-within {
  border-bottom-color: var(--bg);
}

.newsletter-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 0;
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--bg);
  outline: none;
  text-transform: uppercase;
  caret-color: var(--bg);
}

.newsletter-input::placeholder {
  color: rgba(245, 245, 243, 0.4);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.newsletter-input:-webkit-autofill,
.newsletter-input:-webkit-autofill:hover,
.newsletter-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bg);
  -webkit-box-shadow: 0 0 0 1000px var(--ink) inset;
  transition: background-color 9999s ease-in-out 0s;
}

.newsletter-submit {
  background: none;
  border: none;
  padding: 10px 4px 10px 14px;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.newsletter-submit:hover {
  opacity: 0.6;
}

.newsletter-note {
  margin-top: 14px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(245, 245, 243, 0.35);
}

.newsletter-success {
  display: none;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--bg);
  margin-top: 10px;
}

.newsletter.submitted .newsletter-form {
  display: none;
}

.newsletter.submitted .newsletter-success {
  display: block;
}

.newsletter.submitted .newsletter-note {
  display: none;
}

@media (max-width: 768px) {
  .newsletter { padding: 48px 20px; }
  .newsletter-sub { font-size: 11px; }
}

/* ============ FOOTER ============ */
.site-footer {
  padding: 64px 28px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.footer-tagline {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h5 {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: 12px;
  color: var(--ink);
  opacity: 0.7;
  transition: opacity 0.25s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-payments {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
}

.pay-card {
  display: inline-block;
  height: 28px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s ease;
  flex-shrink: 0;
}

.pay-card:hover {
  opacity: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .site-header {
    padding: 16px 20px;
    grid-template-columns: 1fr auto 1fr;
  }
  .site-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .site-footer {
    padding: 60px 20px 20px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
  }
}


/* ============ REVIEWS (product page) ============ */
.reviews {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px 64px;
  border-top: 1px solid var(--line);
}

.reviews-eyebrow {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-muted, rgba(26,24,22,0.5));
  margin-bottom: 24px;
}

.reviews-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 32px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
  gap: 24px;
}

.reviews-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reviews-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.reviews-score-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--ink);
}

.stars {
  display: inline-flex;
  gap: 3px;
}

.star {
  width: 14px;
  height: 14px;
  display: inline-block;
  background: var(--ink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.star.empty { background: rgba(26, 24, 22, 0.15); }
.star.large { width: 18px; height: 18px; }

.reviews-count {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted, rgba(26,24,22,0.5));
}

.reviews-write {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  padding: 14px 22px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 400;
  transition: all 0.25s ease;
}

.reviews-write:hover {
  background: var(--ink);
  color: var(--bg);
}

.review-item {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
}

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-author {
  font-size: 13px;
  font-weight: 400;
  color: var(--ink);
}

.review-date {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted, rgba(26,24,22,0.5));
}

.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft, #4a463f);
}

.review-verified::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
}

.review-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-title {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--ink);
  margin-top: 6px;
}

.review-text {
  font-size: 13px;
  color: var(--ink-soft, #4a463f);
  line-height: 1.7;
  max-width: 62ch;
}

.review-size {
  margin-top: 10px;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-muted, rgba(26,24,22,0.5));
}

.reviews-pagination {
  display: flex;
  justify-content: center;
  padding-top: 40px;
}

.reviews-load-more {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 14px 0;
  position: relative;
  font-weight: 400;
}

.reviews-load-more::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 1px;
  background: var(--ink);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.reviews-load-more:hover::after { transform: scaleX(0.3); }

@media (max-width: 640px) {
  .review-item { grid-template-columns: 1fr; gap: 16px; }
  .reviews-header { flex-direction: column; align-items: flex-start; }
  .reviews { padding: 72px 20px 48px; }
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher {
  position: relative;
  display: inline-block;
  margin-right: 20px;
}

.lang-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s ease;
}

.lang-btn:hover { opacity: 0.6; }

.lang-flag {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  flex-shrink: 0;
}

.lang-caret {
  font-size: 9px;
  opacity: 0.6;
  transform: translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--bg, #f5f5f3);
  border: 1px solid var(--line, rgba(0,0,0,0.1));
  min-width: 220px;
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.lang-menu[hidden] { display: none; }

.lang-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  transition: background 0.15s ease;
  position: relative;
}

.lang-menu li:hover {
  background: rgba(0, 0, 0, 0.04);
}

.lang-menu li.active {
  background: rgba(0, 0, 0, 0.03);
}

.lang-menu li.active .lang-code {
  font-weight: 500;
}

.lang-menu li.active::after {
  content: '·';
  position: absolute;
  right: 18px;
  font-size: 18px;
  line-height: 0;
  font-weight: 700;
  color: var(--ink);
}

.lang-code {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  min-width: 24px;
  color: var(--ink);
}

.lang-name {
  font-size: 12px;
  color: var(--ink-soft, #4a463f);
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .lang-switcher { margin-right: 14px; }
  .lang-btn { font-size: 10px; gap: 6px; }
  .lang-flag { width: 18px; height: 12px; }
  .lang-menu { right: -12px; min-width: 200px; }
}

.lang-draft {
  margin-left: auto;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-whisper, rgba(0,0,0,0.3));
  font-style: italic;
}

/* ============ CURRENCY SWITCHER ============ */
.currency-switcher {
  position: relative;
  display: inline-block;
  margin-right: 16px;
}

.cur-btn {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  padding: 6px 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s ease;
}

.cur-btn:hover { opacity: 0.6; }

.cur-caret {
  font-size: 9px;
  opacity: 0.6;
  transform: translateY(-1px);
}

.cur-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  background: var(--bg, #f5f5f3);
  border: 1px solid var(--line, rgba(0,0,0,0.1));
  min-width: 240px;
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.cur-menu[hidden] { display: none; }

.cur-menu li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 12px;
  color: var(--ink);
  transition: background 0.15s ease;
  position: relative;
}

.cur-menu li:hover { background: rgba(0, 0, 0, 0.04); }
.cur-menu li.active { background: rgba(0, 0, 0, 0.03); }

.cur-code {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  min-width: 32px;
}

.cur-symbol {
  font-size: 12px;
  color: var(--ink-soft, #4a463f);
  min-width: 28px;
}

.cur-name {
  font-size: 12px;
  color: var(--ink-soft, #4a463f);
  letter-spacing: 0.02em;
}

.cur-menu li.active::after {
  content: '·';
  position: absolute;
  right: 18px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

@media (max-width: 768px) {
  .currency-switcher { margin-right: 10px; }
  .cur-btn { font-size: 10px; }
  .cur-menu { right: -12px; min-width: 220px; }
}

/* ============ YEEZY-STYLE NEWSLETTER POPUP ============ */
.yz-nl {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 0 60px 28px;
  z-index: 9000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.yz-nl.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.yz-nl-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 640px;
  padding: 22px 24px 24px;
  font-family: 'JetBrains Mono', 'IBM Plex Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
}

.yz-nl-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 16px;
  font-weight: 400;
}

.yz-nl-form {
  display: block;
}

.yz-nl-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid #000;
  padding: 18px 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #000;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 8px;
  font-weight: 400;
  box-sizing: border-box;
}

.yz-nl-input::placeholder {
  color: #000;
  opacity: 1;
  letter-spacing: 0.18em;
}

.yz-nl-input:focus {
  outline: 1px solid #000;
  outline-offset: -2px;
}

.yz-nl-submit {
  width: 100%;
  background: #000;
  color: #fff;
  border: 1px solid #000;
  padding: 18px 18px;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 0;
}

.yz-nl-submit:hover {
  background: #fff;
  color: #000;
}

/* Close X — sits OUTSIDE the card, top-right of the wrapper */
.yz-nl-close {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  background: transparent;
  border: none;
  color: #000;
  font-family: inherit;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.2s ease;
}

.yz-nl-close:hover { opacity: 0.5; }

/* Success state */
.yz-nl-success {
  display: none;
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #000;
  text-align: center;
  padding: 12px 0 4px;
}

.yz-nl-success-code {
  display: inline-block;
  margin-left: 12px;
  border: 1px solid #000;
  padding: 6px 12px;
  letter-spacing: 0.3em;
  font-weight: 500;
}

.yz-nl.submitted .yz-nl-form,
.yz-nl.submitted .yz-nl-label {
  display: none;
}

.yz-nl.submitted .yz-nl-success {
  display: block;
}

/* Background blur when popup is open */
body.yz-nl-blur main,
body.yz-nl-blur .site-header,
body.yz-nl-blur .site-footer,
body.yz-nl-blur .promo-bar {
  filter: blur(3px);
  transition: filter 0.5s ease;
}

/* The popup itself stays sharp */
body.yz-nl-blur .yz-nl,
body.yz-nl-blur .yz-nl * {
  filter: none;
}

/* Mobile */
@media (max-width: 720px) {
  .yz-nl {
    padding: 0 16px 16px;
  }
  .yz-nl-card {
    padding: 18px 18px 18px;
  }
  .yz-nl-label {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .yz-nl-input,
  .yz-nl-submit {
    padding: 16px 14px;
    font-size: 12px;
  }
  .yz-nl-close {
    font-size: 24px;
    width: 32px;
    height: 32px;
    right: 4px;
  }
}
