/* NULO — Store CSS */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;700&family=JetBrains+Mono:wght@400;700&display=swap');

/* ─── RESET ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'JetBrains Mono', monospace; background: #fff; color: #000; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ─── TOKENS ─────────────────────────────────────── */
:root {
  --black: #000;
  --white: #fff;
  --gray-100: #f5f5f5;
  --gray-200: #e8e8e8;
  --gray-500: #888;
  --mono: 'JetBrains Mono', monospace;
  --sans: 'JetBrains Mono', monospace;
  --header-h: 60px;
  --max-w: 1280px;
  --pad: clamp(16px, 4vw, 48px);
}

/* ─── HEADER ─────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); color: var(--black);
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--gray-200);
}
.header__inner {
  width: 100%; max-width: var(--max-w); margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  gap: 40px;
}
.header__logo img {
  height: 44px; width: auto; display: block;
}
.header__nav {
  display: flex; gap: 24px; align-items: center;
}
.header__nav a { font-size: 0.875rem; opacity: 0.6; transition: opacity .15s; color: var(--black); }
.header__nav a:hover { opacity: 1; }
.header__cart-btn {
  position: relative; color: var(--black);
  font-size: 0.875rem; display: flex; align-items: center; gap: 6px;
}
.cart-count {
  background: var(--black); color: var(--white);
  font-family: var(--mono); font-size: 0.7rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center;
}
.cart-count[data-count="0"] { display: none; }
.menu-toggle {
  display: none; color: var(--black); font-size: 1.25rem;
}

/* ─── FOOTER ─────────────────────────────────────── */
.footer {
  background: var(--black); color: var(--white);
  padding: 40px var(--pad); margin-top: 80px;
  text-align: center;
}
.footer p { font-size: 0.8rem; opacity: 0.5; font-family: var(--mono); }
.footer__shipping {
  font-size: 0.75rem; opacity: 0.4; margin-top: 8px;
}

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block; padding: 12px 28px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.05em;
  transition: background .15s, color .15s;
}
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #222; }
.btn-outline { background: transparent; color: var(--black); border: 2px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }

/* ─── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 560px;
  overflow: hidden;
  display: flex; align-items: center;
}
.hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.82) 0%,
    rgba(0,0,0,0.65) 35%,
    rgba(0,0,0,0.15) 60%,
    rgba(0,0,0,0) 100%
  );
}
.hero__text {
  position: relative; z-index: 2;
  padding: 0 var(--pad);
  max-width: 560px;
  color: var(--white);
}
.hero__tag {
  font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.12em;
  opacity: 0.6; margin-bottom: 16px; color: var(--white);
}
.hero__title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem); font-weight: 700;
  line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 20px; color: var(--white);
}
.hero__sub {
  font-size: 0.95rem; opacity: 0.7; line-height: 1.7;
  margin-bottom: 32px; color: var(--white);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-dark {
  background: var(--white); color: var(--black);
}
.hero .btn-dark:hover { background: #e8e8e8; }

/* ─── SECTION TITLES ─────────────────────────────── */
.section-header {
  max-width: var(--max-w); margin: 0 auto 32px;
  padding: 0 var(--pad);
  display: flex; align-items: baseline; justify-content: space-between;
}
.section-title {
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em;
}
.section-link {
  font-family: var(--mono); font-size: 0.75rem;
  opacity: 0.5; transition: opacity .15s;
}
.section-link:hover { opacity: 1; }

/* ─── PRODUCT GRID ─────────────────────────────── */
.product-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card { display: block; }
.product-card__image {
  aspect-ratio: 3/4; overflow: hidden; background: var(--gray-100);
  margin-bottom: 12px;
}
.product-card__image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-card__image img { transform: scale(1.03); }
.product-card__image-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.75rem; color: var(--gray-500);
}
.product-card__title {
  font-size: 0.9rem; font-weight: 500; margin-bottom: 4px;
}
.product-card__price {
  font-family: var(--mono); font-size: 0.85rem; opacity: 0.6;
}

/* ─── COLLECTION PAGE ───────────────────────────── */
.collection-page {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px var(--pad);
}
.collection-page__title {
  font-size: clamp(1.75rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 8px;
}
.collection-page__count {
  font-family: var(--mono); font-size: 0.75rem; opacity: 0.4;
  margin-bottom: 40px;
}
.collection-filters {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px;
}
.filter-btn {
  padding: 6px 16px; border: 1px solid var(--gray-200);
  font-size: 0.8rem; font-family: var(--mono);
  transition: all .15s;
}
.filter-btn.is-active, .filter-btn:hover {
  background: var(--black); color: var(--white); border-color: var(--black);
}

/* ─── PRODUCT PAGE ──────────────────────────────── */
.product-page {
  max-width: var(--max-w); margin: 0 auto;
  padding: 40px var(--pad);
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.product-gallery {
  overflow: hidden;
  width: 100%;
}
.product-gallery__track {
  display: flex;
  width: 100%;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}
.product-gallery__slide {
  flex: 0 0 100%; width: 100%;
  min-width: 0;
}
.product-gallery__slide img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover;
}
.product-gallery__slide-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: var(--gray-100);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 0.75rem; color: var(--gray-500);
}
.product-gallery__dots {
  display: flex; gap: 8px; margin-top: 12px;
}
.gallery-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gray-200); transition: background .15s;
}
.gallery-dot.is-active { background: var(--black); }
.product-gallery__thumbs {
  display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.thumb {
  width: 64px; height: 80px; object-fit: cover;
  cursor: pointer; opacity: 0.5; transition: opacity .15s;
  border: 2px solid transparent;
}
.thumb.is-active { opacity: 1; border-color: var(--black); }

.product-info { }
.product-breadcrumb {
  font-family: var(--mono); font-size: 0.7rem; opacity: 0.4;
  margin-bottom: 16px;
}
.product-breadcrumb a:hover { opacity: 1; }
.product-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.product-price {
  font-family: var(--mono); font-size: 1.25rem; margin-bottom: 28px;
}

.option-label {
  font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 10px;
}
.option-selected-val { font-weight: 400; opacity: 0.5; }
.option-values { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.option-btn {
  padding: 8px 16px; border: 1px solid var(--gray-200);
  font-size: 0.8rem; transition: all .15s;
}
.option-btn:hover { border-color: var(--black); }
.option-btn.is-selected { background: var(--black); color: var(--white); border-color: var(--black); }

.add-to-cart {
  width: 100%; padding: 16px;
  background: var(--black); color: var(--white);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em;
  transition: background .15s; margin-bottom: 16px;
}
.add-to-cart:hover:not(:disabled) { background: #222; }
.add-to-cart:disabled { opacity: 0.5; cursor: not-allowed; }

.product-shipping-note {
  font-family: var(--mono); font-size: 0.72rem; opacity: 0.4;
  margin-top: 16px; line-height: 1.6;
}
.product-description {
  margin-top: 32px; padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.9rem; line-height: 1.7; opacity: 0.8;
}

/* ─── CART PAGE ─────────────────────────────────── */
.cart-page {
  max-width: 800px; margin: 0 auto;
  padding: 40px var(--pad);
}
.cart-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 40px;
}
.cart-empty { text-align: center; padding: 80px 0; }
.cart-empty p { opacity: 0.5; margin-bottom: 24px; font-family: var(--mono); }

.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto;
  gap: 20px; align-items: start;
  padding: 20px 0; border-bottom: 1px solid var(--gray-200);
}
.cart-item__image {
  width: 88px; height: 110px; object-fit: cover;
}
.cart-item__image-placeholder {
  width: 88px; height: 110px; background: var(--gray-100);
}
.cart-item__title { font-size: 0.9rem; font-weight: 500; margin-bottom: 4px; }
.cart-item__variant { font-size: 0.8rem; opacity: 0.5; margin-bottom: 12px; }
.cart-item__qty {
  display: flex; align-items: center; gap: 12px; margin-bottom: 10px;
}
.qty-btn {
  width: 28px; height: 28px; border: 1px solid var(--gray-200);
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: all .15s;
}
.qty-btn:hover { background: var(--black); color: var(--white); border-color: var(--black); }
.qty-val { font-family: var(--mono); font-size: 0.9rem; min-width: 20px; text-align: center; }
.cart-item__remove {
  font-size: 0.75rem; opacity: 0.4; text-decoration: underline;
  transition: opacity .15s;
}
.cart-item__remove:hover { opacity: 1; }
.cart-item__price { font-family: var(--mono); font-size: 0.95rem; text-align: right; }

.cart-totals {
  margin-top: 32px; padding-top: 32px;
}
.cart-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.cart-row__label { font-size: 0.9rem; }
.cart-row__value { font-family: var(--mono); font-size: 1rem; font-weight: 700; }
.cart-checkout-note {
  font-family: var(--mono); font-size: 0.72rem; opacity: 0.4;
  margin: 12px 0 20px;
}
.cart-checkout-btn {
  width: 100%; padding: 16px;
  background: var(--black); color: var(--white);
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.05em;
  transition: background .15s; cursor: pointer;
}
.cart-checkout-btn:hover:not(:disabled) { background: #222; }
.cart-checkout-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.cart-continue {
  display: block; text-align: center; margin-top: 16px;
  font-family: var(--mono); font-size: 0.75rem; opacity: 0.4;
  transition: opacity .15s;
}
.cart-continue:hover { opacity: 1; }

/* ─── SUCCESS PAGE ──────────────────────────────── */
.success-page {
  max-width: 560px; margin: 0 auto;
  padding: 80px var(--pad); text-align: center;
}
.success-page__icon { font-size: 3rem; margin-bottom: 24px; }
.success-page__title {
  font-size: 2rem; font-weight: 700; letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.success-page__sub { opacity: 0.6; line-height: 1.6; margin-bottom: 32px; }
.success-page__note {
  font-family: var(--mono); font-size: 0.75rem; opacity: 0.4;
  margin-top: 24px; line-height: 1.7;
}

/* ─── SHIPPING BANNER ───────────────────────────── */
.shipping-banner {
  background: var(--black); color: var(--white);
  padding: 10px var(--pad);
  text-align: center;
  font-family: var(--mono); font-size: 0.72rem; opacity: 0.9;
}

/* ─── LOADING / EMPTY STATES ────────────────────── */
.loading { text-align: center; padding: 60px; font-family: var(--mono); font-size: 0.8rem; opacity: 0.4; }
.empty-state { text-align: center; padding: 80px var(--pad); opacity: 0.4; font-family: var(--mono); }

/* ─── TOAST ──────────────────────────────────────── */
.toast {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: var(--black); color: var(--white);
  padding: 12px 20px; font-size: 0.85rem;
  transform: translateY(80px); opacity: 0;
  transition: all .3s ease; pointer-events: none;
}
.toast.is-visible { transform: translateY(0); opacity: 1; }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .product-page { grid-template-columns: 1fr; gap: 32px; }
  .menu-toggle { display: none; }
  .cart-item { grid-template-columns: 72px 1fr auto; gap: 12px; }

  /* Hero: reposition image for mobile */
  .hero { height: 88vh; min-height: 500px; }
  .hero__bg { object-position: 65% center; }
  .hero__overlay {
    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0.3) 0%,
      rgba(0,0,0,0.75) 40%,
      rgba(0,0,0,0.85) 100%
    );
  }
  .hero__text { max-width: 100%; padding: 0 20px; }

  /* Header: centered, no hamburger */
  .header__inner { gap: 20px; justify-content: center; }
  .header__logo img { height: 40px; }
  .header__nav { display: flex; gap: 16px; }
  .header__nav a { font-size: 0.8rem; }
}
