/* =====================================================================
   P37 — OBSIDIAN & GALLERY STONE THEME (27 Nov 2026, owner's request)
   Replaces the warm cream / emerald / navy look with a sharper, cooler
   luxury-streetwear palette. Loaded after styles.css, so these values win.
   Removing the <link> to this file in index.html brings the old look back.

     Dark surfaces  (header, hero, brand story, footer)   #0B0C0E obsidian, #F4F1EA bone text and buttons
     Light pages    (shop grid, product, cart, checkout)  #F5F5F3 alabaster, #EAEAE6 concrete product tiles,
                                                          #0D0E10 onyx text and buttons
     Accents        #C8A46B gold;  #9E1B1B oxblood only for sale (discount) labels
     Corners        buttons and badges 2px
   The gold strip at the very top keeps its own rules (index.html, stripCss).
   ===================================================================== */

:root {
  /* palette */
  --p37-obsidian: #0B0C0E;
  --p37-obsidian-2: #141619;
  --p37-obsidian-line: #24272C;
  --p37-bone: #F4F1EA;
  --p37-bone-muted: #9A9893;
  --p37-alabaster: #F5F5F3;
  --p37-concrete: #EAEAE6;
  --p37-stone-line: #D9D8D3;
  --p37-onyx: #0D0E10;
  --p37-onyx-hover: #262930;
  --p37-gold: #C8A46B;
  --p37-oxblood: #9E1B1B;

  /* the site's own colour names, pointed at the new palette */
  --chaptr-cream: var(--p37-alabaster);        /* page background; also light text on dark */
  --chaptr-cream-deep: var(--p37-concrete);    /* alternate sections */
  --chaptr-ivory: #FFFFFF;                     /* cards, panels, inputs */
  --chaptr-emerald: var(--p37-onyx);           /* titles, primary buttons, links */
  --chaptr-emerald-deep: var(--p37-obsidian);  /* dark sections */
  --chaptr-emerald-soft: var(--p37-onyx-hover);
  --chaptr-gold: var(--p37-gold);
  --chaptr-gold-light: #DCC497;                /* gold on dark backgrounds */
  --chaptr-gold-deep: #806233;                 /* gold text on light backgrounds (5:1) */
  --chaptr-ink: var(--p37-onyx);
  --chaptr-stone: #636569;
  --chaptr-mist: #6E7074;
  --chaptr-line: var(--p37-stone-line);
  --chaptr-line-soft: #E4E3DF;
  --chaptr-header-navy: var(--p37-obsidian);
  --chaptr-header-navy-2: var(--p37-obsidian);

  --color-sale: var(--p37-oxblood);
  --btn-primary-text: var(--p37-bone);
  --radius-sm: 2px;
  --shadow-soft: 0 2px 18px rgba(13, 14, 16, 0.06);
}

/* ---------- Header: flat obsidian, bone links, gold on hover ---------- */
.header,
.header.header--solid {
  background: var(--p37-obsidian);
  box-shadow: inset 0 -1px 0 var(--p37-obsidian-line), 0 8px 24px rgba(0, 0, 0, 0.18);
}
.header.header--solid .nav-desktop a,
.header.header--solid .icon-btn { color: var(--p37-bone); }
.header.header--solid .nav-desktop a:hover,
.header.header--solid .nav-desktop a.is-active,
.header.header--solid .icon-btn:hover { color: var(--p37-gold); }
.header.header--solid .nav-desktop a::after { background: var(--p37-gold); }
.header.header--solid .icon-btn:hover { background: rgba(244, 241, 234, 0.08); }
.header.header--solid .hamburger span { background: var(--p37-bone); }
.header .cart-count,
.header.header--solid .cart-count { background: var(--p37-gold); color: var(--p37-obsidian); }
.header .icon-btn:focus-visible,
.header .nav-desktop a:focus-visible { outline-color: var(--p37-gold); }

/* ---------- Hero ---------- */
.hero-slider,
.hero-slide-video { background: var(--p37-obsidian); }
.hero-slider .hero-arrow { background: rgba(11, 12, 14, 0.55); }
.hero-slider .hero-arrow:hover,
.hero-slider .hero-arrow:focus-visible { color: var(--p37-obsidian); }
.hero-slide-cta, .hero-brand-cta, .editorial-cta { background: var(--p37-bone); color: var(--p37-obsidian); border-radius: 2px; }
.hero-slide-cta:hover, .hero-brand-cta:hover, .editorial-cta:hover { background: var(--p37-gold); color: var(--p37-obsidian); }

/* ---------- Brand story ---------- */
.brand-story { background: var(--p37-obsidian); color: var(--p37-bone); }

/* ---------- Footer: obsidian, bone text, gold headings ---------- */
.footer {
  background: var(--p37-obsidian);
  color: var(--p37-bone);
  border-top: 1px solid var(--p37-obsidian-line);
}
.footer-links-group h4, .footer-newsletter h4 { color: var(--p37-gold); }
.footer-links-group a:hover, .footer .social-link:hover { color: var(--p37-gold); }
.footer .social-link { border-color: rgba(244, 241, 234, 0.35); color: var(--p37-bone); }
.newsletter-form { border-color: rgba(244, 241, 234, 0.3); }
.newsletter-form input::placeholder { color: rgba(244, 241, 234, 0.5); }
.newsletter-form button { background: var(--p37-bone); color: var(--p37-obsidian); border-radius: 0 2px 2px 0; }
.newsletter-form button:hover { background: var(--p37-gold); color: var(--p37-obsidian); }
.footer-bottom { border-top-color: var(--p37-obsidian-line); }
.footer-newsletter .newsletter-status.is-success { color: var(--p37-gold); }

/* ---------- Sign-up pop-up: its dark half matches the header ---------- */
.sale-popup-left { background: var(--p37-obsidian); }

/* ---------- Product tiles and pictures: raw concrete ---------- */
.product-card-image,
.pdp-gallery-main,
.pdp-gallery-thumb,
.search-result-item img { background: var(--p37-concrete); }
.product-card-wishlist { background: #FFFFFF; }
.pdp-gallery-arrow {
  background: rgba(11, 12, 14, 0.86);
  color: var(--p37-bone);
  border-color: rgba(244, 241, 234, 0.55);
  box-shadow: 0 6px 18px rgba(11, 12, 14, 0.28);
}
.pdp-gallery-arrow:hover { background: var(--p37-gold); color: var(--p37-obsidian); border-color: var(--p37-gold); box-shadow: 0 8px 22px rgba(11, 12, 14, 0.32); }
.pdp-size-guide-tag span:first-child { background: var(--p37-obsidian); color: var(--p37-bone); }

/* ---------- Buttons: onyx on light pages, sharp 2px corners ---------- */
.add-to-cart-btn, .checkout-btn, .place-order-btn, .auth-submit, .form-submit,
.pdp-add-to-cart, .sale-popup-submit, .pdp-wishlist-btn, .filter-btn, .order-action-btn,
#applyCouponBtn { border-radius: 2px; }

/* ---------- Badges: onyx with bone text; oxblood is kept for sale labels ---------- */
.product-card-badge { background: var(--p37-onyx); color: var(--p37-bone); border-radius: 2px; }
.pdp-fit-badge { background: var(--p37-onyx); color: var(--p37-bone); border-radius: 2px; }
.product-card-price .product-card-discount,
.pdp-discount { color: var(--p37-oxblood); }
.product-card-badge--sale,
.product-card-badge--new { background: var(--p37-oxblood); color: #FFFFFF; }

/* ---------- Mobile: sticky price bar on the product page ---------- */
@media (max-width: 768px) {
  .pdp-sticky-bar { background: rgba(11, 12, 14, 0.97); color: var(--p37-bone); border-top-color: rgba(200, 164, 107, 0.5); }
  .pdp-sticky-btn { background: var(--p37-bone); color: var(--p37-obsidian); border-radius: 2px; }
  .pdp-sticky-price { color: var(--p37-gold); }
}

/* ---------- Reviews ---------- */
.testimonial-card { box-shadow: 0 18px 40px -28px rgba(13, 14, 16, 0.3); }
.testimonial-verified { border-color: rgba(200, 164, 107, 0.55); background: rgba(13, 14, 16, 0.04); }
.testimonial-verified svg { color: var(--p37-gold); }

/* ---------- Search panel and overlays ---------- */
.search-overlay { background: rgba(11, 12, 14, 0.42); }

/* ---------- CHA/PTR CODE page (keeps its own lime accent) ---------- */
.code-page { --code-navy: var(--p37-obsidian); --code-cream: var(--p37-alabaster); --code-cream-deep: var(--p37-concrete); --code-ink: var(--p37-onyx); }
.code-list li { border-bottom-color: rgba(13, 14, 16, 0.2); }
.code-trio li + li { border-left-color: rgba(13, 14, 16, 0.18); }
.code-cta-bg::after { background: linear-gradient(180deg, rgba(11, 12, 14, 0.72) 0%, rgba(11, 12, 14, 0.82) 60%, rgba(11, 12, 14, 0.94) 100%); }

/* ---------- p38: sold-out sizes stay visible, greyed and crossed out; tapping one offers an e-mail ---------- */
.pdp-size-chip.is-sold-out { cursor: pointer; color: #A3A39E; background: #EFEFEC; border: 1px dashed #C9C8C3; opacity: 1; }
.pdp-size-chip.is-sold-out:hover { color: #6E7074; border-color: #9A9893; }
.pdp-soldout-hint { margin: 10px 0 0; font-size: 11.5px; letter-spacing: 0.3px; color: #6E7074; }

/* ---------- p39: wishlist heart always visible on product pictures; highlighted on hover, filled when saved ---------- */
.product-card-wishlist { opacity: 1; color: #0D0E10; background: rgba(255, 255, 255, 0.92); transition: background .15s ease, color .15s ease, transform .15s ease; }
.product-card-wishlist:hover, .product-card-wishlist:focus-visible { background: #0D0E10; color: #F4F1EA; transform: scale(1.08); }
.product-card-wishlist-active { background: #FFFFFF; color: #9E1B1B; }
.product-card-wishlist-active svg, .product-card-wishlist-active svg path { fill: #9E1B1B; }
.product-card-wishlist-active:hover { background: #9E1B1B; color: #FFFFFF; }
.product-card-wishlist-active:hover svg, .product-card-wishlist-active:hover svg path { fill: #FFFFFF; }

/* ---------- p39: "SIGNATURE COLLECTION" tag on one line on phones (it sits left of the wishlist heart) ---------- */
@media (max-width: 768px) {
  .product-card-badge { white-space: nowrap; max-width: none; font-size: 8.5px; letter-spacing: 0.06em; padding: 4px 7px; line-height: 1.2; }
}
@media (max-width: 400px) {
  .product-card-badge { font-size: 7.5px; letter-spacing: 0.03em; padding: 3px 5px; }
}
@media (max-width: 768px) { .product-card-wishlist { width: 34px; height: 34px; top: 6px; right: 6px; } }
@media (max-width: 360px) {
  .product-card-badge { top: 6px; left: 6px; font-size: 7px; letter-spacing: 0.02em; padding: 3px 4px; }
  .product-card-wishlist { width: 30px; height: 30px; top: 5px; right: 5px; }
  .product-card-wishlist svg { width: 14px; height: 14px; }
}

/* ---------- p39: collection tags (SIGNATURE COLLECTION / BEST SELLER) in deep wine, owner's request ---------- */
.product-card-badge, .pdp-fit-badge { background: #5B1730; color: #F4F1EA; box-shadow: 0 2px 8px rgba(91, 23, 48, 0.35); }
