/* ============================================================
   jolly roger leather — visual upgrade v3
   dark · precise · high-end tactical
   ============================================================ */

/* ── [V1] color & atmosphere ─────────────────────────────── */
:root {
  --bg: #0c0c0c;
  --bg-card: #111111;
  --bg-elevated: #161616;
  --copper: #b87333;
  --ember: #c2410c;
  --brass: #a08050;
  --text: #e8e0d4;
  --text-muted: #8a8078;
  --text-dim: #5a5550;
  --border: #1e1e1e;
  --border-hover: rgba(184,115,51,0.35);
  --transition: 200ms ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-transform: lowercase;
  text-align: justify;
  text-align: justify;
  -webkit-font-smoothing: antialiased;
}

/* ── [V2] noise/grain overlay ────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--copper); text-decoration: none; transition: color var(--transition); }
a:hover { color: #d49550; }

/* ── [V3] typography ─────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* ── [V4] header ─────────────────────────────────────────── */
header {
  background: rgba(12,12,12,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 2rem;
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
}
.logo { font-size: 1.35rem; color: var(--copper); font-weight: 800; letter-spacing: 1.5px; }
nav ul { display: flex; list-style: none; gap: 0.15em; }
nav a { color: #c9a84c; font-size: 0.9rem; font-weight: 500; }
nav a:hover { color: #c9a84c; }
nav a.nav-active { font-weight: 800; text-decoration: underline; color: #c9a84c; }
.footer-links a.nav-active { font-weight: 800; text-decoration: underline; color: #c9a84c; }


/* ── [V5] hero ───────────────────────────────────────────── */
.hero {
  background: var(--bg);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(184,115,51,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
  font-weight: 900;
  position: relative;
}
.hero p { text-align: justify !important;
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}
.crypto-badge {
  display: inline-block;
  background: var(--bg-elevated);
  border: 1px solid rgba(184,115,51,0.25);
  color: var(--copper);
  padding: 0.5rem 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.85rem;
  border-radius: 3px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

/* ── [V6] products section ───────────────────────────────── */
.products { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem; }
.products h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 2.5rem;
  text-align: center;
  letter-spacing: -0.02em;
}

/* ── [V7] product cards ──────────────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
}
.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 6px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(184,115,51,0), rgba(184,115,51,0.15), rgba(194,65,12,0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--transition);
  pointer-events: none;
}
.product-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.product-card:hover::after { opacity: 1; }
.product-image {
  width: 100%; height: 240px;
  object-fit: cover;
  background: var(--bg-elevated);
  transition: transform 300ms ease, filter 300ms ease;
}
.product-card:hover .product-image {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.product-info { padding: 1.25rem; }
.product-title {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
  font-weight: 600;
}
.product-price {
  font-size: 1.2rem;
  color: var(--copper);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ── [V8] buttons ────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: transparent;
  color: var(--copper);
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(184,115,51,0.3);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  text-transform: lowercase;
  text-align: justify;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--copper);
  transition: width var(--transition);
}
.btn:hover {
  background: rgba(184,115,51,0.08);
  border-color: var(--copper);
  color: #d49550;
}
.btn:hover::before { width: 100%; }
.btn-outline { background: transparent; border: 1px solid rgba(184,115,51,0.3); color: var(--copper); }
.btn-outline:hover { background: rgba(184,115,51,0.1); border-color: var(--copper); color: #d49550; }
.btn-gold {
  background: var(--copper);
  color: #0c0c0c;
  border-color: var(--copper);
}
.btn-gold:hover {
  background: #d49550;
  border-color: #d49550;
  color: #0c0c0c;
}

/* ── [V9] about ──────────────────────────────────────────── */
.about {
  background: var(--bg-card);
  padding: 4rem 2rem;
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 1.5rem; }
.about p { max-width: 700px; margin: 0 auto; color: var(--text-muted); font-size: 1rem; line-height: 1.8; text-align: justify; }

/* ── [V10] contact ───────────────────────────────────────── */
.contact { max-width: 1200px; margin: 0 auto; padding: 3.5rem 2rem; }
.contact h2 { font-size: 1.8rem; color: var(--text); margin-bottom: 2rem; text-align: center; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.contact-item {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.contact-item h3 { color: var(--copper); margin-bottom: 0.5rem; font-size: 0.95rem; font-weight: 600; }
.contact-item p { color: var(--text-muted); font-size: 0.9rem; }

/* ── [V11] footer ────────────────────────────────────────── */
footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem;
  text-align: center;
}
footer p { color: var(--text-dim); font-size: 0.85rem; }
footer .payment-methods { margin-top: 1rem; font-size: 0.8rem; color: var(--text-dim); }

/* ── [V12] product detail ────────────────────────────────── */
.product-detail { max-width: 1000px; margin: 0 auto; padding: 3rem 2rem; }
.product-detail .back-link { display: inline-block; margin-bottom: 2rem; font-size: 0.85rem; color: var(--text-muted); }
.product-detail .back-link:hover { color: var(--copper); }
.product-detail .detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}
.product-detail .detail-image {
  width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}
.product-detail .detail-info h1 {
  font-size: 1.6rem;
  color: var(--text);
  margin-bottom: 1rem;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.product-detail .detail-price {
  font-size: 1.8rem;
  color: var(--copper);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}
.product-detail .detail-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.8; margin-bottom: 2rem; }
.product-detail .detail-desc p { margin-bottom: 1rem; }
.product-detail .detail-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  margin-bottom: 2rem;
}
.product-detail .detail-meta h3 { color: var(--copper); font-size: 0.9rem; margin-bottom: 0.75rem; font-weight: 600; }
.product-detail .detail-meta p, .product-detail .detail-meta li { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; }
.product-detail .detail-meta ul { list-style: none; padding: 0; }
.product-detail .detail-meta li { padding: 0.25rem 0; }
.product-detail .detail-meta li::before { content: '— '; color: var(--copper); }
.product-detail .crypto-discount {
  background: var(--bg-elevated);
  border: 1px solid rgba(184,115,51,0.2);
  border-radius: 6px;
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--copper);
  font-size: 0.9rem;
}
.product-detail .detail-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── [V13] nav links ─────────────────────────────────────── */
.site-nav ul { display: flex; gap: 2px; align-items: center; }
.nav-link {
  display: inline-block;
  padding: 8px 14px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(184,115,51,0.08); }
.nav-link--store {
  color: var(--copper);
  border: 1px solid rgba(184,115,51,0.25);
  margin-left: 6px;
}
.nav-link--store:hover { background: rgba(184,115,51,0.12); border-color: var(--copper); color: #d49550; }

/* ── [V14] content pages ─────────────────────────────────── */
.page-hero {
  text-align: center;
  padding: 50px 20px 35px;
  background: var(--bg);
}
.page-hero h1 { font-size: 2.4rem; color: var(--text); margin-bottom: 12px; font-weight: 900; letter-spacing: -0.03em; }
.page-hero .subtitle { font-size: 1rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  color: var(--text);
  line-height: 1.8;
}
.page-content h2 {
  color: var(--text);
  font-size: 1.5rem;
  margin: 40px 0 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  font-weight: 700;
}
.page-content h3 { color: var(--text-muted); font-size: 1.1rem; margin: 24px 0 12px; font-weight: 600; }
.page-content p { margin-bottom: 16px; font-size: 1rem; text-align: justify; }
.page-content a { color: var(--copper); }
.page-cta { text-align: center; padding: 20px; margin-top: 20px; }
.page-cta .btn { margin: 0 8px 8px; }

/* ── [V15] feature product block ─────────────────────────── */
.product-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; margin: 30px 0; }
.feature-image { width: 100%; border-radius: 6px; border: 1px solid var(--border); }
.feature-details h2 { color: var(--text); font-size: 1.3rem; margin-bottom: 8px; font-weight: 700; }
.feature-details .price { font-size: 1.5rem; color: var(--copper); font-weight: 800; margin-bottom: 12px; }
.feature-details p { color: var(--text-muted); margin-bottom: 16px; text-align: justify; }
.feature-links { margin-top: 16px; }

/* ── [V16] feature list ──────────────────────────────────── */
.feature-list { list-style: none; padding: 0; }
.feature-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); }
.feature-list li::before { content: '◆'; color: var(--copper); position: absolute; left: 0; }
.feature-list li strong { color: var(--copper); }

/* ── [V17] install steps ─────────────────────────────────── */
.install-steps { counter-reset: step; list-style: none; padding: 0; }
.install-steps li { counter-increment: step; padding: 12px 0 12px 48px; position: relative; border-bottom: 1px solid var(--border); }
.install-steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 12px;
  width: 32px; height: 32px;
  background: rgba(184,115,51,0.12);
  color: var(--copper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.install-steps li strong { color: var(--copper); }

/* ── [V18] video embed ───────────────────────────────────── */
.video-embed {
  position: relative; padding-bottom: 56.25%; height: 0;
  margin: 20px 0; border-radius: 6px; overflow: hidden;
  border: 1px solid var(--border);
}
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ── [V19] care list ─────────────────────────────────────── */
.care-list { list-style: none; padding: 0; }
.care-list li { padding: 10px 0 10px 28px; position: relative; border-bottom: 1px solid var(--border); }
.care-list li::before { content: '✦'; color: var(--copper); position: absolute; left: 0; }
.care-list li strong { color: var(--copper); }

/* ── [V20] ensemble items ────────────────────────────────── */
.ensemble-item {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  align-items: start; margin: 30px 0; padding: 20px;
  background: var(--bg-card); border-radius: 6px; border: 1px solid var(--border);
}
.ensemble-image { width: 100%; border-radius: 4px; }
.ensemble-details h3 { color: var(--text); font-size: 1.05rem; margin-bottom: 6px; font-weight: 600; }
.ensemble-details .ensemble-price { color: var(--copper); font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.ensemble-details p { color: var(--text-muted); font-size: 0.9rem; text-align: justify; }

/* ── [V21] deal box ──────────────────────────────────────── */
.deal-box {
  background: var(--bg-card);
  border: 1px solid rgba(184,115,51,0.25);
  border-radius: 8px;
  padding: 30px;
  margin: 30px 0;
  text-align: center;
}
.deal-box p { color: var(--text); font-size: 1.05rem; margin-bottom: 16px; text-align: justify; }
.deal-price { font-size: 1.35rem; color: var(--copper); font-weight: 800; margin-bottom: 20px; }
.deal-saved { color: var(--text-muted); text-decoration: line-through; margin-right: 8px; }
.deal-links .btn { margin: 8px; }

/* ── [V22] nav active state ──────────────────────────────── */
.nav-links a.active { color: var(--copper); }

/* ── [V23] cart & checkout ───────────────────────────────── */
.cart-section, .checkout-section, .confirmed-section {
  max-width: 900px; margin: 2rem auto; padding: 0 1.5rem;
}
.cart-section h1, .checkout-section h1, .confirmed-section h1 {
  color: var(--text); margin-bottom: 1rem; font-weight: 800;
}
.back-link { color: var(--text-muted); font-size: 0.85rem; }
.back-link:hover { color: var(--copper); }

.cart-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border);
}
.cart-item-img { width: 60px; height: 60px; object-fit: cover; border-radius: 4px; }
.cart-item-info { flex: 1; }
.cart-item-name { display: block; color: var(--text); font-weight: 600; font-size: 0.95rem; }
.cart-item-variant { display: block; color: var(--copper); font-size: 0.8rem; }
.cart-item-qty { display: flex; align-items: center; gap: 0.4rem; }
.qty-btn {
  background: var(--bg-elevated); color: var(--text);
  border: 1px solid var(--border);
  width: 28px; height: 28px; border-radius: 4px; cursor: pointer;
  font-size: 1rem; line-height: 1;
  transition: all var(--transition);
}
.qty-btn:hover { background: var(--copper); color: #0c0c0c; border-color: var(--copper); }
.qty-val { min-width: 24px; text-align: center; color: var(--text); }
.cart-item-price { color: var(--copper); font-weight: 700; min-width: 70px; text-align: right; }
.cart-remove { background: none; border: none; color: var(--text-dim); font-size: 1.2rem; cursor: pointer; padding: 0.3rem; transition: color var(--transition); }
.cart-remove:hover { color: var(--ember); }
.cart-empty { color: var(--text-muted); padding: 2rem 0; text-align: center; }
.cart-empty a { color: var(--copper); }

.cart-summary {
  margin-top: 1.5rem; padding: 1.5rem;
  background: var(--bg-card); border-radius: 6px;
  border: 1px solid var(--border);
}
.cart-line { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--text); }
.cart-line.cart-total-line {
  font-size: 1.15rem; font-weight: 700; color: var(--copper);
  border-top: 1px solid var(--border); margin-top: 0.5rem; padding-top: 0.8rem;
}
.cart-line.cart-note { font-size: 0.85rem; color: var(--text-muted); justify-content: flex-start; padding: 0.6rem 0 0; }

.btn { display: inline-block; padding: 0.7rem 1.5rem; border: 1px solid rgba(184,115,51,0.3); border-radius: 4px; cursor: pointer; font-size: 0.9rem; font-weight: 600; text-decoration: none; transition: all var(--transition); color: var(--copper); background: transparent; }
.btn-gold { background: var(--copper); color: #0c0c0c; border-color: var(--copper); }
.btn-gold:hover { background: #d49550; transform: translateY(-1px); }
.btn-full { width: 100%; text-align: center; margin-top: 1rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* variant selector */
.variant-selector { margin: 1rem 0; }
.variant-selector label { display: block; color: var(--text-muted); margin-bottom: 0.3rem; font-size: 0.85rem; }
.variant-selector select {
  width: 100%; padding: 0.6rem; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; font-size: 0.95rem;
}
.selected-variant { color: var(--text-muted); font-size: 0.85rem; }
.detail-price { margin: 1rem 0; }
.selected-price { font-size: 1.5rem; font-weight: 800; color: var(--copper); }
.crypto-discount { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1rem; padding: 0.6rem; background: var(--bg-card); border-radius: 4px; border: 1px solid var(--border); }
.qty-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.qty-row label { color: var(--text-muted); }
.qty-row input {
  width: 60px; padding: 0.4rem; background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; text-align: center;
}

/* cart badge */
.cart-badge {
  display: inline-block; min-width: 18px; height: 18px;
  background: var(--ember); color: #fff; font-size: 0.7rem;
  font-weight: 700; border-radius: 50%; text-align: center;
  line-height: 18px; margin-left: 4px; padding: 0 4px;
}
.cart-link { color: var(--text) !important; }

/* toast */
.cart-toast {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--bg-elevated); color: var(--copper);
  border: 1px solid rgba(184,115,51,0.3);
  padding: 0.8rem 1.5rem;
  border-radius: 6px; font-weight: 600; z-index: 1000;
  opacity: 0; transform: translateY(10px); transition: all 300ms ease;
}
.cart-toast.show { opacity: 1; transform: translateY(0); }

/* checkout form */
.checkout-grid { display: grid; grid-template-columns: 1fr 320px; gap: 2rem; }
.checkout-left fieldset { border: 1px solid var(--border); border-radius: 6px; padding: 1rem; margin-bottom: 1rem; }
.checkout-left legend { color: var(--copper); font-weight: 600; padding: 0 0.5rem; }
.checkout-left label { display: block; color: var(--text-muted); margin-bottom: 0.8rem; font-size: 0.85rem; }
.checkout-left input, .checkout-left select {
  width: 100%; padding: 0.6rem; margin-top: 0.3rem;
  background: var(--bg-card); color: var(--text);
  border: 1px solid var(--border); border-radius: 4px; font-size: 0.95rem;
}
.checkout-left .form-row { display: flex; gap: 1rem; }
.checkout-left .form-row label { flex: 1; }
.payment-note { color: var(--text-muted); font-size: 0.85rem; margin: 0.5rem 0; }
.secure-note { color: var(--text-dim); font-size: 0.8rem; text-align: center; margin-top: 1rem; }

.checkout-right { background: var(--bg-card); border-radius: 6px; padding: 1.5rem; border: 1px solid var(--border); align-self: start; }
.checkout-right h2 { color: var(--text); font-size: 1.05rem; margin-bottom: 1rem; font-weight: 700; }
.checkout-item { display: flex; justify-content: space-between; padding: 0.4rem 0; color: var(--text-muted); font-size: 0.85rem; }
.checkout-item-name { flex: 1; }
.checkout-item-price { color: var(--copper); white-space: nowrap; margin-left: 1rem; }

/* confirmed page */
.confirmed-section { text-align: center; }
.confirmed-icon { font-size: 3rem; color: var(--copper); margin-bottom: 1rem; }
.confirmed-section p { color: var(--text-muted); margin: 0.5rem 0; }
.confirmed-section .btn { margin-top: 1.5rem; }
.confirmed-note { font-size: 0.85rem; color: var(--text-dim); }

/* ── [V24] product gallery ───────────────────────────────── */
.product-gallery { position: relative; }
.gallery-main { position: relative; margin-bottom: 12px; }
.gallery-main-img { width: 100%; border-radius: 6px; display: block; border: 1px solid var(--border); object-fit: contain; background: var(--bg-elevated); max-height: 500px; }
.gallery-counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(12,12,12,0.8); color: var(--text-muted);
  padding: 4px 12px; border-radius: 12px; font-size: 0.8rem;
}
.gallery-prev, .gallery-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(12,12,12,0.7); color: var(--text);
  border: none; padding: 12px 16px; border-radius: 4px; cursor: pointer;
  font-size: 1.2em; z-index: 2;
  transition: background var(--transition);
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-prev:hover, .gallery-next:hover { background: rgba(184,115,51,0.6); }
.gallery-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.gallery-thumbs img {
  width: 72px; height: 72px; object-fit: cover; border-radius: 4px;
  cursor: pointer; border: 2px solid transparent; opacity: 0.6;
  transition: all var(--transition); flex-shrink: 0;
}
.gallery-thumbs img:hover, .gallery-thumbs img.active { border-color: var(--copper); opacity: 1; }
.product-video-wrap { margin-top: 16px; }
.product-video-label { color: var(--copper); font-size: 0.85rem; margin-bottom: 8px; }
.product-video { width: 100%; max-height: 280px; border-radius: 6px; background: #000; object-fit: contain; }
.video-extra { color: var(--text-muted); font-size: 0.85rem; margin: 8px 0 0; }
.video-extra a { color: var(--copper); }
.gallery-all-images { margin-top: 16px; }
.gallery-all-toggle {
  background: none; border: 1px solid rgba(184,115,51,0.3); color: var(--copper);
  padding: 8px 20px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; width: 100%;
  transition: all var(--transition);
}
.gallery-all-toggle:hover { background: rgba(184,115,51,0.08); border-color: var(--copper); }
.gallery-all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; margin-top: 12px; }
.gallery-all-grid.hidden { display: none; }
.gallery-all-img { width: 100%; border-radius: 4px; cursor: pointer; transition: opacity var(--transition); }
.gallery-all-img:hover { opacity: 0.8; }

/* ── [V25] phone number uppercase ────────────────────────── */
footer .phone, .contact-info .phone, .phone { text-transform: uppercase !important; }
.contact .phone, .contact-item .phone, .contact-item p .phone { text-transform: uppercase !important; -webkit-text-transform: uppercase; }

/* ── [V26] customization box ─────────────────────────────── */
.customization-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  margin-bottom: 1rem;
}
.customization-title {
  font-size: 0.8rem;
  color: var(--copper);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  padding: 0 0.25rem;
  font-weight: 600;
}
.customization-table { width: 100%; border-collapse: collapse; }
.customization-table td { border: none; padding: 6px 8px; vertical-align: middle; }
.custom-label-cell { text-align: right; padding-right: 12px !important; }
.custom-label-cell label { font-size: 0.85rem; color: var(--text-muted); }
.custom-select-cell { padding-left: 0 !important; }
.custom-select {
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9em;
  cursor: pointer;
  transition: border-color var(--transition);
}
.custom-select:focus { outline: none; border-color: var(--copper); }
.cart-item-variant { display: block; font-size: 0.8em; color: var(--copper); margin-top: 2px; }

/* ── [V27] add to cart button ────────────────────────────── */
.add-to-cart-btn {
  display: inline-block;
  background: var(--copper);
  color: #0c0c0c;
  padding: 0.85rem 2rem;
  font-size: 0.95rem;
  font-weight: 700;
  border: 1px solid var(--copper);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.02em;
}
.add-to-cart-btn:hover {
  background: #d49550;
  border-color: #d49550;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(184,115,51,0.25);
}
.add-to-cart-btn:active { transform: translateY(0); }

/* ── [V28] loading state ─────────────────────────────────── */
.products-loading { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-dim); font-size: 1rem; }

/* ── [V29] footer inner ──────────────────────────────────── */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px 20px;
}
.footer-brand { text-align: center; display: flex; flex-direction: column; align-items: center; }
.footer-contact { text-align: center; }
.footer-brand .footer-logo { font-size: 1.05rem; color: var(--text); margin: 0 0 6px 0; font-weight: 700; }
.footer-tagline { color: var(--text-dim); font-size: 0.85rem; margin: 0; }
.footer-links { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 0.15em; width: 100%; justify-content: center; white-space: nowrap; }
.footer-links a { color: #c9a84c; font-size: 0.85rem; transition: color var(--transition); }
.footer-links a:hover { color: #c9a84c; }
.footer-contact { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-muted); font-size: 0.8rem; }
.footer-contact .phone { color: var(--copper); font-weight: 600; }
.footer-pay { color: var(--text-dim); font-size: 0.7rem; margin-top: 4px; white-space: nowrap; }
.footer-bottom { text-align: center; padding: 16px 24px; border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.75rem; }

/* ============================================================
   MOBILE — [V30]
   ============================================================ */
@media (max-width: 768px) {
  header { padding: 0.6rem 0.75rem; }
  .logo { font-size: 1.05rem; letter-spacing: 1px; }
  nav a { font-size: 0.78rem; }
  html, body { overflow-x: hidden; max-width: 100vw; }

  .header-inner { flex-direction: column; gap: 0.75rem; }
  nav ul { gap: 0.15em; flex-wrap: nowrap; justify-content: center; white-space: nowrap; }
  .hero h1 { font-size: 2rem; }
  .hero p { text-align: justify !important; font-size: 1rem; }
  .hero::before { width: 300px; height: 200px; }
  .product-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .product-image { height: 220px; }
  .product-detail { padding: 2rem 1rem; }
  .product-detail .detail-info h1 { font-size: 1.3rem; }
  .product-detail .detail-price { font-size: 1.5rem; }
  .product-detail .detail-actions { flex-direction: column; }
  .product-detail .detail-actions .btn, .product-detail .detail-actions .add-to-cart-btn { width: 100%; text-align: center; }

  .product-gallery { overflow: hidden; }
  .gallery-main { overflow: hidden; }
  .gallery-main-img { max-width: 100%; height: auto; }
  .gallery-prev, .gallery-next { padding: 8px 12px; font-size: 1em; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .gallery-thumbs img { width: 56px; height: 56px; }
  .gallery-counter { font-size: 0.75rem; padding: 3px 8px; }

  .contact-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-item { padding: 1rem; }
  .contact { padding: 2rem 1rem; }
  .contact h2 { font-size: 1.5rem; }
  .about p { font-size: 0.95rem; }
  .product-card { padding: 1rem; }
  .product-card .product-title { font-size: 0.95rem; }
  .btn { font-size: 0.9rem; padding: 0.7rem 1.25rem; }
  .nav { padding: 0.75rem 1rem; }
  .nav-links { gap: 0.75rem; flex-wrap: wrap; }
  .nav-links a { font-size: 0.85rem; }
  .feature-image { max-width: 100%; height: auto; }
  .product-feature { flex-direction: column; text-align: center; }
  .product-video { width: 100%; max-height: 240px; object-fit: contain; }
  .cart-item-img { width: 48px; height: 48px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 30px 15px 25px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-content { padding: 1.5rem 1rem; }

  /* nav */
  .site-nav ul { flex-direction: column; gap: 0; }
  .nav-link { display: block; width: 100%; padding: 12px 16px; text-align: center; font-size: 0.95rem; border-radius: 4px; }
  .nav-link--store { margin-left: 0; margin-top: 6px; }

  /* footer */
  .footer-inner { grid-template-columns: 1fr; gap: 16px; text-align: center; padding: 24px 12px 16px; }
  .footer-links { flex-wrap: nowrap !important; justify-content: center; font-size: 0.75rem; gap: 4px 8px; width: 100%; white-space: nowrap; }

  /* customization table */
  .custom-label-cell { white-space: normal !important; width: 40% !important; }
  .custom-select { width: 100% !important; max-width: 100%; font-size: 0.85em !important; padding: 6px 8px !important; }
  .customization-table { width: 100% !important; table-layout: fixed !important; max-width: 100%; }
  .customization-table td { padding: 4px 6px !important; overflow-wrap: break-word; word-break: break-word; }

  /* overflow protection */
  .product-detail img, .product-detail video, .product-detail iframe { max-width: 100%; height: auto; }
  .product-detail .detail-info { min-width: 0; max-width: 100%; }
  .product-detail .detail-desc { overflow-wrap: break-word; word-break: break-word; max-width: 100%; }
  .product-detail .detail-desc p { overflow-wrap: break-word; word-break: break-word; }
  .detail-meta { max-width: 100%; overflow-wrap: break-word; }
  .add-to-cart-btn, .btn { max-width: 100%; }
  .cart-item { flex-wrap: wrap; }
  .cart-item-price { min-width: 0; }
  .checkout-grid { max-width: 100%; }
  .gallery-thumbs { max-width: 100%; }
  .gallery-thumbs img { max-width: 56px; }
  .header-inner, .site-nav { max-width: 100%; }
  nav ul { gap: 0.15em !important; flex-wrap: nowrap !important; white-space: nowrap !important; }

  .add-to-cart-btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }
  .gallery-main-img { max-height: 350px; }
}

@media (max-width: 480px) {
  header { padding: 0.5rem 0.5rem; }
  .logo { font-size: 0.95rem; }
  nav a { font-size: 0.72rem; }
  nav ul { gap: 0.1em; }
  .hero h1 { font-size: 1.6rem; }
  .gallery-thumbs img { width: 48px; height: 48px; }
  .product-detail .detail-info h1 { font-size: 1.15rem; }
  .product-detail .detail-price { font-size: 1.3rem; }
  .nav-links { font-size: 0.8rem; }
  .custom-label-cell { width: 45% !important; font-size: 0.8rem !important; }
  .custom-select { font-size: 0.8em !important; }
  .gallery-thumbs img { max-width: 48px; }
}

/* ── [V31] footer phone uppercase ────────────────────────── */
.footer-contact .phone { text-transform: uppercase !important; }

/* ── [V32] link underline animation ──────────────────────── */
a {
  position: relative;
}
a:not(.btn):not(.nav-link):not(.add-to-cart-btn)::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--copper);
  transition: width var(--transition);
}
a:not(.btn):not(.nav-link):not(.add-to-cart-btn):hover::after {
  width: 100%;
}


/* product card descriptions on listing pages */
.product-desc { text-align: justify; }

/* ── [V24] global alignment ──────────────────────────────── */
/* headings: center (not justified) */
h1, h2, h3, h4, h5, h6 { text-align: center; }
/* footer: non-menu text stays centered */
footer { text-align: center; }
/* footer menu: justified */
footer .footer-links, footer .footer-links a { text-align: justify; }
/* review text (inside footer): justified (inherits from body) */
/* buttons: keep centered */
.btn, .btn-full, .add-to-cart-btn { text-align: center; }

.product-desc, .product-detail p, .review-text, p { text-align: justify; }
