/* PALLEN'S HOLIDAY SALE — stylesheet — dark editorial theme */

/* Mobile nav: hamburger dropdown */
#nav-toggle { display: none; }
@media (max-width: 700px) {
  header { position: relative; }
  #nav-inner { flex-wrap: nowrap !important; padding: 12px 16px !important; align-items: center; }
  #nav-toggle {
    display: block; order: 2; margin-left: auto;
    background: none; border: none; color: #F6F1E7;
    font-size: 26px; cursor: pointer; padding: 4px 8px; line-height: 1;
  }
  #cart-nav-btn { order: 3; margin-left: 8px !important; }
  #nav-links {
    display: none !important;
    position: absolute; top: 100%; left: 0; right: 0; z-index: 200;
    background: #0E1512; border-bottom: 2px solid #2A3A33;
    padding: 4px 24px 16px; flex-direction: column;
    gap: 0 !important; margin-left: 0 !important; width: 100% !important;
    box-sizing: border-box; font-size: 15px !important;
  }
  #nav-links.open { display: flex !important; }
  #nav-links a { padding: 14px 0 !important; border-bottom: 1px solid #1E2E27; width: 100%; }
  #nav-links a:last-child { border-bottom: none; }
}

:root {
  --dark:    #0E1512;
  --dark-2:  #16211C;
  --dark-3:  #1B2A24;
  --border:  #2A3A33;
  --border-2:#4A5E55;
  --text:    #F6F1E7;
  --text-2:  #D9D2C5;
  --muted:   #B9B2A5;
  --gold:    #E3B54A;
  --gold-lt: #F6D98B;
  --red:     #C8102E;
  --green:   #1F5A43;
  --radius:  2px;
  --shadow:  0 2px 12px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--dark);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  margin: 0;
}
p { margin: 0; }
a { color: var(--gold); }
a:hover { color: var(--gold-lt); }
button { font-family: inherit; }

/* ---- Hazard stripe -------------------------------------------------- */
.hazard-bar {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red)   0px,  var(--red)   12px,
    #0E1512      12px, #0E1512      24px
  );
}

/* ---- Sale banner ---------------------------------------------------- */
.sale-banner {
  background: var(--red);
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ---- Main content --------------------------------------------------- */
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 120px;
}

/* ---- Section headers ----------------------------------------------- */
.section-header {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--gold);
  letter-spacing: .04em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin: 52px 0 24px;
}

/* ---- Item grid ------------------------------------------------------ */
.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 580px) {
  .item-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .item-grid { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---- Item card ------------------------------------------------------ */
.item-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease;
}
.item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.45);
}
.item-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--dark-3);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-in;
}
.item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 16px;
  transition: transform .2s ease;
}
.item-card:hover .item-img {
  transform: scale(1.03);
}
.item-img-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 2.5rem;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--red);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 2px;
  line-height: 1.4;
}
.discount-badge .badge-pct {
  font-size: 0.85rem;
  font-weight: 900;
}
.discount-badge.sale-badge {
  background: var(--gold);
  color: var(--dark);
}

/* Pre-order badge */
.preorder-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold);
  color: var(--dark);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.item-body {
  padding: 12px 14px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.item-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.item-note {
  font-size: 0.7rem;
  color: var(--muted);
  font-style: italic;
}
.item-price-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.item-original-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.82rem;
  font-weight: 500;
}
.item-sale-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}
.item-tbd {
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}

/* Choose Options button */
.choose-btn {
  margin-top: auto;
  padding: 10px 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
}
.choose-btn:hover { background: var(--text); color: var(--dark); }
.choose-btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---- Options modal ---------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  width: 100%;
  max-width: 760px;
  max-height: 90vh;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto;
  position: relative;
  animation: slideUp .2s ease;
}
@keyframes slideUp { from { transform: translateY(24px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Left column: image */
.modal-img-col {
  background: var(--dark-3);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  border-radius: 2px 0 0 2px;
  min-height: 340px;
}
.modal-img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
  transition: opacity .2s;
}

/* Right column: controls */
.modal-controls {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 2px;
  transition: color .15s, background .15s;
}
.modal-close:hover { color: var(--text); background: var(--dark-3); }

.modal-name {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text);
  line-height: 1.3;
  padding-right: 28px;
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.modal-price-row .item-original-price { font-size: 1rem; }
.modal-price-row .item-sale-price { font-size: 1.15rem; font-weight: 800; }
.modal-note {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-top: -8px;
}

.modal-field { display: flex; flex-direction: column; gap: 6px; }
.modal-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* Shared select style (used in modal) */
.modal-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-size: 0.9rem;
  background: var(--dark);
  color: var(--text);
  appearance: auto;
  font-family: inherit;
  cursor: pointer;
}
.modal-select:focus { outline: 2px solid var(--gold); border-color: transparent; }

/* Qty stepper */
.qty-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  overflow: hidden;
  width: fit-content;
}
.qty-btn {
  background: var(--dark-3);
  border: none;
  width: 38px; height: 38px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  line-height: 1;
  transition: background .1s;
}
.qty-btn:hover { background: var(--border); }
.qty-btn:disabled { opacity: .4; cursor: not-allowed; }
.qty-display {
  width: 46px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  background: none;
  pointer-events: none;
  color: var(--text);
}

/* Add to Order button (modal) */
.add-btn {
  padding: 13px 0;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
  letter-spacing: .02em;
  transition: background .15s, color .15s;
  margin-top: auto;
}
.add-btn:hover { background: var(--text); color: var(--dark); }
.add-btn:disabled { opacity: .5; cursor: not-allowed; }

.inline-error {
  font-size: 0.75rem;
  color: var(--red);
  font-weight: 600;
  min-height: 14px;
  margin-top: -8px;
}

/* Modal responsive */
@media (max-width: 580px) {
  .modal-box {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .modal-img-col {
    border-radius: 2px 2px 0 0;
    min-height: 220px;
    padding: 20px;
  }
  .modal-img { max-height: 200px; }
  .modal-controls { padding: 20px 18px 24px; }
}

/* ---- Lightbox -------------------------------------------------------- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 400;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeIn .2s ease;
}
.lightbox-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 2px;
  transition: background .15s;
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,.12); }

.lightbox-main {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  width: 100%;
  max-height: calc(100vh - 130px);
  padding: 0 60px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 2px;
  transition: opacity .2s;
}
.lightbox-label {
  position: absolute;
  bottom: -28px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.65);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  font-size: 1.6rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
  z-index: 5;
}
.lightbox-arrow:hover { background: rgba(255,255,255,.25); }
.lightbox-arrow.prev { left: 10px; }
.lightbox-arrow.next { right: 10px; }
.lightbox-arrow:disabled { opacity: 0; pointer-events: none; }

.lightbox-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px 20px 20px;
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.lightbox-thumbs::-webkit-scrollbar { display: none; }
.lightbox-thumb {
  width: 64px; height: 64px;
  object-fit: contain;
  border-radius: 2px;
  border: 2px solid rgba(255,255,255,.2);
  cursor: pointer;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  padding: 4px;
  transition: border-color .15s, transform .15s;
}
.lightbox-thumb:hover { border-color: rgba(255,255,255,.6); }
.lightbox-thumb.active {
  border-color: #fff;
  transform: scale(1.08);
}

/* ---- Sticky order bar ---------------------------------------------- */
.order-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark-2);
  color: var(--text);
  z-index: 100;
  box-shadow: 0 -3px 16px rgba(0,0,0,.5);
  border-top: 1px solid var(--border);
}
.order-bar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  cursor: pointer;
  user-select: none;
}
.order-bar-count { font-size: 0.82rem; color: var(--muted); }
.order-bar-total { font-size: 1.1rem; font-weight: 800; color: var(--text); }
.order-bar-review {
  background: var(--red);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 2px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .05em;
  font-family: inherit;
}

.order-bar-expanded {
  display: none;
  background: var(--dark);
  padding: 14px 20px;
  max-height: 60vh;
  overflow-y: auto;
}
.order-bar-expanded.open { display: block; }

.order-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
  gap: 10px;
}
.order-line-name { flex: 1; color: var(--text-2); line-height: 1.3; }
.order-line-price { font-weight: 700; white-space: nowrap; color: var(--text); }
.order-line-remove {
  background: none;
  border: none;
  color: #cc6666;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 2px;
  line-height: 1;
}
.order-line-remove:hover { background: rgba(204,26,26,.2); }

.order-bar-totals {
  padding-top: 10px;
  font-size: 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.order-bar-original-total {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.8rem;
}
.order-bar-discounted-total {
  color: var(--gold);
  font-size: 1.1rem;
  font-weight: 800;
}

/* ---- Order form ----------------------------------------------------- */
.form-section {
  margin-top: 52px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 32px 28px;
}
.form-section h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--text);
  letter-spacing: .04em;
  margin-bottom: 26px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.form-row label {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: .09em;
}
.form-row input {
  padding: 11px 14px;
  border: 1px solid var(--border-2);
  border-radius: 2px;
  font-size: 0.95rem;
  background: var(--dark);
  color: var(--text);
  transition: border-color .15s;
  width: 100%;
  font-family: inherit;
}
.form-row input:focus {
  outline: none;
  border-color: var(--gold);
}
.form-row input.error { border-color: var(--red); }
.form-error {
  font-size: 0.72rem;
  color: var(--red);
  font-weight: 600;
  min-height: 16px;
}

.confirm-check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.confirm-check-row input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px; height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}
.confirm-check-row label {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.confirm-check-row a { color: var(--gold); }

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.submit-btn {
  width: 100%;
  padding: 15px 0;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 2px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background .15s, opacity .15s;
  font-family: inherit;
}
.submit-btn:hover { background: #a50d26; }
.submit-btn:disabled { opacity: .6; cursor: not-allowed; }

.form-global-error {
  background: rgba(200,16,46,.12);
  border: 1px solid var(--red);
  color: var(--red);
  padding: 12px 14px;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 18px;
  display: none;
}
.form-global-error.visible { display: block; }

.empty-order-msg {
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 16px;
  display: none;
}

/* ---- Utility -------------------------------------------------------- */
.hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .item-card { animation: none !important; transition: none !important; }
}

/* ---- Sub-page header (mirrors homepage nav) -------------------------- */
.page-header {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.back-home {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.back-home img { display: block; }
.page-header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.page-header-dates {
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .05em;
  white-space: nowrap;
}

/* ---- Section nav ---------------------------------------------------- */
.section-nav {
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  position: sticky;
  top: 0;
  z-index: 90;
}
.section-nav::-webkit-scrollbar { display: none; }
.snav-link {
  flex-shrink: 0;
  padding: 13px 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.snav-link:hover { color: var(--text); }
.snav-link.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ---- Prepay page ---------------------------------------------------- */
.prepay-hero {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  text-align: center;
  padding: 48px 20px 40px;
  margin-top: 32px;
}
.prepay-hero h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 10px;
  color: var(--gold);
}
.prepay-hero p { font-size: 1rem; color: var(--text-2); max-width: 480px; margin: 0 auto; }
.prepay-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}
.prepay-plan-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 24px 20px;
  text-align: center;
}
.prepay-plan-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--gold);
  margin-bottom: 10px;
}
.prepay-plan-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.prepay-plan-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.4;
}
.prepay-contact-note {
  max-width: 600px;
  margin: 0 auto 60px;
  padding: 24px 20px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  border-radius: 2px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
}
.prepay-contact-note a { color: var(--gold); font-weight: 600; }
.prepay-contact-note strong { color: var(--text); }
