:root {
  --bg: #fcf9f4;
  --surface: #ffffff;
  --surface-soft: #f4eee7;
  --primary: #730d30;
  --primary-2: #922846;
  --secondary: #39675b;
  --text: #1c1c19;
  --muted: #675f58;
  --line: rgba(137, 113, 116, 0.2);
  --shadow: 0 24px 60px rgba(115, 13, 48, 0.08);
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Be Vietnam Pro", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 32px rgba(115, 13, 48, 0.05);
}

.topbar-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  font-family: "Epilogue", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.nav-links,
.top-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-links {
  color: #6c6a66;
  font-size: 0.82rem;
}

.nav-links a.active {
  color: var(--primary);
  font-weight: 700;
}

.icon-btn {
  position: relative;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f1a18;
  border-radius: 999px;
}

.icon-btn:hover {
  background: #f3e9de;
}

.cart-count {
  position: absolute;
  top: -3px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}

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

.pill-btn,
.ghost-btn,
.text-btn {
  min-height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
}

.pill-btn {
  padding: 0 20px;
  border: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.pill-btn:hover {
  background: var(--primary-2);
}

.ghost-btn {
  padding: 0 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--primary);
}

.text-btn {
  min-height: auto;
  padding: 0;
  border: 0;
  background: none;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shop-hero {
  padding: 52px 0 34px;
}

.shop-hero-grid,
.detail-grid,
.cart-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
}

.shop-hero h1,
.detail-copy h1,
.cart-heading h1 {
  margin: 0 0 16px;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2.55rem, 5vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--primary);
}

.shop-hero p,
.detail-copy p,
.cart-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-image,
.detail-media {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.hero-image img.hero-image-contain {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.detail-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  padding: 20px;
  background: #fff;
}

.products-section,
.cart-section,
.detail-section {
  padding: 24px 0 72px;
}

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

.section-head h2 {
  margin: 0;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

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

.product-card,
.summary-panel,
.empty-cart {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(137, 113, 116, 0.14);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(42, 30, 24, 0.05);
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.product-card a {
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.88;
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.product-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.product-body h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.product-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--primary);
  font-weight: 800;
}

.small-btn {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.78rem;
}

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

.detail-copy {
  padding-top: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.detail-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: #695f58;
  font-size: 0.76rem;
  font-weight: 700;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: grid;
  gap: 12px;
}

.feature-list li {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: #4e4741;
  line-height: 1.55;
}

.cart-grid {
  align-items: start;
}

.cart-items {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(137, 113, 116, 0.14);
  border-radius: 8px;
}

.cart-item img {
  width: 112px;
  aspect-ratio: 1;
  object-fit: contain;
  padding: 8px;
  border-radius: 8px;
  background: #f4eee7;
}

.cart-item h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 6px;
  border-radius: 999px;
  background: #f7f1ea;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-weight: 800;
}

.line-total {
  color: var(--primary);
  font-weight: 800;
  white-space: nowrap;
}

.summary-panel,
.empty-cart {
  padding: 22px;
}

.summary-panel h2 {
  margin: 0 0 18px;
  font-family: "Epilogue", sans-serif;
  letter-spacing: -0.03em;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--muted);
}

.summary-row.total {
  margin: 18px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--text);
  font-size: 1.15rem;
  font-weight: 800;
}

.checkout-note {
  min-height: 24px;
  margin-top: 14px;
  color: var(--secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.empty-cart {
  text-align: center;
  color: var(--muted);
}

.landing-hero {
  position: relative;
  padding: 64px 0 52px;
  background:
    linear-gradient(90deg, rgba(252, 249, 244, 0.98) 0%, rgba(252, 249, 244, 0.88) 46%, rgba(252, 249, 244, 0.68) 100%),
    radial-gradient(circle at 82% 18%, rgba(146, 40, 70, 0.12), transparent 34%);
  overflow: hidden;
}

.landing-hero-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #8d6770;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.landing-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(146, 40, 70, 0.28);
  box-shadow: 0 0 0 6px rgba(146, 40, 70, 0.08);
}

.landing-copy h1 {
  margin: 0 0 20px;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
  color: var(--primary);
}

.landing-copy h1 span {
  display: block;
  margin-top: 10px;
  color: #8a2b4a;
  font-style: italic;
  font-weight: 600;
}

.landing-copy p {
  max-width: 480px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.78;
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.landing-price {
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
}

.landing-media {
  min-height: 520px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.landing-media img {
  width: min(82%, 560px);
  max-height: 500px;
  object-fit: contain;
}

.landing-banner {
  padding: 30px 0;
  background: #f5f1ea;
}

.landing-banner-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 30px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(42, 30, 24, 0.05);
}

.landing-banner-panel img {
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  background: #fff;
}

.landing-section {
  padding: 64px 0 72px;
}

.landing-section.alt {
  background: #073b2d;
  color: #edf8f2;
}

.landing-section-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 44px;
  align-items: center;
}

.landing-section h2 {
  margin: 0 0 16px;
  font-family: "Epilogue", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.landing-section h2 span {
  color: var(--primary);
  font-style: italic;
}

.landing-section.alt h2 span {
  color: #c7f0e4;
}

.landing-section p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.72;
}

.landing-section.alt p,
.landing-section.alt .feature-copy {
  color: rgba(237, 248, 242, 0.76);
}

.landing-section.alt .feature-title {
  color: #fff;
}

.landing-feature-card {
  padding: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.landing-section.alt .landing-feature-card {
  background: rgba(255, 255, 255, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .topbar-inner,
  .nav-links,
  .top-actions {
    gap: 10px;
  }

  .nav-links {
    display: none;
  }

  .shop-hero-grid,
  .detail-grid,
  .cart-grid,
  .landing-hero-grid,
  .landing-banner-panel,
  .landing-section-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .topbar-inner {
    min-height: 64px;
  }

  .shop-hero {
    padding-top: 34px;
  }

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

  .cart-item {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .cart-item img {
    width: 84px;
  }

  .line-total {
    grid-column: 2;
  }

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