:root {
  --gold: #DAA51C;
  --gold-border: rgba(218, 165, 28, 0.5);
  --gold-soft: rgba(218, 165, 28, 0.12);
  --ink-light: #F4F5F7;
  --white: #FFFFFF;
  --ink-dark: #101216;
  --btn-text: #000000;
  --bg-dark: #0b0c0e;
  --bg-deeper: #07080a;
  --bg-black: #050607;
  --card: #15171c;
  --card-elevated: #1a1d24;
  --input: #181a20;
  --border-subtle: rgba(255, 255, 255, 0.12);
  --stamp-frame: #E3DDD9;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-display: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-sans: 'Mukta', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.gold {
  color: var(--gold);
}

/* ========================================================================= */
/* NAVIGATION & SHOP HERO                                                    */
/* ========================================================================= */
.shop-hero-wrap {
  background: radial-gradient(circle at 50% 30%, #181b22 0%, #0e1014 48%, #050607 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 52px;
}

.shop-nav {
  max-width: 1320px;
  margin: 0 auto;
  padding: 26px 32px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.shop-nav-group {
  display: flex;
  align-items: center;
  gap: 38px;
}

.shop-nav-group.left {
  justify-content: flex-end;
}

.shop-nav-group.right {
  justify-content: flex-start;
}

.shop-nav-link {
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.15s ease;
  white-space: nowrap;
}

.shop-nav-link:hover,
.shop-nav-link.active {
  color: var(--white);
  text-decoration: underline;
}

.shop-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.shop-logo img {
  width: 72px;
  height: auto;
  display: block;
}

.shop-wordmark {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--gold);
  font-weight: 700;
  margin-top: 4px;
}

.nav-cart-trigger {
  background: transparent;
  border: 1px solid rgba(218, 165, 28, 0.6);
  color: var(--white);
  height: 38px;
  padding: 0 16px;
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.15s ease;
}

.nav-cart-trigger:hover {
  background: var(--gold);
  color: var(--btn-text);
  border-color: var(--gold);
}

.nav-cart-count {
  background: var(--gold);
  color: var(--btn-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  line-height: 1.3;
}

.nav-cart-trigger:hover .nav-cart-count {
  background: var(--bg-black);
  color: var(--white);
}

.shop-hero-copy {
  max-width: 820px;
  margin: 34px auto 0;
  padding: 0 24px;
  text-align: center;
}

.shop-eyebrow {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.36em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.shop-h1 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 46px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: var(--ink-light);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.shop-lead {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 660px;
  margin: 0 auto;
}

/* ========================================================================= */
/* VETTED BUTTON SYSTEM (STRICT COHESIVE HIERARCHY, SQUARE GEOMETRY)         */
/* ========================================================================= */
.btn-shop-gold,
.btn-shop-outline {
  height: 46px;
  padding: 0 20px;
  border-radius: 0;
  font-family: var(--font-serif);
  font-size: 12.5px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn-shop-gold {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--btn-text);
}

.btn-shop-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

.btn-shop-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  font-weight: 700;
}

.btn-shop-outline:hover {
  border-color: var(--gold);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.btn-shop-outline.in-cart {
  background: var(--white);
  border-color: var(--white);
  color: #000000;
  font-weight: 900;
}

.btn-shop-outline.in-cart:hover {
  background: #e5e7eb;
  border-color: #e5e7eb;
  color: #000000;
}

/* ========================================================================= */
/* STOREFRONT CONTAINER & MASTER COLLECTION FLAGSHIP BANNER                  */
/* ========================================================================= */
.shop-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 44px 24px 96px;
}

.master-showcase {
  background: linear-gradient(135deg, #181a20 0%, #0e1014 100%);
  border: 1px solid var(--gold-border);
  padding: 32px 36px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 36px;
  align-items: center;
  position: relative;
}

.master-showcase::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--gold);
}

.master-tag-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.master-eyebrow {
  font-family: var(--font-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.savings-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(218, 165, 28, 0.6);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 9px;
}

.master-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.master-desc {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.88);
  max-width: 680px;
  margin-bottom: 18px;
}

.master-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
}

.master-specs span strong {
  color: var(--white);
}

.master-cta-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 24px;
  text-align: center;
}

.master-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  margin-bottom: 4px;
}

.price-strike {
  font-family: var(--font-mono);
  font-size: 17px;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: line-through;
}

.price-hero {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.price-note {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.master-btn-stack {
  display: grid;
  gap: 10px;
}

.master-btn-stack .btn-shop-gold,
.master-btn-stack .btn-shop-outline {
  width: 100%;
}

/* ========================================================================= */
/* SECTION DIVIDER HEADING                                                   */
/* ========================================================================= */
.editions-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.editions-section-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--ink-light);
  text-transform: uppercase;
}

.editions-section-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* ========================================================================= */
/* SYMMETRIC 2-COLUMN VETTED PRODUCT CARDS                                   */
/* ========================================================================= */
.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}

.edition-card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.edition-card:hover {
  border-color: rgba(218, 165, 28, 0.55);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
}

.edition-card.selected-card {
  border-color: var(--gold);
}

.edition-top-bar {
  background: rgba(0, 0, 0, 0.24);
  border-bottom: 1px solid var(--border-subtle);
  padding: 11px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.edition-code {
  font-family: var(--font-serif);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--white);
  text-transform: uppercase;
}

.edition-era-pill {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--white);
  opacity: 0.9;
}

.edition-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.edition-identity {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 16px;
}

/* Miniature Perforated Monograph Cover Plate */
.edition-plate {
  width: 74px;
  height: 92px;
  padding: 5px;
  background-color: var(--stamp-frame);
  background-image:
    radial-gradient(circle at 6px 0, var(--card) 3px, transparent 3.4px),
    radial-gradient(circle at 6px 100%, var(--card) 3px, transparent 3.4px),
    radial-gradient(circle at 0 6px, var(--card) 3px, transparent 3.4px),
    radial-gradient(circle at 100% 6px, var(--card) 3px, transparent 3.4px);
  background-size: 12px 100%, 12px 100%, 100% 12px, 100% 12px;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.65);
}

.edition-plate-inner {
  width: 100%;
  height: 100%;
  background: #0d0f12;
  border: 2px solid var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4px;
}

.plate-label {
  font-family: var(--font-display);
  font-size: 8px;
  letter-spacing: 0.14em;
  color: var(--white);
  opacity: 0.85;
}

.plate-numeral {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.15;
}

.plate-sub {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--white);
  opacity: 0.85;
}

.edition-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  margin-bottom: 6px;
}

.edition-spec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--white);
}

.edition-spec-strip span.muted {
  color: rgba(255, 255, 255, 0.78);
}

.edition-subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.edition-highlights {
  list-style: none;
  background: rgba(0, 0, 0, 0.28);
  border-left: 2px solid var(--gold);
  padding: 12px 15px;
  margin-bottom: 16px;
  display: grid;
  gap: 6px;
}

.edition-highlights li {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--white);
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 6px;
}

.edition-highlights li::before {
  content: '◆';
  color: var(--gold);
  font-size: 9px;
  margin-top: 3px;
}

/* Clean Tertiary Inspect Link */
.inspect-index-btn {
  margin-top: auto;
  background: transparent;
  border: none;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
  padding: 11px 0 0;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  transition: color 0.15s ease;
}

.inspect-index-btn:hover {
  color: var(--white);
  text-decoration: underline;
}

/* Pinned Symmetric Price & Button Footer */
.edition-footer {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--border-subtle);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.edition-price-block {
  display: flex;
  flex-direction: column;
}

.edition-price {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.edition-price-caption {
  font-family: var(--font-sans);
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.62);
  margin-top: 3px;
  letter-spacing: 0.04em;
}

.edition-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.edition-actions .btn-shop-outline {
  min-width: 138px;
  height: 44px;
  padding: 0 15px;
  font-size: 12px;
}

.edition-actions .btn-shop-gold {
  min-width: 118px;
  height: 44px;
  padding: 0 16px;
  font-size: 12px;
}

/* ========================================================================= */
/* STICKY BOTTOM CART BAR                                                    */
/* ========================================================================= */
.sticky-cart-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #090a0d;
  border-top: 2px solid var(--gold);
  padding: 14px 28px;
  z-index: 900;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.75);
  display: none;
}

.sticky-cart-bar.visible {
  display: block;
}

.sticky-cart-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.sticky-cart-info {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.sticky-cart-title {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
  text-transform: uppercase;
}

.sticky-cart-meta {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--white);
}

.sticky-cart-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ========================================================================= */
/* VOLUME INDEX MODAL & CHECKOUT MODAL                                       */
/* ========================================================================= */
.shop-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.shop-modal-backdrop.open {
  display: flex;
}

.shop-modal-card {
  background: #15171c;
  border: 1px solid var(--gold);
  width: 100%;
  max-width: 780px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.shop-modal-head {
  padding: 18px 24px;
  background: #0f1115;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.shop-modal-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.modal-close-x {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--white);
  width: 34px;
  height: 34px;
  font-size: 16px;
  cursor: pointer;
}

.modal-close-x:hover {
  border-color: var(--gold);
  color: var(--white);
}

.shop-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.shop-modal-foot {
  padding: 16px 24px;
  background: #0f1115;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.modal-search-input {
  width: 100%;
  height: 44px;
  background: var(--input);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  padding: 0 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  margin-bottom: 14px;
  outline: none;
}

.modal-search-input:focus {
  border-color: var(--gold);
}

.modal-search-input::placeholder {
  color: #a8b0c0;
}

.vol-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12px;
}

.vol-table th {
  text-align: left;
  padding: 9px 10px;
  background: #14161c;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--gold);
}

.vol-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.cart-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-remove-link {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-mono);
  font-size: 11.5px;
  cursor: pointer;
  text-decoration: underline;
}

.cart-remove-link:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ========================================================================= */
/* PERFORATION DIVIDER & FOOTER (§8)                                         */
/* ========================================================================= */
.perforation-divider {
  width: 100%;
  height: 44px;
  background-color: var(--bg-dark);
  background-image: radial-gradient(circle at 50% 100%, #15171c 0%, #0b0c0e 60%, transparent 61%);
  background-size: 92px 44px;
  background-repeat: repeat-x;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dacia-footer {
  background: #07080a;
  color: var(--white);
  padding: 48px 24px 96px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 36px;
}

.footer-logo {
  width: 136px;
  height: auto;
  display: block;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  max-width: 290px;
}

.footer-eyebrow {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--gold);
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-meta {
  font-size: 14px;
  color: #B5BAC5;
  margin-bottom: 6px;
}

.footer-bottom {
  max-width: 1140px;
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: var(--ink-light);
}

/* ========================================================================= */
/* RESPONSIVE BREAKPOINTS                                                    */
/* ========================================================================= */
@media (max-width: 1080px) {
  .master-showcase {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .editions-grid {
    grid-template-columns: 1fr;
  }
}

.shop-nav .icon-only-btn {
  width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  font-size: 16px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.dacia-account-lang-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

@media (max-width: 767px) {
  .shop-nav {
    position: relative;
    grid-template-columns: auto 1fr auto;
    align-items: start;
    padding: 14px 12px;
    gap: 8px;
  }
  .shop-nav-group.left { order: 1; display: flex !important; justify-content: flex-start; width: auto; }
  .shop-logo { order: 2; align-items: center; }
  .shop-logo img { width: 46px; }
  .shop-nav-group.right { order: 3; display: flex !important; justify-content: flex-end; align-items: flex-start; gap: 6px; width: auto; }
  .shop-nav .icon-only-btn,
  .shop-nav #daciaLangToggleBtn {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
  .shop-nav #navOpenCartBtn { padding: 6px 10px !important; font-size: 11px !important; height: 34px; }
  .shop-nav-link.hide-mob { display: none; }
  .shop-h1 {
    font-size: 32px;
  }
  .master-showcase {
    padding: 24px 20px;
  }
  .edition-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .edition-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .edition-actions .btn-shop-outline,
  .edition-actions .btn-shop-gold {
    min-width: 0;
    width: 100%;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
