/* Product controls are rendered in PHP; only native commerce actions handle clicks. */
body:is(.sakhre-site,.campina-independent) #hikashop_product_left_part{position:relative}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions.sakhre-product-actions{position:absolute;left:12px;top:12px;z-index:12;display:flex;flex-direction:column;gap:8px;margin:0!important;padding:0!important;width:44px}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-wishlist-slot{display:contents}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions :is(.sakhre-wishlist-slot>a,.sakhre-wishlist-slot>button,.sakhre-product-compare){display:flex!important;align-items:center;justify-content:center;box-sizing:border-box;width:44px!important;min-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;background:#fff!important;border:1px solid #e3e7df!important;border-radius:50%!important;box-shadow:0 2px 8px #0000000a!important;font-size:0!important;line-height:0!important;color:#697366!important;cursor:pointer}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-wishlist-slot>:is(a,button)>svg{display:none!important}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-wishlist-slot>:is(a,button)>span,body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-product-compare>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-wishlist-slot>:is(a,button):before{content:'';display:block;width:22px;height:22px;flex:0 0 22px;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d51c2b'%3E%3Cpath d='M20 5c-3-3-7-1-8 2-1-3-5-5-8-2-5 5 1 11 8 16 7-5 13-11 8-16Z'/%3E%3C/svg%3E")}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-product-compare svg{display:block;width:22px;height:22px}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-product-compare[aria-pressed=true]{background:#fff0ec!important;border-color:currentColor!important}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-compare-open{position:absolute;left:52px;top:0;display:block;white-space:nowrap;padding:8px 12px;background:#fff;border:1px solid #e3e7df;border-radius:6px;font-size:calc(12px * var(--campina-font-scale,1.1));line-height:1.8;color:inherit}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-compare-open[hidden]{display:none!important}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-compare-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:800px){
 body:is(.sakhre-site,.campina-independent) .campina-short-specs,body:is(.sakhre-site,.campina-independent) .sakhre-product-quick{display:none!important}
}

/* Native code, manufacturer and rating share the first metadata row. */
body.sakhre-site .sakhre-product-meta,body.campina-independent .campina-product-meta{display:flex!important;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px 14px!important;margin-block:12px!important;padding:0!important;border:0!important}
body.sakhre-site .sakhre-product-code,body.campina-independent .campina-product-code{order:0;display:flex;align-items:center;gap:4px;margin:0!important}
body.sakhre-site .sakhre-product-brand,body.campina-independent .campina-product-manufacturer{order:1;margin:0!important}
body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini{order:2;margin:0!important;padding:0!important;border:0!important;min-height:0!important}
@media(max-width:800px){
 body.sakhre-site .sakhre-product-layout{gap:12px!important}
 body.sakhre-site .sakhre-product-info{padding-bottom:0!important;margin-bottom:0!important}
 body.sakhre-site .sakhre-product-meta,body.campina-independent .campina-product-meta{gap:6px 10px!important;margin-block:10px 0!important;font-size:calc(10px * var(--campina-font-scale,1.1))!important}
 body.sakhre-site .sakhre-product-code,body.sakhre-site .sakhre-product-brand,body.campina-independent .campina-product-code,body.campina-independent .campina-product-manufacturer{font-size:calc(10px * var(--campina-font-scale,1.1))!important;line-height:1.6!important}
 body.sakhre-site .sakhre-product-brand a{padding:3px 5px!important}
 body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rating{font-size:calc(12px * var(--campina-font-scale,1.1))!important;white-space:nowrap}
 body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rate-star{width:13px!important;font-size:calc(13px * var(--campina-font-scale,1.1))!important}
}

body:is(.sakhre-site,.campina-independent) .storefront-image-actions.sakhre-product-actions{left:auto;right:12px}
body:is(.sakhre-site,.campina-independent) .storefront-image-actions .sakhre-compare-open{left:auto;right:52px}
body:is(.sakhre-site,.campina-independent) :is(.sakhre-product-tabs,.campina-product-tabs){position:sticky!important;top:var(--storefront-sticky-top,62px)!important;z-index:900;background:#fff!important;margin-block:12px!important;box-shadow:0 3px 10px #00000008;flex-wrap:nowrap!important;overflow-x:auto;white-space:nowrap;border-bottom:1px solid #e3e7df}
html:has(.storefront-image-actions){scroll-padding-top:calc(var(--storefront-sticky-top,62px) + 64px)}
body:has(.storefront-image-actions) :is(#hikashop_product_description_main,#campina-product-specifications,#sakhre-specifications,#hikashop_vote_form,#hikashop_comment_form,#hikashop_submodules){scroll-margin-top:8px!important}
@media(max-width:800px){body:is(.sakhre-site,.campina-independent) :is(.sakhre-product-tabs,.campina-product-tabs){padding:6px 10px!important;gap:18px!important;border-radius:0!important;min-height:44px;box-sizing:border-box}body:is(.sakhre-site,.campina-independent) :is(.sakhre-product-tabs,.campina-product-tabs) a{font-size:calc(11px * var(--campina-font-scale,1.1))!important;padding-block:8px!important}}

@media(max-width:800px){
 body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rate-star{width:16px!important;min-width:16px!important;height:16px!important;font-size:calc(16px * var(--campina-font-scale,1.1))!important;flex:0 0 16px;box-sizing:content-box}
 body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rating{overflow:visible!important;min-width:80px;direction:ltr}
 body.sakhre-site .sakhre-product-layout{gap:6px!important}
 body.sakhre-site .sakhre-product-layout #hikashop_main_image{margin-block:0!important}
}

/* Separate compact purchase dock; the original price and native controls stay in place. */
.storefront-mobile-purchase{display:none}
@media(max-width:800px){
 body:has(.storefront-image-actions){padding-bottom:142px!important}
 body .storefront-mobile-purchase:not([hidden]){position:fixed;left:0;right:0;bottom:calc(62px + env(safe-area-inset-bottom,0px));z-index:950;display:grid;grid-template-columns:minmax(90px,1fr) 78px minmax(95px,1.05fr);align-items:center;gap:8px;padding:8px 12px;min-height:60px;box-sizing:border-box;background:#fff;border-top:1px solid #e3e7df;box-shadow:0 -3px 12px #0000000a;direction:rtl}
 body .storefront-mobile-purchase[hidden]{display:none!important}
 body .storefront-sticky-price{font-size:calc(13px * var(--campina-font-scale,1.1))!important;font-weight:700;line-height:1.5;color:#27312d;min-width:0;overflow-wrap:normal;text-align:right}
 body .storefront-sticky-quantity[hidden]{display:none!important}
 body .storefront-sticky-quantity{display:grid;grid-template-columns:24px 28px 24px;align-items:center;direction:rtl;border:1px solid #e3e7df;border-radius:6px;background:#f7f8f4;height:42px;box-sizing:border-box}
 body .storefront-sticky-quantity button{width:24px;height:40px;border:0;padding:0;background:transparent;color:#465346;font-size:calc(19px * var(--campina-font-scale,1.1))!important;line-height:1;cursor:pointer}
 body .storefront-sticky-quantity output{display:block;min-width:0;text-align:center;font-size:calc(13px * var(--campina-font-scale,1.1))!important;line-height:1.4;color:#27312d}
 body .storefront-sticky-buy{width:100%;min-width:0;min-height:44px;height:44px;border:0;border-radius:6px;background:var(--orange,var(--red,#d21c2b));color:#fff;padding:4px 6px;font-size:calc(11px * var(--campina-font-scale,1.1))!important;line-height:1.5;cursor:pointer;font-weight:700}
 body .storefront-sticky-buy:disabled{opacity:.55;cursor:wait}
 body:has(.storefront-image-actions) #goftino_w{bottom:136px!important}
 body.campina-independent:has(.storefront-image-actions) .campina-content-layout{padding-top:4px!important}
 body.campina-independent:has(.storefront-image-actions) .breadcrumb{margin-bottom:8px!important;padding-bottom:0!important}
 body.campina-independent:has(.storefront-image-actions) #hikashop_product_top_part{margin:0!important;padding:0!important;min-height:0!important}
}
@media(max-width:360px){body .storefront-mobile-purchase:not([hidden]){padding-inline:8px;gap:6px;grid-template-columns:minmax(84px,1fr) 78px minmax(92px,1fr)}body .storefront-sticky-price{font-size:calc(12px * var(--campina-font-scale,1.1))!important}body .storefront-sticky-buy{font-size:calc(10px * var(--campina-font-scale,1.1))!important}}

/* Keep the native gallery and its controls above sticky navigation and chat. */
body:is(.sakhre-site,.campina-independent) .fancybox__container{--fancybox-zIndex:2147483000;z-index:2147483000!important}
body:is(.sakhre-site,.campina-independent) .fancybox__container .fancybox__toolbar{opacity:1!important;visibility:visible!important;transform:none!important;background:rgba(20,24,22,.88)}
body:is(.sakhre-site,.campina-independent) .fancybox__container .fancybox__nav .f-button{background:rgba(20,24,22,.75);color:#fff;border-radius:50%}
body:is(.sakhre-site,.campina-independent) .fancybox__container [data-fancybox-close]{background:#fff0f1;color:#b61a26;border-radius:8px}

/* Center the native rating glyphs on the SKU/brand row, without exposing the no-JS fallback twice. */
body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hikashop_vote_stars{display:flex;align-items:center;line-height:16px;min-height:16px}
body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rating:not(.storefront-rating-initial){display:inline-flex!important;align-items:center;height:16px;line-height:16px;margin:0!important;direction:ltr}
body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hk-rate-star{width:16px!important;min-width:16px!important;height:16px!important;flex:0 0 16px;vertical-align:middle!important}
body:is(.sakhre-site,.campina-independent) #hikashop_product_vote_mini .hikashop_vote_notification_mini:empty{display:none}

@media(min-width:801px){
 body.campina-independent .campina-short-specs{background:transparent;border:0;border-radius:0;padding:0;gap:8px;margin:12px 0;grid-template-columns:repeat(2,minmax(0,1fr))}
 body.campina-independent .campina-short-specs>div{border:1px solid #eceee8;border-radius:6px;background:#fafbf8;padding:8px 12px;min-height:0;line-height:1.7}
 body.campina-independent .campina-short-specs>div>span{font-size:calc(11px * var(--campina-font-scale,1.1));color:#858b80;margin:0 0 3px;display:block}
 body.campina-independent .campina-short-specs>div>strong{font-size:calc(12px * var(--campina-font-scale,1.1));font-weight:400;color:#62695f;line-height:1.7}
 body.campina-independent .campina-short-specs .campina-specs-jump{font-size:calc(11px * var(--campina-font-scale,1.1));color:#8a9085;padding:2px 0;margin:0}
}
