:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #8c8a86;
  --line: #e2e1dd;
  --accent: #6e3b1f;
  --sale: #c2261b;
  --radius: 0;
  --header-h: 68px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.locked { overflow: hidden; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
input { font: inherit; }

svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promo-bar {
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  height: 34px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.promo-track {
  display: flex;
  gap: 80px;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  padding-left: 100%;
}

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

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 24px;
}

.header-left, .header-right { display: flex; gap: 6px; }
.header-right { justify-content: flex-end; }

.logo {
  font-weight: 800;
  font-size: 26px;
  letter-spacing: .32em;
  padding-left: .32em;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 50%;
  transition: background .2s;
}

.icon-btn:hover { background: var(--bg); }

.menu-toggle { display: none; }

.cart-count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 17px;
  height: 17px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav { border-top: 1px solid var(--line); }

.nav-list {
  display: flex;
  justify-content: center;
  gap: 4px;
}

.nav-list > li { position: relative; }

.nav-list > li > a {
  display: block;
  padding: 14px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nav-list > li > a:hover { color: var(--accent); }

.nav-highlight { color: var(--accent); }
.nav-sale { color: var(--sale) !important; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.dropdown a {
  display: block;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--muted);
}

.dropdown a:hover { color: var(--ink); background: var(--bg); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, .45);
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
}

.overlay.show { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  z-index: 100;
  background: var(--surface);
  transition: transform .35s ease;
  display: flex;
  flex-direction: column;
}

.drawer-left, .drawer-right {
  top: 0;
  bottom: 0;
  width: min(400px, 90vw);
  padding: 20px 24px;
}

.drawer-left { left: 0; transform: translateX(-100%); }
.drawer-right { right: 0; transform: translateX(100%); }
.drawer-top { top: 0; left: 0; right: 0; transform: translateY(-100%); }
.drawer.open { transform: none; }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}

.drawer-title {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-nav > li { border-bottom: 1px solid var(--line); }

.mobile-nav a, .mobile-nav .accordion > button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.accordion ul { display: none; padding-bottom: 12px; }
.accordion.open ul { display: block; }
.accordion.open > button span { transform: rotate(45deg); }
.accordion > button span { transition: transform .2s; }

.accordion ul a {
  padding: 8px 12px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.search-box { max-width: 760px; margin: 0 auto; width: 100%; padding: 28px 24px; }

.search-form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--ink);
}

.search-form input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 20px;
  padding: 12px 0;
  background: transparent;
}

.search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
  font-size: 13px;
}

.search-shortcuts span { color: var(--muted); margin-right: 6px; }

.search-shortcuts a {
  border: 1px solid var(--line);
  padding: 6px 14px;
  border-radius: 20px;
}

.search-shortcuts a:hover { border-color: var(--ink); }

.tabs { display: flex; margin-bottom: 24px; }

.tab {
  flex: 1;
  padding: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
}

.tab.active { border-color: var(--ink); color: var(--ink); }

.tab-panel { display: none; }
.tab-panel.active { display: flex; }

.form { flex-direction: column; gap: 16px; }

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.form input {
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: var(--radius);
  font-size: 15px;
  outline: 0;
}

.form input:focus { border-color: var(--ink); }

.form-link { font-size: 13px; color: var(--muted); text-decoration: underline; }

.btn {
  display: inline-block;
  padding: 14px 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: .2s;
  text-align: center;
}

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--accent); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--ink); color: #fff; }

.cart-items { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }

.cart-empty { color: var(--muted); font-size: 14px; text-align: center; margin-top: 40px; }

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 14px;
  align-items: center;
}

.cart-thumb { aspect-ratio: 1; border-radius: var(--radius); }

.cart-info h5 { font-size: 13px; font-weight: 600; }
.cart-info span { font-size: 13px; color: var(--muted); }

.qty {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 13px;
}

.qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

.cart-remove { font-size: 12px; color: var(--muted); text-decoration: underline; }

.cart-footer {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-total { display: flex; justify-content: space-between; font-size: 15px; }

.tone-1 { background: linear-gradient(135deg, #c9a88a, #8a5a3c); }
.tone-2 { background: linear-gradient(160deg, #d8c4b0, #a47e5f); }
.tone-3 { background: linear-gradient(160deg, #3b3430, #1c1917); }
.tone-4 { background: linear-gradient(120deg, #b98c6b, #6d4329); }
.tone-5 { background: linear-gradient(160deg, #e9dfd3, #c2ab93); }
.tone-6 { background: linear-gradient(160deg, #9b5a43, #5b2f20); }
.tone-7 { background: linear-gradient(150deg, #c66f4a, #7e3a20); }
.tone-8 { background: linear-gradient(150deg, #44403c, #0f0e0d); }

.hero {
  position: relative;
  height: min(82vh, 760px);
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(135deg, #b88a66 0%, #7a4a2c 55%, #3a2214 100%);
  transform: scale(1.05);
  animation: heroZoom 14s ease-out forwards;
}

@keyframes heroZoom { to { transform: scale(1); } }

.hero-content {
  position: relative;
  color: #fff;
  padding: 0 6vw 9vh;
  max-width: 760px;
}

.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: .9;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.banner-stack { padding: 16px 16px 0; }

.banner, .season-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.banner-wide { height: 260px; }

.banner-text h2 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}

.banner-cta, .tile-text span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 340px;
  gap: 16px;
  padding: 16px;
}

.tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 28px;
  color: #fff;
  grid-column: span 2;
}

.tile-wide { grid-column: span 4; }
.tile.tone-5 { color: var(--ink); }

.tile::after, .banner::after, .season-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background .3s;
}

.tile:hover::after, .banner:hover::after, .season-card:hover::after { background: rgba(0, 0, 0, .08); }

.tile-text, .banner-text { position: relative; z-index: 1; }

.tile-text h3 {
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.products { padding: 72px 24px; max-width: 1440px; margin: 0 auto; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: 26px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; }

.filter {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  transition: .2s;
}

.filter:hover { border-color: var(--ink); }
.filter.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 20px;
}

.product-card { display: flex; flex-direction: column; gap: 12px; }

.product-media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-media svg {
  width: 46%;
  height: auto;
  stroke: rgba(255, 255, 255, .85);
  stroke-width: 1.2;
  transition: transform .4s ease;
}

.product-card:hover .product-media svg { transform: scale(1.06); }

.product-media.has-image, .cart-thumb.has-image { background: #f1ede8; }
.product-media .product-tag, .product-media .quick-add { z-index: 1; }

.product-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.product-card:hover .product-media img { transform: scale(1.04); }

.cart-thumb { overflow: hidden; }
.cart-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.product-empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }

.product-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
}

.product-tag.sale { background: var(--sale); color: #fff; }

.quick-add {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transform: translateY(calc(100% + 16px));
  transition: transform .3s ease;
}

.product-card:hover .quick-add { transform: none; }
.quick-add:hover { background: var(--ink); color: #fff; }

.product-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.product-info .colors { font-size: 12px; color: var(--muted); margin-bottom: 8px; }

.price { display: flex; gap: 10px; align-items: baseline; font-size: 14px; }
.price del { color: var(--muted); font-size: 13px; }
.price strong { font-weight: 700; }

.season {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 0 16px;
}

.season-card { height: 520px; }

.notice {
  max-width: 760px;
  margin: 56px auto;
  padding: 0 24px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.newsletter {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 64px 24px;
  text-align: center;
}

.newsletter h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.newsletter > p { color: var(--muted); font-size: 14px; margin-bottom: 28px; }

.newsletter-form {
  display: flex;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--ink);
  border-right: 0;
  padding: 0 16px;
  outline: 0;
  border-radius: var(--radius) 0 0 var(--radius);
}

.newsletter-form .btn { border-radius: 0 var(--radius) var(--radius) 0; }

.newsletter-msg { margin-top: 14px; font-size: 13px; color: var(--accent); min-height: 18px; }

.footer { background: var(--ink); color: #d6d0c8; padding: 64px 24px 24px; }

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-col { display: flex; flex-direction: column; gap: 12px; font-size: 13px; }

.footer-col h4 {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer-col a:hover { color: #fff; }

.logo-footer { color: #fff; font-size: 22px; padding-left: 0; }

.socials { display: flex; gap: 10px; margin-top: 8px; }

.socials a {
  width: 40px;
  height: 40px;
  border: 1px solid #3a3632;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: .2s;
}

.socials a:hover { border-color: #fff; color: #fff; }
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1px solid #3a3632;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #8f877e;
}

.badges { display: flex; gap: 10px; }

.badge {
  border: 1px solid #3a3632;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: .06em;
}

.chat-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .2);
  z-index: 40;
  transition: transform .2s;
}

.chat-btn:hover { transform: scale(1.06); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 120px);
  background: var(--ink);
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
  z-index: 120;
  transition: transform .3s ease;
  white-space: nowrap;
}

.toast.show { transform: translate(-50%, 0); }

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-inner { grid-template-columns: auto 1fr auto; padding: 0 12px; gap: 4px; }
  .header-left { order: 3; display: none; }
  .logo { font-size: 20px; text-align: center; }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; gap: 10px; padding: 10px; }
  .tile { grid-column: span 1; padding: 18px; }
  .tile-wide { grid-column: span 2; }
  .banner-stack { padding: 10px 10px 0; }
  .banner-wide { height: 200px; }
  .season { grid-template-columns: 1fr; gap: 10px; padding: 0 10px; }
  .season-card { height: 360px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .products { padding: 48px 16px; }
  .quick-add { transform: none; padding: 10px; font-size: 10px; }
}

@media (max-width: 520px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero { min-height: 420px; height: 70vh; }
  .hero-content { padding: 0 16px 48px; }
  .newsletter-form { flex-direction: column; gap: 10px; }
  .newsletter-form input { border-right: 1px solid var(--ink); padding: 14px 16px; border-radius: var(--radius); }
  .newsletter-form .btn { border-radius: var(--radius); }
  .footer { padding: 48px 16px 24px; }
}
