/*
Theme Name:   Ecomus Child
Theme URI:    https://wpecomus.com
Description:  Child theme of Ecomus for choloclub.com. Keeps site customizations safe across parent theme updates.
Author:       Drfuri
Author URI:   http://drfuri.com
Template:     ecomus
Version:      1.1.2
Text Domain:  ecomus-child
*/

/* -------------------------------------------------------------------------
 * Moved from Customizer > Additional CSS (parent theme "ecomus"), 2026-09-15.
 * Styles the product category badge printed by cholo_product_category_badge()
 * in this child theme's functions.php.
 * ---------------------------------------------------------------------- */
.product-category-badge {
    background: #8F915D;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    margin-bottom: 5px;
}

/* Finding #2: hide the native select inside the swatches wrapper (buttons replace it) */
.single-product form.variations_form .wcboost-variation-swatches > .bb-custom-select-container,
.single-product form.variations_form .wcboost-variation-swatches > select {
	display: none !important;
}

/* Finding #12: hide the country field on checkout (Israel-only store) */
.woocommerce-checkout .cholo-hidden-field {
	display: none !important;
}

/* Finding #9: WhatsApp size-help link on product pages */
.cholo-size-help {
	display: flex;
	width: 100%;
	align-items: center;
	gap: 6px;
	margin: 6px 0 10px;
	font-size: 14px;
	text-decoration: underline;
}
.cholo-size-help:hover {
	text-decoration: none;
}

/* Finding #15: returns summary block */
.cholo-returns-summary{margin:0 0 2rem;padding:1.5rem;border:1px solid #e6e6e6;border-radius:12px;background:#fafafa}
.cholo-returns-summary__title{margin:0 0 1rem;font-size:1.25rem}
.cholo-returns-summary__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:1rem}
.cholo-returns-summary__item{display:flex;flex-direction:column;gap:.35rem;padding:1rem;background:#fff;border:1px solid #eee;border-radius:8px}
.cholo-returns-summary__item strong{font-size:1.05rem}
.cholo-returns-summary__item span{line-height:1.6;color:#444}
@media(max-width:768px){.cholo-returns-summary__grid{grid-template-columns:1fr}}

/* Finding #7: stack WooCommerce account tables on mobile */
@media(max-width:768px){
.woocommerce-account .woocommerce-MyAccount-content table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tbody,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr,
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{display:block;width:100%!important;box-sizing:border-box}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table thead{display:none}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table tr{margin:0 0 1rem;padding:.25rem .75rem;border:1px solid #e6e6e6;border-radius:8px}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td{display:flex;justify-content:space-between;align-items:center;gap:1rem;border:none;padding:.5rem 0;text-align:left}
.woocommerce-account .woocommerce-MyAccount-content table.shop_table td::before{content:attr(data-title);font-weight:600}
}

/* Findings #11/#33: percent badges must render LTR ("-34%") inside the RTL layout */
.woocommerce-badges .woocommerce-badge,
.product .onsale,
.product [class*="badge"],
.tf-product-badge{direction:ltr;unicode-bidi:isolate}

/* Finding #36: compact breadcrumb on mobile (was cramped/wrapping) */
@media (max-width: 767px){
.woocommerce-breadcrumb.site-breadcrumb{font-size:12px;white-space:nowrap;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.woocommerce-breadcrumb.site-breadcrumb::-webkit-scrollbar{display:none}
}

/* Finding #24: keep the Complianz cookie banner compact on mobile (was covering most of the first screen) */
@media (max-width: 767px){
#cmplz-cookiebanner-container .cmplz-cookiebanner{max-height:60vh;overflow:auto}
.cmplz-cookiebanner .cmplz-message{font-size:13px !important}
}

/* Finding #21: no-results suggestion chips */
.cholo-no-results{text-align:center;margin:0 auto 40px}
.cholo-no-results__cats{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:12px 0 18px}
.cholo-no-results .cholo-chip{border:1px solid #ddd;border-radius:999px;padding:6px 14px;text-decoration:none}

/* #5 hero art direction: translucent dark glass chip over the photography instead of the solid beige block (desktop+mobile) */
.elementor-widget-ecomus-hero-images .ecomus-hero-images__content.em-absolute {
  background: rgba(18,15,12,.48);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 30px 34px;
  top: auto;
  bottom: 42px;
  inset-inline-start: 42px;
  inset-inline-end: auto;
  max-width: min(420px, 60%);
}
.elementor-widget-ecomus-hero-images .ecomus-hero-images__subtitle { color:#d4af5a !important; }
.elementor-widget-ecomus-hero-images .ecomus-hero-images__title { color:#fff !important; }
.elementor-widget-ecomus-hero-images .ecomus-hero-images__content .ecomus-button-link { background:#d4af5a; color:#171310; border-color:#d4af5a; }
.elementor-widget-ecomus-hero-images .ecomus-hero-images__content .ecomus-button-link:hover { background:#e5c16c; color:#171310; }
@media (max-width: 767px) {
  .elementor-widget-ecomus-hero-images .ecomus-hero-images__image img { object-position: 50% 18%; }
  .elementor-widget-ecomus-hero-images .ecomus-hero-images__content.em-absolute { inset-inline-start: 16px; inset-inline-end: 16px; bottom: 20px; max-width: none; padding: 20px 22px; border-radius: 12px; }
}

/* cmplz compact banner (audit #24): keep the consent sheet under half the first screen on mobile */
@media (max-width: 600px) {
  .cmplz-cookiebanner {
    max-height: 58vh !important;
    width: calc(100vw - 24px) !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 12px !important;
  }
  .cmplz-cookiebanner .cmplz-header { padding: 10px 14px 0 !important; }
  .cmplz-cookiebanner .cmplz-logo { display: none !important; }
  .cmplz-cookiebanner .cmplz-title { font-size: 15px !important; margin: 0 !important; }
  .cmplz-cookiebanner .cmplz-body { padding: 8px 14px !important; }
  .cmplz-cookiebanner .cmplz-message {
    max-height: 20vh;
    overflow-y: auto;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }
  .cmplz-cookiebanner .cmplz-category .cmplz-description { font-size: 11px !important; }
  .cmplz-cookiebanner .cmplz-buttons .cmplz-btn,
  .cmplz-cookiebanner button { padding: 10px !important; font-size: 14px !important; }
}

/* editorial font pair (audit #26): Frank Ruhl Libre headings + Rubik body */
body, button, input, select, textarea, .elementor-button {
  font-family: 'Rubik', sans-serif !important;
}
h1, h2, h3, h4, h5, h6,
.elementor-heading-title,
.ecomus-heading__title,
.ecomus-hero-images__title,
.woocommerce-products-header__title,
.product_title,
.ecomus-products-carousel__title {
  font-family: 'Frank Ruhl Libre', serif !important;
}

/* brand palette unification (user-approved): badges and category pills in black+gold */
.woocommerce-badge,
.woocommerce-badge.new,
.product-category-badge,
span.onsale {
  background-color: #1c1c1c !important;
  color: #d4af5a !important;
}
span.onsale { direction: ltr; unicode-bidi: embed; }

/* motion touches (user-approved), reduced-motion safe */
@media (prefers-reduced-motion: no-preference) {
  ul.products li.product .woocommerce-LoopProduct-link img,
  .products .product .woocommerce-LoopProduct-link img {
    transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: transform;
  }
  ul.products li.product:hover .woocommerce-LoopProduct-link img,
  .products .product:hover .woocommerce-LoopProduct-link img {
    transform: scale(1.06);
  }
  ul.products li.product .woocommerce-LoopProduct-link,
  .products .product .woocommerce-LoopProduct-link {
    overflow: hidden;
  }
  body.cholo-anim .e-con.e-parent,
  body.cholo-anim .elementor-top-section {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  body.cholo-anim .e-con.e-parent.cholo-in,
  body.cholo-anim .elementor-top-section.cholo-in {
    opacity: 1;
    transform: none;
  }
}
