/*
 * Office Choice Kenya — catalogue hard fix
 * v0.9.6
 * Final loaded layer for active shop/home product cards + sort dropdown.
 * Header intentionally excluded.
 */

/* --------------------------------------------------------------------------
   Product cards: eliminate legacy warm/pink donor tones at their actual
   high-specificity v4/v5 selectors and keep all commerce text readable.
   -------------------------------------------------------------------------- */
html body.ock-site .ock-product-card-v5,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v5,
html body.ock-site .ock-home-product{
  background:#E6EDEF!important;
  border-color:rgba(255,255,255,.86)!important;
  color:#102E36!important;
  box-shadow:10px 10px 24px rgba(75,98,105,.20),-10px -10px 24px rgba(255,255,255,.96)!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body.ock-site .ock-product-card-v5:hover,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4:hover,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v5:hover,
html body.ock-site .ock-home-product:hover{
  border-color:rgba(8,164,193,.24)!important;
  box-shadow:14px 14px 30px rgba(75,98,105,.22),-12px -12px 28px rgba(255,255,255,.98)!important;
}
html body.ock-site .ock-product-card-v5 .ock-product-card__media,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__media,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v5 .ock-product-card__media,
html body.ock-site .ock-home-product__media{
  background:#E6EDEF!important;
  border-color:rgba(255,255,255,.72)!important;
  box-shadow:inset 7px 7px 15px rgba(75,98,105,.18),inset -7px -7px 15px rgba(255,255,255,.92)!important;
}
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__media{
  border-bottom-color:rgba(16,46,54,.08)!important;
}
html body.ock-site .ock-product-card-v5 .ock-product-card__meta,
html body.ock-site .ock-product-card-v5 .ock-product-card__meta a,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__meta,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__meta a,
html body.ock-site .ock-product-card__category,
html body.ock-site .ock-product-card__category a,
html body.ock-site .ock-home-product__category{
  color:#14758A!important;
  opacity:1!important;
  visibility:visible!important;
}
html body.ock-site .ock-product-card-v5 .ock-product-card__title,
html body.ock-site .ock-product-card-v5 .ock-product-card__title a,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__title,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__title a,
html body.ock-site .ock-home-product h3,
html body.ock-site .ock-home-product h3 a{
  color:#102E36!important;
  opacity:1!important;
  visibility:visible!important;
}
html body.ock-site .ock-product-card-v5 .ock-price,
html body.ock-site .ock-product-card-v5 .ock-price ins,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-price,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-price ins,
html body.ock-site .ock-home-product__price,
html body.ock-site .ock-home-product__price ins{
  color:#102E36!important;
  opacity:1!important;
  visibility:visible!important;
}
html body.ock-site .ock-product-card-v5 .ock-price del,
html body.ock-site .ock-product-card-v5 .ock-price del *,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-price del,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-price del *,
html body.ock-site .ock-home-product__price del,
html body.ock-site .ock-home-product__price del *{
  color:#667A80!important;
  opacity:1!important;
}
html body.ock-site .ock-product-card-v5 .ock-stock,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-stock,
html body.ock-site .ock-home-product .ock-stock{
  color:#315B53!important;
  background:rgba(31,122,82,.07)!important;
  opacity:1!important;
}
html body.ock-site .ock-product-card-v5 .ock-badge--sale,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-badge--sale,
html body.ock-site .ock-home-product .ock-badge--sale{
  background:#174D5B!important;
  border-color:#174D5B!important;
  color:#fff!important;
}

/* WhatsApp must remain the unmistakable primary action. The older v5 button
   selector had greater specificity than previous green overrides. */
html body.ock-site .ock-product-card-v5 .ock-product-card__actions .ock-product-card__whatsapp-primary,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__actions .ock-product-card__whatsapp-primary,
html body.ock-site .ock-home-product .ock-home-product__actions .ock-home-product__whatsapp--primary,
html body.ock-site .ock-product-card-v5 .ock-product-card__actions a[data-ock-action="whatsapp_click"]{
  background:#25D366!important;
  border-color:#25D366!important;
  color:#fff!important;
  opacity:1!important;
  box-shadow:6px 6px 14px rgba(31,151,73,.24),-5px -5px 13px rgba(255,255,255,.90)!important;
}
html body.ock-site .ock-product-card-v5 .ock-product-card__actions .ock-product-card__whatsapp-primary:hover,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__actions .ock-product-card__whatsapp-primary:hover,
html body.ock-site .ock-home-product .ock-home-product__actions .ock-home-product__whatsapp--primary:hover{
  background:#20C760!important;
  border-color:#20C760!important;
  color:#fff!important;
}
html body.ock-site .ock-product-card-v5 .ock-product-card__actions .ock-product-card__whatsapp-primary *,
html body.ock-site .ock-elementor-product-archive .ock-product-card-v4 .ock-product-card__actions .ock-product-card__whatsapp-primary *,
html body.ock-site .ock-home-product .ock-home-product__actions .ock-home-product__whatsapp--primary *{
  color:#fff!important;
  opacity:1!important;
}

/* --------------------------------------------------------------------------
   Shop sorting: make the dropdown an explicit top-level visible surface.
   Historical cards/transforms were creating competing stacking contexts.
   -------------------------------------------------------------------------- */
html body.ock-site .ock-shop-toolbar-v6,
html body.ock-site .ock-shop-toolbar-v6 .ock-shop-toolbar__actions,
html body.ock-site .ock-shop-toolbar-v6 .ock-shop-ordering,
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu{
  overflow:visible!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-shop-ordering,
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu{
  position:relative!important;
  z-index:120!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu[open]{
  z-index:2147481000!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:0!important;
  left:auto!important;
  z-index:2147481001!important;
  display:grid!important;
  width:min(280px,calc(100vw - 24px))!important;
  min-width:220px!important;
  max-height:min(420px,70vh)!important;
  overflow:auto!important;
  padding:8px!important;
  margin:0!important;
  background:#E6EDEF!important;
  border:1px solid rgba(255,255,255,.92)!important;
  border-radius:10px!important;
  box-shadow:12px 12px 28px rgba(75,98,105,.24),-10px -10px 24px rgba(255,255,255,.98)!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a,
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a span{
  color:#102E36!important;
  opacity:1!important;
  visibility:visible!important;
  text-decoration:none!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a{
  min-height:44px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:0 12px!important;
  background:transparent!important;
  border-radius:7px!important;
  font-size:13px!important;
  font-weight:700!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a:hover{
  background:rgba(20,117,138,.09)!important;
  color:#14758A!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a.is-active{
  background:#D8E4E7!important;
  color:#174D5B!important;
  box-shadow:inset 3px 3px 7px rgba(75,98,105,.16),inset -3px -3px 7px rgba(255,255,255,.88)!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown a b{
  display:inline-flex!important;
  align-items:center!important;
  min-height:22px!important;
  padding:0 7px!important;
  border-radius:5px!important;
  background:#14758A!important;
  color:#fff!important;
  opacity:1!important;
  font-size:9px!important;
  letter-spacing:.04em!important;
}
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu>summary,
html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu>summary span{
  color:#102E36!important;
  opacity:1!important;
  visibility:visible!important;
}

@media(max-width:767px){
  html body.ock-site .ock-shop-toolbar-v6 .ock-sort-menu__dropdown{
    width:min(260px,calc(100vw - 20px))!important;
    min-width:0!important;
    right:0!important;
  }
}
