/*
Theme Name: Nights in Seoul Master
Theme URI: https://nightsinseoul.com
Author: ELITEPEPPERS LLC
Description: Clean white-label WooCommerce theme for premium streetwear stores.
Version: 1.1.0
Text Domain: nis
*/

:root {
  --ink: #0a0a0a;
  --paper: #f7f6f3;
  --surface: #ffffff;
  --muted: #6f6f6f;
  --line: #deddd9;
  --accent: #b81825;
  --max: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.announcement {
  padding: 9px 20px;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(10,10,10,.12);
  background: rgba(247,246,243,.9);
  backdrop-filter: blur(18px);
}
.header-inner {
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.primary-nav ul { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.primary-nav a { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 16px; }
.cart-link { position: relative; font-size: 13px; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; }
.cart-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 5px; border-radius: 99px; background: var(--accent); color: white; font-size: 10px; }
.menu-toggle { display: none; border: 0; background: none; font-size: 22px; }

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 105px));
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
  background: #07090c;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.4) 43%, rgba(0,0,0,.05) 72%); z-index: 1; }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 2; width: min(680px, 92%); padding-block: 110px; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 650; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 { margin: 0 0 22px; font-size: clamp(50px, 7vw, 106px); line-height: .9; letter-spacing: -.06em; font-weight: 620; }
.hero-copy { max-width: 540px; margin: 0 0 34px; color: rgba(255,255,255,.78); font-size: clamp(17px, 2vw, 21px); }
.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .single_add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px !important;
  border: 1px solid var(--ink) !important;
  border-radius: 0 !important;
  background: var(--ink) !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.button-light { border-color: white !important; background: white !important; color: var(--ink) !important; }
.button:hover { opacity: .86; }

.ticker { overflow: hidden; padding: 13px 0; border-bottom: 1px solid var(--line); background: white; }
.ticker-track { display: flex; width: max-content; gap: 46px; animation: ticker 24s linear infinite; }
.ticker span { font-size: 11px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding-block: 90px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.section-head h2, .editorial-copy h2 { max-width: 760px; margin: 0; font-size: clamp(38px, 5vw, 66px); line-height: .98; letter-spacing: -.05em; font-weight: 580; }
.section-head p { max-width: 480px; margin: 0; color: var(--muted); }

.product-grid, .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 18px; margin: 0 !important; }
.product-card, .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; }
.woocommerce ul.products li.product { display: flex; flex-direction: column; min-width: 0; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: block; flex: 1; }
.product-card-image, .woocommerce ul.products li.product a img { aspect-ratio: 1; width: 100%; object-fit: cover; margin: 0 0 14px !important; background: #efeeea; }
.product-card h3, .woocommerce ul.products li.product .woocommerce-loop-product__title { margin: 0 0 4px; padding: 0 !important; font-size: 15px !important; font-weight: 600; }
.product-card .price, .woocommerce ul.products li.product .price { color: var(--ink) !important; font-size: 14px !important; font-weight: 500 !important; }
.woocommerce ul.products li.product .button { width: 100%; min-height: 44px; margin-top: 14px !important; padding-inline: 16px !important; }

.editorial { display: grid; grid-template-columns: 1.1fr .9fr; background: #101010; color: white; }
.editorial-image { min-height: 580px; background: url('assets/hero.jpg') center/cover; }
.editorial-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(50px, 7vw, 110px); }
.editorial-copy p { max-width: 520px; color: rgba(255,255,255,.68); font-size: 18px; }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.value { min-height: 220px; padding: 38px; background: var(--surface); }
.value-number { color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .15em; }
.value h3 { margin: 54px 0 10px; font-size: 24px; font-weight: 560; }
.value p { margin: 0; color: var(--muted); }

.page-shell, .woocommerce-page main { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding-block: 72px 110px; }
.page-title, .woocommerce-products-header__title { margin: 0 0 44px; font-size: clamp(46px, 7vw, 86px); line-height: .95; letter-spacing: -.055em; font-weight: 580; }
.page-content { max-width: 820px; font-size: 18px; }
.page-content h2 { margin-top: 48px; font-size: 32px; }

.collection-page { padding-top: 58px; }
.collection-header { display: grid; grid-template-columns: 1fr minmax(280px, 480px); column-gap: 50px; align-items: end; margin-bottom: 42px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.collection-header .eyebrow { grid-column: 1 / -1; margin-bottom: 12px; color: var(--accent); }
.collection-header h1 { margin: 0; font-size: clamp(48px, 6vw, 78px); line-height: .92; letter-spacing: -.055em; font-weight: 580; }
.collection-header > p:last-child { margin: 0; color: var(--muted); font-size: 17px; }
.collection-page .woocommerce-result-count { margin: 0 0 24px; color: var(--muted); font-size: 13px; }
.collection-page .woocommerce-ordering { margin: 0 0 24px; }
.collection-page .woocommerce-ordering select { min-height: 42px; padding: 0 38px 0 12px; border: 1px solid var(--line); background: var(--surface); }
.collection-page ul.products { clear: both; width: 100%; }

.product-page { padding-top: 58px; }
.woocommerce div.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .75fr); gap: clamp(36px, 6vw, 78px); align-items: start; }
.woocommerce div.product div.images, .woocommerce div.product div.summary { width: auto !important; float: none !important; }
.woocommerce div.product div.images { margin-bottom: 0 !important; }
.woocommerce div.product div.summary { position: sticky; top: 116px; margin: 0 !important; padding-top: 10px; }
.woocommerce div.product .product_title { margin-bottom: 24px; font-size: clamp(38px, 4.4vw, 60px); line-height: .96; letter-spacing: -.05em; font-weight: 580; }
.woocommerce div.product p.price { color: var(--ink); font-size: 24px; }
.woocommerce select, .woocommerce input.qty { min-height: 48px; border: 1px solid var(--line); background: white; }
.woocommerce div.product form.cart { margin-top: 28px; }
.woocommerce div.product form.cart .variations { margin-bottom: 18px; }
.woocommerce div.product form.cart .variations th { padding: 0 16px 8px 0; text-align: left; }
.woocommerce div.product form.cart .variations td { padding: 0 0 8px; }
.woocommerce div.product form.cart .variations select { width: 100%; min-width: 250px; padding-inline: 12px; }
.woocommerce div.product form.cart .button { min-height: 52px; }
.woocommerce div.product .product_meta { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.product-page .woocommerce-tabs, .product-page .related.products { display: none !important; }

.site-footer { padding: 70px 0 30px; background: #090909; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 60px; }
.footer-brand { font-size: 24px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.footer-copy { max-width: 430px; color: rgba(255,255,255,.55); }
.site-footer h4 { margin-top: 0; font-size: 12px; letter-spacing: .15em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; color: rgba(255,255,255,.68); }
.footer-bottom { margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.45); font-size: 12px; }

@media (max-width: 900px) {
  .header-inner { grid-template-columns: auto 1fr auto; min-height: 66px; }
  .menu-toggle { display: block; }
  .primary-nav { display: none; position: absolute; top: 66px; left: 0; right: 0; padding: 24px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: 18px; }
  .brand { justify-self: center; font-size: 15px; }
  .hero { min-height: 630px; align-items: end; }
  .hero::before { background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.08) 70%); }
  .hero-media { object-position: 67% center; }
  .hero-content { padding-block: 70px; }
  .hero h1 { font-size: clamp(48px, 16vw, 72px); }
  .section { padding-block: 64px; }
  .section-head { display: block; }
  .section-head p { margin-top: 16px; }
  .product-grid, .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .collection-page { padding-top: 36px; }
  .collection-header { display: block; margin-bottom: 28px; padding-bottom: 24px; }
  .collection-header h1 { margin-bottom: 16px; }
  .collection-header > p:last-child { font-size: 15px; }
  .collection-page .woocommerce-result-count { float: none; margin-bottom: 12px; }
  .collection-page .woocommerce-ordering { float: none; width: 100%; }
  .collection-page .woocommerce-ordering select { width: 100%; }
  .editorial { grid-template-columns: 1fr; }
  .editorial-image { min-height: 440px; }
  .values { grid-template-columns: 1fr; }
  .product-page { padding-top: 28px; }
  .woocommerce div.product { grid-template-columns: 1fr; gap: 28px; }
  .woocommerce div.product div.summary { position: static; padding-top: 0; }
  .woocommerce div.product .product_title { margin-top: 0; font-size: 38px; }
  .woocommerce div.product form.cart .variations select { min-width: 0; }
  .woocommerce div.product form.cart .single_add_to_cart_button { width: calc(100% - 62px); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
}
