:root {
  --white: #FFFFFF;
  --clean-white: #FBF7F4;
  --soft-white: #F8F8F6;
  --ink: #080808;
  --ink-soft: #34302D;
  --crimson: #8B0015;
  --dark-crimson: #5E000E;
  --gold: #CBA24A;
  --gold-soft: #D6B766;
  --gold-pale: #E8D7AE;
  --line: rgba(203, 162, 74, 0.28);
  --shadow: 0 8px 24px rgba(8, 8, 8, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--white);
  font-family: "Jost", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--white);
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

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

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.site-header,
main {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.site-header {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: 184px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 88px;
  padding: 16px 48px 8px;
  background: var(--white);
}

.brand {
  display: grid;
  width: 136px;
  justify-items: center;
  color: var(--dark-crimson);
  line-height: 1;
}

.brand-main {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 56px;
  font-weight: 500;
  letter-spacing: 0;
}

.brand-rule {
  width: 104px;
  height: 1px;
  margin: -2px 0 4px;
  background: var(--gold-soft);
}

.brand-sub {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 40px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav a {
  position: relative;
  padding: 8px 0;
}

.main-nav .active {
  color: var(--dark-crimson);
}

.main-nav .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--dark-crimson);
  content: "";
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.book-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 112px;
  height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  color: var(--white);
  background: var(--dark-crimson);
  box-shadow: 0 4px 16px rgba(8, 8, 8, 0.18);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
  white-space: nowrap;
}

.book-button svg,
.icon-link svg {
  width: 24px;
  height: 24px;
}

.book-button svg {
  width: 16px;
  height: 16px;
}

.icon-link {
  position: relative;
  display: grid;
  width: 24px;
  height: 48px;
  place-items: center;
  color: var(--ink);
}

.icon-link svg {
  stroke-width: 1.8;
}

.bag-count {
  position: absolute;
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 999px;
  color: var(--white);
  background: var(--dark-crimson);
  font-size: 10px;
  line-height: 1;
}

.bag-count.top {
  top: 4px;
  right: -8px;
}

.bag-count.side {
  right: -8px;
  bottom: 8px;
}

.shop-hero {
  position: relative;
  min-height: 216px;
  padding: 32px 48px 24px;
  overflow: hidden;
  background: var(--white);
}

.shop-hero::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, var(--white) 0%, rgba(255, 255, 255, 0.96) 34%, rgba(255, 255, 255, 0.78) 55%, rgba(255, 255, 255, 0.18) 100%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 592px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.breadcrumb span {
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.breadcrumb b {
  font-weight: 400;
}

.shop-hero h1 {
  margin: 0 0 8px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(64px, 6vw, 88px);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.98;
}

.shop-hero p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.45;
}

.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 0;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.category-rail {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: -8px 48px 40px;
  overflow: hidden;
  border: 1px solid rgba(203, 162, 74, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.category-tile {
  display: grid;
  grid-template-columns: 72px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 88px;
  padding: 16px;
  background: var(--white);
}

.category-tile + .category-tile {
  border-left: 1px solid rgba(203, 162, 74, 0.2);
}

.category-tile img {
  grid-row: 1 / span 2;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.category-tile span {
  align-self: end;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1px;
  line-height: 1.1;
  text-transform: uppercase;
}

.category-tile small {
  align-self: start;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 300;
}

.catalog {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px;
  padding: 0 48px 48px;
}

.catalog-sidebar {
  display: grid;
  align-self: start;
  gap: 24px;
}

.filter-rail {
  align-self: start;
  border: 1px solid rgba(203, 162, 74, 0.18);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(8, 8, 8, 0.06);
}

.filter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
}

.filter-head strong,
.filter-group button {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.filter-head a {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 300;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.filter-group {
  display: grid;
  gap: 16px;
  padding: 20px 24px;
  border-top: 1px solid rgba(203, 162, 74, 0.2);
}

.filter-group button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  border: 0;
  color: var(--ink);
  background: transparent;
  cursor: default;
}

.filter-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
}

.filter-group i {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(52, 48, 45, 0.25);
  border-radius: 2px;
  background: var(--white);
}

.price-line {
  position: relative;
  height: 16px;
  margin-top: 4px;
}

.price-line::before,
.price-line span {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--crimson);
  content: "";
}

.price-line::after,
.price-line span::after {
  position: absolute;
  top: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--crimson);
  content: "";
}

.price-line::after {
  left: 0;
}

.price-line span::after {
  right: 0;
}

.price-values {
  display: flex;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 300;
}

.catalog-main {
  min-width: 0;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  gap: 24px;
  margin-bottom: 16px;
}

.toolbar p {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 300;
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
}

.toolbar-controls label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-controls label span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 200px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(52, 48, 45, 0.16);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
}

.toolbar-controls label span::after {
  content: "⌄";
  font-size: 15px;
}

.view-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(52, 48, 45, 0.16);
  border-radius: 4px;
  color: var(--ink-soft);
  background: var(--white);
  cursor: default;
}

.view-btn.active {
  color: var(--dark-crimson);
  border-color: rgba(139, 0, 21, 0.24);
}

.view-btn svg {
  width: 22px;
  height: 22px;
}

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

@media (min-width: 1440px) {
  .product-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.product-card,
.guidance-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(203, 162, 74, 0.16);
  border-radius: 8px;
  background: var(--soft-white);
}

.product-card {
  display: grid;
  grid-template-rows: 264px auto auto auto auto auto;
  min-height: 448px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(8, 8, 8, 0.05);
}

.product-image {
  display: grid;
  place-items: center;
  height: 264px;
}

.product-image img {
  width: auto;
  max-width: 96%;
  height: auto;
  max-height: 248px;
  object-fit: contain;
}

.product-card h2,
.product-card p,
.product-card strong {
  margin: 0;
}

.product-card h2 {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
}

.product-card p {
  margin-top: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.3;
}

.stars {
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

.stars span {
  color: var(--ink);
  letter-spacing: 0;
}

.product-card strong {
  margin-top: 10px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-width: 104px;
  height: 32px;
  margin-top: 16px;
  padding: 0 16px;
  border-radius: 4px;
  color: var(--white);
  background: var(--crimson);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1;
  text-transform: uppercase;
}

.badge {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--white);
  background: var(--crimson);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.wish {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  color: var(--crimson);
  background: transparent;
  cursor: default;
}

.wish svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.4;
}

.swatches {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
}

.swatches span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold-pale);
}

.swatches span:nth-child(2) {
  background: var(--gold-soft);
}

.swatches span:nth-child(3) {
  background: var(--gold);
}

.swatches span:nth-child(4) {
  background: var(--ink-soft);
}

.swatches span:nth-child(5) {
  background: var(--ink);
}

.swatches em {
  color: var(--ink-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 300;
}

.guidance-card {
  display: grid;
  min-height: 448px;
  align-content: space-between;
  padding: 24px 20px;
  background: var(--clean-white);
}

.guidance-card h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 500;
  line-height: 1.08;
}

.guidance-card h2::first-line {
  color: var(--ink);
}

.guidance-card p {
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 300;
}

.guidance-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  min-width: 136px;
  padding: 0 16px;
  border: 1px solid rgba(203, 162, 74, 0.34);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.guidance-card a svg {
  width: 16px;
  height: 16px;
}

.guidance-card img {
  justify-self: end;
  width: 64%;
  max-height: 192px;
  object-fit: contain;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 80px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
}

.pagination a,
.pagination span {
  display: grid;
  min-width: 16px;
  height: 32px;
  place-items: center;
}

.pagination .current {
  position: relative;
  color: var(--dark-crimson);
  font-weight: 400;
}

.pagination .current::after {
  position: absolute;
  bottom: 4px;
  left: 2px;
  right: 2px;
  height: 2px;
  background: var(--dark-crimson);
  content: "";
}

.benefits {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin: 0 48px 40px;
  padding: 20px 24px;
  border: 1px solid rgba(203, 162, 74, 0.16);
  border-radius: 8px;
  background: var(--clean-white);
}

.benefit {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  color: var(--gold);
}

.benefit + .benefit {
  padding-left: 24px;
  border-left: 1px solid var(--gold-pale);
}

.benefit svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.25;
}

.benefit strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}

.benefit span {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.25;
}

.site-footer {
  position: relative;
  display: grid;
  grid-template-columns: 200px 1fr 360px;
  gap: 48px;
  padding: 40px 48px 24px;
  overflow: hidden;
  background: var(--clean-white);
}

.footer-brand .brand {
  margin-bottom: 24px;
}

.footer-brand p,
.newsletter p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.45;
}

.socials {
  display: flex;
  gap: 16px;
  margin-top: 24px;
  color: var(--ink);
}

.socials a {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-links h2,
.newsletter h2 {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  text-transform: uppercase;
}

.footer-links a {
  display: block;
  margin-bottom: 7px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 300;
}

.newsletter {
  position: relative;
  min-height: 208px;
  padding-left: 32px;
  border-left: 1px solid rgba(203, 162, 74, 0.24);
}

.newsletter form {
  position: relative;
  z-index: 1;
  display: flex;
  width: 240px;
  height: 40px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(52, 48, 45, 0.16);
  border-radius: 4px;
  background: var(--white);
}

.newsletter label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.newsletter input {
  width: 100%;
  border: 0;
  padding: 0 48px 0 16px;
  color: var(--ink);
  background: transparent;
  font-size: 13px;
  font-weight: 300;
}

.newsletter button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  color: var(--crimson);
  background: transparent;
  cursor: default;
}

.newsletter button svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.newsletter img {
  position: absolute;
  right: -16px;
  bottom: -24px;
  width: 208px;
  height: 176px;
  object-fit: contain;
}

.footer-bridge {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin: 16px 0 0;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 2.5px;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.footer-bridge a {
  transition: color 180ms ease;
}

.footer-bridge a:hover {
  color: var(--dark-crimson);
}

.footer-bridge::before,
.footer-bridge::after {
  width: min(160px, 24vw);
  height: 1px;
  background: var(--gold-pale);
  content: "";
}

.legal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 300;
}

.legal nav {
  display: flex;
  gap: 24px;
}

@media (max-width: 1240px) {
  .site-header {
    grid-template-columns: auto 1fr;
    padding: 16px 24px;
  }

  .main-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .header-actions {
    justify-content: flex-end;
  }

  .shop-hero {
    padding: 32px 24px 24px;
  }

  .category-rail,
  .benefits {
    margin-right: 24px;
    margin-left: 24px;
  }

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

  .catalog {
    grid-template-columns: 224px minmax(0, 1fr);
    padding: 0 24px 40px;
  }

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

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

  .benefit + .benefit {
    border-left: 0;
    padding-left: 0;
  }

  .site-footer {
    grid-template-columns: 200px 1fr;
    padding: 40px 24px 24px;
  }

  .newsletter {
    grid-column: 1 / -1;
    padding: 32px 0 0;
    border-top: 1px solid rgba(203, 162, 74, 0.24);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    display: flex;
    flex-wrap: wrap;
    width: 100vw;
    max-width: 100vw;
    gap: 16px;
    padding: 16px;
    overflow: visible;
    padding-top: 16px;
  }

  main {
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .brand-main {
    font-size: 48px;
  }

  .header-actions {
    position: absolute;
    top: 20px;
    right: auto;
    left: min(72vw, 272px);
    margin-left: 0;
    gap: 8px;
  }

  .header-actions .icon-link {
    display: none;
  }

  .header-actions .icon-link[aria-label="Account"] {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    flex: 0 0 100%;
    width: 100%;
    max-width: calc(100vw - 32px);
    gap: 8px 16px;
    min-width: 0;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 1.4px;
    overflow-x: visible;
    scrollbar-width: none;
    white-space: normal;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    display: inline-block;
  }

  .book-button {
    min-width: 80px;
    padding: 0;
  }

  .book-button svg {
    display: none;
  }

  .shop-hero {
    min-height: 376px;
    padding: 24px 16px;
  }

  .shop-hero::after {
    background: linear-gradient(180deg, var(--white) 0%, rgba(255, 255, 255, 0.94) 44%, rgba(255, 255, 255, 0.4) 100%);
  }

  .hero-copy {
    max-width: 100%;
  }

  .breadcrumb {
    font-size: 11px;
    letter-spacing: 2px;
  }

  .shop-hero h1 {
    font-size: 56px;
  }

  .shop-hero p {
    font-size: 16px;
    max-width: 312px;
  }

  .hero-image {
    top: auto;
    bottom: 0;
    width: 100%;
    height: 52%;
  }

  .category-rail {
    grid-template-columns: 1fr;
    margin: 0 16px 32px;
  }

  .category-tile + .category-tile {
    border-top: 1px solid rgba(203, 162, 74, 0.2);
    border-left: 0;
  }

  .catalog {
    grid-template-columns: 1fr;
    padding: 0 16px 32px;
  }

  .filter-rail {
    display: grid;
  }

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

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

  .toolbar-controls label span {
    width: 176px;
  }

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

  .product-card {
    grid-template-rows: 200px auto auto auto auto auto;
    min-height: 360px;
  }

  .product-image {
    height: 200px;
  }

  .guidance-card {
    min-height: 280px;
  }

  .benefits {
    grid-template-columns: 1fr;
    margin: 0 16px 32px;
  }

  .benefit {
    padding: 12px 0;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px 24px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .newsletter {
    min-height: 256px;
  }

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

  .legal nav {
    flex-wrap: wrap;
    gap: 16px;
  }
}
