/* Crystal sitewide polish v16 — restore colour, fix menu, keep type */

html body {
  --chb-green: #2f3d2a;
  --chb-gold: #c9a84c;
  --chb-cream: #f7f2eb;
  --chb-serif: "Cormorant Garamond", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --chb-sans: Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
}

html body,
html body p,
html body li,
html body .woocommerce {
  font-family: var(--chb-sans);
}

html body h1,
html body h2,
html body h3,
html body .entry-title,
html body .entry-title a,
html body .product_title,
html body .page-title,
html body .klb-page-title {
  font-family: var(--chb-serif);
}

/* Top bar is forest green so it is not the same cream as the header */
html body .elementor-element-b962188 {
  background: #2f3d2a !important;
}
html body .elementor-element-b962188 a,
html body .elementor-element-b962188 .elementor-item,
html body .elementor-element-b962188 .elementor-nav-menu--layout-horizontal > ul > li > a.elementor-item {
  color: #f7f2eb !important;
  font-family: var(--chb-sans) !important;
  font-weight: 500 !important;
  font-size: 12px !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
}
html body .elementor-element-b962188 a:hover,
html body .elementor-element-b962188 .elementor-item:hover {
  color: #e0c878 !important;
}

/* Main header stays light — not the same as the top bar */
html body .elementor-location-header,
html body .elementor-24827 .elementor-element-cf3056e {
  background: #fffcf8 !important;
}

/* Category menu: original size, one line, not squeezed */
html body .elementor-location-header .elementor-nav-menu--layout-horizontal > ul {
  flex-wrap: nowrap !important;
}
html body .elementor-location-header .elementor-element-cf3056e ~ * .elementor-nav-menu--layout-horizontal > ul > li > a.elementor-item,
html body .elementor-24827 .elementor-nav-menu--layout-horizontal > ul > li > a.elementor-item {
  font-size: 14px !important;
  font-weight: 650 !important;
  letter-spacing: 0.02em !important;
  white-space: nowrap !important;
  color: #2f3d2a !important;
  padding-left: 32px !important;
  padding-right: 10px !important;
}

html body .elementor-element-b962188 .elementor-nav-menu--layout-horizontal > ul > li > a.elementor-item {
  font-size: 12px !important;
  font-weight: 500 !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
  color: #f7f2eb !important;
}

/* Heroes: no cream multiply / wash */
html body .elementor-slides img,
html body .swiper-slide img,
html body #chb-temp-hero-root img,
html body .chb-about-hero img,
html body .chb-about img,
html body .elementor-widget-image img {
  mix-blend-mode: normal !important;
  filter: none !important;
}
html body #chb-temp-hero-root,
html body .elementor-slides,
html body .chb-about-hero {
  background: transparent !important;
}

/* Crystal sitewide polish */
body.theme-bacola {
  background: #fffcf8;
}
.site-content,
.content-wrapper,
.site-primary {
  background: #fffcf8;
}

.woocommerce-breadcrumb {
  font-size: .78rem !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #8a7f76 !important;
}

/* Product cards anywhere */
.products .product-wrapper,
ul.products .product .product-wrapper {
  background: #fff;
  border: 1px solid #eee6dc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(18,10,8,.04);
}
.products .product-title,
.products .product-name,
.products h3,
.products h2 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
}

/* Shop sort strip */
.before-shop-loop {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: .6rem 0 1rem !important;
}
.shop-view-selector { display: none !important; }

/* Blog listing */
body.blog article.post {
  max-width: 800px;
  margin-left: auto !important;
  margin-right: auto !important;
}
body.blog article.post .entry-header,
body.blog article.post .entry-content,
body.blog article.post .post-wrapper,
body.blog article.post .entry-footer {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
body.blog article.post .entry-footer { padding-bottom: 1.2rem; }
body.blog .more-link,
body.blog a.read-more,
body.blog .read-more {
  display: inline-block;
  background: #2f3d2a !important;
  color: #fffef8 !important;
  border-radius: 8px;
  padding: .55rem 1rem;
  text-decoration: none !important;
  font-weight: 650;
}

/* Single post */
body.single-post .content-secondary { display: none !important; }
body.single-post .content-primary {
  width: 100% !important;
  max-width: 760px !important;
  margin: 0 auto;
}
body.single-post .entry-title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.02em;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
}
body.single-post .entry-content {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #2c2320;
}

/* Single product */
body.single-product .product_title,
body.single-product h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-weight: 500 !important;
  letter-spacing: -.02em;
}
body.single-product .single_add_to_cart_button,
body.single-product button.button.alt,
.woocommerce button.button.alt,
.woocommerce a.button.alt,
.woocommerce button.button,
.woocommerce a.checkout-button {
  background: linear-gradient(180deg, #e0c878, #c9a84c) !important;
  color: #2a2208 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
  letter-spacing: .04em;
}

/* Offer banner stays; mix-and-match paragraph is hidden on product pages */
p.chb-colloid-note,
.chb-colloid-note {
  display: none !important;
}

/* Cart / checkout */
.woocommerce-cart table.shop_table,
.woocommerce-checkout .woocommerce {
  background: #fff;
  border: 1px solid #eee6dc;
  border-radius: 16px;
  overflow: hidden;
}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  display: inline-block;
  text-align: center;
}

/* Contact */
body.page-id-1685 .site-content { background: #fffcf8; }
body.page-id-1685 h1 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-weight: 500;
}
body.page-id-1685 button,
body.page-id-1685 input[type="submit"] {
  background: linear-gradient(180deg, #e0c878, #c9a84c) !important;
  color: #2a2208 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 750 !important;
}

/* Account */
body.woocommerce-account .woocommerce {
  max-width: 1120px;
  margin: 0 auto;
}

/* Product leftovers */
body.single-product .tinv-wraper,
body.single-product .product-share,
body.single-product .compare-button,
body.single-product a.compare,
body.single-product .yith-wcwl-add-to-wishlist,
body.single-product .klbth-wishlist-button {
  display: none !important;
}
body.single-product .product-detail,
body.single-product .single-content {
  background: #fff;
  border: 1px solid #eee6dc;
  border-radius: 16px;
}
body.single-product .woocommerce-tabs {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
}

/* Blog leftovers */
.sharedaddy,
.sd-sharing-enabled,
.shareaholic-canvas,
.heateor_sss_sharing_container,
body.single-post .widget_popular_posts {
  display: none !important;
}

/* Cart empty */
.woocommerce-cart .return-to-shop a,
.cart-empty + .return-to-shop a {
  background: linear-gradient(180deg, #e0c878, #c9a84c) !important;
  color: #2a2208 !important;
  border-radius: 999px !important;
  padding: .8rem 1.3rem !important;
  font-weight: 750 !important;
}

/* One search control on mobile; 44px tap target */
@media (max-width: 1024px) {
  a.dgwt-wcas-search-icon.js-dgwt-wcas-search-icon-handler {
    display: none !important;
  }
  a.js-dgwt-wcas-enable-mobile-form {
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 1024px) {
  html body a.dgwt-wcas-search-icon.js-dgwt-wcas-search-icon-handler,
  html body a[aria-label="Open search bar"],
  html body .elementor-24827 a.dgwt-wcas-search-icon,
  html body .elementor-location-header a.dgwt-wcas-search-icon.js-dgwt-wcas-search-icon-handler {
    display: none !important;
  }
}

@media (max-width: 991px) {
  html body.single-product .related.products .products,
  html body.single-product .related.products div.products,
  html body.single-product .related.products ul.products,
  html body.single-product .related.products .products.column-4,
  html body.single-product .related.products .products.column-4.mobile-column-2 {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.85rem !important;
  }
  html body.single-product .related.products .product,
  html body.single-product .related.products li.product,
  html body.single-product .related.products .products .product {
    width: auto !important;
    max-width: none !important;
  }
}

@media (max-width: 767px) {
  html body.single-product form.cart,
  html body.single-product .woocommerce-variation-add-to-cart,
  html body.single-product form.cart .single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    gap: 0.75rem !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  html body.single-product .quantity {
    margin: 0 !important;
  }
  html body.single-product .single_add_to_cart_button,
  html body.single-product button.single_add_to_cart_button.button.alt {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 52px !important;
    white-space: nowrap !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  html body.single-product .chb-size-pills {
    width: 100%;
  }
  html body.single-product .chb-size-pill {
    flex: 1 1 auto;
    min-height: 44px;
  }
  body {
    padding-bottom: 64px;
  }

  /* Keep the LiveChat launcher, hide the big greeting bubble on phones */
  #livechat-eye-catcher,
  iframe#livechat-eye-catcher,
  iframe[name="livechat-eye-catcher"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
  }
  html body #chat-widget-container,
  html body #chat-widget-minimized,
  html body iframe[title="LiveChat chat widget"],
  #cfw-side-cart-floating-button,
  .cfw-side-cart-floating-button-anchor {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  #chb-temp-hero-root .chb-hero-link {
    display: inline-flex !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(14, 18, 13, 0.5) !important;
    border-bottom: 0 !important;
    border-radius: 999px !important;
    color: #fffef8 !important;
    text-shadow: none !important;
  }
}

.chb-home-use li h3::before {
  content: none !important;
}

/* Side cart order bumps — quieter, product-led */
#cfw-side-cart .cfw-order-bump,
.cfw-order-bumps .cfw-order-bump {
  border: 1px solid #eee6dc !important;
  border-radius: 14px !important;
  box-shadow: none !important;
  overflow: hidden;
}
#cfw-side-cart .cfw-order-bump-header,
.cfw-order-bump .cfw-order-bump-header {
  background: #fffcf8 !important;
  padding: 0.7rem 0.85rem !important;
}
#cfw-side-cart .cfw-order-bump-header span,
.cfw-order-bump-header label span {
  font-family: Montserrat, system-ui, sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 650 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #2f3d2a !important;
}
#cfw-side-cart .cfw-order-bump-content,
.cfw-order-bump-content {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif !important;
  font-size: 0.9rem !important;
  line-height: 1.4 !important;
  color: #3d4038 !important;
}

/* Shop / category cards: keep Add to basket / Select options usable on touch */
@media (max-width: 767px) {
  ul.products .product .product-buttons,
  ul.products .product .product-fade-block,
  ul.products .product .product-content-fade {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  body.archive ul.products .add_to_cart_button,
  body.archive ul.products a.button.product_type_simple,
  body.archive ul.products a.button.product_type_variable,
  body.tax-product_cat ul.products .add_to_cart_button,
  body.tax-product_cat ul.products a.button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    margin: 0.35rem 0 0.6rem !important;
    padding: 0.55rem 0.9rem !important;
    border-radius: 999px !important;
    background: linear-gradient(180deg, #e0c878, #c9a84c) !important;
    color: #2a2208 !important;
    font-weight: 700 !important;
  }
}

/* Tablet + large phone: hamburger, search icon, no overlapping widgets */
@media (max-width: 1024px) {
  #mobile-menu-trigger,
  #mobile-menu-trigger .elementor-widget-container,
  #mobile-menu-trigger .elementor-button-wrapper {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 44px !important;
    min-width: 44px !important;
    height: auto !important;
  }
  #mobile-menu-trigger .elementor-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  #mobile-menu-trigger .elementor-button-icon {
    display: block !important;
    width: 22px !important;
    height: 14px !important;
    background:
      linear-gradient(#2f3d2a, #2f3d2a) top / 100% 2px no-repeat,
      linear-gradient(#2f3d2a, #2f3d2a) center / 100% 2px no-repeat,
      linear-gradient(#2f3d2a, #2f3d2a) bottom / 100% 2px no-repeat;
  }
  #mobile-menu-trigger svg {
    display: none !important;
  }
  #mobile-menu-wrapper,
  .mobile-menu-overlay {
    display: none !important;
  }

  a.js-dgwt-wcas-enable-mobile-form {
    position: relative !important;
    width: 44px !important;
    height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  a.js-dgwt-wcas-enable-mobile-form::before {
    content: "" !important;
    width: 16px !important;
    height: 16px !important;
    border: 2px solid #2f3d2a !important;
    border-radius: 50% !important;
    box-sizing: border-box !important;
    display: block !important;
  }
  a.js-dgwt-wcas-enable-mobile-form::after {
    content: "" !important;
    position: absolute !important;
    width: 7px !important;
    height: 2px !important;
    background: #2f3d2a !important;
    transform: rotate(45deg) !important;
    right: 12px !important;
    bottom: 14px !important;
  }

  html body #chat-widget-container,
  html body #chat-widget-minimized,
  html body iframe[title="LiveChat chat widget"],
  #cfw-side-cart-floating-button,
  .cfw-side-cart-floating-button-anchor {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  #chb-temp-hero-root .chb-hero-link {
    display: inline-flex !important;
    padding: 0.4rem 0.8rem !important;
    background: rgba(14, 18, 13, 0.5) !important;
    border-bottom: 0 !important;
    border-radius: 999px !important;
    color: #fffef8 !important;
  }

  html body.single-product form.cart,
  html body.single-product .woocommerce-variation-add-to-cart {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 0.75rem !important;
  }
  html body.single-product .single_add_to_cart_button {
    min-height: 48px !important;
    padding: 0 1.4rem !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 1025px) {
  #livechat-eye-catcher,
  iframe#livechat-eye-catcher {
    display: none !important;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  html body.single-product form.cart {
    flex-direction: row !important;
    align-items: center !important;
  }
  html body.single-product .single_add_to_cart_button {
    width: auto !important;
    flex: 1 1 auto !important;
    max-width: 280px !important;
  }
}
