:root {
  --bg: #f7f2ec;
  --panel: rgba(255, 255, 255, 0.72);
  --panel-strong: #fffdfa;
  --ink: #1d1714;
  --muted: #6a5a50;
  --line: rgba(29, 23, 20, 0.08);
  --accent: #8f7359;
  --accent-deep: #3a2e28;
  --shadow: 0 20px 60px rgba(52, 35, 21, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 225, 204, 0.5), transparent 28%),
    radial-gradient(circle at top right, rgba(224, 244, 237, 0.52), transparent 24%),
    linear-gradient(180deg, #fbf7f2 0%, #efe4d8 100%);
}

body.bag-open {
  overflow: hidden;
}

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

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

.shop-shell {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.shop-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 250, 245, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.shop-brand img {
  width: 136px;
}

.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.shop-nav a,
.shop-actions button,
.filter-chip,
.shop-card button,
.sort-control select {
  font: inherit;
}

.shop-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.shop-actions {
  display: flex;
  gap: 10px;
}

.shop-actions button,
.shop-card button {
  border: 0;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fffaf5;
  background: linear-gradient(135deg, #2c221d, #7f6652);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.shop-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 34px 0 22px;
}

.shop-hero-copy,
.hero-feature,
.shop-toolbar,
.bundle-strip {
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: rgba(255, 250, 245, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.shop-hero-copy {
  padding: 42px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.shop-hero-copy h1,
.bundle-copy h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  line-height: 0.95;
}

.shop-hero-copy h1 {
  font-size: clamp(3rem, 6vw, 5.4rem);
}

.shop-hero-copy p,
.bundle-copy p,
.shop-card-body p,
.bundle-cards p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span,
.card-flag {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-feature {
  position: relative;
  overflow: hidden;
  padding: 22px;
}

.hero-feature img {
  width: 100%;
  border-radius: 28px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.hero-feature-card {
  position: absolute;
  left: 38px;
  right: 38px;
  bottom: 38px;
  padding: 18px;
  border-radius: 22px;
  color: #fff8f2;
  background: rgba(28, 23, 20, 0.76);
}

.hero-feature-card span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.72;
}

.hero-feature-card strong {
  display: block;
  font-size: 1.2rem;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 8px 0 24px;
  padding: 18px;
}

.filter-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.filter-chip.is-active {
  color: #fffaf5;
  background: linear-gradient(135deg, #2c221d, #7f6652);
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.sort-control select {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
}

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

.shop-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px;
  background: rgba(255, 250, 245, 0.76);
  box-shadow: var(--shadow);
}

.shop-card.is-hidden {
  display: none;
}

.shop-card-media {
  position: relative;
  background: var(--panel-strong);
}

.shop-card-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.card-flag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.shop-card-body {
  padding: 18px;
}

.shop-card-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.card-kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.shop-card-meta h3 {
  margin: 0;
  font-size: 1.15rem;
}

.shop-card-meta strong {
  font-size: 1rem;
}

.swatches {
  display: flex;
  gap: 8px;
  margin: 14px 0 16px;
}

.swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  padding: 0;
  border: 1px solid rgba(29, 23, 20, 0.12);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.swatch.is-active {
  transform: scale(1.08);
  box-shadow: 0 0 0 2px rgba(255, 250, 245, 0.95), 0 0 0 4px rgba(58, 46, 40, 0.35);
}

.bag-overlay {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(20, 16, 14, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 39;
}

.bag-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.bag-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 18px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 250, 245, 0.96);
  box-shadow: 0 20px 60px rgba(52, 35, 21, 0.22);
  backdrop-filter: blur(18px);
  transform: translateX(100%);
  transition: transform 0.24s ease;
  z-index: 40;
}

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

.bag-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.bag-drawer-head h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 0.96;
}

.bag-close {
  border: 1px solid var(--line);
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.bag-status {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.bag-drawer .cart-list {
  flex: 1;
  overflow-y: auto;
  margin-top: 0;
  padding-right: 2px;
}

.bag-summary {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.butter { background: #f6efae; }
.blush { background: #efb7d9; }
.cream { background: #efe3d7; }
.aqua { background: #85ddd6; }
.sage { background: #9ba48d; }
.cocoa { background: #73535a; }
.plum { background: #8f5f78; }
.mint { background: #aee8d6; }
.wine { background: #6f2143; }
.sky { background: #8ab8e8; }
.carbon { background: #3d3a40; }
.rose { background: #d4aab7; }
.olive { background: #7d8666; }
.stone { background: #cdbdaa; }

.bundle-strip {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  margin-top: 28px;
  padding: 28px;
}

.bundle-copy h2 {
  font-size: clamp(2.2rem, 4vw, 4rem);
}

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

.bundle-cards article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
}

.bundle-cards span {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bundle-cards strong,
.bundle-cards b {
  display: block;
}

.bundle-cards b {
  margin-top: 14px;
  font-size: 1.05rem;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 22px;
  margin-top: 28px;
}

.cart-panel,
.checkout-panel {
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 32px;
  background: rgba(255, 250, 245, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.cart-panel {
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 110px;
}

.checkout-panel {
  padding: 24px;
}

.cart-panel-head,
.cart-summary > div,
.selector-row,
.payment-methods,
.payment-badges,
.installment-cards,
.checkout-footer {
  display: flex;
}

.cart-panel-head {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cart-panel h2,
.checkout-head h2 {
  margin: 0;
  font-family: "Instrument Serif", serif;
  line-height: 0.96;
}

.cart-panel h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.cart-count,
.checkout-note-inline {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.cart-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.cart-empty,
.cart-item,
.checkout-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.cart-item {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
}

.cart-item-thumb {
  width: 74px;
  height: 92px;
  border-radius: 16px;
  object-fit: cover;
}

.cart-item strong,
.checkout-card h3 {
  display: block;
}

.cart-item p,
.cart-empty p,
.checkout-head p,
.checkout-footer p,
.field-grid label span {
  color: var(--muted);
}

.cart-item-meta {
  display: grid;
  gap: 6px;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.cart-item-controls button {
  border: 1px solid var(--line);
  min-width: 32px;
  min-height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.remove-line {
  padding: 0 12px;
}

.cart-summary {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.cart-summary > div {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkout-head h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.payment-methods {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.payment-pill {
  border: 1px solid var(--line);
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.payment-pill.is-active {
  color: #fffaf5;
  background: linear-gradient(135deg, #2c221d, #7f6652);
}

.payment-badges {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.payment-badges span {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.checkout-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.checkout-card h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.field-grid label {
  display: grid;
  gap: 8px;
}

.field-grid input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  font: inherit;
  color: var(--ink);
}

.installment-cards {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.installment-cards div {
  flex: 1 1 220px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.installment-cards span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.installment-cards strong {
  display: block;
  margin-top: 8px;
}

.checkout-footer {
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: 18px;
}

.checkout-button {
  border: 0;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fffaf5;
  background: linear-gradient(135deg, #2c221d, #7f6652);
  box-shadow: var(--shadow);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.checkout-button:disabled,
.quick-add:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 1100px) {
  .shop-hero,
  .bundle-strip,
  .checkout-grid {
    grid-template-columns: 1fr;
  }

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

  .cart-panel {
    position: static;
  }
}

@media (max-width: 720px) {
  .shop-shell {
    width: min(100% - 18px, 1320px);
  }

  .shop-topbar {
    position: static;
    top: auto;
    z-index: auto;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: 12px;
    margin-top: 10px;
    padding: 14px;
    border-radius: 22px;
    backdrop-filter: none;
  }

  .shop-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    width: 100%;
    gap: 14px;
    scrollbar-width: none;
  }

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

  .shop-brand img {
    width: 96px;
  }

  .shop-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
  }

  .shop-actions,
  .shop-toolbar,
  .bundle-cards {
    width: 100%;
  }

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

  .shop-actions button {
    min-height: 38px;
    font-size: 0.92rem;
  }

  .bag-drawer {
    padding: 18px 14px 20px;
  }

  .shop-hero-copy,
  .hero-feature,
  .shop-toolbar,
  .bundle-strip {
    padding: 20px;
  }

  .shop-hero {
    gap: 18px;
    padding-top: 22px;
  }

  .shop-hero-copy h1 {
    font-size: clamp(2.35rem, 11vw, 3.5rem);
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badges span {
    padding: 8px 12px;
    font-size: 0.74rem;
  }

  .hero-feature {
    padding: 14px;
    border-radius: 26px;
  }

  .hero-feature img {
    aspect-ratio: 4 / 4.7;
    border-radius: 22px;
  }

  .hero-feature-card {
    left: 22px;
    right: 22px;
    bottom: 22px;
    padding: 14px;
    border-radius: 18px;
  }

  .hero-feature-card strong {
    font-size: 1rem;
  }

  .hero-feature-card p {
    margin: 8px 0 0;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .shop-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .sort-control {
    justify-content: space-between;
  }

  .filter-row {
    gap: 8px;
    margin-right: -2px;
    padding-bottom: 2px;
  }

  .filter-chip {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.84rem;
  }

  .sort-control select {
    flex: 1;
    min-width: 0;
  }

  .drops-grid,
  .bundle-cards,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .shop-card {
    border-radius: 24px;
  }

  .shop-card-body {
    padding: 16px;
  }

  .cart-panel,
  .checkout-panel {
    padding: 18px;
    border-radius: 26px;
  }

  .checkout-footer {
    align-items: stretch;
  }

  .checkout-button {
    width: 100%;
  }
}
