/* ==========================================================
   V9 — Storefront polish, desktop dropdowns, account unification,
   five-up merchandising, overlay lifecycle + motion refinement
   ========================================================== */
:root{
  --v9-brand:#438851;
  --v9-brand-deep:#235f35;
  --v9-lime:#8bc83d;
  --v9-bg:#f6f8f4;
  --v9-surface:#fff;
  --v9-surface-soft:#f1f5ef;
  --v9-line:#dfe7df;
  --v9-text:#1e2821;
  --v9-muted:#6f7b72;
  --v9-shadow:0 14px 38px rgba(24,58,35,.08);
  --v9-fast:150ms;
  --v9-normal:210ms;
  --v9-drawer:270ms;
}
body.v9{background:var(--v9-bg);color:var(--v9-text)}
body.v9 main{min-height:56vh}
body.v9 .section:nth-of-type(even){background:rgba(238,244,236,.42)}
body.v9 .section-head h2{font-size:clamp(21px,1.65vw,30px);letter-spacing:-.035em}
body.v9 .section-head p{font-size:12.5px;color:var(--v9-muted)}

/* HEADER — calmer, stronger hierarchy */
body.v9 .market-header{box-shadow:0 1px 0 rgba(42,76,52,.08);transition:box-shadow var(--v9-normal) ease,background var(--v9-normal) ease}
body.v9 .market-header.v5-condensed{box-shadow:0 8px 26px rgba(29,61,38,.08)}
body.v9 .header-main{min-height:78px}
body.v9 .desktop-header .brand-logo{max-width:185px;height:auto}
body.v9 .search-box{border-color:#d3dfd5;background:#fff;box-shadow:0 3px 16px rgba(25,60,34,.035)}
body.v9 .search-box:focus-within{border-color:#8fb99a;box-shadow:0 0 0 3px rgba(67,136,81,.10),0 8px 24px rgba(25,60,34,.06)}
body.v9 .category-bar{overflow:visible;position:relative;z-index:1035}
body.v9 .category-inner{overflow:visible}
body.v9 .cat-link{position:relative;padding-inline:12px;transition:color var(--v9-fast) ease,background var(--v9-fast) ease}
body.v9 .cat-link:after{content:"⌄";font-size:9px;margin-left:5px;opacity:.6;transition:transform var(--v9-fast) ease}
body.v9 .cat-link.v9-open,body.v9 .cat-link:hover{color:var(--v9-brand-deep);background:#f0f6ef}
body.v9 .cat-link.v9-open:after{transform:rotate(180deg)}
body.v9 .all-cats{transition:transform var(--v9-fast) ease,box-shadow var(--v9-fast) ease}
body.v9 .all-cats:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(29,76,42,.16)}

/* Per-category dropdown injected by v9.js */
.v9-category-dropdown{position:fixed;left:0;right:0;top:0;z-index:1032;pointer-events:none;opacity:0;transform:translateY(-8px);transition:opacity var(--v9-normal) ease,transform var(--v9-normal) ease}
.v9-category-dropdown.show{pointer-events:auto;opacity:1;transform:none}
.v9-category-dropdown-panel{width:min(1180px,calc(100vw - 48px));margin:auto;background:rgba(255,255,255,.985);border:1px solid #dbe5dc;border-radius:0 0 15px 15px;box-shadow:0 24px 56px rgba(18,49,28,.13);overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) 280px}
.v9-cat-columns{padding:23px 26px 25px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px 26px}
.v9-cat-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:13px;margin-bottom:3px;border-bottom:1px solid #e8eee8}
.v9-cat-title div{display:flex;align-items:center;gap:11px}.v9-cat-title i{width:34px;height:34px;border-radius:9px;background:#eaf4e5;color:var(--v9-brand-deep);font-style:normal;display:grid;place-items:center;font-size:15px;font-weight:950}
.v9-cat-title strong{font-size:17px;letter-spacing:-.02em}.v9-cat-title a{font-size:10.5px;font-weight:900;color:var(--v9-brand)}
.v9-cat-columns>a{display:flex;align-items:center;justify-content:space-between;min-height:36px;padding:7px 9px;border-radius:7px;color:#3c493f;font-size:11.5px;font-weight:760;transition:background var(--v9-fast),color var(--v9-fast),padding var(--v9-fast)}
.v9-cat-columns>a:hover{background:#f0f6ef;color:var(--v9-brand-deep);padding-left:13px}.v9-cat-columns>a:after{content:"›";color:#8aa08f}
.v9-cat-feature{padding:23px;background:linear-gradient(145deg,#173d26,#2f7444);color:#fff;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}
.v9-cat-feature:after{content:"";position:absolute;width:160px;height:160px;border-radius:50%;right:-70px;top:-65px;border:25px solid rgba(139,200,61,.18)}
.v9-cat-feature small{font-size:8px;letter-spacing:.14em;font-weight:900;color:#cbe5bd}.v9-cat-feature strong{font-size:20px;line-height:1.15;letter-spacing:-.035em;margin:8px 0}.v9-cat-feature p{font-size:10.5px;line-height:1.5;color:#d8e7da;margin:0 0 14px}.v9-cat-feature .btn{height:39px;font-size:10.5px;align-self:flex-start}

/* Mega dropdown motion and visual depth */
body.v9 .mega-menu{transform:translateY(-8px);transform-origin:top;transition:opacity var(--v9-normal) ease,transform var(--v9-normal) ease,visibility var(--v9-normal) ease}
body.v9 .mega-menu.show{transform:none}
body.v9 .mega-grid{border-radius:0 0 15px 15px;box-shadow:0 24px 58px rgba(21,52,30,.13)}

/* HOME — five-up merchandising sections */
@media(min-width:1200px){
  body.v9.v9-home .product-rail.v9-five-rail{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;gap:15px;overflow:visible;scroll-snap-type:none;padding-bottom:0}
  body.v9.v9-home .product-rail.v9-five-rail>.product-card:nth-child(n+6){display:none}
  body.v9.v9-home .product-rail.v9-five-rail .product-media{height:236px}
  body.v9.v9-home .product-rail.v9-five-rail .product-name{font-size:14px;min-height:39px}
}
body.v9 .product-card{border-color:#dde6de;border-radius:13px;background:#fff;transition:transform var(--v9-normal) cubic-bezier(.2,.75,.3,1),box-shadow var(--v9-normal) ease,border-color var(--v9-normal) ease}
body.v9 .product-card:hover{transform:translateY(-4px);border-color:#c5d6c8;box-shadow:0 16px 38px rgba(24,57,34,.09)}
body.v9 .product-media img{transition:transform 320ms cubic-bezier(.2,.75,.3,1),opacity var(--v9-normal)}
body.v9 .product-card:hover .product-media img{transform:scale(1.025)}
body.v9 .product-code{font-size:10px}.product-card .product-name{color:#26322a}
.v9-compatible-chip{margin-top:7px;display:inline-flex;align-items:center;gap:5px;min-height:23px;padding:3px 7px;border-radius:6px;background:#eef7eb;color:#286b39;font-size:8.5px;font-weight:900;border:1px solid #d9ead6}
.v9-compatible-chip:before{content:"✓";width:14px;height:14px;border-radius:50%;display:grid;place-items:center;background:#d7edcf;color:#245f33;font-size:8px}

/* ACCOUNT — standardize with Favoriler layout */
body.v9.v9-account-page .account-layout{grid-template-columns:258px minmax(0,1fr);gap:22px}
body.v9.v9-account-page .account-nav{border-radius:13px;padding:9px;border-color:#dce5dd;box-shadow:0 9px 28px rgba(25,58,35,.05)}
body.v9.v9-account-page .account-nav a{font-size:14px;line-height:1.2;font-weight:720;padding:11px 12px;border-radius:8px;gap:11px}
body.v9.v9-account-page .account-nav a .icon{width:17px;height:17px}
body.v9.v9-account-page .account-nav a:hover,body.v9.v9-account-page .account-nav a.active{background:#eaf4e8;color:#225f33;font-weight:900}
body.v9.v9-account-page .page-head h1{font-size:30px;letter-spacing:-.04em}
body.v9.v9-account-page .page-head p{font-size:13px}

/* Custom V6 account dashboard is normalized to the same family */
body.v9 .v6-account-shell{grid-template-columns:258px minmax(0,1fr);gap:22px}
body.v9 .v6-account-side{top:138px;border-radius:13px;padding:9px;background:#fff;border-color:#dce5dd;box-shadow:0 9px 28px rgba(25,58,35,.05)}
body.v9 .v6-account-user{grid-template-columns:46px 1fr;padding:12px 11px 15px}.v9 .v6-avatar{width:46px;height:46px;font-size:15px}.v9 .v6-account-user strong{font-size:14px}.v9 .v6-account-user span{font-size:10.5px}
body.v9 .v6-account-menu{gap:2px}.v9 .v6-account-menu a{font-size:14px;font-weight:720;padding:11px 12px;border-radius:8px;gap:10px}.v9 .v6-account-menu a:hover,.v9 .v6-account-menu a.active{background:#eaf4e8;color:#225f33;font-weight:900}
body.v9 .v6-account-hero{min-height:auto;border-radius:13px;background:#fff;color:var(--v9-text);padding:24px 235px 24px 24px;border:1px solid #dce5dd;box-shadow:0 8px 26px rgba(25,58,35,.045)}
body.v9 .v6-account-hero .v6-promo-kicker{color:var(--v9-brand)!important}.v9 .v6-account-hero .v6-promo-kicker i{background:var(--v9-lime)!important}body.v9 .v6-account-hero h1{font-size:31px;color:#202a22;margin:5px 0 8px}.v9 .v6-account-hero p{font-size:13px;color:#6a766d;line-height:1.55;max-width:680px}.v9 .v6-account-art{right:1.5%!important;width:210px!important;opacity:.92}.v9 .v6-account-art img{filter:drop-shadow(0 10px 15px rgba(22,55,34,.12))}
body.v9 .v6-account-stat{min-height:100px;border-radius:12px;padding:15px}.v9 .v6-account-stat span{font-size:10.5px}.v9 .v6-account-stat strong{font-size:24px}.v9 .v6-account-stat small{font-size:9.5px}
body.v9 .v6-panel{border-radius:13px;padding:19px}.v9 .v6-panel-head h2{font-size:18px}.v9 .v6-panel-head a{font-size:10.5px}

/* Overlays: lighter dimming, clean stacking, premium modal */
body.v9 .modal-backdrop.show,body.v9 .offcanvas-backdrop.show{opacity:.22!important;background:#153721!important}
body.v9 .modal{--bs-modal-zindex:1060}.v9 .modal-backdrop{--bs-backdrop-zindex:1055}.v9 .offcanvas{--bs-offcanvas-zindex:1060}.v9 .offcanvas-backdrop{--bs-backdrop-zindex:1055}
body.v9 .modal-content{border:1px solid rgba(213,226,216,.9);box-shadow:0 28px 80px rgba(17,46,26,.20)}
body.v9 .compatible-modal .modal-content{border-radius:16px}
body.v9 .compatible-modal .modal-header{background:#fff;border-bottom:1px solid #e5ece6;padding:16px 19px}
body.v9 .compatible-modal .compat-modal-main,body.v9 .compatible-modal .compat-modal-side{background:#fbfcfb}
body.v9 .compatible-modal .compat-modal-selected{background:#fff;box-shadow:0 -8px 22px rgba(23,54,31,.055)}
body.v9.v9-overlay-open{overflow:hidden!important}

/* Category / PLP toolbar polish */
body.v9.v9-category-page .plp-toolbar{position:sticky;top:126px;z-index:18;background:rgba(246,248,244,.94);backdrop-filter:blur(12px);padding:10px 0;border-bottom:1px solid rgba(218,228,219,.85)}
body.v9.v9-category-page .v7-mobile-filter-strip{background:rgba(246,248,244,.96)}
body.v9.v9-category-page .product-card{box-shadow:none}
.v9-infinite-preserve-note{display:inline-flex;align-items:center;gap:6px;color:#778279;font-size:9.5px}.v9-infinite-preserve-note:before{content:"↺";color:var(--v9-brand);font-weight:950}

/* Compare tray */
.v9-compare-tray{position:fixed;left:50%;bottom:22px;transform:translate(-50%,125%);z-index:1040;width:min(760px,calc(100vw - 32px));background:#163c25;color:#fff;border:1px solid rgba(255,255,255,.1);border-radius:13px;box-shadow:0 20px 50px rgba(13,38,22,.25);display:flex;align-items:center;gap:12px;padding:10px 12px 10px 16px;transition:transform var(--v9-drawer) cubic-bezier(.2,.8,.25,1)}
.v9-compare-tray.show{transform:translate(-50%,0)}.v9-compare-tray strong{font-size:12px}.v9-compare-tray span{font-size:9.5px;color:#cfe0d2;flex:1}.v9-compare-tray .btn{height:35px;font-size:9.5px}

/* Motion */
.v9-reveal{opacity:0;transform:translateY(12px);transition:opacity 420ms ease,transform 420ms cubic-bezier(.2,.75,.3,1)}.v9-reveal.v9-visible{opacity:1;transform:none}
body.v9 .btn,body.v9 .favorite{transition:transform var(--v9-fast) ease,background var(--v9-fast) ease,border-color var(--v9-fast) ease,box-shadow var(--v9-fast) ease}
body.v9 .btn:active,body.v9 .favorite:active{transform:scale(.975)}

@media(max-width:1199.98px){
  body.v9.v9-account-page .account-layout,body.v9 .v6-account-shell{grid-template-columns:220px minmax(0,1fr)}
  body.v9.v9-account-page .account-nav a,body.v9 .v6-account-menu a{font-size:12.5px}
}
@media(max-width:991.98px){
  .v9-category-dropdown{display:none!important}
  body.v9 .v6-account-shell,body.v9.v9-account-page .account-layout{grid-template-columns:1fr}
  body.v9 .v6-account-side{position:static;overflow:auto;padding:7px}.v9 .v6-account-user{display:none}.v9 .v6-account-menu{display:flex;width:max-content}.v9 .v6-account-menu a{white-space:nowrap;font-size:12px}
  body.v9.v9-account-page .account-nav{position:static;display:flex;overflow-x:auto;gap:3px}.v9.v9-account-page .account-nav a{white-space:nowrap;font-size:12px;padding:10px 11px}
  body.v9 .v6-account-hero{padding:22px 29% 22px 20px}.v9 .v6-account-hero h1{font-size:25px}.v9 .v6-account-hero p{font-size:11.5px}.v9 .v6-account-art{width:28%!important}
}
@media(max-width:767.98px){
  body.v9{background:#f7f9f6}
  body.v9 .mobile-header{background:rgba(255,255,255,.96);backdrop-filter:blur(13px)}
  body.v9 .v6-account-hero{padding:20px 18px}.v9 .v6-account-art{display:none!important}.v9 .v6-account-hero h1{font-size:23px}.v9 .v6-account-hero p{font-size:11px}
  body.v9 .v6-account-quick{grid-template-columns:repeat(2,1fr)}
  body.v9.v9-home .product-rail.v9-five-rail{grid-auto-columns:minmax(172px,44vw)}
  .v9-compare-tray{bottom:76px;border-radius:12px;padding:9px 10px}.v9-compare-tray span{display:none}
  body.v9 .modal-backdrop.show,body.v9 .offcanvas-backdrop.show{opacity:.18!important}
}
@media(max-width:389.98px){
  body.v9.v9-home .product-rail.v9-five-rail{grid-auto-columns:minmax(164px,47vw)}
  body.v9 .v6-account-menu a,body.v9.v9-account-page .account-nav a{font-size:11.5px}
}
@media(prefers-reduced-motion:reduce){
  .v9-category-dropdown,.v9-reveal,.v9-compare-tray,body.v9 .product-card,body.v9 .product-media img{transition:none!important;animation:none!important}
}

body.v9 .v9-account-nav-dashboard{position:sticky;top:138px;height:max-content}
@media(max-width:991.98px){body.v9 .v9-account-nav-dashboard{position:static}}

/* Cart / checkout visual alignment */
body.v9 .v6-cart-head h1,body.v9 .v6-checkout-title h1{font-size:31px;color:#202a22}
body.v9 .v6-cart-head p,body.v9 .v6-checkout-title p{font-size:11.5px;color:#718076}
body.v9 .v6-cart-group,body.v9 .v6-cart-summary,body.v9 .v6-checkout-card,body.v9 .v6-checkout-summary{border-color:#dce5dd;border-radius:13px;box-shadow:0 8px 26px rgba(25,58,35,.045)}
body.v9 .v6-cart-product-title{font-size:13px}.v9 .v6-cart-meta{font-size:9.5px}.v9 .v6-line-price strong{font-size:15px}
body.v9 .v6-cart-summary h2{font-size:18px}.v9 .v6-summary-line{font-size:11px}.v9 .v6-summary-total span{font-size:11.5px}.v9 .v6-summary-total strong{font-size:25px}
body.v9 .v6-checkout-card h2{font-size:16px}.v9 .v6-checkout-card .sub{font-size:9.5px}.v9 .v6-choice strong{font-size:11.5px}.v9 .v6-choice small{font-size:9px}.v9 .v6-checkout-summary h3{font-size:15px}

/* Product compatibility selector — clearer visual hierarchy */
body.v9 .compatible-modal .compat-modal-layout{background:#f7f9f6}
body.v9 .compatible-modal .compat-modal-side{border-right:1px solid #e2e9e3}
body.v9 .compatible-modal .compat-modal-toolbar{background:#fff;border-bottom:1px solid #e5ece6}
body.v9 .compatible-modal .compat-result-card{border-radius:11px;border-color:#dfe7e0;transition:transform var(--v9-fast),border-color var(--v9-fast),box-shadow var(--v9-fast)}
body.v9 .compatible-modal .compat-result-card:hover{transform:translateY(-2px);border-color:#bcd1c0;box-shadow:0 10px 26px rgba(20,52,30,.07)}
body.v9 .compatible-modal .compat-result-card.selected{border-color:var(--v9-brand);box-shadow:0 0 0 2px rgba(67,136,81,.11)}
