:root {
  --gold: #D6AC5C;
  --charcoal: #17181B;
  --deep: #0E0F12;
  --ivory: #F5F1E8;
  --cream: #F3EFE7;
  --red: #B3121B;
  --red-hover: #8C0E15;
  --muted: #5A5F69;
  --border: #E5E1D8;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  color: var(--charcoal);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

.shop-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Marquee */
.shop-marquee {
  background: var(--charcoal);
  color: var(--ivory);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  overflow: hidden;
  white-space: nowrap;
  padding: 9px 0;
}

.shop-marquee-track {
  display: inline-flex;
  gap: 24px;
  padding-left: 24px;
}

/* Header */
.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.shop-header-inner {
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.shop-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.shop-nav a {
  color: var(--charcoal);
  text-decoration: none;
}

.shop-nav a:hover {
  color: var(--red);
}

.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--charcoal);
  font-family: Montserrat, sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.14em;
}

.shop-actions {
  display: flex;
  justify-content: flex-end;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--charcoal);
  color: var(--ivory);
  border: none;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.cart-badge {
  background: var(--gold);
  color: var(--charcoal);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
}

/* Hero Banner */
.shop-hero {
  background: #14171D;
  color: var(--ivory);
  padding: 64px 0;
}

.shop-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.shop-eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.shop-hero h1 {
  margin: 0 0 16px;
  font-family: Oswald, sans-serif;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.05;
  text-transform: uppercase;
}

.shop-hero p {
  margin: 0 0 24px;
  font-size: 16px;
  line-height: 1.6;
  color: #C9CCD2;
  max-width: 520px;
}

.shop-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-btn-primary {
  background: var(--gold);
  color: var(--charcoal);
  text-decoration: none;
  padding: 14px 26px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

.shop-btn-outline {
  background: transparent;
  color: var(--ivory);
  border: 1px solid rgba(245, 241, 232, 0.35);
  padding: 14px 22px;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.shop-hero-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.45);
}

/* Catalog */
.shop-main {
  padding: 56px 0 84px;
}

.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  background: #FFFFFF;
  color: var(--charcoal);
  padding: 9px 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pill.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--ivory);
}

.catalog-count {
  font-size: 13px;
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-img-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #F5F4F0;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-img-wrap.is-merch-art {
  background: radial-gradient(circle at 50% 45%, #232730 0%, #14161B 100%);
  padding: 36px;
}

.product-img-wrap.is-merch-art img {
  object-fit: contain;
}

.product-card:hover .product-img-wrap img {
  transform: scale(1.03);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.product-vendor {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-title {
  margin: 0;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.product-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: Oswald, sans-serif;
  font-size: 20px;
}

.compare-price {
  font-size: 14px;
  color: #8A909B;
  text-decoration: line-through;
}

.size-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.size-chip {
  border: 1px solid var(--border);
  background: #FFFFFF;
  padding: 4px 10px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.size-chip.is-selected {
  border-color: var(--charcoal);
  background: var(--charcoal);
  color: #FFFFFF;
}

.add-btn {
  margin-top: auto;
  width: 100%;
  background: var(--charcoal);
  color: var(--ivory);
  border: none;
  padding: 12px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.add-btn:hover {
  background: var(--red);
}

/* Footer */
.shop-footer {
  background: var(--charcoal);
  color: #C9CCD2;
  padding: 48px 0;
}

.shop-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.shop-footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 420px;
}

.shop-footer-brand strong {
  color: var(--gold);
  letter-spacing: 0.12em;
}

.shop-footer-brand p {
  margin: 4px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
}

.shop-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
}

.shop-footer-links a {
  color: var(--ivory);
  text-decoration: none;
}

.shop-payments {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.pay-tag {
  border: 1px solid rgba(214, 172, 92, 0.35);
  color: var(--gold);
  padding: 4px 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Cart Drawer */
.cart-drawer[hidden] { display: none; }

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
}

.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 17, 0.65);
}

.cart-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  height: 100%;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.25);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.cart-header h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  font-size: 22px;
}

.cart-close {
  background: transparent;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.cart-promo {
  background: var(--cream);
  padding: 9px 22px;
  font-size: 12.5px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.cart-items {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.cart-item img {
  width: 64px;
  height: 76px;
  object-fit: cover;
  border-radius: 4px;
  background: #14171D;
}

.cart-item-title {
  font-weight: 600;
  font-size: 14px;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.qty-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.qty-row button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  background: #FFFFFF;
  cursor: pointer;
}

.remove-item {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.cart-footer {
  padding: 16px 22px 22px;
  background: #F8F7F4;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discount-row {
  display: flex;
  gap: 8px;
}

.discount-row input {
  flex: 1 1 auto;
  padding: 9px 12px;
  border: 1px solid #D4CFC4;
  font: inherit;
  font-size: 13px;
}

.discount-row button {
  padding: 9px 16px;
  background: var(--charcoal);
  color: #FFFFFF;
  border: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.discount-msg {
  margin: 0;
  font-size: 12px;
  color: var(--red);
  min-height: 16px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.total-line {
  font-size: 17px;
  padding-top: 6px;
  border-top: 1px solid var(--border);
}

.checkout-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

.pay-tab {
  padding: 9px;
  border: 1px solid #D4CFC4;
  background: #FFFFFF;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.pay-tab.is-active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--gold);
}

.pay-fields[hidden] { display: none; }

.pay-fields {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 10px;
}

.pay-fields label {
  font-size: 12px;
  font-weight: 600;
}

.pay-fields input {
  padding: 10px 12px;
  border: 1px solid #D4CFC4;
  font: inherit;
  font-size: 14px;
}

.checkout-btn {
  width: 100%;
  padding: 13px;
  background: var(--red);
  color: #FFFFFF;
  border: none;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.checkout-btn:hover {
  background: var(--red-hover);
}

.checkout-status {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 600;
  color: #166534;
  min-height: 18px;
}

@media (max-width: 820px) {
  .shop-header-inner {
    grid-template-columns: 1fr auto;
  }
  .shop-nav {
    display: none;
  }
  .shop-hero-grid {
    grid-template-columns: 1fr;
  }
}
