
:root {
  --ink: #090909;
  --paper: #f8f4ec;
  --paper-deep: #efe7d9;
  --cream: #fffdf8;
  --gold: #a86b1f;
  --maroon: #a61f1b;
  --maroon-dark: #8b1514;
  --line: #e2d8c9;
  --purple-a: #6e3fe5;
  --purple-b: #4b20e2;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at 15% 40%, rgba(190, 149, 89, 0.08), transparent 36%),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
}

button,
select {
  font: inherit;
}

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

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

.icon {
  display: block;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.site-header {
  align-items: center;
  background: #050505;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: auto 1fr auto;
  min-height: 66px;
  padding: 0 clamp(24px, 3vw, 42px);
}

.brand {
  border: 2px solid #f4dea8;
  color: #fff;
  display: inline-block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1;
  padding: 4px 7px 3px;
  position: relative;
  transform: rotate(-1deg);
}

.brand::after {
  border-top: 1px solid #f4dea8;
  content: "";
  left: 4px;
  position: absolute;
  right: 4px;
  top: -4px;
  transform: rotate(1.5deg);
}

.main-nav {
  align-items: center;
  display: flex;
  gap: clamp(22px, 2.3vw, 38px);
}

.main-nav a {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.main-nav a,
.header-actions a,
.header-actions button {
  transition: color 160ms ease, opacity 160ms ease;
}

.main-nav a:hover,
.header-actions a:hover,
.header-actions button:hover {
  color: #e2bc73;
}

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

.header-actions a,
.header-actions button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  padding: 4px;
}

.cart-button {
  position: relative;
}

.cart-count {
  align-items: center;
  background: #f6ede0;
  border: 1px solid #8f6837;
  border-radius: 50%;
  color: #4d2d11;
  display: flex;
  font-size: 9px;
  font-weight: 800;
  height: 16px;
  justify-content: center;
  min-width: 16px;
  padding: 0 3px;
  position: absolute;
  right: -6px;
  top: -6px;
}

.menu-button {
  display: none;
}

.shipping-bar {
  align-items: center;
  background: #f9f1e4;
  border-bottom: 1px solid #ded2c1;
  color: #704822;
  display: flex;
  gap: 10px;
  height: 31px;
  justify-content: center;
  text-transform: uppercase;
}

.shipping-bar span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.product-shell {
  display: grid;
  gap: 4px;
  grid-template-columns: minmax(0, 1.08fr) minmax(440px, 0.88fr);
  margin: 14px auto 17px;
  max-width: 1144px;
  padding: 0 16px;
}

.gallery {
  min-width: 0;
}

.main-image-wrap {
  background: #dfcdb7;
  border-radius: 11px 11px 0 0;
  height: 494px;
  overflow: hidden;
  position: relative;
}

.main-image {
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: opacity 180ms ease, transform 400ms ease;
  width: 100%;
}

.main-image-wrap:hover .main-image {
  transform: scale(1.015);
}

.origin-ribbon {
  background: rgba(11, 11, 9, 0.86);
  bottom: 16px;
  color: #f5e1ad;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  left: 16px;
  letter-spacing: 0.08em;
  padding: 8px 11px;
  position: absolute;
  text-transform: uppercase;
}

.thumbnails {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, 1fr);
  margin: 6px 8px 0;
}

.thumbnail {
  background: #e8dfd3;
  border: 1px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  height: 80px;
  overflow: hidden;
  padding: 0;
  transition: border-color 150ms ease, transform 150ms ease;
}

.thumbnail:hover {
  transform: translateY(-2px);
}

.thumbnail.active {
  border: 2px solid #6f4524;
}

.thumbnail img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-card {
  background:
    linear-gradient(rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.96)),
    repeating-linear-gradient(
      45deg,
      rgba(141, 105, 61, 0.05) 0,
      rgba(141, 105, 61, 0.05) 1px,
      transparent 1px,
      transparent 5px
    );
  border: 1px solid var(--line);
  border-radius: 11px;
  display: flex;
  flex-direction: column;
  min-height: 580px;
  overflow: hidden;
}

.product-summary {
  padding: 22px 38px 11px;
}

.eyebrow {
  color: #8e5d24;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.product-card h1 {
  font-family: Impact, "Arial Narrow", "Franklin Gothic Condensed", sans-serif;
  font-size: clamp(39px, 3.7vw, 52px);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 0.93;
  margin: 0;
  max-width: 470px;
  text-transform: uppercase;
}

.subheading {
  color: #75451d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 8px 0 7px;
}

.rating {
  align-items: center;
  display: inline-flex;
  gap: 9px;
}

.stars {
  color: #b36a11;
  font-size: 16px;
  letter-spacing: 1.4px;
}

.review-link {
  border-bottom: 1px solid #1b1b1b;
  font-size: 12px;
  line-height: 1.2;
}

.price {
  color: var(--maroon);
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 25px;
  letter-spacing: 0.03em;
  margin-top: 15px;
}

.meta {
  font-size: 12px;
  margin: 6px 0 14px;
}

.description {
  font-size: 12.5px;
  line-height: 1.52;
  margin: 0 0 17px;
  max-width: 480px;
}

.selectors {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr 110px;
  margin-bottom: 11px;
}

.selectors label > span,
.quantity-field > span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.selectors select,
.quantity-control {
  background: #fffdfa;
  border: 1px solid #ded4c7;
  border-radius: 5px;
  height: 42px;
  width: 100%;
}

.selectors select {
  color: #222;
  cursor: pointer;
  font-size: 12px;
  padding: 0 11px;
}

.quantity-control {
  align-items: center;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  overflow: hidden;
}

.quantity-control button {
  background: transparent;
  border: 0;
  color: #1d1d1d;
  cursor: pointer;
  font-size: 19px;
  height: 100%;
}

.quantity-control button:disabled {
  cursor: default;
  opacity: 0.35;
}

.quantity-control output {
  font-size: 12px;
  text-align: center;
}

.add-button {
  align-items: center;
  background: linear-gradient(90deg, var(--maroon), #b52521);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 18px;
  gap: 12px;
  height: 46px;
  justify-content: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
  width: 100%;
}

.add-button:hover {
  background: linear-gradient(90deg, var(--maroon-dark), #991916);
  transform: translateY(-1px);
}

.add-button:active {
  transform: translateY(0);
}

.shop-pay {
  align-items: center;
  background: linear-gradient(90deg, var(--purple-a), var(--purple-b));
  border-radius: 4px;
  color: #fff;
  display: flex;
  font-size: 15px;
  height: 45px;
  justify-content: center;
  margin-top: 6px;
}

.shop-pay strong {
  font-size: 21px;
  margin-left: 5px;
}

.shop-pay b {
  background: #fff;
  border-radius: 3px;
  color: #6041d3;
  font-size: 17px;
  margin-left: 2px;
  padding: 1px 4px;
}

.trust-row {
  border-bottom: 1px solid #e8ddce;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 38px;
  padding: 9px 0 15px;
}

.trust-row > div {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 42px;
  padding: 0 8px;
}

.trust-row > div + div {
  border-left: 1px solid #e1d6c6;
}

.trust-row span {
  font-size: 9.5px;
  line-height: 1.35;
}

.love-section {
  padding: 11px 38px 14px;
}

.love-section h2 {
  color: #a25f11;
  font-family: Impact, "Arial Narrow", sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.035em;
  margin: 0 0 10px;
  text-align: center;
  text-transform: uppercase;
}

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

.love-grid > div {
  align-items: center;
  color: #925513;
  display: flex;
  gap: 10px;
  justify-content: center;
  min-height: 45px;
  padding: 0 5px;
}

.love-grid > div + div {
  border-left: 1px solid #e8ddce;
}

.love-grid span {
  color: #161616;
  font-size: 9.5px;
  line-height: 1.32;
}

.details-section {
  background: #16110d;
  color: #f7f0e4;
  display: grid;
  gap: 70px;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  margin-top: 28px;
  padding: 88px max(32px, calc((100vw - 1112px) / 2));
}

.details-intro h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.08;
  margin: 0 0 22px;
}

.details-intro > p:last-child {
  color: #d0c5b8;
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
}

.detail-cards {
  align-self: end;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.detail-cards article {
  background: #231b15;
  min-height: 255px;
  padding: 28px 23px;
}

.detail-cards span {
  color: #b77a31;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.detail-cards h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  margin: 65px 0 13px;
}

.detail-cards p {
  color: #c9beb1;
  font-size: 13px;
  line-height: 1.65;
  margin: 0;
}

footer {
  align-items: center;
  background: #090807;
  color: #d8cfc3;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  min-height: 104px;
  padding: 26px max(32px, calc((100vw - 1112px) / 2));
}

.footer-brand {
  color: #fff;
}

footer p {
  font-size: 12px;
  margin: 0;
}

footer > a:last-child {
  border-bottom: 1px solid #a7773d;
  color: #e3b66e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding-bottom: 3px;
  text-transform: uppercase;
}

.cart-notice {
  align-items: center;
  background: #17110c;
  border: 1px solid #b8874a;
  border-radius: 5px;
  bottom: 24px;
  color: #fff;
  display: flex;
  gap: 10px;
  opacity: 0;
  padding: 13px 18px;
  pointer-events: none;
  position: fixed;
  right: 24px;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.cart-notice.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-notice .icon {
  color: #e0ad62;
}

.cart-notice span {
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    gap: 18px;
  }

  .main-nav {
    gap: 17px;
  }

  .main-nav a {
    font-size: 11px;
  }

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

  .main-image-wrap {
    height: 470px;
  }

  .product-summary {
    padding-left: 25px;
    padding-right: 25px;
  }

  .trust-row {
    margin-left: 25px;
    margin-right: 25px;
  }

  .love-section {
    padding-left: 25px;
    padding-right: 25px;
  }

  .details-section {
    gap: 42px;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    min-height: 64px;
    padding: 0 18px;
    position: relative;
    z-index: 20;
  }

  .brand {
    font-size: 20px;
  }

  .menu-button {
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    display: block;
    grid-column: 2;
    justify-self: end;
    padding: 7px;
  }

  .main-nav {
    align-items: stretch;
    background: #070707;
    border-top: 1px solid #252525;
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    padding: 8px 18px 18px;
    position: absolute;
    right: 0;
    top: 64px;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    border-bottom: 1px solid #232323;
    font-size: 13px;
    padding: 13px 4px;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions > a:nth-child(2) {
    display: none;
  }

  .shipping-bar {
    height: 34px;
  }

  .shipping-bar span {
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  .product-shell {
    display: block;
    margin-top: 10px;
    padding: 0 10px;
  }

  .main-image-wrap {
    border-radius: 9px;
    height: min(112vw, 570px);
  }

  .thumbnails {
    margin: 7px 0 11px;
  }

  .thumbnail {
    height: 66px;
  }

  .product-card {
    min-height: 0;
  }

  .product-summary {
    padding: 25px 21px 12px;
  }

  .product-card h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

  .selectors {
    grid-template-columns: 1fr 114px;
  }

  .trust-row {
    margin: 0 21px;
  }

  .trust-row > div {
    flex-direction: column;
    gap: 5px;
    padding: 8px 5px;
    text-align: center;
  }

  .love-section {
    padding: 13px 16px 18px;
  }

  .love-grid > div {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .details-section {
    gap: 38px;
    padding: 65px 22px;
  }

  .detail-cards {
    grid-template-columns: 1fr;
  }

  .detail-cards article {
    min-height: 170px;
  }

  .detail-cards h3 {
    margin-top: 35px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    padding: 38px 22px;
  }
}

@media (max-width: 410px) {
  .site-header {
    gap: 9px;
  }

  .header-actions {
    gap: 5px;
  }

  .header-actions > a:first-child {
    display: none;
  }

  .product-summary {
    padding-left: 17px;
    padding-right: 17px;
  }

  .selectors {
    gap: 9px;
    grid-template-columns: 1fr 105px;
  }

  .trust-row {
    margin-left: 12px;
    margin-right: 12px;
  }

  .love-grid span,
  .trust-row span {
    font-size: 8.7px;
  }
}

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