html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Shop UI: header icons (account, search, cart), search overlay, mobile bottom menu. Loaded on every page when WooCommerce is active. */
.mp-cart-count{position:absolute;top:-3px;right:-3px;min-width:18px;height:18px;padding:0 5px;border-radius:99px;background:var(--mp-accent);color:#fff;font-size:.66rem;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
.mp-cart-count[data-n="0"]{display:none}
.hs{display:flex;align-items:center;gap:6px}
.hs-btn,.hs-user{position:relative;display:inline-grid;place-items:center;border:1px solid var(--mp-border);background:#fff;color:var(--mp-text);cursor:pointer;transition:border-color .2s,color .2s,background .2s,transform .2s}
.hs-btn{width:42px;height:42px;border-radius:50%}
.hs-btn:hover,.hs-user:hover,.hs-acc.is-open .hs-user{border-color:var(--mp-accent);color:var(--mp-accent)}
.hs-user{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 12px 0 5px;border-radius:999px;font:inherit;font-size:.86rem;font-weight:700}
.hs-av{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--mp-soft);color:var(--mp-accent)}
.hs-name{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-chev{transition:transform .2s;color:var(--mp-muted)}.hs-acc.is-open .hs-chev{transform:rotate(180deg)}
.hs-acc{position:relative}
.hs-menu{position:absolute;right:0;top:calc(100% + 10px);z-index:80;min-width:200px;padding:8px;background:#fff;border:1px solid var(--mp-border);border-radius:18px;box-shadow:var(--sh-md);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .2s,transform .25s var(--ease),visibility 0s .25s}
.hs-acc.is-open .hs-menu{opacity:1;visibility:visible;transform:none;transition-delay:0s}
.hs-menu a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;font-size:.88rem;font-weight:600;color:#2a3550}
.hs-menu a:hover{background:var(--mp-soft);color:var(--mp-accent)}.hs-menu a.is-out{color:#c0392b}.hs-menu a.is-out:hover{background:#fdecea;color:#c0392b}
.mp-hs-nocta .nav-cta,.mp-hs-nocta .nav-cta-m{display:none}
@media (max-width:900px){
	.hs-name,.hs-chev{display:none}.hs-user{width:42px;padding:0;justify-content:center}.hs-av{background:none;width:auto;height:auto}
	.mp-has-mobnav .hs-acc{display:none}
}
@media (max-width:420px){.hs{gap:4px}.hs-btn,.hs-user{width:38px;height:38px}}

/* search overlay */
.hs-search{position:fixed;inset:0;z-index:300}.hs-search[hidden]{display:none}
.hs-search-bg{position:absolute;inset:0;background:rgba(11,18,38,.5);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.hs-search-box{position:relative;width:min(640px,calc(100% - 28px));margin:min(14vh,110px) auto 0;background:#fff;border-radius:24px;box-shadow:0 30px 80px rgba(11,18,38,.35);overflow:hidden;animation:hsIn .3s var(--ease)}
@keyframes hsIn{from{opacity:0;transform:translateY(-14px) scale(.98)}to{opacity:1;transform:none}}
.hs-search-form{display:flex;align-items:center;gap:12px;padding:8px 10px 8px 20px;color:var(--mp-muted)}
.hs-search-form input[type=search]{flex:1;min-width:0;border:0;outline:0;background:none;font:inherit;font-size:1.02rem;color:var(--mp-text);padding:14px 0;-webkit-appearance:none;appearance:none}
.hs-x{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--mp-soft);color:var(--mp-text);cursor:pointer}
.hs-results:not(:empty){border-top:1px solid var(--mp-border);max-height:min(56vh,440px);overflow:auto;padding:8px}
.hs-item{display:flex;align-items:center;gap:12px;padding:8px;border-radius:14px}.hs-item:hover,.hs-item:focus-visible{background:var(--mp-soft)}
.hs-item img{width:52px;height:52px;border-radius:10px;object-fit:cover;object-position:top;background:var(--mp-soft);flex:none}
.hs-item b{display:block;font-size:.9rem;line-height:1.3}.hs-item small{color:var(--mp-accent);font-weight:800;font-size:.82rem}
.hs-msg{padding:16px;text-align:center;color:var(--mp-muted);font-size:.9rem}
.hs-all{display:block;margin:4px 8px 6px;padding:11px;text-align:center;border-radius:12px;background:var(--mp-soft);color:var(--mp-accent);font-weight:800;font-size:.86rem}
body.hs-lock{overflow:hidden}

/* mobile bottom menu: icon + label, active item uses the theme brand gradient */
.mobnav{display:none}
@media (max-width:900px){
	body.mp-has-mobnav{padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))}
	.mobnav{display:block;position:fixed;left:0;right:0;bottom:0;z-index:70;padding:0 12px calc(12px + env(safe-area-inset-bottom,0px));pointer-events:none}
	.mobnav ul{display:flex;align-items:stretch;justify-content:space-between;gap:2px;max-width:460px;margin:0 auto;padding:6px;background:rgba(255,255,255,.97);border:1px solid var(--mp-border);border-radius:24px;box-shadow:0 12px 34px rgba(11,18,38,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);pointer-events:auto}
	.mobnav li{flex:1 1 0;min-width:0;display:flex}
	.mobnav a{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:54px;padding:7px 2px;border-radius:18px;color:var(--mp-text);transition:background .2s,color .2s,transform .2s,box-shadow .2s}
	.mobnav a:active{transform:scale(.94)}
	.mobnav-l{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.68rem;font-weight:700;line-height:1.1}
	.mobnav a.is-active{background:linear-gradient(135deg,var(--mp-accent),var(--mp-accent-2));color:#fff;box-shadow:0 8px 18px rgba(11,18,38,.18)}
	.mobnav .mp-cart-count{top:3px;left:calc(50% + 5px);right:auto;background:var(--mp-text);color:#fff;box-shadow:0 0 0 2px #fff}
	.mobnav a.is-active .mp-cart-count{background:var(--mp-text)}
	.mobnav-dot{position:absolute;top:8px;right:calc(50% - 17px);width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 2px #fff}
}

/* cart + checkout: full 1300px width (the checkout / cart plugin controls the inner layout) */
.woocommerce-checkout .site-main .mp-container,.woocommerce-cart .site-main .mp-container{max-width:1300px}
.woocommerce-checkout .mp-prose,.woocommerce-cart .mp-prose{max-width:none;margin-inline:0}

/* order popup */
.op{position:fixed;bottom:20px;z-index:90;display:flex;align-items:center;gap:12px;width:min(340px,calc(100vw - 24px));padding:10px 34px 10px 10px;background:#fff;border:1px solid var(--mp-border);border-radius:16px;box-shadow:0 14px 38px rgba(11,18,38,.18);opacity:0;transform:translateY(16px) scale(.98);transition:opacity .35s,transform .4s var(--ease)}
.op[hidden]{display:none}.op.is-in{opacity:1;transform:none}
.op-left{left:20px}.op-right{right:20px}
.op-img{flex:none;width:52px;height:52px;border-radius:10px;overflow:hidden;background:var(--mp-soft)}.op-img img{width:100%;height:100%;object-fit:cover;object-position:top}
.op-t{min-width:0;font-size:.8rem;line-height:1.35}
.op-l{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.op-l strong{font-weight:800}.op-l span{color:var(--mp-muted)}
.op-p{display:block;margin-top:1px;color:var(--mp-accent);font-weight:700;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.op-m{display:flex;align-items:center;gap:6px;margin-top:3px;font-size:.72rem;color:var(--mp-muted)}.op-m i{font-style:normal}
.op-v{display:inline-flex;align-items:center;gap:3px;color:#13893f;font-weight:700}
.op-x{position:absolute;top:8px;right:8px;display:grid;place-items:center;width:22px;height:22px;border:0;border-radius:50%;background:var(--mp-soft);color:var(--mp-muted);cursor:pointer}.op-x:hover{color:var(--mp-text)}
body.single-product .op{bottom:96px}
@media (max-width:900px){
	.op{bottom:calc(98px + env(safe-area-inset-bottom,0px));left:12px;right:auto;width:min(320px,calc(100vw - 24px))}
	body:not(.mp-has-mobnav) .op{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
	body.single-product .op{bottom:calc(168px + env(safe-area-inset-bottom,0px))}
	body.single-product:not(.mp-has-mobnav) .op{bottom:calc(86px + env(safe-area-inset-bottom,0px))}
	.op-right{left:auto;right:12px}
}
