/* ===== Cart, account and header icons (all pages) ===== */
button.btn{font-family:inherit;line-height:1.25}
.btn.addc{display:inline-flex;align-items:center;justify-content:center;gap:10px}
.btn.addc svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* header icons */
.hicons{display:flex;align-items:center;gap:10px;flex:none}
.hbtn{position:relative;display:grid;place-items:center;width:46px;height:46px;border-radius:50%;border:1px solid var(--line);background:#fff;color:var(--ink);cursor:pointer;transition:background .25s,border-color .25s,color .25s,transform .25s}
.hbtn:hover{background:var(--tint);border-color:#f3b777;color:var(--od)}
.hbtn:focus-visible{outline:3px solid var(--o);outline-offset:2px}
.hbtn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.hcount{position:absolute;top:-5px;right:-5px;min-width:20px;height:20px;padding:0 5px;border-radius:99px;background:var(--o);color:#fff;font-size:.72rem;font-weight:700;line-height:20px;text-align:center;border:2px solid #fff;box-sizing:content-box}
.hcount[hidden]{display:none}
.hcount.bmp{animation:cxpop .5s cubic-bezier(.2,.9,.3,1.5)}
@keyframes cxpop{40%{transform:scale(1.45)}}
.hbtn[data-account-open].has:after{content:"";position:absolute;right:3px;bottom:3px;width:10px;height:10px;border-radius:50%;background:#1f8a4c;border:2px solid #fff;box-sizing:content-box}
@media(max-width:900px){
.hicons{margin-left:auto;gap:8px}
}
@media(max-width:600px){
.hbtn{width:42px;height:42px}
.hbtn svg{width:20px;height:20px}
}
@media(max-width:360px){
.hicons{gap:6px}
.hbtn{width:38px;height:38px}
}

/* overlay + panels */
html.cx-lock{overflow:hidden}
.cx-ov{position:fixed;inset:0;z-index:88;background:rgba(31,27,24,.5);opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}
.cx-ov.on{opacity:1;visibility:visible}
.cx{position:fixed;top:0;right:0;bottom:0;z-index:90;width:min(430px,100%);background:#fff;display:flex;flex-direction:column;text-align:left;transform:translateX(104%);visibility:hidden;transition:transform .42s cubic-bezier(.2,.8,.2,1),visibility .42s;box-shadow:-30px 0 60px -30px rgba(40,20,0,.5)}
.cx.on{transform:none;visibility:visible}
.cx-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--line)}
.cx-h h2{font-family:var(--h);font-size:1.75rem;font-weight:700;line-height:1;display:flex;align-items:center;gap:10px}
.cx-h h2 small{font-family:var(--b);font-size:.8rem;font-weight:600;background:var(--tint);color:var(--od);border-radius:99px;padding:3px 11px}
.cx-x{display:grid;place-items:center;width:40px;height:40px;border:0;border-radius:50%;background:var(--tint);cursor:pointer;color:var(--ink);transition:background .25s}
.cx-x:hover{background:#ffe6c7}
.cx-x:focus-visible{outline:3px solid var(--o);outline-offset:2px}
.cx-x svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.cx-b{flex:1;overflow-y:auto;padding:18px 20px;overscroll-behavior:contain}
.cx-f{border-top:1px solid var(--line);padding:16px 20px calc(16px + env(safe-area-inset-bottom));background:#fffdf9}

/* free shipping meter */
.cx-ship{background:var(--tint);border-radius:14px;padding:12px 16px;font-size:.88rem;margin-bottom:16px}
.cx-ship .tr{height:7px;border-radius:9px;background:#f0dcc0;margin-top:9px;overflow:hidden}
.cx-ship .tr i{display:block;height:100%;border-radius:9px;background:linear-gradient(90deg,#ffb55a,var(--o));transition:width .6s cubic-bezier(.2,.8,.2,1)}

/* line item */
.cx-line{display:grid;grid-template-columns:78px minmax(0,1fr);gap:14px;padding:4px 0 16px}
.cx-img{height:96px;border-radius:16px;background:linear-gradient(160deg,#fff3e0,#ffe2b8);display:grid;place-items:center;overflow:hidden}
.cx-img img{height:84%;width:auto;filter:drop-shadow(0 6px 6px rgba(90,40,0,.25))}
.cx-t{font-weight:600;line-height:1.25}
.cx-s{font-size:.8rem;color:var(--mute);margin-top:2px}
.cx-p{font-size:.86rem;margin-top:5px;color:var(--mute)}
.cx-p b{color:var(--ink);font-weight:600}
.cx-p s{margin-left:6px}
.cx-r{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.cx-q{display:inline-flex;align-items:center;border:1.5px solid #e7d9c6;border-radius:99px;background:#fff}
.cx-q button{width:34px;height:34px;border:0;background:none;border-radius:99px;font-size:1.15rem;line-height:1;cursor:pointer;color:var(--ink)}
.cx-q button:hover{color:var(--od)}
.cx-q button:focus-visible{outline:3px solid var(--o);outline-offset:1px}
.cx-q output{min-width:24px;text-align:center;font-weight:600;font-size:.95rem}
.cx-lt{font-family:var(--h);font-weight:800;font-size:1.5rem}
.cx-rm{border:0;background:none;color:var(--mute);font:inherit;font-size:.8rem;text-decoration:underline;cursor:pointer;padding:6px 0;margin-top:2px}
.cx-rm:hover{color:#c0392b}
.cx-nudge{display:flex;gap:10px;align-items:center;background:#fff;border:1px dashed #f0b878;border-radius:14px;padding:10px 14px;font-size:.86rem;color:var(--od);font-weight:600}
.cx-nudge svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cx-nudge.ok{border-style:solid;border-color:#bfe6cf;background:#e4f6ec;color:#1f8a4c}

/* totals + buttons */
.cx-tot{display:grid;gap:6px;margin-bottom:14px;font-size:.92rem}
.cx-tot div{display:flex;justify-content:space-between;gap:10px;color:var(--mute)}
.cx-tot .cx-sv{color:#1f8a4c;font-weight:600}
.cx-tot .cx-gt{margin-top:6px;padding-top:10px;border-top:1px solid var(--line);color:var(--ink);font-weight:600;font-size:1.05rem;align-items:baseline}
.cx-tot .cx-gt b{font-family:var(--h);font-size:1.9rem;line-height:1}
.cx-btn{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;padding:14px 18px;border-radius:99px;border:2px solid transparent;font:inherit;font-weight:600;font-size:1rem;cursor:pointer;text-align:center;transition:transform .3s cubic-bezier(.2,.8,.2,1),background .25s,color .25s,border-color .25s,box-shadow .3s}
.cx-btn svg{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cx-btn.pri{background:var(--o);color:#fff;box-shadow:0 14px 26px -14px rgba(242,138,30,.9)}
.cx-btn.pri:hover{background:var(--od);transform:translateY(-2px)}
.cx-btn.wapp{background:#25d366;color:#fff;box-shadow:0 14px 26px -14px rgba(37,211,102,.9)}
.cx-btn.wapp:hover{background:#1fb457;transform:translateY(-2px)}
.cx-btn.out{background:#fff;color:var(--ink);border-color:#e7d9c6;margin-top:10px}
.cx-btn.out:hover{border-color:var(--o);color:var(--od)}
.cx-btn:focus-visible{outline:3px solid var(--ink);outline-offset:2px}
.cx-note{margin-top:12px;text-align:center;font-size:.78rem;color:var(--mute);line-height:1.4}
.cx-cont{display:block;margin:10px auto 0;border:0;background:none;font:inherit;font-size:.86rem;font-weight:600;color:var(--od);cursor:pointer;text-decoration:underline;padding:4px 8px}

/* empty state */
.cx-empty{display:grid;justify-items:center;text-align:center;gap:10px;padding:56px 10px 20px}
.cx-empty i{display:grid;place-items:center;width:84px;height:84px;border-radius:50%;background:var(--tint);color:var(--o)}
.cx-empty i svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.cx-empty h3{font-family:var(--h);font-size:1.7rem}
.cx-empty p{color:var(--mute);max-width:22em;margin-bottom:8px}
.cx-empty .cx-btn{width:auto;padding:13px 34px;text-decoration:none}

/* account */
.ac-hero{display:flex;align-items:center;gap:14px;background:var(--tint);border-radius:18px;padding:16px;margin-bottom:16px}
.ac-av{display:grid;place-items:center;flex:none;width:54px;height:54px;border-radius:50%;background:linear-gradient(135deg,#ffa23d,#e46f08);color:#fff;font-family:var(--h);font-weight:800;font-size:1.7rem}
.ac-av svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ac-hero b{display:block;font-size:1.05rem;line-height:1.2}
.ac-hero div span{font-size:.84rem;color:var(--mute)}
.ac-f{display:grid;gap:12px}
.ac-f label{display:grid;gap:5px;font-size:.84rem;font-weight:600}
.ac-f input,.ac-f textarea{font:inherit;font-weight:400;font-size:.95rem;border:1.5px solid #e7d9c6;border-radius:14px;padding:12px 14px;background:#fff;color:var(--ink);width:100%;transition:border-color .2s,box-shadow .2s}
.ac-f textarea{resize:vertical;min-height:84px}
.ac-f input:focus,.ac-f textarea:focus{outline:0;border-color:var(--o);box-shadow:0 0 0 3px rgba(242,138,30,.2)}
.ac-err{display:none;background:#fff0e0;color:#a24a00;border-radius:12px;padding:10px 14px;font-size:.86rem}
.ac-err.on{display:block}
.ac-d{display:grid;gap:10px;margin-bottom:16px}
.ac-d div{border:1px solid var(--line);border-radius:14px;padding:11px 14px;font-size:.92rem;overflow-wrap:anywhere}
.ac-d small{display:block;color:var(--mute);font-size:.74rem;margin-bottom:1px}
.ac-links{display:grid;gap:8px;margin-top:6px}
.ac-links a,.ac-links button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;font:inherit;font-weight:500;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:14px;padding:12px 14px;cursor:pointer;transition:border-color .25s,background .25s}
.ac-links a:hover,.ac-links button:hover{border-color:#f3b777;background:var(--tint)}
.ac-links svg{width:20px;height:20px;flex:none;color:var(--od);fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

@media(prefers-reduced-motion:reduce){.cx,.cx-ov,.cx-ship .tr i{transition:none!important}.hcount.bmp{animation:none}}
@media(hover:none){.cx-btn:hover{transform:none}}

/* ===== Sign in / Sign up ===== */
.ac-tabs{display:grid;grid-template-columns:1fr 1fr;gap:4px;background:var(--tint);border-radius:99px;padding:4px;margin-bottom:16px}
.ac-tabs button{border:0;background:none;font:inherit;font-weight:600;font-size:.95rem;padding:11px 10px;border-radius:99px;cursor:pointer;color:var(--mute);transition:background .25s,color .25s,box-shadow .25s}
.ac-tabs button[aria-selected="true"]{background:#fff;color:var(--od);box-shadow:0 4px 12px -6px rgba(90,40,0,.45)}
.ac-tabs button:focus-visible{outline:3px solid var(--o);outline-offset:1px}
.ac-p{font-size:.92rem;color:var(--mute);margin-bottom:14px;line-height:1.5}
.ac-ok{background:#e4f6ec;color:#1f6b3f;border-radius:12px;padding:10px 14px;font-size:.88rem;font-weight:600;margin-bottom:14px}
.ac-pw{position:relative;display:block}
.ac-pw input{padding-right:72px}
.ac-eye{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:var(--tint);color:var(--od);font:inherit;font-size:.78rem;font-weight:600;border-radius:99px;padding:6px 12px;cursor:pointer}
.ac-eye:hover{background:#ffe6c7}
.ac-eye:focus-visible{outline:3px solid var(--o);outline-offset:1px}
.ac-sw{margin-top:14px;text-align:center;font-size:.88rem;color:var(--mute)}
.ac-sw button{border:0;background:none;font:inherit;font-weight:600;color:var(--od);text-decoration:underline;cursor:pointer;padding:2px 4px}
.ac-del{display:block;margin:16px auto 0}
.ac-f input[type="password"]::-ms-reveal{display:none}

/* ---- Cart PAGE (cart.php) ---- */
.cphead{padding:150px 0 10px}
.cphead .crumbs{margin-bottom:10px}
.cphead h1{font-family:var(--h);font-weight:800;text-transform:uppercase;font-size:clamp(2.4rem,6vw,4.2rem);line-height:.98;text-align:left}
.cphead h1 em{font-style:normal;color:var(--o)}
.cpsec{padding:22px 0 clamp(60px,8vw,100px)}
.cp-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:28px;align-items:start;text-align:left}
.cp-card,.cp-sum{background:#fff;border:1px solid var(--line);border-radius:24px;padding:clamp(18px,3vw,30px);box-shadow:0 20px 40px -30px rgba(90,40,0,.35)}
.cp-sum{position:sticky;top:110px;background:var(--tint)}
.cp-hd{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:16px}
.cp-hd h2,.cp-sum h2{font-family:var(--h);font-size:1.5rem;text-transform:uppercase}
.cp-hd span{color:var(--mute);font-size:.9rem}
.cp-sum h2{margin-bottom:16px}
.cp-line{grid-template-columns:110px minmax(0,1fr);padding:10px 0 18px}
.cp-line .cx-img{height:130px}
.cp-lt{font-family:var(--h);font-size:1.5rem}
.cp-back{display:inline-block;margin-top:18px;font-weight:600;color:var(--od)}
.cp-back:hover{text-decoration:underline}
.cp-empty{background:#fff;border:1px solid var(--line);border-radius:24px;padding:60px 20px}
@media(max-width:900px){.cp-grid{grid-template-columns:1fr}.cp-sum{position:static}.cphead{padding-top:120px}}
@media(max-width:480px){.cp-line{grid-template-columns:84px minmax(0,1fr)}.cp-line .cx-img{height:104px}}

/* ---- Checkout page ---- */
.co-two{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.co-three{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:12px}
.pay-opts{display:grid;gap:10px}
.pay-opt{display:flex;gap:14px;align-items:center;border:1.5px solid #e7d9c6;border-radius:16px;padding:14px 16px;cursor:pointer;background:#fff;transition:border-color .2s,background .2s}
.pay-opt:has(input:checked){border-color:var(--o);background:var(--tint)}
.pay-opt input{accent-color:var(--o);width:18px;height:18px;flex:none}
.pay-opt b{display:block}
.pay-opt small{display:block;color:var(--mute);font-size:.82rem;margin-top:2px}
.cx-btn:disabled{opacity:.6;cursor:wait}
@media(max-width:600px){.co-two,.co-three{grid-template-columns:1fr}}
/* ===== Account popup: centered (Sign in / Sign up, Personal or Sales Agent) ===== */
.cx.am{top:50%;left:50%;right:auto;bottom:auto;width:min(480px,calc(100% - 24px));max-height:min(92vh,780px);height:auto;border-radius:28px;overflow:hidden;
  transform:translate(-50%,-46%) scale(.96);opacity:0;transition:transform .35s cubic-bezier(.2,.8,.2,1),opacity .25s,visibility .35s;box-shadow:0 40px 90px -30px rgba(40,20,0,.65)}
.cx.am.on{transform:translate(-50%,-50%);opacity:1}
.cx.am .cx-h{padding:18px 22px}
.cx.am .cx-b{padding:20px 22px 24px}
.am-types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.am-types button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;align-items:center;text-align:left;font:inherit;background:#fff;border:1.5px solid #e7d9c6;border-radius:16px;padding:11px 12px;cursor:pointer;color:var(--ink);transition:border-color .2s,background .2s,box-shadow .2s}
.am-types button i{grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--tint);color:var(--od)}
.am-types button i svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.am-types button b{font-size:.95rem;line-height:1.2}
.am-types button span{font-size:.74rem;color:var(--mute);line-height:1.25}
.am-types button:hover{border-color:#f3b777}
.am-types button[aria-pressed="true"]{border-color:var(--o);background:var(--tint);box-shadow:0 0 0 3px rgba(242,138,30,.18)}
.am-types button[aria-pressed="true"] i{background:var(--o);color:#fff}
.am-types button:focus-visible{outline:3px solid var(--o);outline-offset:2px}
.am-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.am-dashbtn{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;margin-bottom:14px}
.am-dashbtn svg,.am-done .cx-btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.am-done{text-align:center;padding:10px 0 4px}
.am-done .cx-btn{display:flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;margin-top:16px}
.am-tick{display:grid;place-items:center;width:68px;height:68px;margin:0 auto 14px;border-radius:50%;background:#e4f6ec;color:#1f8a4c;animation:cxpop .6s cubic-bezier(.2,.9,.3,1.5)}
.am-tick svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.am-done h3{font-family:var(--h);font-size:1.9rem;line-height:1.05;text-transform:uppercase;margin-bottom:6px}
.am-done p{color:var(--mute);font-size:.94rem}
.am-code{margin:16px auto 0;max-width:280px;background:var(--tint);border:1.5px dashed #f3b777;border-radius:16px;padding:10px 14px}
.am-code small{display:block;color:var(--mute);font-size:.74rem}
.am-code b{font-family:var(--h);font-size:1.9rem;letter-spacing:.06em;color:var(--od)}
.ac-d b{font-family:var(--h);font-size:1.3rem;letter-spacing:.05em;color:var(--od)}
.cx-btn.pri:disabled{opacity:.6;cursor:wait}
@media(max-width:420px){.am-types{grid-template-columns:1fr}.cx.am{border-radius:22px}}
@media(prefers-reduced-motion:reduce){.cx.am{transition:none!important}}
