
/* ==========================================================
   V12 — navigation fit, explicit compatibility exit,
   mobile favourites + modern account navigation
   ========================================================== */
:root{
  --v12-brand:#438851;
  --v12-brand-deep:#215f37;
  --v12-lime:#8BC83D;
  --v12-surface:#fff;
  --v12-bg:#f6f8f5;
  --v12-line:#dfe6df;
  --v12-text:#243028;
  --v12-muted:#778179;
  --v12-shadow:0 14px 42px rgba(24,53,33,.10);
}
body.v12{background:var(--v12-bg)}

/* Desktop top category navigation must always fit the viewport. */
body.v12 .category-bar{overflow:visible}
body.v12 .category-inner{display:flex;align-items:stretch;gap:2px;min-width:0;overflow:visible}
body.v12 .category-inner>.cat-link,
body.v12 .category-inner>.all-cats{flex:0 0 auto;white-space:nowrap}
body.v12 .category-inner>.cat-link{font-size:clamp(10px,.72vw,13px);padding-inline:clamp(8px,.82vw,15px)}
body.v12 .all-cats{font-size:clamp(11px,.76vw,14px);padding-inline:clamp(10px,1vw,18px)}
body.v12 .v12-nav-more{position:relative;display:none;align-self:stretch}
body.v12 .v12-nav-more-toggle{height:100%;border:0;background:transparent;padding:0 14px;color:#344138;font:750 12px/1 inherit;white-space:nowrap;display:flex;align-items:center;gap:6px}
body.v12 .v12-nav-more-toggle:hover,body.v12 .v12-nav-more.open .v12-nav-more-toggle{color:var(--v12-brand-deep);background:#f0f5ef}
body.v12 .v12-nav-more-menu{position:absolute;right:0;top:calc(100% + 1px);min-width:230px;background:#fff;border:1px solid var(--v12-line);box-shadow:var(--v12-shadow);padding:7px;z-index:1065;display:none}
body.v12 .v12-nav-more.open .v12-nav-more-menu{display:block}
body.v12 .v12-nav-more-menu a{display:block;padding:10px 11px;color:#344138;font-size:12px;font-weight:700;border-radius:6px}
body.v12 .v12-nav-more-menu a:hover{background:#eff5ee;color:var(--v12-brand-deep)}
@media(max-width:1599.98px){
  body.v12 .category-inner>.v12-tier-3{display:none}
  body.v12 .v12-nav-more{display:flex}
}
@media(max-width:1399.98px){
  body.v12 .category-inner>.v12-tier-2{display:none}
}
@media(max-width:1199.98px) and (min-width:992px){
  body.v12 .category-inner>.v12-tier-1{display:none}
  body.v12 .category-inner>.cat-link{font-size:10.5px;padding-inline:10px}
  body.v12 .all-cats{padding-inline:12px}
}
/* Mega menu itself must fit vertically too. */
body.v12 .mega-menu{max-height:calc(100dvh - 132px);overflow-y:auto;overscroll-behavior:contain}
body.v12 .mega-grid{align-items:start}
body.v12 .mega-col a{line-height:1.32}

/* Mobile menu: a real favourites destination inside the drawer. */
body.v12 .v12-mobile-favorite{display:grid;grid-template-columns:40px 1fr auto;align-items:center;gap:10px;margin-top:10px;padding:11px 12px;background:#fff;border:1px solid var(--v12-line);border-radius:9px;color:var(--v12-text)}
body.v12 .v12-mobile-favorite .heart{width:38px;height:38px;border-radius:8px;background:#f3f7f1;display:grid;place-items:center;color:var(--v12-brand-deep);font-size:21px}
body.v12 .v12-mobile-favorite strong{font-size:12px;display:block}
body.v12 .v12-mobile-favorite small{font-size:9px;color:var(--v12-muted);display:block;margin-top:2px}
body.v12 .v12-mobile-favorite .count{min-width:26px;height:26px;padding:0 7px;border-radius:13px;background:#e6f3dd;color:#245e35;font-size:10px;font-weight:800;display:grid;place-items:center}

/* Compatibility chooser: obvious exits, stable viewport, no trap feeling. */
body.v12 .v12-compatible-selector .modal-dialog{max-width:min(1480px,calc(100vw - 28px));height:min(900px,calc(100dvh - 28px));margin:14px auto}
body.v12 .v12-compatible-selector .modal-content{height:100%;overflow:hidden;background:#fff}
body.v12 .v12-compatible-selector .modal-header{position:relative;z-index:5;background:#fff;flex:0 0 auto;gap:14px}
body.v12 .v12-compat-header-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
body.v12 .v12-compat-exit{height:38px;border:1px solid #cfd8d0;background:#fff;color:#4a564e;padding:0 12px;border-radius:7px;font-size:11px;font-weight:750;white-space:nowrap}
body.v12 .v12-compat-exit:hover{border-color:#9fb0a1;background:#f6f8f5}
body.v12 .v10-compatible-selector .compat-modal-layout{min-height:0;height:calc(100% - 68px)}
body.v12 .v10-compatible-selector .compat-modal-main{min-height:0}
body.v12 .v10-compatible-selector .compat-results{min-height:0;overscroll-behavior:contain;scrollbar-gutter:stable}
body.v12 .v10-compatible-selector .compat-modal-selected{position:relative;z-index:4;box-shadow:0 -10px 26px rgba(25,55,34,.07)}
body.v12 .v12-compat-cancel{border:0;background:transparent;color:#59655d;text-decoration:underline;text-underline-offset:3px;font-size:10px;font-weight:700;padding:8px 4px}
body.v12 .v12-compat-cancel:hover{color:#183f28}
body.v12 .v12-compat-actions-wrap{display:grid;gap:4px}
@media(max-width:767.98px){
  body.v12 .v12-compatible-selector .modal-dialog{max-width:none;width:100%;height:100dvh;margin:0}
  body.v12 .v12-compatible-selector .modal-header{min-height:60px;padding:10px 12px;position:sticky;top:0}
  body.v12 .v12-compatible-selector .modal-title{font-size:14px;line-height:1.25}
  body.v12 .v12-compatible-selector .v3-eyebrow{font-size:8px}
  body.v12 .v12-compat-header-actions{gap:5px}
  body.v12 .v12-compat-exit{height:36px;padding:0 9px;font-size:9.5px}
  body.v12 .v12-compatible-selector .btn-close{width:34px;height:34px;margin:0;padding:0;border:1px solid #dbe1dc;border-radius:7px;background-size:10px}
  body.v12 .v10-compatible-selector .compat-modal-layout{height:calc(100dvh - 60px)}
  body.v12 .v10-compatible-selector .compat-modal-selected{max-height:260px}
  body.v12 .v10-compat-actions{grid-template-columns:1fr!important}
  body.v12 .v10-compat-actions .btn{height:42px;min-height:42px;font-size:10.5px}
  body.v12 .v12-compat-cancel{font-size:10px}
}

/* Account: no horizontally swiped nav on mobile. */
body.v12.v12-account-page .v12-account-mobile{display:none}
@media(max-width:991.98px){
  body.v12.v12-account-page .v6-account-shell{display:block!important}
  body.v12.v12-account-page .account-nav,
  body.v12.v12-account-page .v9-account-nav-dashboard,
  body.v12.v12-account-page .v6-account-side{display:none!important}
  body.v12.v12-account-page .v12-account-mobile{display:block;margin-bottom:12px}
  body.v12.v12-account-page .v6-account-hero,
  body.v12.v12-account-page .v6-account-quick{display:none!important}
  body.v12.v12-account-page .v6-account-grid{grid-template-columns:1fr!important;margin-top:10px}
  body.v12.v12-account-page .v6-account-grid>.v6-panel:nth-child(2){display:none}
  body.v12.v12-account-page .v6-rebuy{margin-top:10px}
}
.v12-account-profile{background:linear-gradient(135deg,#173f28 0%,#2e7547 100%);color:#fff;border-radius:12px;padding:16px;display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:12px;box-shadow:0 12px 30px rgba(23,63,40,.14)}
.v12-account-avatar{width:52px;height:52px;border-radius:50%;background:#fff;color:#285f3b;display:grid;place-items:center;font-weight:900;font-size:17px}
.v12-account-profile strong{display:block;font-size:14px}.v12-account-profile small{display:block;color:#dce9df;font-size:10px;margin-top:3px}
.v12-account-point{background:#fff;color:#285f3b;border-radius:9px;padding:8px 10px;text-align:center;min-width:64px}.v12-account-point b{display:block;font-size:14px}.v12-account-point span{font-size:8px;font-weight:800}
.v12-account-shortcuts{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin-top:9px}
.v12-account-shortcut{min-width:0;background:#fff;border:1px solid var(--v12-line);border-radius:9px;padding:10px 6px;text-align:center;color:#3c493f;box-shadow:0 4px 14px rgba(30,55,37,.035)}
.v12-account-shortcut i{font-style:normal;width:30px;height:30px;margin:0 auto 6px;border-radius:8px;background:#eff6ed;color:#27643b;display:grid;place-items:center;font-size:15px}
.v12-account-shortcut span{display:block;font-size:9px;font-weight:750;line-height:1.2}
.v12-account-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px}
.v12-account-action{background:#fff;border:1px solid var(--v12-line);border-radius:9px;padding:12px;color:#354238;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:68px}
.v12-account-action i{font-style:normal;width:36px;height:36px;border-radius:8px;background:#f1f6ef;display:grid;place-items:center;color:#2b6d41;font-size:16px}
.v12-account-action strong{display:block;font-size:11px;line-height:1.25}.v12-account-action small{display:block;color:#7b857e;font-size:8.5px;margin-top:2px}.v12-account-action b{font-size:17px;color:#98a29a}
.v12-account-section{margin-top:10px;background:#fff;border:1px solid var(--v12-line);border-radius:10px;overflow:hidden}
.v12-account-section h2{font-size:13px;font-weight:800;margin:0;padding:12px 13px;border-bottom:1px solid #e9eee9}
.v12-account-list a{display:grid;grid-template-columns:30px 1fr auto;gap:9px;align-items:center;padding:11px 13px;border-bottom:1px solid #eef1ee;color:#3c493f}.v12-account-list a:last-child{border-bottom:0}
.v12-account-list i{font-style:normal;width:30px;height:30px;border-radius:7px;background:#f2f6f1;display:grid;place-items:center;color:#2d6d42}.v12-account-list strong{font-size:10.5px}.v12-account-list span{font-size:15px;color:#99a29b}
@media(max-width:389.98px){.v12-account-shortcuts{grid-template-columns:repeat(2,1fr)}.v12-account-actions{grid-template-columns:1fr}}

/* Prevent stale legacy mobile account horizontal rules from winning. */
@media(max-width:991.98px){
 body.v12.v12-account-page .account-nav{overflow:visible!important;width:auto!important;white-space:normal!important}
}

/* Compact, non-horizontal account navigation for mobile sub-pages. */
body.v12 .v12-account-mobile-menu{display:none}
@media(max-width:991.98px){
 body.v12.v12-account-page .v12-account-mobile-menu{display:block;margin-bottom:10px;background:#fff;border:1px solid var(--v12-line);border-radius:10px;overflow:hidden}
 body.v12.v12-account-page .v12-account-mobile-menu summary{list-style:none;cursor:pointer;padding:12px 13px;font-size:12px;font-weight:800;color:#354238;display:flex;justify-content:space-between;align-items:center}
 body.v12.v12-account-page .v12-account-mobile-menu summary::-webkit-details-marker{display:none}
 body.v12.v12-account-page .v12-account-mobile-menu summary:after{content:'+';font-size:18px;font-weight:500;color:#728077}
 body.v12.v12-account-page .v12-account-mobile-menu[open] summary:after{content:'−'}
 body.v12.v12-account-page .v12-account-mobile-menu-grid{border-top:1px solid #e8ede8;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:#e8ede8}
 body.v12.v12-account-page .v12-account-mobile-menu-grid a{background:#fff;padding:11px 10px;color:#3a473e;font-size:10px;font-weight:700;min-height:43px;display:flex;align-items:center}
 body.v12.v12-account-page .v12-account-mobile-menu-grid a.active{color:#215f37;background:#edf5ea}
}
