/*
Theme Name: Culture Square Store Child
Theme URI: https://stores.culturesquare.com/
Description: Child theme that reskins the WooCommerce shop archive and single-product pages to the Culture Square store design. Renders real products, prices, cart, images, and vendor data. Reuses the parent theme's header/footer.
Author: Culture Square
Version: 1.1.0
Requires PHP: 7.4
Template: martfury
Text Domain: culturesquare-child

NOTE: the "Template:" field above MUST be the folder slug of the active parent
theme (here: martfury) and MUST stay inside this header comment. If it is placed
after the comment ends, it is invalid CSS and breaks every :root variable below.
*/

/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════════ */
:root {
  /* Warm-neutral scale, deepened so sections read distinctly:
     page (cream) is a clear warm beige, cards (warm-white) sit lighter on it,
     tinted blocks (parchment) and borders (divider) are visible. */
  --cream: #F1EADC;        /* page background */
  --warm-white: #FCF8F1;   /* cards, header, panels — lighter than the page */
  --parchment: #E7DECB;    /* hero / breadcrumb / category tint */
  --gold: #B8860B;
  --gold-light: #D4A847;
  --gold-dim: #E8D5A3;
  --ink: #1C1612;
  --ink-mid: #3D3228;
  --ink-soft: #6B5D4F;
  --ink-faint: #A89B8C;
  --sage: #5C6B5A;
  --terracotta: #B5562E;
  --divider: #DBD0BC;      /* visible hairline borders */
}

/* Design fonts are enqueued in functions.php (cs-fonts handle). */

/* ═══════════════════════════════════════════════════════════
   SCOPING NOTE
   All redesign rules are scoped under .cs-shop (archive) and
   .cs-product (single) so the parent theme's header/footer/menus
   are left untouched. functions.php adds these body/wrapper classes.
   ═══════════════════════════════════════════════════════════ */

.cs-shop, .cs-product {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.cs-shop *, .cs-shop *::before, .cs-shop *::after,
.cs-product *, .cs-product *::before, .cs-product *::after { box-sizing: border-box; }
.cs-shop a, .cs-product a { color: inherit; text-decoration: none; }
.cs-shop img, .cs-product img { display: block; max-width: 100%; }

/* ═══ BREADCRUMB (Woo breadcrumb reskin, optional) ═══ */
.cs-shop .woocommerce-breadcrumb,
.cs-product .woocommerce-breadcrumb {
  background: var(--parchment);
  padding: 12px 40px;
  margin: 0 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.cs-shop .woocommerce-breadcrumb a,
.cs-product .woocommerce-breadcrumb a { color: var(--ink-soft); }
.cs-shop .woocommerce-breadcrumb a:hover,
.cs-product .woocommerce-breadcrumb a:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   HERO BANNER (archive)
   ═══════════════════════════════════════════════════════════ */
.cs-hero-banner {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 0 40px;
}
.cs-hero-card {
  background: linear-gradient(120deg, var(--warm-white) 0%, var(--parchment) 100%);
  border: 1px solid var(--divider);
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  overflow: hidden;
  position: relative;
  min-height: 320px;
}
.cs-hero-text { padding: 48px 56px; position: relative; z-index: 2; }
.cs-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 16px;
}
.cs-hero-eyebrow::before { content: ''; width: 16px; height: 1px; background: var(--gold); }
.cs-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 38px; font-weight: 500; color: var(--ink);
  line-height: 1.15; margin-bottom: 18px; letter-spacing: 0.005em;
}
.cs-hero-title em { font-style: italic; color: var(--gold); font-weight: 500; }
.cs-hero-sub-link {
  font-size: 13px; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--divider);
}
.cs-hero-discount {
  position: absolute; top: 32px; right: 32px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600;
  z-index: 3; box-shadow: 0 6px 18px rgba(181,86,46,0.3);
}
.cs-hero-img-wrap { position: relative; height: 100%; min-height: 320px; overflow: hidden; }
.cs-hero-banner .cs-hero-img-wrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }

/* Hero slider */
.cs-hero-slider { position: relative; }
.cs-hero-slider .cs-hero-slide { display: none; }
.cs-hero-slider .cs-hero-slide.is-active { display: grid; }
.cs-hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--warm-white); border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); z-index: 6; transition: all 0.15s;
}
.cs-hero-arrow:hover { border-color: var(--gold); color: var(--gold); }
.cs-hero-prev { left: 16px; }
.cs-hero-next { right: 16px; }
.cs-hero-dots {
  position: absolute; left: 0; right: 0; bottom: 16px;
  display: flex; justify-content: center; gap: 7px; z-index: 6;
}
.cs-hero-dot {
  width: 8px; height: 8px; border-radius: 50%; padding: 0;
  background: rgba(255,255,255,0.55); border: 1px solid var(--divider); cursor: pointer;
  transition: background 0.15s;
}
.cs-hero-dot.is-active { background: var(--gold); border-color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   SECTION HEADS
   ═══════════════════════════════════════════════════════════ */
.cs-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 40px;
}
.cs-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.cs-section-eyebrow {
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-bottom: 6px;
}
.cs-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px; font-weight: 500; color: var(--ink);
}

/* ═══════════════════════════════════════════════════════════
   CATEGORY STRIP
   ═══════════════════════════════════════════════════════════ */
.cs-category-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-bottom: 8px;
}
.cs-category-pill {
  background: var(--warm-white); border: 1px solid var(--divider); border-radius: 8px;
  padding: 20px 14px; text-align: center; cursor: pointer; transition: all 0.2s;
  display: block;
}
.cs-category-pill:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,22,18,0.06); }
.cs-category-icon { width: 38px; height: 38px; margin: 0 auto 10px; color: var(--gold); }
.cs-category-thumb {
  width: 48px; height: 48px; margin: 0 auto 10px; border-radius: 50%;
  object-fit: cover; background: var(--parchment);
}
.cs-category-label { font-size: 12px; color: var(--ink); font-weight: 500; }

/* ═══════════════════════════════════════════════════════════
   PRODUCT GRID + CARD (archive + related)
   ═══════════════════════════════════════════════════════════ */
.cs-shop ul.products,
.cs-product ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cs-shop ul.products::before,
.cs-shop ul.products::after,
.cs-product ul.products::before,
.cs-product ul.products::after { display: none; content: none; }

.cs-shop ul.products li.product,
.cs-product ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

.cs-product-card {
  background: var(--warm-white);
  border: 1px solid var(--divider);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.cs-product-card:hover { border-color: var(--gold); box-shadow: 0 12px 28px rgba(28,22,18,0.08); transform: translateY(-3px); }

.cs-product-img-wrap { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--parchment); }
.cs-product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  position: absolute; inset: 0;
}
.cs-product-card:hover .cs-product-img-wrap img { transform: scale(1.05); }

.cs-product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--terracotta); color: #fff;
  font-size: 10px; font-weight: 600; padding: 3px 9px; border-radius: 3px; z-index: 2;
}
.cs-product-wishlist {
  position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,249,242,0.92); border: 1px solid var(--divider);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-soft); transition: all 0.15s; z-index: 2;
}
.cs-product-wishlist:hover { color: var(--terracotta); border-color: var(--terracotta); }
.cs-product-wishlist svg { width: 14px; height: 14px; }

.cs-product-body { padding: 16px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.cs-product-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px; font-weight: 500; color: var(--ink);
  margin-bottom: 6px; line-height: 1.3;
}
.cs-product-meta { font-size: 11px; color: var(--ink-faint); margin-bottom: 10px; }
.cs-product-price-row { display: flex; align-items: baseline; gap: 8px; margin-top: auto; }
.cs-product-price-row .price { margin: 0; }
.cs-product-price-row .price ins,
.cs-product-price-row .price > .amount,
.cs-product-price-row .price bdi {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 600; color: var(--gold);
  text-decoration: none;
}
.cs-product-price-row .price del {
  font-size: 12px; color: var(--ink-faint); font-family: 'DM Sans', sans-serif;
}
.cs-product-price-row .price del .amount { font-size: 12px; color: var(--ink-faint); font-weight: 400; }

/* ═══════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════ */
.cs-shop .woocommerce-pagination { margin-top: 40px; text-align: center; }
.cs-shop .woocommerce-pagination ul { display: inline-flex; gap: 8px; border: none; list-style: none; }
.cs-shop .woocommerce-pagination ul li { border: none; }
.cs-shop .woocommerce-pagination a,
.cs-shop .woocommerce-pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px;
  border: 1px solid var(--divider); border-radius: 6px;
  background: var(--warm-white); color: var(--ink-soft); font-size: 13px;
}
.cs-shop .woocommerce-pagination span.current { background: var(--gold); color: #fff; border-color: var(--gold); }
.cs-shop .woocommerce-pagination a:hover { border-color: var(--gold); color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   SINGLE PRODUCT LAYOUT
   ═══════════════════════════════════════════════════════════ */
.cs-product-page {
  max-width: 1280px; margin: 0 auto; padding: 40px;
  display: grid !important;
  grid-template-columns: 460px 1fr 280px !important;
  gap: 40px; align-items: start;
  float: none !important;
}

/* WooCommerce prints an (often empty) .woocommerce-notices-wrapper as the
   first grid child — span it full-width so it doesn't consume the gallery's
   column and shove the purchase panel onto a second row. */
.cs-product-page > .woocommerce-notices-wrapper { grid-column: 1 / -1; margin: 0; }

/* Keep the grid authoritative after Martfury's product JS runs.
   Martfury applies theia-sticky-sidebar (and layout JS) to .images/.summary
   on load, which repositions our gallery and scatters the layout. Neutralize
   its inline styles and stop the columns being floated/absolutely placed. */
.cs-product-page > .cs-gallery-col,
.cs-product-page > .cs-product-info,
.cs-product-page > .cs-purchase-panel {
  float: none !important;
  position: relative;              /* stays in its grid cell */
  width: auto !important;
  max-width: 100% !important;
  left: auto !important; right: auto !important;
  transform: none !important;
}
.cs-product-page .theiaStickySidebar {
  position: static !important;
  width: auto !important;
  min-height: 0 !important;
  top: auto !important; left: auto !important;
  transform: none !important;
}
.cs-product-page .woocommerce-product-gallery,
.cs-product-page .images { min-height: 0 !important; }

/* Gallery (left) — our own main image + thumbnails (no theme flexslider) */
.cs-gallery { position: sticky; top: 90px; }
.cs-gallery-main {
  position: relative; aspect-ratio: 1; border-radius: 8px; overflow: hidden;
  background: var(--warm-white); border: 1px solid var(--divider); margin-bottom: 12px;
}
.cs-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-gallery-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  background: var(--terracotta); color: #fff; font-size: 11px; font-weight: 600;
  padding: 4px 11px; border-radius: 3px;
}
.cs-gallery-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.cs-gallery-thumb {
  aspect-ratio: 1; border-radius: 6px; border: 1.5px solid var(--divider);
  overflow: hidden; cursor: pointer; padding: 0; background: var(--warm-white);
  transition: border-color 0.15s;
}
.cs-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-gallery-thumb:hover { border-color: var(--gold-light); }
.cs-gallery-thumb.is-active { border-color: var(--gold); }

/* Info (center) */
.cs-product-info .product_title,
.cs-product-info h1.product_title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1.2; margin-bottom: 14px;
}
.cs-product-info .woocommerce-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.cs-product-info .star-rating { color: var(--gold); }
.cs-product-info .woocommerce-review-link { font-size: 12px; color: var(--ink-faint); }
.cs-product-info .price {
  display: flex; align-items: baseline; gap: 12px;
  padding-bottom: 18px; border-bottom: 1px solid var(--divider); margin-bottom: 18px;
}
.cs-product-info .price ins,
.cs-product-info .price > .amount,
.cs-product-info .price bdi {
  font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600;
  color: var(--terracotta); text-decoration: none;
}
.cs-product-info .price del { font-size: 14px; color: var(--ink-faint); }
.cs-product-info .price del .amount { font-size: 14px; }

.cs-meta-rows { margin-bottom: 22px; }
.cs-meta-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); padding: 6px 0; }
.cs-meta-row .label { color: var(--ink-faint); min-width: 80px; }
.cs-meta-row .val-link { color: var(--gold); font-weight: 500; }
.cs-status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); display: inline-block; }
.cs-status-instock { color: var(--sage); font-weight: 500; }
.cs-status-outofstock { color: var(--terracotta); font-weight: 500; }

.cs-desc-card { background: var(--warm-white); border: 1px solid var(--divider); border-radius: 6px; padding: 22px 24px; }
.cs-desc-title { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; color: var(--sage); margin-bottom: 10px; }
.cs-desc-text { font-size: 13px; color: var(--ink-soft); line-height: 1.75; }
.cs-desc-text p { margin-bottom: 12px; }
.cs-desc-divider { margin: 16px 0; border: none; border-top: 1px solid var(--divider); }

/* Purchase panel (right) */
.cs-purchase-panel { background: var(--warm-white); border: 1px solid var(--divider); border-radius: 8px; padding: 22px; position: sticky; top: 90px; }
.cs-purchase-panel form.cart { margin: 0; display: block; }
.cs-purchase-panel .quantity {
  display: flex; align-items: center; border: 1px solid var(--divider);
  border-radius: 6px; overflow: hidden; margin-bottom: 14px; float: none;
}
.cs-purchase-panel .quantity input.qty {
  flex: 1; text-align: center; font-size: 14px; color: var(--ink);
  border: none; border-left: 1px solid var(--divider); border-right: 1px solid var(--divider);
  height: 38px; background: #fff;
}
.cs-purchase-panel button.single_add_to_cart_button {
  width: 100%; padding: 13px; background: var(--gold); color: #fff;
  border: none; border-radius: 6px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; text-transform: uppercase; cursor: pointer;
  margin-top: 4px; margin-bottom: 10px; transition: opacity 0.2s;
  font-family: 'DM Sans', sans-serif;
}
.cs-purchase-panel button.single_add_to_cart_button:hover { opacity: 0.88; }

/* Variable-product variations inside the narrow purchase panel:
   stack each attribute (label above its options), full-width selects/swatches,
   and show the matched variation price + Add to Cart cleanly. */
.cs-purchase-panel table.variations { width: 100%; margin: 0 0 12px; border: none; }
.cs-purchase-panel table.variations tbody,
.cs-purchase-panel table.variations tr { display: block; }
.cs-purchase-panel table.variations th.label,
.cs-purchase-panel table.variations td.value {
  display: block; width: 100%; padding: 0; text-align: left; border: none;
}
.cs-purchase-panel table.variations th.label {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-faint); font-weight: 600; margin: 12px 0 6px;
}
.cs-purchase-panel td.value select {
  width: 100%; padding: 9px 12px; border: 1px solid var(--divider);
  border-radius: 6px; background: var(--warm-white); color: var(--ink);
  font-family: 'DM Sans', sans-serif; font-size: 13px;
}
.cs-purchase-panel .reset_variations {
  display: inline-block; margin-top: 6px; font-size: 11px; color: var(--ink-faint);
}
/* Swatch buttons (wcboost variation swatches) */
.cs-purchase-panel .wcboost-variation-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.cs-purchase-panel .wcboost-variation-swatches__item {
  min-width: 38px; height: auto; line-height: 1.2; padding: 7px 10px;
  border-radius: 6px; border: 1px solid var(--divider); font-size: 12px;
}
.cs-purchase-panel .wcboost-variation-swatches__item.is-selected { border-color: var(--gold); color: var(--gold); }
/* Matched variation price + button */
.cs-purchase-panel .single_variation { margin-bottom: 10px; }
.cs-purchase-panel .single_variation .price { color: var(--terracotta); font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; }
.cs-purchase-panel .single_variation .price del .amount { color: var(--ink-faint); font-size: 14px; }
.cs-purchase-panel .woocommerce-variation-add-to-cart { display: block; }
.cs-purchase-panel .woocommerce-variation-availability { font-size: 12px; color: var(--sage); margin-bottom: 8px; }

.cs-perks-list { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--divider); }
.cs-perk-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.cs-perk-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }

.cs-register-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--divider); font-size: 12px; color: var(--ink-soft); display: flex; align-items: center; gap: 8px; }
.cs-register-note svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.cs-register-note a { color: var(--gold); font-weight: 500; }

/* Related products row */
.cs-product .related.products { max-width: 1280px; margin: 0 auto; padding: 0 40px 60px; }
.cs-product .related.products > h2 {
  font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 500;
  color: var(--ink); margin-bottom: 24px;
}

/* Full-width product tabs (Description / Shipping / Specification / Reviews / More Products) */
.cs-product-tabs-wrap { max-width: 1280px; margin: 0 auto; padding: 0 40px 60px; }
.cs-product-tabs ul.tabs {
  display: flex; flex-wrap: wrap; gap: 32px; list-style: none;
  margin: 0 0 28px; padding: 0; border-bottom: 1px solid var(--divider);
}
.cs-product-tabs ul.tabs li { margin: 0; padding: 0; }
.cs-product-tabs ul.tabs li a {
  display: block; padding: 0 0 14px; position: relative;
  font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 500;
  color: var(--ink-faint); transition: color 0.15s;
}
.cs-product-tabs ul.tabs li a:hover { color: var(--ink-soft); }
.cs-product-tabs ul.tabs li.active a { color: var(--ink); }
.cs-product-tabs ul.tabs li.active a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
}
.cs-product-tabs .woocommerce-Tabs-panel {
  font-size: 13px; color: var(--ink-soft); line-height: 1.8; max-width: 900px;
}
.cs-product-tabs .woocommerce-Tabs-panel > h2 {
  font-family: 'Cormorant Garamond', serif; color: var(--ink);
  font-size: 22px; font-weight: 500; margin-bottom: 12px;
}
.cs-product-tabs .woocommerce-Tabs-panel p { margin-bottom: 12px; }
.cs-product-tabs .woocommerce-Tabs-panel img { max-width: 100%; height: auto; border-radius: 6px; }
.cs-product-tabs table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.cs-product-tabs table th, .cs-product-tabs table td {
  text-align: left; padding: 9px 14px; border: 1px solid var(--divider); font-size: 13px;
}
.cs-product-tabs table th { background: var(--parchment); color: var(--ink); font-weight: 600; width: 30%; }

/* ═══════════════════════════════════════════════════════════
   IMAGE FALLBACK GRADIENTS (shown behind image / when no image)
   ═══════════════════════════════════════════════════════════ */
.cs-img-fallback { position: absolute; inset: 0; z-index: 0; }
.cs-img-fallback.g0 { background: linear-gradient(135deg,#1a1410 0%,#3a2a18 40%,#6a4a28 75%,#9a7a48 100%); }
.cs-img-fallback.g1 { background: linear-gradient(135deg,#2a3a28 0%,#4a5a3a 50%,#7a9a5a 100%); }
.cs-img-fallback.g2 { background: linear-gradient(135deg,#3a2408 0%,#7a4a10 50%,#c08820 100%); }
.cs-img-fallback.g3 { background: linear-gradient(135deg,#5a1808 0%,#9a3818 50%,#d05828 100%); }
.cs-img-fallback.g4 { background: linear-gradient(135deg,#2a1c10 0%,#4a3420 50%,#7a5a38 100%); }
.cs-img-fallback.g5 { background: linear-gradient(135deg,#3a3408 0%,#6a6018 50%,#a09030 100%); }
.cs-img-fallback.g6 { background: linear-gradient(135deg,#101418 0%,#283038 50%,#485860 100%); }
.cs-img-fallback.g7 { background: linear-gradient(135deg,#2a1c14 0%,#4a3224 50%,#7a5840 100%); }

/* ═══════════════════════════════════════════════════════════
   GLOBAL SITE CHROME (header / nav / utility / footer)
   Replaces the Martfury header+footer site-wide. cs- prefixed so
   Martfury's own .site-header / .site-footer rules never bleed in.
   ═══════════════════════════════════════════════════════════ */
body { background: var(--cream); }

/* Win against Elementor kit / Martfury page backgrounds, and keep the
   structural wrappers transparent so the cream shows through the sections. */
body.cs-home, body.cs-shop, body.cs-product { background: var(--cream) !important; }
.cs-home #cs-content, .cs-shop #cs-content, .cs-product #cs-content,
.cs-home .site-content, .cs-shop .site-content, .cs-product .site-content,
.cs-home #content, .cs-shop #content, .cs-product #content,
.cs-shop #primary, .cs-shop .content-area,
.cs-product #primary, .cs-product .content-area {
  background: transparent !important;
}

.cs-home {
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
}
.cs-home *, .cs-home *::before, .cs-home *::after { box-sizing: border-box; }
.cs-home a { color: inherit; text-decoration: none; }
.cs-home img { display: block; max-width: 100%; }

/* ── Announcement bar ── */
.cs-announce-bar {
  background: var(--ink);
  color: var(--gold-dim);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 16px;
  font-family: 'DM Sans', sans-serif;
}
.cs-announce-bar span { color: var(--gold-light); }

/* ── Header ── */
.cs-site-header {
  background: var(--warm-white);
  border-bottom: 1px solid var(--divider);
  position: sticky;
  top: 0;
  z-index: 500;
  font-family: 'DM Sans', sans-serif;
}
.cs-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 40px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.cs-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cs-brand-mark { width: 32px; height: 32px; }
.cs-brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 19px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em;
}
.cs-brand-name em { font-style: normal; color: var(--gold); }

.cs-main-nav { display: flex; align-items: center; gap: 30px; flex: 1; }
.cs-main-nav a {
  font-size: 13px; color: var(--ink-soft); font-weight: 400;
  transition: color 0.15s; position: relative;
}
.cs-main-nav a:hover { color: var(--gold); }
.cs-main-nav li.current-menu-item > a,
.cs-main-nav a.active { color: var(--ink); font-weight: 500; }
.cs-main-nav ul { list-style: none; display: flex; align-items: center; gap: 30px; margin: 0; padding: 0; }

.cs-header-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.cs-store-search {
  display: flex; align-items: center; gap: 8px;
  background: var(--cream); border: 1px solid var(--divider);
  border-radius: 20px; padding: 8px 16px; width: 240px;
}
.cs-store-search svg { width: 14px; height: 14px; color: var(--ink-faint); flex-shrink: 0; }
.cs-store-search input {
  border: none; outline: none; background: transparent;
  font-size: 12px; color: var(--ink); font-family: 'DM Sans', sans-serif; width: 100%;
}
.cs-store-search input::placeholder { color: var(--ink-faint); }
.cs-store-search button.screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.cs-icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--divider); background: var(--warm-white);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--ink-soft); position: relative; transition: all 0.15s; flex-shrink: 0;
}
.cs-icon-btn:hover { border-color: var(--gold); color: var(--gold); }
.cs-icon-btn svg { width: 16px; height: 16px; }
.cs-cart-badge {
  position: absolute; top: -4px; right: -4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: #fff; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--warm-white); line-height: 1;
}

.cs-nav-toggle {
  display: none;
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--divider); background: var(--warm-white);
  align-items: center; justify-content: center; cursor: pointer; color: var(--ink-soft);
}
.cs-nav-toggle svg { width: 18px; height: 18px; }

/* ── Utility row ── */
.cs-utility-row { background: var(--cream); border-bottom: 1px solid var(--divider); }
.cs-utility-inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 40px;
  display: flex; align-items: center; justify-content: space-between;
}
.cs-utility-left { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-soft); cursor: pointer; }
.cs-utility-left svg { width: 14px; height: 14px; color: var(--gold); }
.cs-utility-right { display: flex; align-items: center; gap: 24px; font-size: 12px; }
.cs-utility-right a { color: var(--ink-soft); transition: color 0.15s; }
.cs-utility-right a:hover { color: var(--gold); }
.cs-btn-sell {
  background: var(--gold); color: #fff !important;
  padding: 7px 16px; border-radius: 4px; font-weight: 500;
  letter-spacing: 0.03em; font-size: 11px; text-transform: uppercase;
}

/* ── "Explore All Categories" dropdown ── */
.cs-cats-dropdown { position: relative; }
.cs-cats-toggle {
  border: none; background: transparent; padding: 0;
  font-family: 'DM Sans', sans-serif; font-size: 12px;
}
.cs-cats-caret { width: 12px; height: 12px; margin-left: 2px; transition: transform 0.15s; }
.cs-cats-dropdown:hover .cs-cats-caret,
.cs-cats-dropdown.cs-open .cs-cats-caret { transform: rotate(180deg); }
.cs-cats-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 600;
  min-width: 260px; max-height: 380px; overflow-y: auto;
  background: var(--warm-white); border: 1px solid var(--divider);
  border-radius: 8px; box-shadow: 0 14px 34px rgba(28,22,18,0.14);
  padding: 8px; display: none;
}
.cs-cats-dropdown:hover .cs-cats-panel,
.cs-cats-dropdown.cs-open .cs-cats-panel { display: block; }
.cs-cats-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 6px; font-size: 12px; color: var(--ink-soft);
}
.cs-cats-item:hover { background: var(--cream); color: var(--gold); }
.cs-cats-count { font-size: 10px; color: var(--ink-faint); }
.cs-cats-all { margin-top: 4px; border-top: 1px solid var(--divider); color: var(--gold); font-weight: 500; }
.cs-cats-all:hover { background: var(--cream); }

/* ── Footer ── */
/* Contain Martfury's floated Bootstrap columns (.content-area.col-md-*).
   Their .row/.container wrapper normally lives in Martfury's header.php, which
   we replaced — without a float container #cs-content collapses and the footer
   rides up into the content. flow-root establishes a BFC so it contains them. */
.cs-site-content { display: flow-root; }

.cs-site-footer {
  background: var(--ink);
  color: rgba(245,240,232,0.6);
  margin-top: 64px;
  font-family: 'DM Sans', sans-serif;
  clear: both;
  position: relative;
}
.cs-footer-inner {
  max-width: 1280px; margin: 0 auto; padding: 56px 40px 28px;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
}
.cs-footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.cs-footer-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--cream); }
.cs-footer-brand-name em { font-style: normal; color: var(--gold-light); }
.cs-footer-desc { font-size: 12px; line-height: 1.7; color: rgba(245,240,232,0.45); max-width: 260px; }
.cs-footer-col-title {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold-light); margin-bottom: 16px; font-weight: 600;
}
.cs-footer-links { display: flex; flex-direction: column; gap: 10px; list-style: none; margin: 0; padding: 0; }
.cs-footer-links a { font-size: 12px; color: rgba(245,240,232,0.55); transition: color 0.15s; }
.cs-footer-links a:hover { color: var(--gold-light); }
.cs-footer-bottom {
  border-top: 1px solid rgba(245,240,232,0.1); padding: 20px 40px;
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  font-size: 11px; color: rgba(245,240,232,0.35);
}

/* ── Force full-width shop (hide Martfury catalog sidebar, comp has none) ── */
.cs-shop #primary-sidebar,
.cs-shop .primary-sidebar,
.cs-shop .catalog-sidebar,
.cs-shop .widgets-area.primary-sidebar { display: none !important; }
.cs-shop #primary.content-area,
.cs-shop .content-area {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  margin: 0 !important;
}

/* ── Home landing grid (front-page.php) ── */
.cs-home ul.products {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.cs-home ul.products li.product { width: auto; margin: 0; float: none; }
.cs-section-link {
  font-size: 12px; color: var(--ink-soft);
  display: flex; align-items: center; gap: 5px; transition: color 0.15s;
}
.cs-section-link:hover { color: var(--gold); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .cs-product-page { grid-template-columns: 1fr; }
  .cs-gallery,
  .cs-purchase-panel { position: static; }
  .cs-shop ul.products,
  .cs-product ul.products { grid-template-columns: repeat(3, 1fr); }
  .cs-category-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .cs-hero-card { grid-template-columns: 1fr; }
  .cs-hero-img-wrap { min-height: 200px; }
  .cs-hero-text { padding: 32px; }
  .cs-hero-title { font-size: 30px; }
  .cs-section { padding: 32px 20px; }
  .cs-hero-banner { padding: 0 20px; }
  .cs-shop ul.products,
  .cs-product ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cs-category-strip { grid-template-columns: repeat(2, 1fr); }
  .cs-product-page { padding: 20px; }
}
@media (max-width: 480px) {
  .cs-shop ul.products,
  .cs-product ul.products,
  .cs-home ul.products { grid-template-columns: 1fr; }
}

/* ── Chrome responsive ── */
@media (max-width: 1024px) {
  .cs-home ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .cs-header-inner { gap: 16px; flex-wrap: wrap; }
  .cs-store-search { width: 180px; }
  .cs-nav-toggle { display: flex; order: 3; }
  .cs-main-nav {
    display: none;
    order: 5; flex-basis: 100%;
    flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 8px 0;
  }
  .cs-main-nav ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .cs-main-nav a { padding: 8px 0; display: block; }
  .cs-site-header.cs-nav-open .cs-main-nav { display: flex; }
}
@media (max-width: 768px) {
  .cs-header-inner { padding: 14px 20px; }
  .cs-announce-bar { font-size: 10px; }
  .cs-store-search { display: none; }
  .cs-utility-inner { padding: 10px 20px; }
  .cs-utility-right { gap: 12px; }
  .cs-utility-right a:not(.cs-btn-sell) { display: none; }
  .cs-home ul.products { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .cs-footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 20px 24px; }
  .cs-footer-bottom { flex-direction: column; gap: 8px; padding: 18px 20px; }
}
@media (max-width: 480px) {
  .cs-footer-inner { grid-template-columns: 1fr; }
  .cs-home ul.products { grid-template-columns: 1fr; }
}
