:root {
  --ink: #10100e;
  --muted: #766f63;
  --line: #d8cbb9;
  --brand: #6f4f37;
  --accent: #304534;
  --paper: #f7f2ea;
  --soft: #e8dccb;
  --white: #fff;
  --dark-brown: #241912;
  --black-green: #151b16;
  --shadow: 0 24px 56px rgba(36, 25, 18, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbf7f0;
  font-family: "Noto Sans KR", sans-serif;
}

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

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

button {
  cursor: pointer;
}

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

#app:focus {
  outline: 0;
}

.top-banner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 56px;
  color: #fff;
  background: var(--dark-brown);
  font-size: 13px;
}

.top-banner p {
  margin: 0;
}

.top-banner button {
  position: absolute;
  right: 28px;
  width: 28px;
  height: 28px;
  border: 0;
  color: #fff;
  background: transparent;
  font-size: 22px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 240, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 156px;
  align-items: center;
  width: min(1480px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  gap: 30px;
}

.brand {
  justify-self: start;
  font-family: Lato, "Noto Sans KR", sans-serif;
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-self: end;
  justify-content: center;
  gap: 34px;
  padding-bottom: 28px;
  color: var(--dark-brown);
  font-size: 15px;
  font-weight: 500;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
}

.main-nav a::after {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 0;
  height: 2px;
  background: var(--brand);
  content: "";
  transition: width 0.2s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-self: end;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding-bottom: 24px;
  min-width: 156px;
}

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
}

.icon-search,
.icon-profile,
.icon-cart {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.icon-search::before {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-search::after {
  position: absolute;
  right: 2px;
  bottom: 3px;
  width: 9px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
}

.icon-profile::before {
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2.5px solid currentColor;
  border-radius: 50%;
  content: "";
}

.icon-profile::after {
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 16px;
  height: 9px;
  border: 2.5px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.icon-cart::before {
  position: absolute;
  left: 3px;
  top: 5px;
  width: 15px;
  height: 10px;
  border: 2.5px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  content: "";
}

.icon-cart::after {
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 5px;
  border: 2.5px solid currentColor;
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  content: "";
}

.icon-button:hover {
  border-color: var(--line);
  background: #fffaf3;
}

.menu-button {
  display: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid #fbf7f0;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.search-panel {
  display: none;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(720px, calc(100% - 48px));
  margin: 0 auto 24px;
  padding-top: 8px;
}

.search-panel.open {
  display: grid;
}

.search-panel input {
  min-width: 0;
  border: 1px solid var(--line);
  padding: 14px 16px;
  outline: 0;
}

.search-panel input:focus {
  border-color: var(--brand);
}

.search-panel button {
  border: 0;
  padding: 0 22px;
  color: #fff;
  background: var(--black-green);
}

.hot-keywords {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.hot-keywords a,
.board-tabs a {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.mobile-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 30;
  width: min(320px, 82vw);
  padding: 92px 26px 32px;
  background: #fbf7f0;
  box-shadow: 20px 0 40px rgba(36, 25, 18, 0.16);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
}

.drawer-open {
  overflow: hidden;
}

.drawer-open::before {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(36, 25, 18, 0.28);
  content: "";
}

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

.drawer-close {
  position: absolute;
  right: 22px;
  top: 22px;
  width: 38px;
  height: 38px;
  border: 0;
  color: var(--ink);
  background: transparent;
  font-size: 34px;
  line-height: 1;
}

.mobile-drawer nav {
  display: grid;
  gap: 18px;
  font-size: 18px;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--black-green);
}

.hero-track {
  display: flex;
  position: relative;
  min-height: clamp(520px, 72vw, 760px);
  transition: transform 0.72s cubic-bezier(0.77, 0, 0.18, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  min-height: inherit;
  overflow: hidden;
}

.hero-slide.active {
  pointer-events: auto;
}

.hero-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.03);
}

.hero-slide::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(16, 16, 14, 0.58), rgba(36, 25, 18, 0.18) 58%, rgba(48, 69, 52, 0.08));
  content: "";
}

.hero-copy {
  position: absolute;
  left: max(7vw, 40px);
  top: 50%;
  width: min(560px, 48vw);
  transform: translateY(-50%);
  z-index: 1;
  color: #fffaf3;
}

.eyebrow,
.hero-copy span,
.section-heading span,
.page-hero span,
.promo-band span,
.story-grid span {
  color: var(--brand);
  font-family: Lato, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 16px 0 18px;
  font-family: Lato, "Noto Sans KR", sans-serif;
  font-size: clamp(42px, 5.2vw, 80px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 420px;
  margin: 0 0 32px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 18px;
  line-height: 1.8;
}

.hero-copy a,
.promo-band a,
.detail-actions a,
.cart-total a,
.empty a,
.auth-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 30px;
  color: #fffaf3;
  border: 0;
  background: var(--black-green);
  font-weight: 700;
}

.hero-controls {
  position: absolute;
  left: max(7vw, 40px);
  bottom: 42px;
  display: flex;
  align-items: center;
  gap: 18px;
  z-index: 1;
}

.hero-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 250, 243, 0.34);
  border-radius: 50%;
  color: #fffaf3;
  background: rgba(255, 250, 243, 0.08);
  font-size: 28px;
}

.hero-index {
  font-family: Lato, sans-serif;
  font-weight: 700;
  color: rgba(255, 250, 243, 0.82);
}

.section,
.product-grid {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
}

.section {
  padding: 82px 0;
}

.section-heading {
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto;
  padding: 112px 0 38px;
  text-align: center;
}

.section-heading h2,
.page-hero h1 {
  margin: 10px 0 0;
  font-family: Lato, "Noto Sans KR", sans-serif;
  font-size: clamp(34px, 3.4vw, 54px);
  font-weight: 900;
  letter-spacing: 0;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 58px 28px;
  padding-bottom: 92px;
}

.product-grid.is-swiping {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}

.product-grid.is-swiping * {
  user-select: none;
}

.product-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding-bottom: 54px;
  scrollbar-color: var(--brand) rgba(111, 79, 55, 0.14);
}

.product-rail,
.product-grid {
  touch-action: pan-y;
  -webkit-overflow-scrolling: touch;
}

.product-rail .product-card {
  flex: 0 0 min(310px, 76vw);
  scroll-snap-align: start;
}

.product-card {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.product-image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #eee4d5;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s ease, filter 0.45s ease;
}

.product-card:hover .product-image img {
  filter: saturate(0.88);
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  color: var(--dark-brown);
  background: rgba(247, 242, 234, 0.88);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.product-badge.is-soldout {
  color: #fffaf3;
  background: rgba(16, 16, 14, 0.76);
}

.product-actions {
  position: absolute;
  right: 14px;
  top: calc(100% - 58px);
  display: flex;
  gap: 8px;
}

.product-actions button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: #fffaf3;
  box-shadow: var(--shadow);
  font-size: 18px;
}

.product-card h3 {
  margin: 20px 0 8px;
  font-size: 18px;
  font-weight: 800;
}

.product-card p {
  min-height: 48px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.price,
.detail-price {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price del,
.detail-price del {
  color: #958a7d;
  font-size: 14px;
}

.price strong,
.detail-price strong {
  color: var(--black-green);
  font-size: 18px;
}

.swatches {
  display: flex;
  gap: 5px;
  min-height: 14px;
  margin-top: 12px;
}

.swatches span {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(36, 25, 18, 0.16);
  border-radius: 50%;
}

.promo-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 78px max(7vw, 40px);
  color: #fffaf3;
  background: linear-gradient(135deg, var(--black-green), var(--dark-brown));
}

.promo-band h2 {
  margin: 12px 0 14px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.2;
}

.promo-band p,
.page-hero p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.page-hero {
  padding: 92px max(24px, 7vw);
  background: linear-gradient(135deg, #f7f2ea, #e8dccb);
}

.page-hero p {
  margin-top: 18px;
}

.story-grid,
.coupon-grid,
.dashboard-grid,
.lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.story-grid div,
.coupon-grid article,
.dashboard-grid a,
.lookbook-grid article,
.empty {
  padding: 28px;
  background: var(--paper);
}

.story-grid h2,
.lookbook-grid h2 {
  margin: 12px 0 10px;
  font-size: 24px;
}

.story-grid p,
.lookbook-grid p {
  color: var(--muted);
  line-height: 1.8;
}

.lookbook-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 64px;
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.detail-image {
  background: var(--paper);
}

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

.detail-info h1 {
  margin: 14px 0 16px;
  font-size: clamp(32px, 4vw, 52px);
}

.detail-info p,
.detail-info dd {
  color: var(--muted);
  line-height: 1.8;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px 18px;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-info dt,
.detail-info dd {
  margin: 0;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.detail-actions button {
  min-height: 48px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: #fff;
  font-weight: 700;
}

.detail-review-section {
  padding-top: 18px;
}

.section-heading.is-compact {
  width: 100%;
  padding: 0 0 28px;
  text-align: left;
}

.review-comments {
  display: grid;
  gap: 14px;
  max-width: 920px;
}

.review-comment {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.review-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fffaf3;
  background: var(--accent);
  font-weight: 900;
}

.review-bubble {
  border: 1px solid rgba(36, 25, 18, 0.1);
  padding: 18px 20px;
  background: #fffaf3;
  box-shadow: 0 12px 28px rgba(36, 25, 18, 0.04);
}

.review-bubble div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
}

.review-bubble strong {
  color: var(--accent);
}

.review-bubble span {
  color: var(--black-green);
  font-weight: 900;
}

.review-bubble p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.external-review-links {
  display: grid;
  gap: 10px;
  max-width: 920px;
  margin-top: 18px;
}

.external-review-links a {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(36, 25, 18, 0.1);
  padding: 18px 20px;
  background: var(--paper);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.external-review-links a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.external-review-links strong {
  color: var(--black-green);
  font-size: 16px;
}

.external-review-links span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.product-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1420px, calc(100% - 48px));
  margin: 0 auto 28px;
  color: var(--muted);
}

.product-toolbar label,
.option-panel label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.product-toolbar select,
.option-panel select,
.option-panel input {
  min-height: 42px;
  border: 1px solid var(--line);
  padding: 0 12px;
  background: #fff;
}

.option-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 6px;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.board-tabs .active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.board-list {
  border-top: 1px solid var(--ink);
}

.board-list a,
.cart-list article {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.board-list span,
.board-list em {
  color: var(--muted);
  font-style: normal;
}

.coupon-grid article {
  display: grid;
  gap: 14px;
}

.coupon-grid strong,
.dashboard-grid strong {
  color: var(--brand);
  font-family: Lato, sans-serif;
  font-size: 42px;
}

.coupon-grid button {
  min-height: 42px;
  border: 1px solid var(--ink);
  background: #fff;
}

.cart-list article {
  grid-template-columns: 110px 1fr auto auto;
}

.cart-list img {
  width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.cart-list h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.cart-list p {
  margin: 0;
  color: var(--muted);
}

.cart-list button {
  border: 1px solid var(--line);
  padding: 10px 16px;
  background: #fff;
}

.qty-control {
  display: inline-grid;
  grid-template-columns: 36px 42px 36px;
  align-items: center;
  border: 1px solid var(--line);
}

.qty-control button {
  width: 36px;
  height: 36px;
  border: 0;
  padding: 0;
}

.qty-control span {
  text-align: center;
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 30px;
}

.cart-total strong {
  color: var(--brand);
  font-size: 24px;
}

.auth-form {
  display: grid;
  gap: 16px;
  max-width: 440px;
}

.auth-form label {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 14px;
}

.auth-form a {
  color: var(--muted);
  text-decoration: underline;
}

.post-detail,
.order-summary {
  padding: 28px;
  background: var(--paper);
}

.post-detail time {
  color: var(--muted);
}

.post-detail p {
  margin: 18px 0 28px;
  color: #4f4942;
  line-height: 1.9;
}

.post-detail a {
  text-decoration: underline;
}

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

.order-summary {
  display: grid;
  gap: 16px;
}

.order-summary h2 {
  margin: 0;
}

.order-summary p {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: var(--muted);
}

.order-summary .total {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}

.order-summary a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #fff;
  background: var(--ink);
  font-weight: 700;
}

.dashboard-grid a {
  display: grid;
  gap: 8px;
}

.empty {
  display: grid;
  justify-items: start;
  gap: 18px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 24px;
  border-top: 1px solid var(--line);
  color: #c9c3bd;
  text-align: center;
  background: #2e2b27;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-family: Lato, sans-serif;
  font-size: 24px;
  letter-spacing: 0;
}

.site-footer p {
  margin: 10px 0 0;
}

.footer-company {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 14px;
  max-width: 760px;
  margin: 18px auto 0;
  font-size: 13px;
  line-height: 1.7;
  word-break: keep-all;
}

.site-header {
  box-shadow: 0 10px 30px rgba(36, 25, 18, 0.05);
}

.main-nav a {
  padding: 4px 0;
}

.hero-track {
  min-height: clamp(560px, 74vw, 790px);
}

.hero-copy {
  width: min(620px, 50vw);
}

.hero-copy span {
  color: #c4ad91;
}

.hero-copy a,
.promo-band a,
.cart-total a,
.empty a,
.auth-form button,
.order-summary a {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.hero-copy a:hover,
.promo-band a:hover,
.cart-total a:hover,
.empty a:hover,
.auth-form button:hover,
.order-summary a:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

.section-heading span,
.page-hero span,
.story-grid span {
  color: var(--accent);
}

.product-card {
  padding-bottom: 6px;
}

.product-image {
  border: 1px solid rgba(36, 25, 18, 0.08);
}

.product-actions {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card:hover .product-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card h3 a:hover {
  color: var(--brand);
}

.story-grid div,
.coupon-grid article,
.dashboard-grid a,
.lookbook-grid article,
.empty,
.post-detail,
.order-summary {
  border: 1px solid rgba(36, 25, 18, 0.08);
  box-shadow: 0 16px 36px rgba(36, 25, 18, 0.05);
}

.lookbook-grid article {
  padding: 18px;
}

.lookbook-grid img {
  filter: saturate(0.9) contrast(1.02);
}

.detail-layout {
  align-items: start;
}

.detail-image {
  border: 1px solid rgba(36, 25, 18, 0.08);
  box-shadow: var(--shadow);
}

.detail-info {
  padding-top: 8px;
}

.detail-info h1 {
  font-family: Lato, "Noto Sans KR", sans-serif;
  font-weight: 900;
}

.detail-actions button {
  background: #fbf7f0;
  transition: background 0.2s ease, color 0.2s ease;
}

.detail-actions button:hover {
  color: #fffaf3;
  background: var(--dark-brown);
}

.product-toolbar select,
.option-panel select,
.option-panel input,
.auth-form input {
  background: #fffaf3;
}

@media (max-width: 1100px) {
  .header-inner {
    grid-template-columns: 44px minmax(150px, auto) minmax(0, 1fr) 132px;
  }

  .menu-button {
    display: inline-grid;
  }

  .main-nav {
    display: flex;
    align-self: end;
    justify-content: flex-start;
    gap: 18px;
    padding-bottom: 21px;
    overflow-x: auto;
    font-size: 14px;
  }

  .product-grid,
  .story-grid,
  .coupon-grid,
  .dashboard-grid,
  .lookbook-grid,
  .external-review-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .detail-image,
  .detail-info {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }
}

@media (max-width: 820px) {
  .story-grid,
  .coupon-grid,
  .dashboard-grid,
  .lookbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 44px;
    scrollbar-color: var(--brand) rgba(111, 79, 55, 0.14);
  }

  .product-grid .product-card {
    flex: 0 0 min(280px, 78vw);
    scroll-snap-align: start;
  }

  .promo-band {
    display: block;
  }

  .promo-band a {
    margin-top: 28px;
  }
}

@media (max-width: 760px) {
  .top-banner {
    min-height: 38px;
    padding: 8px 42px 8px 16px;
    font-size: 12px;
  }

  .top-banner button {
    right: 10px;
  }

  .header-inner,
  .section,
  .product-grid,
  .product-toolbar,
  .section-heading,
  .detail-layout {
    width: min(100% - 28px, 1420px);
  }

  .header-inner {
    grid-template-columns: 34px minmax(0, 1fr) 118px;
    align-items: center;
    min-height: 64px;
    gap: 8px;
  }

  .brand {
    font-size: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-button {
    align-self: center;
    justify-self: start;
  }

  .main-nav {
    display: none;
  }

  .header-actions {
    grid-column: 3;
    align-self: center;
    gap: 4px;
    padding-bottom: 0;
    min-width: 0;
  }

  .cart-count {
    top: -7px;
    right: -7px;
    min-width: 19px;
    height: 19px;
    font-size: 11px;
  }

  .icon-button {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .hero-track {
    min-height: 600px;
  }

  .hero-slide img {
    object-position: 60% center;
  }

  .hero-copy {
    left: 24px;
    top: auto;
    bottom: 112px;
    width: calc(100% - 48px);
    transform: none;
  }

  .hero-copy h1 {
    max-width: 340px;
    font-size: 40px;
  }

  .hero-copy p {
    max-width: 320px;
    font-size: 15px;
  }

  .hero-controls {
    left: 24px;
    bottom: 34px;
  }

  .section {
    padding: 58px 0;
  }

  .section-heading {
    padding: 72px 0 28px;
  }

  .product-grid {
    gap: 34px 14px;
    padding-bottom: 64px;
  }

  .product-rail {
    gap: 16px;
    width: calc(100% - 28px);
    padding-bottom: 44px;
  }

  .product-rail .product-card {
    flex-basis: min(280px, 78vw);
  }

  .product-card h3 {
    margin-top: 14px;
    font-size: 16px;
  }

  .product-card p {
    min-height: 64px;
    font-size: 13px;
  }

  .product-actions {
    top: calc(100% - 52px);
    opacity: 1;
    transform: none;
  }

  .page-hero {
    padding: 60px 24px;
  }

  .detail-layout {
    gap: 30px;
    padding: 48px 0;
  }

  .detail-actions,
  .checkout-layout,
  .board-list a,
  .cart-list article {
    grid-template-columns: 1fr;
  }

  .option-panel,
  .product-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .board-list em {
    justify-self: start;
  }

  .cart-list img {
    width: 100%;
    max-width: 180px;
  }

  .cart-total {
    display: grid;
    justify-items: stretch;
  }
}

@media (max-width: 520px) {
  .product-grid,
  .story-grid,
  .coupon-grid,
  .dashboard-grid,
  .lookbook-grid {
    grid-template-columns: 1fr;
  }

  .search-panel.open {
    grid-template-columns: 1fr;
  }

  .search-panel button {
    min-height: 44px;
  }
}
