/* COSMIC ETERNAL — product site. */
:root {
  --bg: #ffffff;
  --fg: #000000;
  --dim: #888888;
  --line: #e8e8e8;
  --font: "Poppins", Helvetica, Arial, sans-serif;
  --neon: #39ff14;
  --matrix: #00ff41;
  --red: #ff1a1a;
  --logo: 64px;
  --logo-m: 60px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; border: 0; }
button, a { color: inherit; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
}
button:hover { text-decoration: underline; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible { outline: 1px solid #000; outline-offset: 3px; }

/* ——— Black Friday banner ——— */
.bf-banner {
  display: none;
  position: relative;
  background: #000;
  color: var(--neon);
  overflow: hidden;
  min-height: 260px;
}
.bf-banner.is-visible { display: block; }
.bf-banner canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.7;
  pointer-events: none;
}
.bf-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 40px 20px 32px;
}
.bf-title {
  margin: 0 0 14px;
  font-size: clamp(20px, 4.4vw, 44px);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--neon);
  text-shadow:
    0 0 8px rgba(57, 255, 20, 0.7),
    0 0 22px rgba(57, 255, 20, 0.35);
  line-height: 1.2;
}
.bf-label {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--neon);
}
.bf-clock {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.12em;
  font-size: clamp(42px, 9.2vw, 104px);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: var(--red);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  text-shadow: 0 0 14px rgba(255, 26, 26, 0.55), 0 0 36px rgba(255, 26, 26, 0.25);
}
.bf-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1.35em;
}
.bf-unit .num { display: block; }
.bf-unit .lab {
  margin-top: 10px;
  font-size: 9px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--red);
  text-shadow: none;
}
.bf-colon {
  display: block;
  padding-top: 0;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .bf-banner canvas { display: none; }
  .bf-title, .bf-clock { text-shadow: none; }
}

/* ——— Header ——— */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background: #fff;
  position: relative;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.brand:hover { text-decoration: none; }
.brand img {
  width: var(--logo);
  height: var(--logo);
  display: block;
}
.nav-desktop {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.menu-btn,
.cart-btn { display: none; }

.menu-btn {
  width: 44px;
  height: 44px;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
  gap: 7px;
  padding: 10px 4px;
  text-decoration: none;
}
.menu-btn:hover { text-decoration: none; }
.menu-bar {
  display: block;
  width: 26px;
  height: 3px;
  background: #000;
  border-radius: 0;
}
.cart-btn {
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  min-height: 44px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.cart-btn:hover { text-decoration: none; }
.cart-btn svg { width: 26px; height: 26px; display: block; }
.cart-count { font-variant-numeric: tabular-nums; }

.site-menu {
  display: none;
  background: #fff;
  border-top: 3px solid #000;
  border-bottom: 3px solid #000;
  padding: 8px 16px 16px;
}
.site-menu.is-open { display: block; }
.site-menu a {
  display: block;
  padding: 14px 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}
.site-menu a:last-child { border-bottom: 0; }
.site-menu a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 799px) {
  .site-header {
    display: grid;
    grid-template-columns: 48px 1fr 64px;
    align-items: center;
    padding: 8px 12px;
    min-height: 76px;
  }
  .menu-btn, .cart-btn { display: flex; }
  .nav-desktop { display: none; }
  .brand {
    grid-column: 2;
    justify-self: center;
  }
  .brand img {
    width: var(--logo-m);
    height: var(--logo-m);
  }
  .cart-btn { grid-column: 3; }
}

@media (min-width: 800px) {
  .site-menu { display: none !important; }
}

.drop-line {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 8px 20px 0;
}

.site-footer {
  padding: 16px 28px 48px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

/* ——— Home grid ——— */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px 28px;
  padding: 36px 28px 80px;
  max-width: 1440px;
  margin: 0 auto;
}
@media (min-width: 700px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  /* Reserved empty slots (upcoming hat / babydoll) must not pull the next row left. */
  .grid > .grid-row-start { grid-column: 1; }
}

.card { display: block; text-decoration: none; color: inherit; }
.card:hover { text-decoration: none; }
.card-image {
  background: #fff;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-image .card-base {
  position: relative;
  z-index: 0;
}
.card-image .card-swap {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: none;
  pointer-events: none;
  transform: translateZ(0);
}
@media (hover: hover) and (pointer: fine) {
  .card:hover .card-swap { opacity: 1; }
}
.card.is-hover .card-swap { opacity: 1; }
.card-meta { margin-top: 12px; }
.card-name,
.card-price,
.card-stock {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.card-price { margin-top: 4px; }
.card-stock { margin-top: 4px; font-weight: 600; }
.card-price .was {
  text-decoration: line-through;
  margin-right: 10px;
  color: var(--dim);
}

/* ——— Product page ——— */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 16px 80px;
  max-width: 1440px;
  margin: 0 auto;
}
.product-heading { min-width: 0; }
.product-rule {
  border: 0;
  border-top: 6px solid #000;
  margin: 0;
  height: 0;
}
.product-name {
  margin: 14px 0;
  font-size: clamp(28px, 8vw, 52px);
  letter-spacing: 0.01em;
  font-weight: 700;
  line-height: 1.05;
}
.product-price {
  margin: 14px 0;
  font-size: clamp(22px, 5.5vw, 36px);
  letter-spacing: 0.02em;
  font-weight: 700;
}
.product-price .was {
  text-decoration: line-through;
  margin-right: 12px;
  color: var(--dim);
}
@media (min-width: 900px) {
  .product {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px 56px;
    padding: 0 40px 80px;
    align-items: start;
  }
  .product-heading { grid-column: 1 / -1; }
}

.product-image { background: #fff; }
.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-stock { margin: 8px 0 20px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; }

.opt-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.editions, .sizes, .options, .garments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0 0 24px;
}
.editions button,
.sizes button,
.options button,
.garments button {
  border: 2px solid #000;
  padding: 8px 14px;
  font-weight: 700;
  text-decoration: none;
}
.editions button:hover,
.sizes button:hover,
.options button:hover,
.garments button:hover { text-decoration: none; background: #f3f3f3; }
.editions button.is-on,
.sizes button.is-on,
.options button.is-on,
.garments button.is-on {
  background: #000;
  color: #fff;
  text-decoration: none;
}

.buy-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  margin: 8px 0 0;
}
.buy-btn {
  display: block;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: #000;
  color: #fff;
  border: 0;
  padding: 16px 20px;
  text-align: center;
  text-decoration: none;
}
.buy-btn:hover { text-decoration: none; background: #222; }
.buy-btn.is-disabled,
.buy-btn[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
  text-decoration: none;
  cursor: default;
}
.sold-msg {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 8px 0 0;
}
.ship-note {
  margin-top: 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}
.size-hint {
  margin: 0 0 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
  min-height: 1.4em;
}

.cart-page, .empty {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 80px;
  text-align: left;
}
.cart-page p { font-size: 14px; font-weight: 600; letter-spacing: 0.04em; }

@media (max-width: 699px) {
  .grid { padding: 24px 16px 64px; gap: 36px 16px; }
}

.place-note,
.blank-note {
  margin: 0 0 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.gallery-thumbs button {
  width: 72px;
  height: 72px;
  padding: 0;
  border: 2px solid #e8e8e8;
  background: #fff;
  text-decoration: none;
}
.gallery-thumbs button:hover,
.gallery-thumbs button.is-on {
  border-color: #000;
  text-decoration: none;
}
.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


#paypal-buttons {
  margin: 8px 0 0;
  min-height: 0;
}
.pay-summary {
  margin: 8px 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.7;
}
.pay-summary .pay-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.pay-summary .pay-total {
  font-size: 14px;
  font-weight: 700;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 2px solid #000;
}
.order-confirm {
  margin: 12px 0 0;
  padding: 20px 0 8px;
  border-top: 3px solid #000;
}
.order-confirm h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
}
.order-confirm p {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 0 0 8px;
  line-height: 1.6;
}
.order-confirm .order-id {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.pay-error {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: #b00;
}

/* ——— Sale price slash ——— */
.price-pair {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
}
.price-old {
  position: relative;
  display: inline-block;
}
.price-slash {
  position: absolute;
  left: -8%;
  right: -8%;
  top: 52%;
  height: 0.13em;
  min-height: 3px;
  background: var(--red);
  transform: rotate(-16deg) scaleX(0);
  transform-origin: left center;
  pointer-events: none;
  box-shadow: 0 0 5px rgba(255, 26, 26, 0.45);
}
.price-pair.is-slashed .price-slash,
.price-pair.is-slashing .price-slash {
  transform: rotate(-16deg) scaleX(1);
}
.price-pair.is-slashing .price-slash {
  transition: transform 0.55s cubic-bezier(0.15, 0.7, 0.2, 1);
}
.price-pair.is-prep .price-slash {
  transform: rotate(-16deg) scaleX(0);
}
.price-new { font-weight: 700; }
.price-pair.is-prep .price-new {
  opacity: 0;
  transform: translateX(-8px);
}
.price-pair.is-slashing .price-new,
.price-pair.is-slashed .price-new {
  opacity: 1;
  transform: none;
}
.price-pair.is-slashing .price-new {
  transition: opacity 0.35s ease 0.28s, transform 0.35s ease 0.28s;
}
@media (prefers-reduced-motion: reduce) {
  .price-pair.is-slashing .price-slash,
  .price-pair.is-slashing .price-new { transition: none; }
}

/* ——— Sold-out rubber stamp ——— */
.stamp-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.sold-stamp {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 5;
  overflow: hidden;
}
.sold-stamp-mark {
  display: inline-block;
  transform: rotate(-18deg);
  border: 0.12em solid rgba(210, 10, 10, 0.82);
  color: rgba(210, 10, 10, 0.82);
  font-weight: 700;
  font-size: clamp(34px, 10vw, 86px);
  letter-spacing: 0.06em;
  line-height: 0.9;
  padding: 0.14em 0.16em 0.1em;
  filter: url(#ce-stamp-distress);
  text-shadow: 1px 1px 0 rgba(90, 0, 0, 0.25);
  white-space: nowrap;
}
.product-image {
  position: relative;
}
.product-image .sold-stamp-mark {
  font-size: clamp(48px, 12vw, 120px);
  border-width: 0.1em;
}
.card.is-sold .card-image img {
  opacity: 0.88;
}

/* ——— Black Friday signup modal ——— */
.bf-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}
.bf-modal[hidden] { display: none; }
.bf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.bf-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: #050505;
  color: #f3f3f3;
  border: 1px solid #C9A94E;
  box-shadow: 0 0 0 1px rgba(201, 169, 78, 0.35), 0 24px 60px rgba(0, 0, 0, 0.55);
  padding: 36px 28px 28px;
  text-align: center;
}
.bf-modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  color: #f3f3f3;
  font-size: 28px;
  line-height: 1;
  text-decoration: none;
}
.bf-modal-close:hover { text-decoration: none; color: #C9A94E; }
.bf-modal-logo {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  background: #fff;
  border-radius: 50%;
}
.bf-modal-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: #fff;
}
.bf-modal-offer {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #C9A94E;
  text-transform: uppercase;
}
.bf-modal-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bf-modal-form label.bf-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: #bbb;
}
.bf-modal-form input[type="email"],
.bf-modal-form input[type="tel"] {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid #444;
  padding: 12px 12px;
  font: inherit;
  letter-spacing: 0.02em;
  text-transform: none;
}
.bf-modal-form input[type="email"]:focus,
.bf-modal-form input[type="tel"]:focus {
  outline: 1px solid #C9A94E;
  border-color: #C9A94E;
}
.bf-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 4px 0 2px;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.45;
  color: #c8c8c8;
}
.bf-consent input {
  margin-top: 3px;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  accent-color: #C9A94E;
}
.bf-modal-submit {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #C9A94E;
  color: #000;
  border: 0;
  padding: 14px 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
}
.bf-modal-submit:hover { text-decoration: none; background: #dbbf6a; color: #000; }
.bf-modal-submit:disabled { opacity: 0.55; cursor: default; }
.bf-form-error {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #E8D48A;
  text-transform: uppercase;
}
.bf-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 210;
  background: #000;
  color: #fff;
  border: 2px solid #C9A94E;
  padding: 14px 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  max-width: calc(100% - 32px);
}
.bf-toast[hidden] { display: none; }

@media (max-width: 699px) {
  .bf-modal { padding: 12px; align-items: flex-end; }
  .bf-modal-panel { padding: 28px 18px 22px; max-width: none; }
  .site-footer { padding: 16px 16px 48px; line-height: 1.6; }
}

body.bf-modal-open { overflow: hidden; }

/* Hidden static form used only so Netlify registers bf-signup. */
.bf-signup-detect {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
}
