/* ==========================================================================
   GURENTAN — Public storefront styles
   Palette: near-black, charcoal, sneaker red, hazard yellow, white text
   ========================================================================== */

:root {
  --bg: #0a0a0b;
  --bg-secondary: #151517;
  --bg-tertiary: #1e1e21;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.1);
  --red: #e6231e;
  --red-dim: #a4180f;
  --yellow: #ffd400;
  --text: #f5f5f4;
  --text-muted: #9a9a9e;
  --text-dim: #6b6b70;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.display {
  font-family: 'Anton', 'Inter', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-weight: 400;
  line-height: 0.95;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

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

/* Speed stripe — signature diagonal accent used sparingly as a section marker */
.stripe {
  display: inline-flex;
  gap: 4px;
  height: 14px;
}
.stripe span {
  display: block;
  width: 5px;
  height: 100%;
  transform: skewX(-20deg);
  background: var(--red);
}
.stripe span:nth-child(2) { background: var(--yellow); }
.stripe span:nth-child(3) { background: var(--text); opacity: 0.25; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(230, 35, 30, 0.6);
}
.btn-primary:hover { background: #ff2c26; box-shadow: 0 12px 32px -8px rgba(230, 35, 30, 0.8); transform: translateY(-2px); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}
.btn-secondary:hover { background: var(--surface-strong); transform: translateY(-2px); }
.btn-yellow {
  background: var(--yellow);
  color: #141414;
  box-shadow: 0 8px 24px -8px rgba(255, 212, 0, 0.5);
}
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -8px rgba(255, 212, 0, 0.7); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }
.btn-sm { padding: 9px 18px; font-size: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 400;
}
.logo img { height: 34px; width: auto; }
.logo .mark { color: var(--red); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 6px 0;
}
.main-nav a:hover, .main-nav a.active { color: var(--text); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--red);
}

.header-actions { display: flex; align-items: center; gap: 14px; }
.icon-btn {
  position: relative;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface-strong); transform: translateY(-1px); }
.cart-badge {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.burger { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: radial-gradient(circle at 80% 20%, #201417 0%, var(--bg) 55%);
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  filter: saturate(0.9) contrast(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 10%, rgba(10,10,11,0.55) 55%, rgba(10,10,11,0.15) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
  padding: 80px 0;
  animation: rise 0.9s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  margin: 0 0 20px;
}
.hero h1 .accent { color: var(--red); }
.hero p {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 440px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 0; }
.section-head p { color: var(--text-muted); margin: 8px 0 0; max-width: 480px; }

/* ---------- Product grid & cards ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,0.22);
  box-shadow: var(--shadow);
}
.product-card .thumb {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg-tertiary);
  overflow: hidden;
}
.product-card .thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .thumb img { transform: scale(1.06); }
.product-card .badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--yellow);
  color: #141414;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.product-card .badge.out {
  background: rgba(0,0,0,0.65);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.product-card .body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.product-card .brand { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); font-weight: 700; }
.product-card .name { font-size: 17px; font-weight: 700; margin: 0; }
.product-card .sizes { font-size: 12px; color: var(--text-muted); }
.product-card .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.price { font-size: 19px; font-weight: 800; }
.price-old { font-size: 13px; color: var(--text-dim); text-decoration: line-through; }
.card-actions { display: flex; gap: 8px; margin-top: 12px; }
.card-actions .btn { flex: 1; padding: 11px 14px; font-size: 12px; }

/* ---------- Filters ---------- */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: start; }
.filters {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 100px;
  backdrop-filter: blur(10px);
}
.filters h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 22px 0 12px; }
.filters h3:first-child { margin-top: 0; }
.filter-search {
  width: 100%; padding: 12px 14px;
  background: var(--bg-tertiary); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font-size: 14px;
}
.filter-search:focus { outline: none; border-color: var(--red); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-tertiary);
  font-size: 12px;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--text-muted); }
.chip.active { background: var(--red); border-color: var(--red); color: #fff; }
.price-range { display: flex; gap: 10px; }
.price-range input {
  width: 100%; padding: 10px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 13px;
}
.sort-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; gap: 12px; flex-wrap: wrap; }
.sort-bar select {
  background: var(--bg-tertiary); color: var(--text); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px;
}
.result-count { color: var(--text-muted); font-size: 13px; }

/* ---------- Empty / loading states ---------- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .display { font-size: 32px; color: var(--text); margin-bottom: 10px; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--surface-strong) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ---------- Product detail page ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: flex-start; }
.gallery-main {
  aspect-ratio: 1/1;
  background: var(--bg-tertiary);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumbs img {
  width: 76px; height: 76px; object-fit: cover; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer; opacity: 0.6; transition: all 0.2s var(--ease);
}
.gallery-thumbs img.active, .gallery-thumbs img:hover { opacity: 1; border-color: var(--red); }
.product-info .brand { color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.12em; font-size: 12px; font-weight: 700; }
.product-info h1 { font-size: 34px; margin: 8px 0 16px; }
.product-info .price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 24px; }
.product-info .price { font-size: 30px; }
.product-info .desc { color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.size-btn {
  padding: 14px 0; text-align: center; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-tertiary); color: var(--text);
  font-weight: 700; transition: all 0.2s var(--ease);
}
.size-btn:hover:not(:disabled) { border-color: var(--text-muted); }
.size-btn.selected { border-color: var(--red); background: rgba(230,35,30,0.14); color: var(--red); }
.size-btn:disabled { opacity: 0.3; text-decoration: line-through; cursor: not-allowed; }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.qty-control { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.qty-control button { width: 40px; height: 40px; background: var(--bg-tertiary); color: var(--text); border: none; font-size: 18px; }
.qty-control span { width: 40px; text-align: center; font-weight: 700; }
.stock-note { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; }
.product-detail-actions { display: flex; gap: 12px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; align-items: center;
  padding: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 14px;
}
.cart-item img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-item .name { font-weight: 700; margin: 0 0 4px; }
.cart-item .meta { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.cart-item .row-actions { display: flex; align-items: center; gap: 16px; }
.cart-item .remove-btn { color: var(--text-dim); font-size: 12px; text-decoration: underline; background: none; border: none; }
.cart-item .remove-btn:hover { color: var(--red); }
.cart-item .item-total { font-weight: 800; text-align: right; }
.summary-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: sticky; top: 100px;
}
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--text-muted); font-size: 14px; }
.summary-total { display: flex; justify-content: space-between; font-size: 20px; font-weight: 800; margin: 18px 0 22px; padding-top: 18px; border-top: 1px solid var(--border); }

/* ---------- Forms (checkout / contact) ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.form-group input, .form-group textarea, .form-group select {
  padding: 13px 16px; background: var(--bg-tertiary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text); font-size: 14px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--red); }
.form-group textarea { resize: vertical; min-height: 90px; }
.form-error { color: var(--red); font-size: 13px; margin-top: -8px; margin-bottom: 14px; display: none; }
.form-error.visible { display: block; }

/* ---------- FAQ / Accordion ---------- */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-head {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: none; border: none; color: var(--text); padding: 22px 0; font-size: 17px; font-weight: 700; text-align: left;
}
.accordion-head .plus { transition: transform 0.3s var(--ease); color: var(--red); font-size: 20px; }
.accordion-item.open .accordion-head .plus { transform: rotate(45deg); }
.accordion-body {
  max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease);
  color: var(--text-muted); line-height: 1.7;
}
.accordion-item.open .accordion-body { max-height: 300px; padding-bottom: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
  padding: 64px 0 28px;
  margin-top: 80px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 0 0 18px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a, .footer-grid p { color: var(--text-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--text); }
.footer-brand p { color: var(--text-muted); max-width: 280px; margin: 14px 0 0; font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; color: var(--text-dim); font-size: 12px; flex-wrap: wrap; gap: 10px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--bg-tertiary); border: 1px solid var(--border); color: var(--text);
  padding: 16px 24px; border-radius: 999px; font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow); z-index: 1000; transition: transform 0.4s var(--ease);
  display: flex; align-items: center; gap: 10px;
}
.toast.visible { transform: translateX(-50%) translateY(0); }
.toast .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--yellow); }

/* ---------- Misc pages ---------- */
.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.stat-card .num { font-size: 36px; font-weight: 800; color: var(--red); }
.stat-card .label { color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 16px; display: flex; align-items: center; gap: 16px; }
.contact-card .icon { width: 46px; height: 46px; border-radius: 999px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; color: var(--yellow); flex-shrink: 0; }
.contact-card a { font-weight: 700; }
.error-page { text-align: center; padding: 140px 20px; }
.error-page .display { font-size: 120px; color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .product-detail { grid-template-columns: 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { position: fixed; top: 76px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 20px 24px; border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform 0.3s var(--ease); align-items: flex-start; gap: 18px; }
  .main-nav.open { transform: translateY(0); }
  .burger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
