:root {
  --ink: #151515;
  --muted: #686868;
  --line: #dedbd5;
  --paper: #f7f4ee;
  --soft: #ece7dd;
  --white: #ffffff;
  --accent: #b91c1c;
  --gold: #b9832f;
  --mint: #2f7b6c;
  --night: #1d2530;
  --shadow: 0 24px 70px rgba(28, 28, 28, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

img {
  display: block;
  max-width: 100%;
}

.promo-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--ink);
  color: var(--white);
}

.promo-line {
  min-height: 38px;
  border: 0;
  background: #111;
  color: var(--white);
  font-weight: 760;
  letter-spacing: 0;
  cursor: pointer;
}

.promo-line.secondary {
  background: var(--accent);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 244, 238, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.utility-row,
.brand-row,
.main-nav {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

.utility-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(222, 219, 213, 0.7);
  gap: 18px;
}

.gender-switch {
  display: flex;
  gap: 20px;
  font-size: 0.78rem;
  font-weight: 850;
}

.gender-switch a:hover,
.main-nav a:hover {
  color: var(--accent);
}

.locale-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.locale-tools label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
}

select {
  min-height: 30px;
}

.icon-btn {
  min-width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: auto;
  min-width: 58px;
}

.brand-row {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(240px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--night);
  color: #f9e7b7;
  font-weight: 900;
}

.brand strong {
  display: block;
  font-size: clamp(1.15rem, 2vw, 1.6rem);
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.search-bar {
  display: flex;
  min-height: 44px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0 14px;
  border-radius: 6px 0 0 6px;
}

.search-bar button,
.admin-link,
.checkout-btn,
.primary-btn,
.add-btn,
.text-btn,
.coupon-box button,
.admin-action {
  border: 0;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.search-bar button {
  padding: 0 18px;
  border-radius: 0 6px 6px 0;
}

.admin-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  background: var(--mint);
}

.main-nav {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 24px;
  overflow-x: auto;
  font-size: 0.84rem;
  font-weight: 850;
  white-space: nowrap;
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
  background: #181716;
  color: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(46px, 8vw, 110px);
}

.eyebrow {
  margin: 0 0 12px;
  color: #f5c46f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 680px;
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.hero p {
  max-width: 560px;
  color: #e7e1d7;
  font-size: clamp(1rem, 1.3vw, 1.25rem);
  line-height: 1.65;
}

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

.primary-btn,
.text-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.primary-btn {
  background: var(--white);
  color: var(--ink);
}

.text-btn {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: transparent;
}

.hero-media {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 20%, rgba(249, 205, 129, 0.45), transparent 20%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 34%),
    url("https://images.unsplash.com/photo-1602751584552-8ba73aad10e1?auto=format&fit=crop&w=1400&q=80")
      center/cover;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 23, 22, 0.5), transparent 44%);
}

.campaign-card {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: min(390px, calc(100% - 56px));
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(21, 21, 21, 0.74);
  color: var(--white);
  backdrop-filter: blur(16px);
}

.campaign-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.trust-item {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px;
  border-right: 1px solid var(--line);
  text-align: center;
  font-size: 0.86rem;
  font-weight: 800;
}

.trust-item:last-child {
  border-right: 0;
}

.section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px 28px;
}

.section.tight {
  padding-top: 34px;
}

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

.section-head h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 3rem);
  line-height: 1;
}

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.gender-grid,
.category-grid,
.story-grid,
.admin-grid,
.checkout-grid {
  display: grid;
  gap: 20px;
}

.gender-grid {
  grid-template-columns: repeat(2, 1fr);
}

.gender-card {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-radius: 8px;
  color: var(--white);
  background: var(--ink);
}

.gender-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.08));
}

.gender-card.men {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.3), transparent),
    url("https://images.unsplash.com/photo-1611591437281-460bfbe1220a?auto=format&fit=crop&w=1000&q=80")
      center/cover;
}

.gender-card.women {
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.28), transparent),
    url("https://images.unsplash.com/photo-1515562141207-7a88fb7ce338?auto=format&fit=crop&w=1000&q=80")
      center/cover;
}

.gender-card div {
  position: relative;
  z-index: 1;
  padding: 30px;
}

.gender-card h3 {
  margin-bottom: 8px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.filter-panel {
  display: grid;
  grid-template-columns: minmax(190px, 240px) 1fr;
  gap: 28px;
}

.filters {
  position: sticky;
  top: 216px;
  align-self: start;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.filters h3 {
  margin-bottom: 16px;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 0.92rem;
}

.collection-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.collection-toolbar select {
  min-height: 38px;
  padding: 0 10px;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.04);
}

.image-button {
  width: 100%;
  aspect-ratio: 1 / 1;
  border: 0;
  background: var(--soft);
  cursor: pointer;
}

.image-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-meta {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.product-meta h3 {
  min-height: 44px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.35;
}

.product-category {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.badge-row,
.price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f1eadf;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 850;
}

.badge.sale {
  background: #ffe4e4;
  color: var(--accent);
}

.price {
  font-weight: 900;
}

.compare-price {
  color: #9a9288;
  text-decoration: line-through;
}

.add-btn {
  min-height: 42px;
  width: 100%;
  margin-top: 4px;
}

.flash-band {
  background: var(--night);
  color: var(--white);
}

.flash-band .section {
  max-width: 1440px;
}

.countdown {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  color: #f2cb81;
  font-weight: 900;
}

.countdown span {
  min-width: 42px;
  padding: 9px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.category-grid {
  grid-template-columns: repeat(6, 1fr);
}

.category-tile {
  min-height: 150px;
  display: flex;
  align-items: end;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.24)),
    var(--tile-bg, #eee);
  font-weight: 900;
}

.story-grid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.story-image {
  min-height: 420px;
  border-radius: 8px;
  background:
    linear-gradient(0deg, rgba(0, 0, 0, 0.14), transparent),
    url("https://images.unsplash.com/photo-1506630448388-4e683c67ddb0?auto=format&fit=crop&w=1200&q=80")
      center/cover;
}

.story-copy {
  display: grid;
  align-content: center;
  gap: 18px;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.story-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
}

.story-copy p,
.review-card p,
.checkout-card p {
  color: var(--muted);
  line-height: 1.65;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.review-card,
.checkout-card,
.admin-card,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.review-card {
  padding: 22px;
}

.stars {
  color: var(--gold);
  font-size: 1.15rem;
}

.footer {
  background: #111;
  color: var(--white);
}

.footer .section {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
  padding-top: 44px;
  padding-bottom: 44px;
}

.footer h3,
.footer h4 {
  margin-top: 0;
}

.footer a,
.footer p {
  color: #cfc9bd;
}

.footer nav {
  display: grid;
  gap: 10px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 0.8fr);
  gap: 34px;
}

.detail-image {
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
}

.detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.detail-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}

.option-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.option-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.accordions details {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}

.accordions summary {
  cursor: pointer;
  font-weight: 850;
}

.checkout-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.8fr);
}

.checkout-card,
.admin-card,
.empty-state {
  padding: 22px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label,
.full-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.form-grid input,
.form-grid select,
.full-field textarea {
  min-height: 44px;
  padding: 0 12px;
}

.full-field {
  grid-column: 1 / -1;
}

.full-field textarea {
  min-height: 90px;
  padding: 12px;
}

.account-popover {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 40;
  width: 260px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.account-popover button {
  width: 100%;
  min-height: 40px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(430px, 100vw);
  height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 14px;
  padding: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

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

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.drawer-head h2 {
  margin: 0;
}

.cart-items {
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 14px;
}

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

.cart-item img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 6px;
}

.qty-control {
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.qty-control button,
.remove-btn {
  min-width: 32px;
  min-height: 32px;
  border: 0;
  background: var(--paper);
  cursor: pointer;
}

.qty-control span {
  min-width: 34px;
  text-align: center;
}

.coupon-box {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.coupon-box input {
  min-height: 42px;
  padding: 0 12px;
}

.coupon-box button {
  padding: 0 14px;
}

.totals {
  display: grid;
  gap: 10px;
  margin: 0;
}

.totals div {
  display: flex;
  justify-content: space-between;
}

.totals dd {
  margin: 0;
}

.totals .grand {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
  font-weight: 900;
}

.checkout-btn {
  min-height: 48px;
  display: grid;
  place-items: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: min(520px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--white);
  opacity: 0;
  transform: translate(-50%, 16px);
  pointer-events: none;
  transition: 0.2s ease;
}

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

.admin-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 214px);
}

.admin-page {
  background: #f2efe8;
}

.admin-topbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 30;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.standalone-admin {
  min-height: calc(100vh - 76px);
}

.admin-sidebar {
  padding: 26px 20px;
  border-right: 1px solid var(--line);
  background: var(--white);
}

.admin-sidebar h2 {
  margin-bottom: 22px;
}

.admin-tabs {
  display: grid;
  gap: 8px;
}

.admin-tabs button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  text-align: left;
  cursor: pointer;
}

.admin-tabs button.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.admin-help {
  display: grid;
  gap: 8px;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-size: 0.84rem;
}

.admin-help strong {
  color: var(--ink);
}

.admin-main {
  min-width: 0;
  padding: 28px;
}

.admin-grid {
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
}

.metric strong {
  display: block;
  font-size: 2rem;
}

.admin-card h3 {
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

td input,
td select {
  min-height: 34px;
  max-width: 138px;
  padding: 0 8px;
}

td .admin-input.wide {
  width: min(340px, 100%);
  max-width: 340px;
  margin-bottom: 7px;
}

.admin-action {
  min-height: 36px;
  padding: 0 12px;
  background: var(--mint);
}

.primary-btn.dark {
  background: var(--night);
  color: var(--white);
}

.danger-btn {
  background: var(--accent);
}

.status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef3ed;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
}

.status.pending {
  background: #fff3d6;
  color: #8a5a00;
}

.status.low {
  background: #ffe4e4;
  color: var(--accent);
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .brand-row {
    grid-template-columns: 1fr;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .hero,
  .product-detail,
  .checkout-grid,
  .story-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 390px;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .trust-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .promo-stack,
  .gender-grid,
  .filter-panel,
  .footer .section,
  .review-grid,
  .form-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .utility-row {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .locale-tools {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero-copy {
    padding: 44px 24px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 16vw, 4.7rem);
  }

  .section {
    padding: 44px 18px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-meta {
    padding: 12px;
  }

  .product-meta h3 {
    min-height: 56px;
    font-size: 0.9rem;
  }

  .category-grid,
  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    position: static;
  }

  .admin-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .utility-row,
  .brand-row,
  .main-nav {
    padding-left: 14px;
    padding-right: 14px;
  }

  .gender-card {
    min-height: 320px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .category-grid,
  .trust-row {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 70px 1fr;
  }

  .cart-item img {
    width: 70px;
    height: 70px;
  }

  .cart-item .remove-btn {
    grid-column: 1 / -1;
  }
}
