:root {
  --ink: #172020;
  --muted: #64706d;
  --paper: #fffaf1;
  --surface: #ffffff;
  --line: #e5dccb;
  --green: #0c6658;
  --green-2: #144d48;
  --gold: #c79a37;
  --rose: #b74b59;
  --blue: #1f4f72;
  --shadow: 0 18px 55px rgba(34, 36, 29, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(229, 220, 203, 0.82);
  background: rgba(255, 250, 241, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.header-actions,
.desktop-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 0.78rem;
  letter-spacing: 0;
}

.desktop-nav {
  gap: clamp(18px, 3vw, 34px);
  color: #3f4a47;
  font-size: 0.95rem;
  font-weight: 650;
}

.desktop-nav a:hover {
  color: var(--green);
}

.header-actions {
  gap: 10px;
}

.icon-button,
.cart-button,
.filter,
.checkout-button,
.primary-link,
.secondary-link {
  border: 0;
  cursor: pointer;
  min-height: 42px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-size: 1.2rem;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 750;
}

.cart-button span {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 99px;
  color: var(--ink);
  background: var(--gold);
  font-size: 0.78rem;
}

.hero {
  position: relative;
  min-height: clamp(590px, 84vh, 820px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background: #0b2e33;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(9, 21, 21, 0.78), rgba(9, 21, 21, 0.34) 52%, rgba(9, 21, 21, 0.08));
}

.hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(720px, calc(100% - 36px));
  margin: 0 0 clamp(52px, 8vh, 96px) clamp(18px, 7vw, 96px);
  color: #fff;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.58;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
}

.primary-link {
  color: var(--ink);
  background: var(--gold);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.primary-link.compact {
  width: max-content;
  color: #fff;
  background: var(--green);
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  border-block: 1px solid var(--line);
  background: var(--line);
}

.quick-stats div {
  padding: 24px clamp(16px, 3vw, 42px);
  background: var(--surface);
}

.quick-stats strong,
.quick-stats span {
  display: block;
}

.quick-stats strong {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
}

.quick-stats span {
  margin-top: 6px;
  color: var(--muted);
}

.category-band,
.shop-section,
.brand-section,
.vendors {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.category-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 16px;
  margin-top: 34px;
}

.category-tile {
  min-height: 236px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  background: var(--green);
  box-shadow: var(--shadow);
}

.category-tile span {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.category-tile strong {
  max-width: 340px;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  line-height: 1.05;
}

.tile-women {
  background: linear-gradient(135deg, rgba(143, 37, 68, 0.98), rgba(12, 102, 88, 0.92));
}

.tile-men {
  background: linear-gradient(135deg, rgba(31, 79, 114, 0.98), rgba(21, 91, 76, 0.92));
}

.tile-festive {
  background: linear-gradient(135deg, rgba(141, 62, 38, 0.98), rgba(199, 154, 55, 0.88));
}

.shop-section {
  background: #f7efe1;
}

.brand-section {
  background: var(--paper);
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.brand-card {
  display: grid;
  gap: 12px;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(34, 36, 29, 0.07);
}

.brand-card span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 0.82rem;
  font-weight: 850;
}

.brand-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.brand-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.shop-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.filter {
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface);
  font-weight: 750;
}

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

.search-panel {
  display: grid;
  grid-template-columns: 160px 1fr;
  align-items: center;
  gap: 12px;
  margin: 28px 0 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.search-panel label {
  color: var(--muted);
  font-weight: 750;
}

.search-panel input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(34, 36, 29, 0.08);
}

.product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  background: #eee0ca;
}

.product-info {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.product-meta,
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
}

.price-row strong {
  font-size: 1.02rem;
}

.add-button {
  min-height: 42px;
  padding: 0 14px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.vendors {
  background: var(--surface);
}

.vendor-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
  margin-top: 32px;
}

.vendor-copy,
.vendor-list div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.vendor-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: center;
  padding: clamp(22px, 4vw, 42px);
}

.vendor-copy h3 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.vendor-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.vendor-list {
  display: grid;
  gap: 12px;
}

.vendor-list div {
  display: grid;
  gap: 8px;
  padding: 22px;
}

.vendor-list span {
  color: var(--muted);
  line-height: 1.55;
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(420px, 100vw);
  background: var(--surface);
  box-shadow: -20px 0 70px rgba(0, 0, 0, 0.2);
  transform: translateX(110%);
  transition: transform 180ms ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-header,
.drawer-footer {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-header h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  padding: 18px;
}

.empty-cart {
  color: var(--muted);
  line-height: 1.5;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
}

.cart-line h3 {
  margin: 0 0 5px;
  font-size: 0.94rem;
}

.cart-line span {
  color: var(--muted);
  font-size: 0.86rem;
}

.remove-button {
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
}

.drawer-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.checkout-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.checkout-options span {
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fffaf1;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.shipping-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.checkout-button {
  width: 100%;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 850;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.32);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--ink);
}

.site-footer strong {
  color: #fff;
}

@media (max-width: 900px) {
  .desktop-nav {
    display: none;
  }

  .quick-stats,
  .category-grid,
  .product-grid,
  .brand-grid,
  .vendor-layout {
    grid-template-columns: 1fr 1fr;
  }

  .shop-top {
    align-items: start;
    flex-direction: column;
  }

  .category-tile:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-header {
    gap: 12px;
    min-height: 68px;
    padding-inline: 14px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero {
    min-height: 650px;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(9, 21, 21, 0.18), rgba(9, 21, 21, 0.84));
  }

  .hero-copy {
    width: calc(100% - 32px);
    margin: 0 16px 48px;
  }

  .hero-actions,
  .controls {
    width: 100%;
  }

  .primary-link,
  .secondary-link,
  .filter {
    flex: 1 1 auto;
  }

  .quick-stats,
  .category-grid,
  .product-grid,
  .brand-grid,
  .vendor-layout,
  .search-panel {
    grid-template-columns: 1fr;
  }

  .checkout-options {
    grid-template-columns: 1fr;
  }

  .category-tile {
    min-height: 190px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
