/* The Luxury Candles v0.8 — consolidated visual theme for Astra + WooCommerce.
   Presentation only. Purchase/price/stock functionality lives in PHP, unchanged. */
body.lc-catalog-single {
  --lc-paper: #fbf8f3;
  --lc-ink: #46372d;
  --lc-taupe: #887c66;
  --lc-line: #e4dbd0;
  background: var(--lc-paper);
}
body.lc-catalog-single .site-content { background: var(--lc-paper) !important; }
body.lc-catalog-single .site-content .ast-container {
  max-width: 1400px;
  padding-inline: clamp(20px,3.2vw,54px);
}
body.lc-catalog-single .woocommerce div.product { color: var(--lc-ink); max-width: 1240px; margin-inline:auto; }
body.lc-catalog-single .woocommerce div.product .lc-product-hero {
  display:grid;
  grid-template-columns:minmax(0,55fr) minmax(0,45fr);
  gap:clamp(28px,4vw,56px);
  align-items:start;
  margin-bottom:clamp(54px,6vw,85px);
}
body.lc-catalog-single .woocommerce div.product .lc-product-hero__gallery,
body.lc-catalog-single .woocommerce div.product .lc-product-hero__details { min-width:0; }
body.lc-catalog-single .woocommerce div.product .lc-product-hero__gallery .woocommerce-product-gallery {
  float:none!important; width:100%!important; margin:0!important;
}
body.lc-catalog-single .woocommerce div.product .lc-product-hero__details .summary,
body.lc-catalog-single .woocommerce div.product .lc-product-hero__details > .summary {
  float:none!important; width:100%!important; margin:0!important;
}
body.lc-catalog-single .woocommerce div.product .lc-product-hero__gallery img {height:auto;max-width:100%;}
body.lc-catalog-single .woocommerce .woocommerce-breadcrumb,
body.lc-catalog-single .woocommerce .woocommerce-breadcrumb a {
  color:#81756a!important; font-size:12px; line-height:1.6;
}
body.lc-catalog-single .woocommerce .woocommerce-breadcrumb {margin-bottom:25px!important;}
body.lc-catalog-single .woocommerce div.product h1.product_title,
body.lc-catalog-single .woocommerce div.product .summary h1.product_title {
  font-family: Georgia,'Palatino Linotype','Times New Roman',serif!important;
  font-size:clamp(30px,2.5vw,36px)!important;
  font-weight:400!important; line-height:1.2!important;
  letter-spacing:-.018em!important; color:#654733!important;
  margin:10px 0 24px!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-product-details__short-description {
  font-size:15px;line-height:1.95;color:#675d53;margin:0 0 18px;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-product-details__short-description p {margin-bottom:1em;}
/* Astra inserts category in the product summary above the title; suppress duplicate native meta line. */
body.lc-catalog-single .woocommerce div.product .product_meta .posted_in,
body.lc-catalog-single .woocommerce div.product .summary .product_meta .posted_in,
body.lc-catalog-single .product_meta .posted_in {display:none!important;}
/* When metadata contains only a category, avoid leaving an empty divider. */
body.lc-catalog-single .woocommerce div.product .product_meta:has(> .posted_in:only-child) {
 display:none!important;
}
body.lc-catalog-single .woocommerce div.product .product_meta {font-size:12px;color:#756b60;border-color:var(--lc-line);}
/* Explicitly override Astra blue links in product content, without changing header/footer. */
body.lc-catalog-single .site-content .woocommerce a:not(.button):not(.woocommerce-product-gallery__trigger),
body.lc-catalog-single .site-content .woocommerce div.product a:not(.button):not(.woocommerce-product-gallery__trigger),
body.lc-catalog-single .site-content .woocommerce .woocommerce-breadcrumb a {
 color:var(--lc-taupe)!important; text-decoration-color:#cbb9a6!important;
}
body.lc-catalog-single .site-content .woocommerce a:not(.button):hover {color:#654733!important;}
/* Tabs: replace Astra's blue top rule, whether rendered on li or pseudo-element. */
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs {clear:both; padding-top:0;margin:0;}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs {
 display:flex;justify-content:flex-start;gap:25px;flex-wrap:wrap;
 padding:0!important;margin:0 0 30px!important;
 border:0!important;border-bottom:1px solid var(--lc-line)!important;
 background:transparent!important;box-shadow:none!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs::before,
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs::after {border:0!important;box-shadow:none!important;}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li,
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active {
 margin:0!important;padding:0!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;background:transparent!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li::before,
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li::after {
 background:transparent!important;border:0!important;box-shadow:none!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active::before,
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active::after {
 background:var(--lc-taupe)!important;
 border:0!important;box-shadow:none!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li a {
 display:block!important;padding:12px 0 13px!important;
 border:0!important;border-bottom:2px solid transparent!important;
 box-shadow:none!important;background:transparent!important;
 font-size:14px!important;font-weight:500!important;
 text-transform:none!important;letter-spacing:0!important;
 color:#756b60!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li.active a,
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
 color:#654733!important;border-bottom-color:var(--lc-taupe)!important;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs .panel {
 max-width:1000px; margin:0 0 70px!important;
 font-size:15px;line-height:1.9;color:#51483f;
}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs .panel p {margin-bottom:1.35em;}
body.lc-catalog-single .woocommerce div.product .woocommerce-tabs .panel h2,
body.lc-catalog-single .woocommerce section.related > h2 {
 font-family:Georgia,serif!important; font-weight:400!important;
 color:#46372d!important;font-size:clamp(28px,2.8vw,40px)!important;
}
body.lc-catalog-single .woocommerce section.related {border-top:1px solid var(--lc-line);padding-top:50px;}
body.lc-catalog-single .woocommerce section.related ul.products {
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;
}
body.lc-catalog-single .woocommerce section.related ul.products::before,
body.lc-catalog-single .woocommerce section.related ul.products::after {display:none;}
body.lc-catalog-single .woocommerce section.related ul.products li.product {
 margin:0;width:auto;float:none;clear:none;
}
body.lc-catalog-single .woocommerce section.related ul.products li.product img {aspect-ratio:4/5;object-fit:cover;}
/* Styling fallback, not the sole mechanism for catalog functionality. */
body.lc-catalog-single .woocommerce .price,
body.lc-catalog-single .woocommerce .woocommerce-Price-amount,
body.lc-catalog-single .woocommerce .single_add_to_cart_button,
body.lc-catalog-single .woocommerce .cart,
body.lc-catalog-single .woocommerce .stock {display:none!important;}
@media(max-width:921px){
 body.lc-catalog-single .woocommerce div.product .lc-product-hero {grid-template-columns:minmax(0,1fr);gap:30px;}
 body.lc-catalog-single .woocommerce div.product .lc-product-hero__gallery {position:static;}
 body.lc-catalog-single .woocommerce section.related ul.products {grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:600px){
 body.lc-catalog-single .site-content .ast-container {padding-inline:18px;}
 body.lc-catalog-single .woocommerce div.product h1.product_title {font-size:clamp(28px,7vw,34px)!important;}
 body.lc-catalog-single .woocommerce div.product .woocommerce-tabs ul.tabs {gap:20px;flex-wrap:nowrap;overflow-x:auto;}
 body.lc-catalog-single .woocommerce section.related ul.products {gap:14px;}
}


/* v0.9 — Mobile catalog/archive and header fixes.
   Scoped to WooCommerce listings; Single Product layout remains unchanged.
   Product cards remain accessible through their product image/title links. */
@media (max-width: 921px) {
  /* Contain Astra mobile header and logo without changing desktop layout. */
  body .site-header .ast-container,
  body .site-header .ast-builder-grid-row-container-inner,
  body .site-header .ast-builder-grid-row,
  body .site-header .site-header-section,
  body .site-header .ast-site-identity {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body .site-header .custom-logo-link img,
  body .site-header img.custom-logo,
  body .site-header .site-logo-img img {
    max-width: min(100%, 220px);
    height: auto;
    object-fit: contain;
  }
  /* Prevent rigid archive containers from overflowing narrow viewports. */
  body.woocommerce-page:not(.single-product) .site-content .ast-container,
  body.woocommerce-page:not(.single-product) .ast-woocommerce-container,
  body.woocommerce-page:not(.single-product) .woocommerce,
  body.woocommerce-page:not(.single-product) .woocommerce ul.products,
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 14px !important;
    margin-inline: 0 !important;
    padding-inline: 0 !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products::before,
  body.woocommerce-page:not(.single-product) .woocommerce ul.products::after {
    display: none !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product {
    float: none !important;
    clear: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product a,
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product h2 {
    overflow-wrap: anywhere;
  }
}
@media (max-width: 600px) {
  body.woocommerce-page:not(.single-product) .site-content .ast-container {
    width: 100%;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 30px !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product {
    width: 100% !important;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product img {
    max-height: 420px;
    object-fit: contain;
  }
  body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 400 !important;
    color: #654733 !important;
  }
}
/* Catalog mode: archive cards are navigated by linked photos/titles.
   Hide duplicate legacy/theme purchase/read-more CTAs that are shown
   despite purchasing being disabled by WooCommerce filters. */
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product a.button,
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product button.button,
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .ast-on-card-button,
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .ast-card-action-tooltip {
  display: none !important;
}
/* Match archives to the Luxury visual palette. */
body.woocommerce-page:not(.single-product) .site-content { background: #fbf8f3; }
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .ast-woo-product-category,
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .ast-woo-product-category a,
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product a:not(.button) { color: #887c66; }
body.woocommerce-page:not(.single-product) .woocommerce ul.products li.product .woocommerce-loop-product__title {color:#654733;}


/* v1.0 — catalog listing only. Keep mobile grid, header and single-product styles unchanged.
   Theme/plugin duplicated "Read more" actions are hidden, but image/title links stay active. */
body.lc-catalog-enabled .woocommerce ul.products li.product a.button,
body.lc-catalog-enabled .woocommerce ul.products li.product button.button,
body.lc-catalog-enabled .woocommerce ul.products li.product .ast-on-card-button,
body.lc-catalog-enabled .woocommerce ul.products li.product .ast-woo-shop-product-add-to-cart,
body.lc-catalog-enabled .woocommerce ul.products li.product .ast-card-action-tooltip,
body.lc-catalog-enabled .woocommerce ul.products li.product a.add_to_cart_button,
body.lc-catalog-enabled .woocommerce ul.products li.product a.product_type_simple,
body.lc-catalog-enabled .woocommerce ul.products li.product a.product_type_variable,
body.lc-catalog-enabled .woocommerce ul.products li.product a.product_type_external,
body.lc-catalog-enabled .woocommerce ul.products li.product a[href*="add-to-cart"] {
  display: none !important;
}

/* Some shortcode/widget lists render without a WooCommerce body class.
   The li.product wrapper still makes this specific to product-card actions. */
body.lc-catalog-enabled ul.products li.product > a.button,
body.lc-catalog-enabled ul.products li.product .astra-shop-summary-wrap > a.button,
body.lc-catalog-enabled ul.products li.product .astra-shop-summary-wrap > .button {
  display: none !important;
}


/* v1.1 — Category tile visual polish only; preserve responsive sizing and links. */
body.lc-catalog-enabled .woocommerce ul.products li.product-category .woocommerce-loop-category__title,
body.lc-catalog-enabled .woocommerce ul.products li.product-category .woocommerce-loop-category__title a,
body.lc-catalog-enabled .woocommerce ul.products li.product-category a h2,
body.lc-catalog-enabled .woocommerce ul.products li.product-category h2,
body.lc-catalog-enabled .woocommerce ul.products li.product-category h2 mark.count,
body.lc-catalog-enabled .woocommerce ul.products li.product-category .count {
  color: #654733 !important;
}
body.lc-catalog-enabled .woocommerce ul.products li.product-category .woocommerce-loop-category__title {
  letter-spacing: .045em;
}
body.lc-catalog-enabled .woocommerce ul.products li.product-category .count {
  color: #887c66 !important;
}
