:root {
  --navy: #062c5a;
  --navy-2: #003f83;
  --gold: #d8a84d;
  --gold-bright: #f0cf78;
  --ink: #2b1c12;
  --wood: #4d2d18;
  --paper: #f8ecd1;
  --line: #cda66b;
}

* {
  box-sizing: border-box;
}

html {
  background: #15110d;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  background:
    radial-gradient(circle at 22% 10%, rgba(255, 239, 187, 0.32), transparent 32rem),
    linear-gradient(180deg, #2e1b10 0, #17100b 100%);
}

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

button,
input {
  font: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(100%, 1448px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(133, 89, 39, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    #f7ebcf;
  background-size: 42px 42px, auto, auto;
  border-inline: 3px solid #78521d;
  box-shadow: 0 0 42px rgba(0, 0, 0, 0.65);
}

.site-header {
  position: relative;
  z-index: 2;
  border-bottom: 3px solid #8c5c26;
  background:
    linear-gradient(90deg, rgba(70, 35, 13, 0.26), transparent 28%, rgba(80, 40, 12, 0.2)),
    #f3e3c2;
}

.header-main {
  min-height: 126px;
  display: grid;
  grid-template-columns: 430px minmax(460px, 1fr) 320px;
  gap: 10px;
  align-items: center;
  padding: 0 10px 0 0;
}

.brand {
  display: block;
  height: 126px;
  padding: 0 0 0 2px;
  background:
    linear-gradient(90deg, rgba(70, 32, 10, 0.78), rgba(120, 77, 31, 0.45)),
    repeating-linear-gradient(90deg, #5a3218 0 18px, #6e421f 18px 38px);
  border-right: 3px solid #70441d;
}

.brand img {
  width: 426px;
  max-width: 100%;
  height: 121px;
  object-fit: cover;
  display: block;
}

.header-center {
  min-width: 0;
}

.search-bar {
  height: 48px;
  display: grid;
  grid-template-columns: 148px minmax(220px, 1fr) 84px;
  padding: 3px;
  border: 2px solid #9d6b2a;
  border-radius: 7px;
  background: #fff8e9;
  box-shadow: 0 2px 5px rgba(73, 41, 17, 0.3), inset 0 0 0 1px #f6d994;
}

.select-button,
.search-button,
.cart-button,
.primary-cta,
.card-actions button {
  cursor: pointer;
}

.select-button {
  border: 0;
  border-right: 1px solid #c9a46c;
  color: #3d2a18;
  background: linear-gradient(#fffdf4, #f3dfb9);
}

.select-button::after {
  content: "⌄";
  margin-left: 16px;
  color: #7d551f;
}

.search-bar input {
  min-width: 0;
  border: 0;
  padding: 0 18px;
  color: #4a3928;
  background: #fffaf1;
  outline: 0;
}

.search-button,
.cart-button,
.primary-cta,
.card-actions button:last-child {
  border: 1px solid #d4ad62;
  color: #fff6d9;
  background: linear-gradient(180deg, #0d58a7, #003c7b 56%, #002f62);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 132, 0.42), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.search-button {
  border-radius: 4px;
  font-weight: 700;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  color: #6f4c25;
}

.benefits li {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 7px;
  align-items: center;
}

.benefits span {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff4cf;
  background: #8b5f2f;
}

.benefits strong {
  font-size: 14px;
  line-height: 1.15;
}

.benefits small {
  font-size: 12px;
  line-height: 1.2;
}

.header-actions {
  display: grid;
  grid-template-columns: 76px 108px 124px;
  grid-template-rows: 48px 70px;
  gap: 8px 6px;
  align-items: center;
  justify-content: end;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #3b2412;
  font-size: 15px;
}

.header-actions a {
  font-weight: 700;
  white-space: nowrap;
}

.cart-button {
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-weight: 800;
}

.cart-button span {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 50%;
  background: #1274cf;
}

.cart-link-button {
  color: #fff6d9;
}

.wallet {
  grid-column: 1 / -1;
  justify-self: end;
  width: 266px;
  height: 71px;
  object-fit: cover;
  filter: drop-shadow(0 3px 2px rgba(57, 31, 10, 0.34));
}

.wood-nav {
  height: 45px;
  display: grid;
  grid-template-columns: 258px repeat(6, 1fr);
  align-items: stretch;
  color: #fff3d4;
  font-weight: 700;
  background:
    linear-gradient(180deg, rgba(255, 214, 128, 0.14), transparent 46%, rgba(0, 0, 0, 0.28)),
    repeating-linear-gradient(90deg, #472813 0 100px, #5a3218 100px 220px, #40220f 220px 260px);
  border-top: 1px solid #9a682c;
  box-shadow: inset 0 1px #d6a54a, inset 0 -1px #21100a;
}

.wood-nav a {
  min-width: 0;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 210, 119, 0.14);
  text-shadow: 0 1px 2px #140a05;
  white-space: nowrap;
}

.wood-nav a:hover {
  background: rgba(255, 214, 128, 0.09);
}

.nav-highlight::before {
  content: "♜";
  margin-right: 10px;
  color: var(--gold-bright);
}

.nav-highlight::after {
  content: "⌄";
  margin-left: 20px;
  color: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: 284px;
  display: flex;
  align-items: center;
  padding-left: clamp(42px, 15vw, 220px);
  border-bottom: 3px solid #b58438;
  background-image:
    linear-gradient(90deg, rgba(253, 241, 213, 0.88) 10%, rgba(253, 241, 213, 0.58) 34%, rgba(253, 241, 213, 0.03) 61%),
    url("./assets/hero-bg.png");
  background-size: auto, cover;
  background-position: center;
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 10px;
  content: "";
  pointer-events: none;
  border: 2px solid rgba(221, 174, 82, 0.72);
  clip-path: polygon(0 0, 16% 0, 16% 2px, 2px 2px, 2px 16%, 0 16%, 0 0, 100% 0, 100% 16%, calc(100% - 2px) 16%, calc(100% - 2px) 2px, 84% 2px, 84% 0, 100% 0, 100% 100%, 84% 100%, 84% calc(100% - 2px), calc(100% - 2px) calc(100% - 2px), calc(100% - 2px) 84%, 100% 84%, 100% 100%, 0 100%, 0 84%, 2px 84%, 2px calc(100% - 2px), 16% calc(100% - 2px), 16% 100%, 0 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 610px;
  padding: 8px 0 0;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.spark {
  position: absolute;
  left: -34px;
  top: 8px;
  color: #caa45a;
  font-size: 31px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.16;
  font-weight: 700;
  letter-spacing: 0;
}

.hero p {
  margin: 0 0 18px;
  font-size: 19px;
  line-height: 1.75;
  font-weight: 600;
}

.primary-cta {
  width: 224px;
  height: 47px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  font-weight: 800;
  box-shadow: inset 0 0 0 2px rgba(235, 190, 89, 0.52), 0 2px 0 #614116;
}

.hero-dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  display: flex;
  gap: 17px;
  transform: translateX(-50%);
}

.hero-dots span {
  width: 12px;
  height: 12px;
  border: 2px solid #f1cb64;
  border-radius: 50%;
  background: #fff9e9;
  box-shadow: 0 1px 2px #29180b;
}

.hero-dots span:first-child {
  background: transparent;
}

.content-grid {
  display: grid;
  grid-template-columns: 232px 1fr;
  gap: 24px;
  padding: 0 24px 12px;
}

.category-panel {
  align-self: start;
  margin-top: 4px;
  border: 2px solid #aa762f;
  border-radius: 4px;
  background: rgba(255, 247, 229, 0.82);
  box-shadow: inset 0 0 0 1px #ead19b, 0 2px 5px rgba(92, 57, 19, 0.3);
  overflow: hidden;
}

.category-panel h2 {
  height: 44px;
  margin: 0;
  display: grid;
  place-items: center;
  color: #fff4d7;
  font-size: 17px;
  background: linear-gradient(180deg, #06386c, #052d58);
  border-bottom: 2px solid #bd8740;
}

.category-panel a {
  height: 39px;
  display: grid;
  grid-template-columns: 31px 1fr 16px;
  align-items: center;
  padding: 0 12px;
  border-bottom: 1px solid #dec899;
  font-size: 15px;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.48), rgba(255, 248, 231, 0.2));
}

.category-panel a::after {
  content: "›";
  color: #9d773d;
  font-size: 22px;
}

.products-section {
  min-width: 0;
  padding-top: 16px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6bc83;
}

.section-heading h2 {
  margin: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 22px;
}

.section-heading h2 span {
  color: #c8a151;
}

.section-heading a {
  color: #6e4a20;
  font-weight: 700;
  font-size: 14px;
}

.product-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(142px, 1fr));
  gap: 22px;
}

.product-card {
  position: relative;
  min-width: 0;
  min-height: 291px;
  padding: 10px 11px 12px;
  background:
    linear-gradient(135deg, rgba(211, 167, 86, 0.65) 0 1px, transparent 1px) left top / 20px 20px no-repeat,
    linear-gradient(225deg, rgba(211, 167, 86, 0.65) 0 1px, transparent 1px) right top / 20px 20px no-repeat,
    linear-gradient(45deg, rgba(211, 167, 86, 0.65) 0 1px, transparent 1px) left bottom / 20px 20px no-repeat,
    linear-gradient(315deg, rgba(211, 167, 86, 0.65) 0 1px, transparent 1px) right bottom / 20px 20px no-repeat,
    rgba(255, 250, 238, 0.58);
  border: 1px solid #d4b478;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68);
}

.product-card img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
  mix-blend-mode: multiply;
}

.product-link {
  display: block;
}

.product-card h3 {
  margin: 0 0 5px;
  min-height: 22px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.rating {
  margin: 0 0 3px;
  color: #d8920c;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: 800;
}

.rating span {
  color: #6c5a43;
  font-weight: 500;
}

.price {
  margin: 0 0 9px;
  font-size: 22px;
  font-weight: 800;
  font-family: Georgia, "Times New Roman", serif;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.card-actions button,
.card-actions a {
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  border: 1px solid #d6b77c;
  color: #8f6529;
  font-size: 21px;
  background: linear-gradient(#fffdf5, #f2dfb6);
}

.card-actions a:last-child {
  border: 1px solid #d4ad62;
  color: #fff6d9;
  background: linear-gradient(180deg, #0d58a7, #003c7b 56%, #002f62);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 132, 0.42), 0 2px 4px rgba(0, 0, 0, 0.25);
}

.promo-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 22px;
}

.promo-card {
  min-height: 104px;
  display: grid;
  grid-template-columns: 96px 1fr;
  grid-template-rows: 1fr 24px;
  gap: 0 14px;
  align-items: center;
  padding: 12px 18px;
  border: 1px solid #c69d5d;
  background: rgba(255, 249, 235, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.promo-card img {
  grid-row: 1 / -1;
  width: 88px;
  height: 76px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.promo-card strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.promo-card small {
  display: block;
  line-height: 1.35;
}

.promo-card em {
  justify-self: end;
  color: #004985;
  font-style: normal;
  font-weight: 800;
  font-size: 14px;
}

.site-footer {
  min-height: 54px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  margin-top: 0;
  color: #fff2c9;
  font-weight: 800;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(245, 204, 101, 0.16), rgba(0, 0, 0, 0.18)),
    #062f5d;
  border-top: 3px solid #b7832f;
  box-shadow: inset 0 0 0 1px #001c3a;
}

.site-footer span {
  min-height: 54px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(244, 205, 114, 0.2);
}

.product-main {
  padding: 18px 28px 28px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #745227;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #004985;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(360px, 44%) minmax(420px, 1fr);
  gap: 28px;
  align-items: start;
}

.product-gallery,
.product-buybox,
.info-grid article,
.related-products {
  border: 1px solid #c59c5c;
  background:
    linear-gradient(135deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left top / 24px 24px no-repeat,
    linear-gradient(225deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right top / 24px 24px no-repeat,
    linear-gradient(45deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left bottom / 24px 24px no-repeat,
    linear-gradient(315deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right bottom / 24px 24px no-repeat,
    rgba(255, 249, 235, 0.74);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 2px 8px rgba(88, 56, 20, 0.16);
}

.product-gallery {
  padding: 20px;
}

.gallery-frame {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d4b478;
  background:
    radial-gradient(circle at 50% 42%, rgba(70, 176, 255, 0.18), transparent 30%),
    radial-gradient(circle at 52% 50%, rgba(255, 232, 150, 0.38), transparent 54%),
    linear-gradient(#fffaf0, #f1dfb8);
}

.gallery-frame::before {
  position: absolute;
  width: 310px;
  height: 310px;
  content: "";
  border: 1px solid rgba(196, 153, 70, 0.42);
  border-radius: 50%;
  box-shadow: 0 0 52px rgba(24, 111, 185, 0.16);
}

.gallery-frame img {
  position: relative;
  z-index: 1;
  width: min(68%, 300px);
  max-height: 360px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 14px 12px rgba(41, 26, 12, 0.24));
}

.rarity-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 7px 12px;
  color: #fff6d9;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 800;
  background: linear-gradient(180deg, #0d58a7, #003c7b);
  border: 1px solid #d9b365;
  border-radius: 999px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.gallery-thumbs button {
  height: 40px;
  border: 1px solid #caa568;
  color: #67451f;
  background: linear-gradient(#fffaf0, #edd8ad);
  cursor: pointer;
}

.gallery-thumbs button.is-active {
  color: #fff6d9;
  background: linear-gradient(180deg, #0d58a7, #003c7b);
}

.trust-scroll {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid #dcc08a;
  background: rgba(255, 255, 255, 0.34);
}

.trust-scroll strong {
  display: block;
  margin-bottom: 6px;
  color: #06386c;
}

.trust-scroll p {
  margin: 0;
  line-height: 1.65;
}

.product-buybox {
  padding: 24px;
}

.product-code {
  margin: 0 0 8px;
  color: #806034;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 700;
}

.product-buybox h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.2;
  letter-spacing: 0;
}

.product-rating {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 14px;
  align-items: center;
  margin-bottom: 14px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}

.product-rating span {
  color: #d8920c;
  font-weight: 900;
}

.product-rating a {
  color: #004985;
  font-weight: 800;
}

.product-rating em {
  color: #70522b;
  font-style: normal;
}

.product-lead {
  margin: 0 0 18px;
  line-height: 1.8;
  font-weight: 600;
}

.price-panel {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 18px;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 16px 18px;
  border: 1px solid #d2ac69;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.54), rgba(246, 224, 177, 0.5));
}

.price-panel span {
  color: #69491f;
  font-weight: 800;
}

.price-panel strong {
  color: #231405;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 38px;
  line-height: 1;
}

.price-panel small {
  grid-column: 2;
  color: #765a31;
}

.purchase-facts {
  display: grid;
  gap: 9px;
  margin: 0 0 18px;
  padding: 0;
}

.purchase-facts div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid #dfc894;
}

.purchase-facts dt {
  color: #6d4c23;
  font-weight: 800;
}

.purchase-facts dd {
  margin: 0;
}

.stock-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 50%;
  background: #1f9d59;
  box-shadow: 0 0 0 3px rgba(31, 157, 89, 0.16);
}

.purchase-form fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.purchase-form legend,
.qty-label {
  width: 100%;
  margin-bottom: 8px;
  color: #5e3d18;
  font-weight: 800;
}

.purchase-form label {
  cursor: pointer;
}

.purchase-form fieldset label {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cfad70;
  background: rgba(255, 255, 255, 0.38);
}

.quantity-control {
  width: 158px;
  height: 44px;
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  margin-bottom: 16px;
  border: 1px solid #b98d4b;
  background: #fffaf0;
}

.quantity-control button {
  border: 0;
  color: #fff6d9;
  font-size: 20px;
  background: linear-gradient(180deg, #7a5427, #4f2c15);
  cursor: pointer;
}

.quantity-control input {
  width: 100%;
  border: 0;
  text-align: center;
  color: #231405;
  font-weight: 900;
  background: transparent;
}

.purchase-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid #d9bd84;
}

.purchase-total span {
  font-weight: 800;
}

.purchase-total strong {
  font-size: 24px;
}

.buy-actions {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 12px;
}

.add-cart-button,
.checkout-link {
  min-height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid #d4ad62;
  color: #fff6d9;
  font-weight: 900;
  background: linear-gradient(180deg, #0d58a7, #003c7b 56%, #002f62);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 132, 0.42), 0 2px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.favorite-button {
  min-height: 50px;
  border: 1px solid #d4ad62;
  color: #7d5521;
  font-weight: 800;
  background: linear-gradient(#fffdf5, #f2dfb6);
  cursor: pointer;
}

.info-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 20px;
  margin-top: 24px;
}

.info-grid article {
  padding: 18px 20px;
}

.info-grid h2,
.related-products h2 {
  margin: 0 0 12px;
  color: #2b1c12;
  font-size: 21px;
}

.info-grid p {
  margin: 0;
  line-height: 1.75;
}

.info-grid table {
  width: 100%;
  border-collapse: collapse;
}

.info-grid th,
.info-grid td {
  padding: 9px 0;
  border-bottom: 1px solid #dfc894;
  text-align: left;
  vertical-align: top;
}

.info-grid th {
  width: 92px;
  color: #66461f;
}

.info-grid blockquote {
  margin: 0 0 10px;
  line-height: 1.7;
}

.reviewer {
  color: #73552d;
  font-weight: 800;
}

.related-products {
  margin-top: 24px;
  padding: 18px 20px 20px;
}

.related-products .product-row {
  grid-template-columns: repeat(3, minmax(160px, 1fr));
}

.cart-drawer {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 20;
  width: min(390px, calc(100vw - 32px));
  padding: 16px;
  border: 2px solid #c99f58;
  color: #2b1c12;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(245, 222, 176, 0.92)),
    #f8ecd1;
  box-shadow: 0 18px 45px rgba(31, 17, 8, 0.42);
  transform: translateX(calc(100% + 40px));
  transition: transform 180ms ease;
}

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

.cart-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: #06386c;
  font-size: 18px;
}

.cart-drawer-head button {
  width: 32px;
  height: 32px;
  border: 1px solid #caa568;
  color: #6c481f;
  background: #fff8e8;
  cursor: pointer;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-block: 1px solid #d9bd84;
}

.cart-item img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-item b,
.cart-item small,
.cart-item span {
  display: block;
}

.cart-item small {
  margin: 4px 0;
  color: #765a31;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  font-weight: 800;
}

.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 21;
  padding: 12px 18px;
  color: #fff6d9;
  font-weight: 800;
  background: linear-gradient(180deg, #0d58a7, #003c7b);
  border: 1px solid #d4ad62;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

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

.cart-main {
  padding: 18px 28px 32px;
}

.checkout-main {
  padding: 18px 28px 32px;
}

.cart-title-band {
  min-height: 126px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 22px 26px;
  border: 1px solid #c59c5c;
  color: #fff6d9;
  background:
    linear-gradient(90deg, rgba(6, 47, 93, 0.95), rgba(7, 62, 116, 0.82)),
    url("./assets/hero-bg.png") center 47% / cover;
  box-shadow: inset 0 0 0 1px rgba(255, 230, 150, 0.32);
}

.cart-title-band p {
  margin: 0 0 8px;
  color: #f0cf78;
  font-weight: 800;
}

.cart-title-band h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: 0;
}

.continue-link {
  min-width: 170px;
  min-height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #d4ad62;
  color: #fff6d9;
  font-weight: 900;
  background: rgba(4, 35, 75, 0.72);
}

.cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.cart-list-panel,
.order-summary {
  border: 1px solid #c59c5c;
  background:
    linear-gradient(135deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left top / 24px 24px no-repeat,
    linear-gradient(225deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right top / 24px 24px no-repeat,
    linear-gradient(45deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left bottom / 24px 24px no-repeat,
    linear-gradient(315deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right bottom / 24px 24px no-repeat,
    rgba(255, 249, 235, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 2px 8px rgba(88, 56, 20, 0.16);
}

.cart-list-panel {
  min-height: 360px;
  padding: 18px;
}

.cart-list-head {
  display: grid;
  grid-template-columns: 102px minmax(260px, 1fr) 168px 130px 64px;
  gap: 16px;
  padding: 0 8px 12px;
  color: #69491f;
  border-bottom: 1px solid #d7bb82;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  font-weight: 900;
}

.cart-list-head span:nth-child(3) {
  text-align: right;
}

.cart-list-head span:first-child {
  grid-column: 1 / 3;
}

.cart-line {
  display: grid;
  grid-template-columns: 102px minmax(180px, 1fr) 168px 130px 64px;
  gap: 16px;
  align-items: center;
  padding: 16px 8px;
  border-bottom: 1px solid #dfc894;
}

.cart-line-image {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border: 1px solid #d2ad6e;
  background: rgba(255, 255, 255, 0.42);
}

.cart-line-image img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.cart-line-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.cart-line-info p {
  margin: 0 0 4px;
  color: #67451f;
  font-weight: 800;
}

.cart-line-info small {
  color: #765a31;
}

.cart-line-quantity {
  width: 150px;
  height: 40px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid #b98d4b;
  background: #fffaf0;
}

.cart-line-quantity button {
  border: 0;
  color: #fff6d9;
  font-size: 18px;
  background: linear-gradient(180deg, #7a5427, #4f2c15);
  cursor: pointer;
}

.cart-line-quantity input {
  min-width: 0;
  border: 0;
  text-align: center;
  font-weight: 900;
  background: transparent;
}

.cart-line-total {
  justify-self: end;
  font-size: 20px;
}

.cart-remove,
.clear-cart {
  min-height: 36px;
  border: 1px solid #caa568;
  color: #744b1d;
  font-weight: 800;
  background: linear-gradient(#fffaf0, #edd8ad);
  cursor: pointer;
}

.empty-cart {
  min-height: 270px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  text-align: center;
}

.empty-cart[hidden] {
  display: none;
}

.empty-cart strong {
  color: #06386c;
  font-size: 24px;
}

.empty-cart p {
  margin: 0;
}

.order-summary {
  position: sticky;
  top: 16px;
  padding: 20px;
}

.order-summary h2 {
  margin: 0 0 16px;
  color: #06386c;
}

.order-summary dl {
  margin: 0;
}

.order-summary dl > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid #dfc894;
}

.order-summary dt {
  color: #69491f;
  font-weight: 800;
}

.order-summary dd {
  margin: 0;
  font-weight: 900;
}

.summary-total {
  font-size: 22px;
}

.shipping-note {
  margin: 14px 0 16px;
  line-height: 1.55;
  color: #67451f;
  font-weight: 800;
}

.checkout-action {
  width: 100%;
  min-height: 50px;
  margin-bottom: 10px;
  border: 1px solid #d4ad62;
  color: #fff6d9;
  font-weight: 900;
  background: linear-gradient(180deg, #0d58a7, #003c7b 56%, #002f62);
  box-shadow: inset 0 0 0 1px rgba(255, 226, 132, 0.42), 0 2px 4px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.clear-cart {
  width: 100%;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 430px);
  gap: 24px;
  align-items: start;
}

.checkout-steps {
  display: grid;
  gap: 18px;
}

.checkout-panel,
.order-complete {
  border: 1px solid #c59c5c;
  background:
    linear-gradient(135deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left top / 24px 24px no-repeat,
    linear-gradient(225deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right top / 24px 24px no-repeat,
    linear-gradient(45deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) left bottom / 24px 24px no-repeat,
    linear-gradient(315deg, rgba(212, 170, 88, 0.62) 0 1px, transparent 1px) right bottom / 24px 24px no-repeat,
    rgba(255, 249, 235, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 2px 8px rgba(88, 56, 20, 0.16);
}

.checkout-panel {
  padding: 20px;
}

.checkout-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d7bb82;
}

.checkout-heading span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff6d9;
  font-weight: 900;
  border: 1px solid #d4ad62;
  border-radius: 50%;
  background: linear-gradient(180deg, #0d58a7, #003c7b);
}

.checkout-heading h2 {
  margin: 0;
  color: #06386c;
}

.checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.checkout-fields label,
.memo-field {
  display: grid;
  gap: 7px;
  color: #5e3d18;
  font-weight: 800;
}

.checkout-fields input,
.memo-field textarea {
  width: 100%;
  border: 1px solid #caa568;
  padding: 11px 12px;
  color: #2b1c12;
  background: #fffaf0;
  outline: 0;
}

.checkout-fields input:focus,
.memo-field textarea:focus {
  border-color: #0d58a7;
  box-shadow: 0 0 0 3px rgba(13, 88, 167, 0.14);
}

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

.delivery-options {
  display: grid;
  gap: 12px;
}

.delivery-card {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid #cfad70;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
}

.delivery-card:has(input:checked) {
  border-color: #0d58a7;
  background: linear-gradient(90deg, rgba(13, 88, 167, 0.12), rgba(255, 255, 255, 0.42));
  box-shadow: inset 0 0 0 1px rgba(13, 88, 167, 0.25);
}

.delivery-card strong,
.delivery-card small {
  display: block;
}

.delivery-card small {
  margin-top: 4px;
  color: #765a31;
  line-height: 1.4;
}

.delivery-card em {
  color: #06386c;
  font-style: normal;
  font-weight: 900;
}

.payment-box {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #cfad70;
  background: rgba(255, 255, 255, 0.38);
}

.payment-box label {
  font-weight: 900;
}

.payment-box p {
  margin: 0;
  color: #67451f;
}

.checkout-summary {
  position: sticky;
  top: 16px;
}

.checkout-items {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #dfc894;
}

.checkout-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid #e2ca98;
}

.checkout-item img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.checkout-item-copy {
  min-width: 0;
}

.checkout-item strong,
.checkout-item small,
.checkout-item span {
  display: block;
}

.checkout-item strong {
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.checkout-item small {
  color: #765a31;
  margin-top: 3px;
  line-height: 1.45;
}

.checkout-item span {
  margin-top: 3px;
  color: #765a31;
  font-size: 13px;
}

.checkout-item b {
  grid-column: 2;
  justify-self: end;
  max-width: 100%;
  font-size: 18px;
  white-space: nowrap;
}

.checkout-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.order-complete {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 34px 24px;
  text-align: center;
}

.order-complete[hidden] {
  display: none;
}

.order-complete h1,
.order-complete h2 {
  margin: 0;
  color: #06386c;
  font-size: clamp(32px, 5vw, 48px);
}

.order-complete p {
  max-width: 760px;
  margin: 0 0 8px;
  line-height: 1.75;
  font-weight: 800;
}

.complete-mark {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  color: #fff6d9;
  font-size: 38px;
  font-weight: 900;
  border: 2px solid #d4ad62;
  border-radius: 50%;
  background: linear-gradient(180deg, #0d58a7, #003c7b);
}

.complete-summary {
  width: min(100%, 560px);
  margin: 8px 0 12px;
  padding: 16px 18px;
  border: 1px solid #d7bb82;
  background: rgba(255, 255, 255, 0.38);
}

.complete-summary dl {
  margin: 0;
}

.complete-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #dfc894;
}

.complete-summary div:last-child {
  border-bottom: 0;
}

.complete-summary dt {
  color: #69491f;
  font-weight: 800;
}

.complete-summary dd {
  margin: 0;
  font-weight: 900;
}

.complete-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

@media (max-width: 1180px) {
  .header-main {
    grid-template-columns: 360px 1fr;
    padding-right: 16px;
  }

  .brand {
    height: 116px;
  }

  .brand img {
    width: 360px;
    height: 102px;
  }

  .header-actions {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, auto);
    grid-template-rows: 48px;
    justify-content: center;
    padding-bottom: 10px;
  }

  .wallet {
    grid-column: auto;
  }

  .wood-nav {
    grid-template-columns: repeat(4, 1fr);
    height: auto;
  }

  .wood-nav a {
    min-height: 42px;
  }

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

@media (max-width: 820px) {
  .page-shell {
    border: 0;
  }

  .header-main,
  .content-grid,
  .product-detail,
  .info-grid,
  .cart-layout,
  .checkout-layout,
  .promo-row,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .header-main {
    gap: 10px;
    padding: 0 12px 12px;
  }

  .brand {
    width: calc(100% + 24px);
    margin-left: -12px;
    height: auto;
  }

  .brand img {
    width: 100%;
    height: auto;
  }

  .search-bar {
    grid-template-columns: 126px 1fr 70px;
  }

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

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

  .wallet {
    grid-column: 1 / -1;
    justify-self: center;
  }

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

  .hero {
    padding: 36px 22px 54px;
    min-height: 330px;
    background-position: 59% center;
  }

  .hero h1 {
    max-width: 10em;
  }

  .hero p {
    font-size: 16px;
  }

  .spark {
    display: none;
  }

  .content-grid {
    padding: 14px;
  }

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

  .product-main {
    padding: 14px;
  }

  .gallery-frame {
    min-height: 320px;
  }

  .buy-actions,
  .related-products .product-row {
    grid-template-columns: 1fr;
  }

  .cart-title-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .cart-list-head {
    display: none;
  }

  .cart-line {
    grid-template-columns: 92px 1fr;
  }

  .cart-line-quantity,
  .cart-line-total,
  .cart-remove {
    grid-column: 2;
    justify-self: start;
  }

  .order-summary {
    position: static;
  }

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

  .delivery-card {
    grid-template-columns: 24px 1fr;
  }

  .delivery-card em {
    grid-column: 2;
  }
}

@media (max-width: 520px) {
  .search-bar,
  .header-actions,
  .wood-nav,
  .product-row {
    grid-template-columns: 1fr;
  }

  .search-bar {
    height: auto;
  }

  .search-bar > * {
    min-height: 42px;
  }

  .select-button {
    border-right: 0;
    border-bottom: 1px solid #c9a46c;
  }

  .hero h1 {
    font-size: 32px;
  }

  .primary-cta {
    width: 100%;
  }
}
