/* CamExpert 17.4 – scoped catalog/mobile changes. Preserve desktop product designer. */
/* Hide legacy quick view universally; purchase and product links stay functional. */
body.ce-site .ce-product-card :is(.ce-quickview,.quick-view,.yith-wcqv-button,[class*="quickview"],[class*="quick-view"]){display:none!important}
/* Out-of-stock cards keep their native "Още" link. Hide ONLY the waitlist action on cards. */
body.ce-site .ce-product-card .ce-card-actions :is(.xoo-wl-action-btn,.xoo-wl-btn,.xoo-wl-button,[class*="waitlist"],[class*="wait-list"]){display:none!important}
/* Icon added through CSS: link and WooCommerce event handlers remain unchanged. */
body.ce-site ul.products li.product .ce-card-actions .ce-buy-card-button:before{
 content:"";display:inline-block;flex:0 0 19px;width:19px;height:19px;
 background:url('cart-buy-1711.svg') center / contain no-repeat;
 margin-inline-end:7px;vertical-align:middle
}
body.ce-site .ce-brand-shortcuts .ce-brand-shortcut-image{background:transparent!important}
body.ce-site .ce-brand-shortcuts .ce-brand-shortcut-image>img{background:transparent!important;object-fit:contain!important;mix-blend-mode:normal!important}
/* Menu of catalog filters remains accessible without JS and non-mobile devices. */
.ce-mobile-filter-button,.ce-mobile-filter-close,.ce-filter-backdrop{display:none}
@media(max-width:767px){
 /* Category and shop list titles are visible to screen readers and desktop users. */
 body.ce-site:is(.post-type-archive-product,.tax-product_cat,.tax-product_tag,.tax-product_brand)
   .woocommerce-products-header :is(h1,.page-title,.woocommerce-products-header__title){
   position:absolute!important;width:1px!important;height:1px!important;padding:0!important;
   margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;
   white-space:nowrap!important;border:0!important
 }
 /* Compact specs fit without oversized green pills on two-column mobile cards. */
 body.ce-site ul.products li.product ul.ce-card-features{gap:4px 5px!important;margin-bottom:12px!important;min-height:0!important}
 body.ce-site ul.products li.product ul.ce-card-features>li{
   padding:2px 6px!important;font-size:10px!important;line-height:1.27!important;
   border-radius:16px;gap:3px!important;max-width:100%;overflow-wrap:anywhere
 }
 body.ce-site ul.products li.product ul.ce-card-features>li svg{width:10px!important;height:10px!important;flex:none}
 body.ce-site ul.products li.product .ce-card-actions .ce-buy-card-button{min-height:44px;padding:9px 8px;font-size:14px;gap:0}
 body.ce-site ul.products li.product .ce-card-actions .ce-buy-card-button:before{width:16px;height:16px;flex-basis:16px;margin-inline-end:6px}
 /* All three tabs on a single line on 320–430 px screens. */
 body.ce-site .ce-explorer-v10 .ce-explorer-toolbar{width:100%;min-width:0;display:flex;flex-direction:row;align-items:stretch;margin-bottom:18px}
 body.ce-site .ce-explorer-v10 .ce-collection-modes{
   display:flex!important;flex-wrap:nowrap!important;gap:3px!important;padding:4px!important;
   width:100%;max-width:100%;min-width:0;border-radius:50px
 }
 body.ce-site .ce-explorer-v10 .ce-collection-modes>a{
   flex:1 1 0!important;min-width:0!important;white-space:nowrap!important;
   font-size:clamp(10px,2.95vw,13px)!important;line-height:1.2!important;
   padding:11px 3px!important;text-align:center;border-radius:40px
 }
 body.ce-site .ce-explorer-v10 .ce-explorer-status{display:none!important}
 /* Mobile filter action is floating, never a giant box above the catalog. */
 body.ce-mobile-filters-ready .ce-mobile-filter-button{
   position:fixed;z-index:2147482000;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));
   display:flex!important;align-items:center;justify-content:center;gap:9px;min-height:54px;
   padding:12px 19px;background:#fff;color:#182d23;border:1px solid #e2eae4;
   border-radius:32px;box-shadow:0 9px 30px #102e2438;font-size:17px;font-weight:700;
   line-height:1.1;cursor:pointer
 }
 body.ce-mobile-filters-ready .ce-mobile-filter-button svg{width:21px;height:21px;flex-shrink:0;color:#14291f}
 body.ce-mobile-filters-ready.ce-mobile-filters-open .ce-mobile-filter-button{visibility:hidden;pointer-events:none}
 body.ce-mobile-filters-ready .ce-filter-backdrop{display:none;position:fixed;inset:0;background:#091b1390;z-index:2147482001}
 body.ce-mobile-filters-ready.ce-mobile-filters-open .ce-filter-backdrop{display:block}
 body.ce-mobile-filters-ready .ce-shop-sidebar{
   position:fixed!important;z-index:2147482002;left:0!important;right:0!important;
   top:auto!important;bottom:0!important;width:100%!important;max-width:none!important;
   height:min(84dvh,790px)!important;max-height:84dvh;overflow-y:auto;overscroll-behavior:contain;
   padding:15px 17px calc(20px + env(safe-area-inset-bottom))!important;margin:0!important;
   border-radius:22px 22px 0 0;background:#fbfefc;box-shadow:0 -15px 45px #091a1230;
   transform:translateY(110%);opacity:0;visibility:hidden;pointer-events:none;
   transition:transform .25s ease,opacity .25s ease,visibility .25s
 }
 body.ce-mobile-filters-ready.ce-mobile-filters-open .ce-shop-sidebar{
   transform:translateY(0);opacity:1;visibility:visible;pointer-events:auto
 }
 body.ce-mobile-filters-ready .ce-filter-panel{background:transparent!important;border:none!important;box-shadow:none!important;padding:0 2px!important}
 body.ce-mobile-filters-ready .ce-filter-panel>summary{padding:12px 52px 16px 0!important;font-size:19px!important}
 body.ce-mobile-filters-ready .ce-mobile-filter-close{
   display:flex!important;position:sticky;float:right;top:0;z-index:4;align-items:center;
   justify-content:center;background:#e9f5ee;color:#153b29;border:1px solid #cfe4d7;
   width:40px;height:40px;border-radius:50%;font-size:27px;line-height:1;cursor:pointer
 }
 body.ce-mobile-filters-open{overflow:hidden!important}
}
@media(max-width:360px){
 body.ce-site .ce-explorer-v10 .ce-collection-modes>a{font-size:10px!important;padding:10px 1px!important}
 body.ce-site ul.products li.product ul.ce-card-features>li{font-size:9px!important;padding:2px 4px!important}
}
@media(prefers-reduced-motion:reduce){body.ce-mobile-filters-ready .ce-shop-sidebar{transition:none}}

/* 17.12.3: clear, larger Buy label on ALL breakpoints, for available simple products.
   This changes typography only; WooCommerce link/AJAX semantics remain untouched. */
html body.ce-site ul.products li.product .ce-card-actions a.ce-buy-card-button,
html body.ce-site .ce-product-card .ce-card-actions a.ce-buy-card-button {
  font-size:18px !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  letter-spacing:0 !important;
  text-align:center;
}
@media(max-width:767px) {
  html body.ce-site ul.products li.product .ce-card-actions a.ce-buy-card-button,
  html body.ce-site .ce-product-card .ce-card-actions a.ce-buy-card-button {
    font-size:17px !important;
    font-weight:800 !important;
  }
}

/* 17.12.6 — all product-card primary actions share identical typography and sizing.
   In-stock "Купи" retains its cart icon; out-of-stock "Още" keeps its native link.
   Applies to both the home product slider and WooCommerce catalogue, desktop/mobile. */
html body.ce-site ul.products li.product .ce-card-actions > a.button,
html body.ce-site .ce-product-card .ce-card-actions > a.button {
  width: 100% !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  padding: 11px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  white-space: normal !important;
}
@media (max-width: 767px) {
  html body.ce-site ul.products li.product .ce-card-actions > a.button,
  html body.ce-site .ce-product-card .ce-card-actions > a.button {
    min-height: 48px !important;
    padding: 10px 8px !important;
    font-size: 17px !important;
  }
}

/* 17.12.7: parity of "Още" / "Купи" in the ACTUAL card layout.
   Earlier rules targeted the button but did not lock the entire action row,
   and "Купи" had its own higher-specificity font rule.
   This is strictly scoped to CamExpert WooCommerce cards. */
html body.ce-site ul.products li.product.ce-product-card {
  height: 100% !important;
}
html body.ce-site ul.products li.product.ce-product-card .ce-card-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}
html body.ce-site ul.products li.product.ce-product-card .ce-card-actions {
  display: flex !important;
  width: 100% !important;
  height: 64px !important;
  min-height: 64px !important;
  flex: 0 0 64px !important;
  margin: auto 0 0 !important;
  padding: 10px 0 2px !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  box-sizing: border-box !important;
}
html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.button,
html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.ce-card-primary-action {
  display: inline-flex !important;
  width: 100% !important;
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
  flex: 1 1 100% !important;
  margin: 0 !important;
  padding: 0 12px !important;
  box-sizing: border-box !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: stretch !important;
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  text-align: center !important;
  text-decoration: none !important;
  white-space: normal !important;
}
@media (max-width: 767px) {
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.button,
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.ce-card-primary-action {
    font-size: 17px !important;
    font-weight: 800 !important;
    padding: 0 8px !important;
  }
}



/* 17.12.8 — mobile action parity: real link box and parent action slot.
   Both "Още" and "Купи" are native WooCommerce links. The product shelf
   and two-column shop have uneven text heights, so the card itself must
   stretch and the action region must stay at the same vertical position. */
@media (max-width: 767px) {
  html body.ce-site ul.products.ce-products > li.product.ce-product-card,
  html body.ce-site .ce-product-shelf ul.products > li.product.ce-product-card,
  html body.ce-site .ce-explorer-v10 ul.products > li.product.ce-product-card {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  html body.ce-site ul.products li.product.ce-product-card > .ce-card-body {
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding-bottom: 0 !important;
  }
  html body.ce-site ul.products li.product.ce-product-card .ce-card-features {
    flex: 0 0 auto !important;
    margin-bottom: 0 !important;
  }
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions {
    display: flex !important;
    flex: 0 0 72px !important;
    flex-direction: row !important;
    align-items: flex-end !important;
    justify-content: stretch !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    margin: auto 0 0 !important;
    padding: 12px 0 2px !important;
    box-sizing: border-box !important;
    gap: 0 !important;
  }
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a:is(.button,.ce-card-primary-action) {
    display: inline-flex !important;
    flex: 1 1 100% !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-end !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 58px !important;
    min-height: 58px !important;
    max-height: 58px !important;
    margin: 0 !important;
    padding: 0 8px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    font-family: inherit !important;
    font-size: 19px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  /* Keep Buy's icon but don't shrink its label, or create one on More. */
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.ce-buy-card-button::before {
    flex: 0 0 18px !important;
    width: 18px !important;
    height: 18px !important;
    margin-inline-end: 7px !important;
  }
}
@media (max-width: 350px) {
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a:is(.button,.ce-card-primary-action) {
    font-size: 17px !important;
  }
}

/* 17.12.9 — compact, equal mobile Buy/More buttons (desktop unchanged). */
@media (max-width:767px) {
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions {
    height:54px!important;min-height:54px!important;max-height:54px!important;flex:0 0 54px!important;
    padding:7px 0 3px!important;align-items:flex-end!important;gap:0!important;
  }
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a:is(.button,.ce-card-primary-action) {
    width:100%!important;height:44px!important;min-height:44px!important;max-height:44px!important;
    padding:0 7px!important;font-size:15px!important;font-weight:750!important;line-height:1.15!important;
    flex:1 1 100%!important;align-self:flex-end!important;border-radius:10px!important;
  }
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a.ce-buy-card-button::before {
    flex:0 0 16px!important;width:16px!important;height:16px!important;margin-inline-end:6px!important;
  }
}
@media(max-width:350px){
  html body.ce-site ul.products li.product.ce-product-card .ce-card-actions > a:is(.button,.ce-card-primary-action){font-size:14px!important}
}
