/* Shop, v2 skin. Loaded after the shop's own <style> block and v2.css, so the
   shop keeps all of its functional CSS (cart drawer, carousel, filters, custom
   builder states) and this file only changes how it looks. */

body.shop-v2 {
  /* One dark theme: the shop reuses the paper token names from v2.css,
     pointed at the dark palette, so the rules below read the same. */
  --paper: var(--ink);
  --text-on-paper: var(--text);
  --muted-on-paper: var(--muted);
  --paper-rule: var(--rule);
  --bg-deep: #0f0e0c;
  --bg-card: #191815;
  --bg-elevated: #24221e;
  --text-primary: #f1ece2;
  --text-secondary: #aaa396;
  --accent-cyan: var(--signal-text);
  --accent-magenta: var(--signal-text);
  --accent-amber: #f0a43a;
  --accent-green: #8fd18a;
  --glow-cyan: transparent;
  --glow-magenta: transparent;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font);
}
.shop-v2 .bg-glow { display: none; }
.shop-v2 section { padding: 0; }

/* Cart count badge inside the nav cart button */
.shop-v2 .cart-count {
  background: var(--ink); color: #fff; border-radius: 2px;
  font-family: var(--mono); font-size: 0.75rem; min-width: 1.4em; height: 1.4em; line-height: 1.4em;
  display: inline-block; text-align: center; padding: 0 0.25em; position: static;
}
.shop-v2 .cart-count.empty { display: none; }

/* Page title */
.shop-v2 .hero { min-height: 0; display: block; overflow: visible; padding: clamp(32px, 5vw, 64px) var(--gutter) 2rem; max-width: var(--wrap); margin: 0 auto; text-align: left; }
.shop-v2 .hero::after { display: none; }
.shop-v2 .hero h1 { font-size: clamp(2.4rem, 5vw, 4rem); color: var(--text-on-paper); max-width: none; }
.shop-v2 .hero h1 span { background: none; -webkit-text-fill-color: currentColor; color: inherit; }
.shop-v2 .hero p { color: var(--muted-on-paper); font-size: 1.15rem; margin-top: 1rem; max-width: 36em; }

/* Away notice: a plain ruled note, no emoji */
.shop-v2 .shop-notice { border-radius: 2px; background: var(--ink-2); border: 1px solid #8a5a1f; border-left-width: 1px; color: var(--text-on-paper); box-shadow: none; }
.shop-v2 .shop-notice-icon { display: none; }
.shop-v2 .shop-notice-hero { max-width: calc(var(--wrap) - 2 * var(--gutter)); margin: 0 var(--gutter) 2rem; }
@media (min-width: 1240px) { .shop-v2 .shop-notice-hero { margin: 0 auto 2rem; } }

/* Filters: text tabs on a rule */
.shop-v2 .products-section { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 96px; }
.shop-v2 .category-filters { justify-content: flex-start; gap: 0; border-bottom: 1.5px solid var(--text-on-paper); margin-bottom: 3.5rem; flex-wrap: wrap; }
.shop-v2 .filter-btn {
  background: none; border: 0; border-radius: 0; color: var(--muted-on-paper);
  font: 600 0.98rem var(--font); padding: 0.9rem 1.1rem 0.8rem 0; margin-right: 1rem;
  border-bottom: 3px solid transparent; margin-bottom: -1.5px;
}
.shop-v2 .filter-btn:hover { color: var(--text-on-paper); background: none; border-color: transparent; }
.shop-v2 .filter-btn.active { background: none; color: var(--text-on-paper); border-bottom-color: var(--signal); box-shadow: none; }

/* Category headings */
.shop-v2 .category-title {
  background: none; -webkit-text-fill-color: currentColor; color: var(--text-on-paper);
  font-stretch: 78%; font-weight: 750; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; letter-spacing: -0.01em;
}
.shop-v2 .category-desc { color: var(--muted-on-paper); }
.shop-v2 .category-gallery-link { color: var(--text-on-paper); text-decoration: underline; text-underline-offset: 0.25em; font-weight: 600; }

/* Product cards: flat, ruled, square */
.shop-v2 .product-card { background: var(--bg-card); border: 1px solid var(--paper-rule); border-radius: 2px; box-shadow: none; }
.shop-v2 .product-card:hover { transform: none; box-shadow: none; border-color: var(--text-on-paper); }
.shop-v2 .product-image { background: #000; border-radius: 0; }
.shop-v2 .product-image::before { display: none; }
.shop-v2 .carousel-slide:has(img.photo) { padding: 0; }
.shop-v2 .carousel-slide img.photo { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: cover; }
.shop-v2 .carousel-dot { border-radius: 0; width: 14px; height: 3px; background: rgba(255,255,255,0.4); }
.shop-v2 .carousel-dot.active { background: var(--ink-3); transform: none; }

.shop-v2 .product-badge {
  background: none; border: 1px solid currentColor; border-radius: 2px; color: var(--muted-on-paper);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.04em; padding: 0.3rem 0.45rem;
}
.shop-v2 .product-name { font-stretch: 80%; font-weight: 750; font-size: 1.8rem; color: var(--text-on-paper); }
.shop-v2 .product-desc { color: var(--muted-on-paper); }
.shop-v2 .product-specs { font-family: var(--mono); color: var(--text-on-paper); font-size: 0.8rem; border-top: 1px solid var(--paper-rule); border-bottom: 1px solid var(--paper-rule); padding: 0.55rem 0; }
.shop-v2 .product-price { font-family: var(--mono); font-weight: 500; color: var(--text-on-paper); }
.shop-v2 .product-price span { color: var(--muted-on-paper); }
.shop-v2 .badge { display: none; }

/* Add-ons and options */
.shop-v2 .addon-option { background: none; border: 1px solid var(--paper-rule); border-radius: 2px; }
.shop-v2 .addon-option:hover { border-color: var(--text-on-paper); background: none; }
.shop-v2 .addon-option.selected { border-color: var(--text-on-paper); background: var(--ink-3); }
.shop-v2 .addon-checkbox { border-radius: 2px; border-color: var(--muted-on-paper); }
.shop-v2 .addon-option.selected .addon-checkbox { background: var(--text-on-paper); border-color: var(--text-on-paper); }
.shop-v2 .addon-option.selected .addon-checkbox::after { color: var(--ink); border-color: var(--ink); }
.shop-v2 .addon-price { font-family: var(--mono); color: var(--text-on-paper); }
.shop-v2 .addon-option.coming-soon .addon-name::after,
.shop-v2 .led-choice.coming-soon .led-choice-name::after {
  font-family: var(--mono); border-radius: 2px; background: none; border: 1px dashed currentColor; color: var(--muted-on-paper);
}

.shop-v2 .quantity-controls { border-radius: 2px; background: none; border: 1px solid var(--paper-rule); }
.shop-v2 .qty-btn { color: var(--text-on-paper); }

/* Buttons */
.shop-v2 .add-to-cart,
.shop-v2 .checkout-btn,
.shop-v2 .pole-reminder-add {
  background: var(--signal); color: var(--signal-ink); border-radius: 2px; box-shadow: none;
  font: 600 1rem var(--font);
}
.shop-v2 .add-to-cart:hover,
.shop-v2 .checkout-btn:hover,
.shop-v2 .pole-reminder-add:hover { transform: none; box-shadow: none; background: var(--signal-hover); }
.shop-v2 .add-to-cart:disabled,
.shop-v2 .add-to-cart.coming-soon { background: var(--bg-elevated); color: var(--muted-on-paper); }
.shop-v2 .pole-reminder-skip { border-radius: 2px; }

/* Custom builder */
.shop-v2 .unit-toggle { border-radius: 2px; background: none; border: 1px solid var(--paper-rule); }
.shop-v2 .unit-btn { border-radius: 0; font-family: var(--font); }
.shop-v2 .unit-btn.selected { background: var(--text); color: var(--ink); box-shadow: none; }
.shop-v2 .custom-num { border-radius: 2px; font-family: var(--mono); background: var(--ink-3); }
.shop-v2 .custom-num:focus-within { box-shadow: 0 0 0 2px var(--signal); }
.shop-v2 input[type=range] { accent-color: var(--signal); }
.shop-v2 .led-choice { border-radius: 2px; font-family: var(--font); background: none; border: 1px solid var(--paper-rule); }
.shop-v2 .led-choice:hover { background: var(--ink-3); }
.shop-v2 .led-choice.selected { border-color: var(--text-on-paper); background: var(--ink-3); box-shadow: inset 0 0 0 1px var(--text-on-paper); }
.shop-v2 .led-photo { border-radius: 0; }

/* Cart drawer and modals keep their mechanics; only the surface changes */
.shop-v2 .cart-sidebar { background: var(--ink-2); color: var(--text-on-paper); border-left: 1px solid var(--paper-rule); }
.shop-v2 .cart-header h2 { font-stretch: 80%; font-weight: 750; }
.shop-v2 .cart-empty-icon { display: none; }
.shop-v2 .cart-item-image { border-radius: 0; background: #000; }
.shop-v2 .cart-addon-tag { border-radius: 2px; background: none; border: 1px solid var(--paper-rule); color: var(--text-on-paper); font-family: var(--mono); font-size: 0.7rem; }
.shop-v2 .cart-item-qty button, .shop-v2 .cart-addon-qty, .shop-v2 .cart-addon-option,
.shop-v2 .discount-input, .shop-v2 .discount-apply-btn { border-radius: 2px; font-family: var(--font); }
.shop-v2 .cart-total .amount { font-family: var(--mono); background: none; -webkit-text-fill-color: currentColor; }
.shop-v2 .pole-reminder-box { border-radius: 2px; background: var(--ink-2); color: var(--text-on-paper); box-shadow: none; border: 1px solid var(--text-on-paper); }
.shop-v2 .pole-reminder-icon { display: none; }
.shop-v2 .pole-reminder-box h3 { font-stretch: 80%; font-weight: 750; font-size: 1.8rem; }
.shop-v2 .toast { bottom: auto; top: 76px; border-radius: 2px; background: var(--ink-3); color: var(--text); border: 1px solid var(--rule); }
.shop-v2 .toast-icon { color: var(--ok); }

.shop-v2 .hero p { margin-left: 0; margin-right: 0; }
.shop-v2 .cart-total .amount { color: var(--text-on-paper); }

/* Equal-height cards with buttons on one line */
.shop-v2 .product-card { display: flex; flex-direction: column; }
.shop-v2 .product-info { flex: 1; display: flex; flex-direction: column; }
.shop-v2 .product-info .add-to-cart { margin-top: auto; }
.shop-v2 .product-info .quantity-selector { margin-top: auto; padding-top: 1rem; }
.shop-v2 .product-info .quantity-selector + .add-to-cart { margin-top: 1rem; }

/* Lead with the photographed, most popular pole */
.shop-v2 [data-product="pole-40"] { order: -1; }

/* Filters scroll sideways on phones instead of wrapping */
.shop-v2 .category-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.shop-v2 .category-filters::-webkit-scrollbar { display: none; }
.shop-v2 .filter-btn { white-space: nowrap; flex: none; }

.shop-v2 [data-custom-price] { display: inline-block; min-width: 3.5em; }
.shop-v2 .product-info > .product-badge { align-self: flex-start; }
.shop-v2 .shop-notice-cart, .shop-v2 .shop-notice-cart.visible { display: none; }

/* On-page checkout (shop/checkout.js) */
body.co-open { overflow: hidden; }
.checkout-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0, 0, 0, 0.75);
  display: flex; justify-content: center; align-items: flex-start;
  overflow-y: auto; padding: 2rem 16px;
  opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s;
}
.checkout-overlay.open { opacity: 1; visibility: visible; }
.co-panel {
  width: 100%; max-width: 980px;
  background: var(--ink-2); color: var(--text);
  border: 1px solid var(--rule); border-radius: 2px;
  font-family: var(--font);
}
.co-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 1.5rem; border-bottom: 1px solid var(--rule);
}
.co-head h2 { font-size: 1.4rem; font-weight: 750; font-stretch: 80%; margin: 0; }
.co-close {
  background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1;
  cursor: pointer; padding: 0.25rem 0.5rem;
}
.co-close:hover { color: var(--text); }
.co-body {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 0;
}
.shop-v2 .co-form, .co-form { padding: 1.5rem; order: 1; min-width: 0; }
.shop-v2 .co-summary, .co-summary {
  padding: 1.5rem; order: 2; background: var(--ink); border-left: 1px solid var(--rule);
  align-self: stretch;
}
.co-items { margin-bottom: 1rem; }
.co-line {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.35rem 0; font-size: 0.95rem;
}
.co-line span:last-child { font-family: var(--mono); white-space: nowrap; }
.co-items .co-line span:first-child { color: var(--text-soft); }
.co-sub { border-top: 1px solid var(--rule); color: var(--text-soft); }
.co-total { border-top: 1px solid var(--text); margin-top: 0.5rem; padding-top: 0.75rem; font-weight: 700; font-size: 1.1rem; }
.co-hint { color: var(--muted); font-size: 0.85rem; margin: 0.25rem 0 0.75rem; }
.co-hint:empty, .co-line[hidden] { display: none; }
.co-notice {
  margin-top: 1rem; padding: 0.75rem; font-size: 0.9rem;
  border: 1px solid #8a5a1f; border-radius: 2px;
}
.co-or {
  display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0;
  color: var(--muted); font-size: 0.85rem;
}
.co-or::before, .co-or::after { content: ''; flex: 1; border-top: 1px solid var(--rule); }
.co-label { display: block; font-size: 0.9rem; font-weight: 500; margin-bottom: 0.35rem; color: var(--text-soft); }
.co-input {
  width: 100%; box-sizing: border-box; padding: 0.7rem 0.75rem;
  background: var(--ink-3); color: var(--text); font: 1rem var(--font);
  border: 1px solid var(--rule); border-radius: 2px;
}
.co-input:focus { outline: none; border-color: var(--signal-text); box-shadow: 0 0 0 1px var(--signal-text); }
.co-step { font-size: 1.05rem; font-weight: 700; margin: 1.5rem 0 0.35rem; }
.co-error { color: #ff6b6b; margin: 1rem 0 0; font-size: 0.95rem; }
.co-pay { width: 100%; margin-top: 1.25rem; }
.co-secure { color: var(--muted); font-size: 0.8rem; text-align: center; margin-top: 0.75rem; }
@media (max-width: 760px) {
  .checkout-overlay { padding: 0; }
  .co-panel { border: 0; min-height: 100%; }
  .co-body { grid-template-columns: 1fr; }
  .shop-v2 .co-summary, .co-summary { order: 0; border-left: 0; border-bottom: 1px solid var(--rule); padding: 1rem 16px; }
  .shop-v2 .co-form, .co-form { padding: 1rem 16px 2rem; }
  .co-head { padding: 0.75rem 16px; }
}
