/* Underground Boutique Ã¢â¬â dark-first nocturnal catalog */

:root {

  --bg: #09090b;

  --bg-elevated: #121216;

  --bg-card: #17171c;

  --ink: #f2eee6;

  --ink-soft: #c9c2b5;

  --muted: rgba(242, 238, 230, 0.55);

  --line: rgba(242, 238, 230, 0.1);

  --gold: #e8d5a3;

  --gold-deep: #c4a35a;

  --ember: #ff6b3d;

  --radius: 6px;

  --shadow: 0 22px 50px rgba(0, 0, 0, 0.45);

  --font-display: "Syne", sans-serif;

  --font-body: "Figtree", system-ui, sans-serif;

  --header-h: 74px;

  color-scheme: dark;

}



*,

*::before,

*::after {

  box-sizing: border-box;

}



html {

  scroll-behavior: smooth;

}



body {

  margin: 0;

  font-family: var(--font-body);

  color: var(--ink);

  background:

    radial-gradient(900px 500px at 8% -5%, rgba(232, 213, 163, 0.12), transparent 55%),

    radial-gradient(700px 480px at 100% 0%, rgba(255, 107, 61, 0.08), transparent 50%),

    linear-gradient(180deg, #0c0c10 0%, var(--bg) 40%, #050507 100%);

  min-height: 100vh;

  line-height: 1.45;

}



.noise {

  pointer-events: none;

  position: fixed;

  inset: 0;

  z-index: 0;

  opacity: 0.07;

  mix-blend-mode: soft-light;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

}



.shell {

  width: min(1200px, calc(100% - 2rem));

  margin-inline: auto;

  position: relative;

  z-index: 1;

}



a {

  color: inherit;

  text-decoration: none;

}



img {

  max-width: 100%;

  display: block;

}



/* Header */

.site-header {

  position: sticky;

  top: 0;

  z-index: 50;

  backdrop-filter: blur(14px);

  background: rgba(9, 9, 11, 0.82);

  border-bottom: 1px solid var(--line);

}



.header-inner {

  min-height: var(--header-h);

  display: grid;

  grid-template-columns: auto 1fr auto;

  gap: 1rem;

  align-items: center;

}



.brand {

  display: flex;

  flex-direction: column;

  line-height: 1;

}



.brand-mark {

  font-family: var(--font-display);

  font-weight: 800;

  font-size: 1.15rem;

  letter-spacing: 0.02em;

  color: var(--ink);

}



.brand-sub {

  font-family: var(--font-display);

  font-weight: 700;

  font-size: 0.78rem;

  letter-spacing: 0.22em;

  text-transform: uppercase;

  color: var(--gold);

  margin-top: 0.28rem;

}



.search-form input {

  width: 100%;

  border: 1px solid var(--line);

  background: var(--bg-elevated);

  color: var(--ink);

  border-radius: 999px;

  padding: 0.7rem 1.1rem;

  font: inherit;

  outline: none;

  transition: border-color 0.2s, box-shadow 0.2s;

}



.search-form input::placeholder {

  color: var(--muted);

}



.search-form input:focus {

  border-color: var(--gold-deep);

  box-shadow: 0 0 0 3px rgba(232, 213, 163, 0.15);

}



.header-meta {

  font-size: 0.85rem;

  color: var(--muted);

  white-space: nowrap;

}



.header-meta span {

  font-weight: 700;

  color: var(--gold);

}



/* Hero */

.hero {

  padding: 2.4rem 0 1.2rem;

  position: relative;

  z-index: 1;

  overflow: hidden;

}



.hero-grid {

  display: grid;

  grid-template-columns: 1.25fr 0.75fr;

  gap: 1.5rem;

  align-items: end;

  min-height: min(58vh, 480px);

}



.hero-kicker {

  margin: 0 0 0.55rem;

  text-transform: uppercase;

  letter-spacing: 0.2em;

  font-size: 0.72rem;

  font-weight: 600;

  color: var(--gold);

}



.hero-brand {

  margin: 0;

  display: flex;

  flex-direction: column;

  gap: 0.05rem;

}



.hero-brand-line {

  font-family: var(--font-display);

  font-weight: 800;

  font-size: clamp(2.8rem, 9vw, 5.6rem);

  line-height: 0.92;

  letter-spacing: -0.03em;

  color: var(--ink);

}



.hero-brand-line.accent {

  color: var(--gold);

}



.hero-lead {

  margin: 1rem 0 1.4rem;

  max-width: 36ch;

  font-size: 1.05rem;

  color: var(--ink-soft);

}



.hero-cta {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;

}



.hero-visual {

  position: relative;

  min-height: 260px;

}



.hero-orb {

  position: absolute;

  inset: 8% 8% 8% 18%;

  border-radius: 42% 58% 48% 52% / 48% 42% 58% 52%;

  background:

    linear-gradient(145deg, #2a2418 0%, #121016 45%, #050507 100%);

  border: 1px solid rgba(232, 213, 163, 0.22);

  box-shadow: var(--shadow), inset 0 0 40px rgba(232, 213, 163, 0.08);

  animation: drift 11s ease-in-out infinite alternate;

}



.hero-stamp {

  position: absolute;

  right: 10%;

  bottom: 16%;

  font-family: var(--font-display);

  font-weight: 800;

  font-size: clamp(1.5rem, 3vw, 2.1rem);

  letter-spacing: 0.08em;

  color: var(--ember);

  border: 2px solid var(--ember);

  padding: 0.4rem 0.65rem;

  transform: rotate(-9deg);

  animation: stampIn 0.75s cubic-bezier(0.2, 0.9, 0.2, 1) both;

}



@keyframes drift {

  from { transform: translateY(0) rotate(0deg); }

  to { transform: translateY(-14px) rotate(5deg); }

}



@keyframes stampIn {

  from { opacity: 0; transform: rotate(-18deg) scale(0.85); }

  to { opacity: 1; transform: rotate(-9deg) scale(1); }

}



@keyframes riseIn {

  from { opacity: 0; transform: translateY(14px); }

  to { opacity: 1; transform: translateY(0); }

}



/* Buttons */

.btn {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  gap: 0.4rem;

  border: 1px solid transparent;

  border-radius: 999px;

  padding: 0.75rem 1.25rem;

  font: inherit;

  font-weight: 600;

  cursor: pointer;

  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;

}



.btn:hover {

  transform: translateY(-1px);

}



.btn-primary {

  background: var(--gold);

  color: #14110c;

}



.btn-primary:hover {

  background: #f3e4b8;

}



.btn-ghost {

  background: transparent;

  border-color: var(--line);

  color: var(--ink);

}



.btn-ghost:hover {

  border-color: var(--gold);

  color: var(--gold);

}



.btn-sm {

  padding: 0.45rem 0.9rem;

  font-size: 0.9rem;

}



.linkish {

  background: none;

  border: 0;

  color: var(--gold);

  font: inherit;

  cursor: pointer;

  text-decoration: underline;

  text-underline-offset: 3px;

}



/* Category rail */

.category-rail {

  position: relative;

  z-index: 1;

  padding: 0.5rem 0 1.25rem;

}



.category-rail-head {

  display: flex;

  align-items: baseline;

  justify-content: space-between;

  gap: 1rem;

  margin-bottom: 0.85rem;

}



.category-rail-head h2 {

  margin: 0;

  font-family: var(--font-display);

  font-size: 1.05rem;

  letter-spacing: 0.04em;

}



.category-rail-head p {

  margin: 0;

  color: var(--muted);

  font-size: 0.85rem;

}



.category-scroller {

  display: flex;

  gap: 0.65rem;

  overflow-x: auto;

  padding-bottom: 0.4rem;

  scroll-snap-type: x mandatory;

  -webkit-overflow-scrolling: touch;

}



.category-scroller::-webkit-scrollbar {

  height: 4px;

}



.category-scroller::-webkit-scrollbar-thumb {

  background: rgba(232, 213, 163, 0.35);

  border-radius: 999px;

}



.cat-chip {

  flex: 0 0 auto;

  scroll-snap-align: start;

  display: flex;

  flex-direction: column;

  align-items: center;

  gap: 0.45rem;

  min-width: 84px;

  padding: 0.75rem 0.55rem 0.65rem;

  border-radius: 14px;

  border: 1px solid var(--line);

  background: rgba(23, 23, 28, 0.85);

  color: var(--ink-soft);

  cursor: pointer;

  transition: border-color 0.2s, background 0.2s, transform 0.15s, color 0.2s;

}



.cat-chip:hover {

  border-color: rgba(232, 213, 163, 0.45);

  transform: translateY(-2px);

  color: var(--ink);

}



.cat-chip.is-active {

  border-color: var(--gold);

  background: linear-gradient(180deg, rgba(232, 213, 163, 0.14), rgba(23, 23, 28, 0.95));

  color: var(--gold);

  box-shadow: 0 0 0 1px rgba(232, 213, 163, 0.15);

}



.cat-chip-icon {

  width: 42px;

  height: 42px;

  border-radius: 12px;

  display: grid;

  place-items: center;

  background: rgba(255, 255, 255, 0.04);

  border: 1px solid rgba(232, 213, 163, 0.12);

}



.cat-chip-icon img {

  width: 26px;

  height: 26px;

  object-fit: contain;

}



.cat-chip-label {

  font-size: 0.68rem;

  font-weight: 600;

  letter-spacing: 0.02em;

  text-align: center;

  max-width: 78px;

  line-height: 1.2;

}



/* Catalog */

.catalog {

  padding: 0.5rem 0 4rem;

  position: relative;

  z-index: 1;

}



.catalog > .shell {

  display: grid;

  grid-template-columns: 240px 1fr;

  gap: 1.5rem;

  align-items: start;

}



.filters {

  position: sticky;

  top: calc(var(--header-h) + 1rem);

  background: rgba(18, 18, 22, 0.9);

  border: 1px solid var(--line);

  border-radius: 14px;

  padding: 1rem;

  backdrop-filter: blur(8px);

}



.filters-head {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 0.75rem;

}



.filters-head h2,

.catalog-toolbar h2,

.related h2 {

  margin: 0;

  font-family: var(--font-display);

  font-size: 1.05rem;

  letter-spacing: 0.04em;

}



.field {

  display: flex;

  flex-direction: column;

  gap: 0.35rem;

  margin-bottom: 0.9rem;

  font-size: 0.85rem;

  color: var(--muted);

}



.field select,

.field input {

  border: 1px solid var(--line);

  border-radius: var(--radius);

  padding: 0.55rem 0.65rem;

  font: inherit;

  color: var(--ink);

  background: var(--bg);

}



.range-row {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 0.5rem;

}



.catalog-toolbar {

  display: flex;

  justify-content: space-between;

  align-items: center;

  margin-bottom: 1rem;

}



.filters-toggle {

  display: none;

}



.product-grid {

  display: grid;

  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));

  gap: 1rem;

}



.product-card {

  background: var(--bg-card);

  border: 1px solid var(--line);

  border-radius: 12px;

  overflow: hidden;

  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;

  animation: riseIn 0.45s ease both;

}



.product-card:hover {

  transform: translateY(-4px);

  border-color: rgba(232, 213, 163, 0.28);

  box-shadow: var(--shadow);

}



.card-media {

  display: block;

  aspect-ratio: 1 / 1;

  background:

    radial-gradient(circle at 30% 20%, rgba(232, 213, 163, 0.08), transparent 50%),

    linear-gradient(160deg, #1c1c22, #101014);

  overflow: hidden;

}



.card-media img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  padding: 0.75rem;

  transition: transform 0.35s ease;

}



.product-card:hover .card-media img {

  transform: scale(1.05);

}



.card-body {

  padding: 0.85rem 0.9rem 1rem;

}



.card-cat {

  margin: 0 0 0.35rem;

  font-size: 0.7rem;

  letter-spacing: 0.08em;

  text-transform: uppercase;

  color: var(--gold);

  font-weight: 600;

  display: inline-flex;

  align-items: center;

  gap: 0.35rem;

}



.card-cat-icon {

  width: 14px;

  height: 14px;

  object-fit: contain;

  opacity: 0.95;

}



.card-title {

  margin: 0 0 0.65rem;

  font-size: 0.95rem;

  line-height: 1.25;

  font-weight: 600;

}



.card-title a:hover {

  color: var(--gold);

}



.card-meta {

  display: flex;

  justify-content: space-between;

  gap: 0.5rem;

  align-items: baseline;

}



.card-price {

  font-family: var(--font-display);

  font-weight: 700;

  font-size: 1.05rem;

  color: var(--ink);

}



.card-brand {

  font-size: 0.75rem;

  color: var(--muted);

  text-align: right;

}



.empty-state {

  padding: 2.5rem 1rem;

  text-align: center;

  color: var(--muted);

  border: 1px dashed var(--line);

  border-radius: 10px;

}



.load-more-wrap {

  display: flex;

  justify-content: center;

  margin-top: 1.5rem;

}



/* Product detail */

.product-page {

  padding: 1.5rem 0 3rem;

}



.back-link {

  display: inline-block;

  margin-bottom: 1rem;

  color: var(--muted);

  font-size: 0.9rem;

}



.back-link:hover {

  color: var(--gold);

}



.product-detail {

  display: grid;

  grid-template-columns: 1.05fr 0.95fr;

  gap: 2rem;

  background: rgba(18, 18, 22, 0.9);

  border: 1px solid var(--line);

  border-radius: 16px;

  padding: 1.25rem;

  margin-bottom: 2.5rem;

}



.detail-media {

  background: linear-gradient(160deg, #1c1c22, #101014);

  border-radius: 12px;

  min-height: 360px;

  display: grid;

  place-items: center;

  overflow: hidden;

  border: 1px solid var(--line);

}



.detail-media img {

  width: 100%;

  height: 100%;

  max-height: 520px;

  object-fit: contain;

  padding: 1rem;

}



.detail-cat {

  margin: 0 0 0.4rem;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  font-size: 0.75rem;

  color: var(--gold);

  font-weight: 700;

  display: inline-flex;

  align-items: center;

  gap: 0.45rem;

}



.detail-cat img {

  width: 18px;

  height: 18px;

}



.detail-copy h1 {

  margin: 0 0 0.75rem;

  font-family: var(--font-display);

  font-weight: 800;

  font-size: clamp(1.5rem, 3vw, 2.3rem);

  line-height: 1.1;

}



.detail-price {

  margin: 0 0 0.75rem;

  font-family: var(--font-display);

  font-weight: 700;

  font-size: 2rem;

  color: var(--gold);

}

.detail-instore {
  margin: 0 0 1.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(255, 255, 255, 0.02));
}

.instore-label {
  margin: 0 0 0.25rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}

.instore-value {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.instore-source {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.instore-source:hover {
  color: var(--gold);
}

.instore-note {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}



.detail-brand,

.detail-note {

  color: var(--muted);

}



.detail-actions {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem;

  margin-top: 1.5rem;

}



.related h2 {

  margin-bottom: 1rem;

}



.site-footer {

  border-top: 1px solid var(--line);

  padding: 1.5rem 0 2rem;

  position: relative;

  z-index: 1;

}



.footer-inner {

  display: flex;

  flex-wrap: wrap;

  gap: 0.75rem 2rem;

  justify-content: space-between;

  color: var(--muted);

  font-size: 0.9rem;

}



.muted {

  color: var(--muted);

}



.not-found {

  padding: 4rem 0;

  text-align: center;

}



@media (max-width: 900px) {

  .header-inner {

    grid-template-columns: 1fr auto;

    grid-template-areas:

      "brand meta"

      "search search";

  }



  .brand { grid-area: brand; }

  .header-meta { grid-area: meta; }

  .search-form { grid-area: search; }



  .hero-grid {

    grid-template-columns: 1fr;

    min-height: auto;

  }



  .hero-visual {

    min-height: 170px;

    order: -1;

  }



  .catalog > .shell {

    grid-template-columns: 1fr;

  }



  .filters {

    position: static;

    display: none;

  }



  .filters.is-open {

    display: block;

  }



  .filters-toggle {

    display: inline-flex;

  }



  .product-detail {

    grid-template-columns: 1fr;

  }

}



@media (max-width: 560px) {

  .hero-brand-line {

    font-size: clamp(2.4rem, 12vw, 3.6rem);

  }



  .product-grid {

    grid-template-columns: repeat(2, 1fr);

    gap: 0.65rem;

  }



  .card-body {

    padding: 0.65rem;

  }



  .card-title {

    font-size: 0.82rem;

  }

}


/* Enrichment / gallery */
.gallery-main {
  background: linear-gradient(160deg, #1c1c22, #101014);
  border-radius: 12px;
  min-height: 360px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  padding: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.2rem;
}

.gallery-thumb {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--gold);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enrich-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.85rem 0 0.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.03);
  color: var(--muted);
  font-size: 0.85rem;
}

.enrich-status.is-loading .enrich-dot {
  background: var(--gold);
  animation: pulseDot 1s ease infinite;
}

.enrich-status.is-ok {
  color: #b7e0c2;
  border-color: rgba(183, 224, 194, 0.25);
}

.enrich-status.is-error {
  color: #f0a8a0;
  border-color: rgba(240, 168, 160, 0.3);
}

.enrich-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.35; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

.price-was {
  margin-left: 0.45rem;
  font-size: 0.75em;
  color: var(--muted);
  text-decoration: line-through;
  font-family: var(--font-body);
  font-weight: 500;
}

.enrich-panel {
  margin: 0 0 2.5rem;
  display: grid;
  gap: 1rem;
}

.enrich-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.enrich-block {
  background: rgba(18, 18, 22, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.enrich-block h3 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.enrich-block h4 {
  margin: 0 0 0.55rem;
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.shop-row {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.shop-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--line);
}

.meta-grid {
  display: grid;
  gap: 0.65rem;
}

.meta-grid > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
  font-size: 0.9rem;
}

.meta-grid span {
  color: var(--muted);
}

.spec-attr + .spec-attr {
  margin-top: 1rem;
}

.spec-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
}

.spec-chip:not(.has-img) {
  padding: 0.4rem 0.75rem;
}

.spec-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.spec-chip.is-active,
.spec-chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.sku-table-wrap {
  overflow: auto;
  max-height: 320px;
}

.sku-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.sku-table th,
.sku-table td {
  text-align: left;
  padding: 0.55rem 0.4rem;
  border-bottom: 1px solid var(--line);
}

.sku-table th {
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: #17171c;
}

@media (max-width: 900px) {
  .enrich-grid {
    grid-template-columns: 1fr;
  }
}


.detail-origin-price {
  margin: 0.35rem 0 0.75rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.detail-origin-price strong {
  color: var(--gold);
}


.detail-description {
  margin: 1rem 0;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.detail-description h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--gold);
}
.detail-description p {
  margin: 0;
  color: var(--ink-soft);
  white-space: pre-wrap;
}


/* Primeira Linha subrail (under Pecas) */
.pl-subrail {
  --pl-pad: 1rem 1.1rem 1.15rem;
  position: relative;
  margin: 0 0 1.35rem;
  padding: var(--pl-pad);
  border: 1px solid rgba(232, 213, 163, 0.22);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(232, 213, 163, 0.1) 0%, transparent 42%),
    linear-gradient(180deg, rgba(22, 22, 28, 0.95), rgba(12, 12, 16, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(232, 213, 163, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.pl-subrail::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--ember));
  opacity: 0.85;
}

.pl-subrail-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "brand count"
    "copy copy";
  gap: 0.35rem 1rem;
  align-items: center;
  margin-bottom: 0.95rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(242, 238, 230, 0.08);
}

.pl-subrail-brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.pl-subrail-icon {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(232, 213, 163, 0.25));
}

.pl-subrail-kicker {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.pl-subrail-title {
  margin: 0.05rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
}

.pl-subrail-copy {
  grid-area: copy;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pl-subrail-count {
  grid-area: count;
  justify-self: end;
  align-self: start;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(232, 213, 163, 0.35);
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  background: rgba(232, 213, 163, 0.08);
  white-space: nowrap;
}

.pl-subscroller {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  max-height: 9.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.15rem 0.15rem 0.35rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 213, 163, 0.35) transparent;
  mask-image: linear-gradient(180deg, #000 0%, #000 88%, transparent 100%);
}

.pl-subscroller::-webkit-scrollbar {
  width: 6px;
}
.pl-subscroller::-webkit-scrollbar-thumb {
  background: rgba(232, 213, 163, 0.3);
  border-radius: 999px;
}

.pl-subchip {
  flex: 0 1 auto;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(242, 238, 230, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-soft);
  border-radius: 10px;
  padding: 0.42rem 0.72rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.pl-subchip-label {
  display: block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pl-subchip:hover {
  border-color: rgba(232, 213, 163, 0.55);
  color: var(--ink);
  background: rgba(232, 213, 163, 0.08);
  transform: translateY(-1px);
}

.pl-subchip.is-active {
  border-color: transparent;
  color: #111014;
  background: linear-gradient(135deg, #f0e2b8, var(--gold-deep));
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(196, 163, 90, 0.28);
}

.pl-subchip.is-all {
  border-style: dashed;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.pl-subchip.is-all.is-active {
  border-style: solid;
}

@media (max-width: 640px) {
  .pl-subrail {
    --pl-pad: 0.9rem 0.9rem 1rem;
    border-radius: 14px;
  }

  .pl-subrail-head {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "copy"
      "count";
    gap: 0.45rem;
  }

  .pl-subrail-count {
    justify-self: start;
  }

  .pl-subscroller {
    flex-wrap: nowrap;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.45rem;
    mask-image: linear-gradient(90deg, #000 0%, #000 88%, transparent 100%);
    scroll-snap-type: x proximity;
  }

  .pl-subchip {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .pl-subchip-label {
    max-width: 11rem;
  }
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.15rem;
}
.fact {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
}
.fact-label {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.fact strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.detail-variations {
  margin: 0 0 1rem;
}
.detail-variations .spec-attr {
  margin-bottom: 0.85rem;
}
.detail-variations h4 {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}
.gallery-main {
  position: relative;
  cursor: zoom-in;
  min-height: 420px;
}
.gallery-main img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
}
.gallery-zoom-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  background: rgba(0,0,0,0.55);
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  pointer-events: none;
}
.gallery-thumbs {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
}
.gallery-thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #121216;
  cursor: pointer;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb.is-active {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

body.lightbox-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(4,4,8,0.92);
  display: grid;
  place-items: center;
  padding: 2rem;
}
.lightbox[hidden] {
  display: none !important;
}
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.lightbox-nav.prev { left: 1rem; }
.lightbox-nav.next { right: 1rem; }
.lightbox-counter {
  position: absolute;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .detail-facts {
    grid-template-columns: 1fr;
  }
  .gallery-main {
    min-height: 280px;
  }
}


.header-admin-link {
  margin-left: 0.75rem;
  color: var(--muted);
  font-size: 0.78rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
}
.header-admin-link:hover {
  color: var(--gold);
  border-color: var(--gold);
}



/* Gallery side navigation */
.gallery-main {
  position: relative;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery-nav.prev { left: 0.65rem; }
.gallery-nav.next { right: 0.65rem; }
.gallery-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.gallery-counter {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: rgba(0,0,0,0.45);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}
.lightbox-nav,
.lightbox-close {
  z-index: 2;
  pointer-events: auto;
}

/* Header cart */
.header-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid rgba(232,213,163,0.35);
  background: rgba(232,213,163,0.08);
  color: var(--gold);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font: inherit;
  cursor: pointer;
}
.cart-badge {
  min-width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: var(--gold);
  color: #111;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
  padding: 0 0.3rem;
}

/* Cart drawer */
body.cart-open { overflow: hidden; }
.cart-drawer[hidden] { display: none !important; }
.cart-drawer { position: fixed; inset: 0; z-index: 90; }
.cart-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}
.cart-drawer-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: #121217;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.cart-drawer-head,
.cart-drawer-foot {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
}
.cart-drawer-foot {
  border-bottom: 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.cart-drawer-head h2 {
  margin: 0;
  font-family: var(--font-display);
}
.cart-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
}
.cart-drawer-body {
  padding: 0.85rem 1.1rem;
  overflow: auto;
  flex: 1;
}
.cart-empty { color: var(--muted); }
.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line img {
  width: 64px; height: 64px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.cart-line-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
  margin-top: 0.35rem;
}
.cart-qty {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.1rem 0.35rem;
}
.cart-qty button {
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  width: 24px;
  height: 24px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.35rem 0;
}
.cart-summary-row.total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.cart-ship-note {
  color: var(--muted);
  font-size: 0.82rem;
  margin: 0.65rem 0 1rem;
}
.cart-checkout-btn { width: 100%; justify-content: center; }
.cart-checkout-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Checkout */
.checkout-page { padding: 1.5rem 0 3rem; }
.checkout-head h1 {
  margin: 0.2rem 0;
  font-family: var(--font-display);
}
.checkout-lead { color: var(--muted); max-width: 40rem; }
.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 1rem;
  margin-top: 1.25rem;
}
.checkout-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  background: rgba(18,18,22,0.9);
}
.checkout-form {
  display: grid;
  gap: 0.75rem;
}
.checkout-form label span {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0,0,0,0.35);
  color: var(--ink);
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.checkout-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}
.checkout-line img {
  width: 56px; height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.checkout-success h2 {
  font-family: var(--font-display);
  color: var(--gold);
}
@media (max-width: 900px) {
  .checkout-grid,
  .checkout-row { grid-template-columns: 1fr; }
}


/* === Product gallery layout lock (prevent image overflow onto info) === */
.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.detail-media,
.product-detail .gallery {
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
}

.detail-media {
  display: block;
  min-height: 0;
  background: transparent;
  border: 0;
  padding: 0;
}

.product-detail .gallery-main {
  position: relative;
  width: 100%;
  height: min(62vh, 480px);
  min-height: 280px;
  max-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(160deg, #1c1c22, #101014);
  cursor: zoom-in;
}

.product-detail .gallery-main img,
.detail-media img,
.product-detail #galleryMainImg {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain;
  padding: 0.75rem;
  display: block;
  position: relative;
  z-index: 0;
}

.product-detail .gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}

.product-detail .gallery-zoom-hint,
.product-detail .gallery-counter {
  z-index: 3;
  pointer-events: none;
}

.product-detail .gallery-thumbs {
  margin-top: 0.75rem;
  max-width: 100%;
}

.detail-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .product-detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .product-detail .gallery-main {
    height: min(55vh, 380px);
    max-height: 380px;
  }
}

