/* V7.0.5. Mobile-first controls; blue navigation. Price trend colors reserved for price movement. */
:root{--blue:#347cdd;--deep:#205db1;--ink:#203655;--line:#dfe9f8;--soft:#f4f8ff}
.topbar{z-index:60;background:#fff;border-color:#e0eaf7}
.nav a,.nav-dropdown summary{color:#315b94}
.nav-dropdown[open] summary{color:#1f62bf;background:#e9f3ff}
.nav-dropdown-menu{box-shadow:0 16px 40px #163c7030}
.header-compare{display:inline-flex;align-items:center;gap:7px;color:#235cb0;font-size:13px;font-weight:750;text-decoration:none;border:1px solid #c7daf5;border-radius:12px;background:#f0f6ff;padding:10px 12px;white-space:nowrap}
.header-compare:hover{background:#e2f0ff}
.compare-count{display:inline-grid;place-items:center;min-width:21px;height:21px;border-radius:50%;background:#276bc5;color:white;font-size:11px;padding:0 5px}
.mobile-hamburger{display:none}
.brand-ribbon{background:#f7faff;border-top:1px solid #edf2fb;border-bottom:1px solid #e1eaf7}
.brand-ribbon-inner{display:flex;gap:14px;align-items:center;min-height:56px}
.brand-ribbon-label{font-size:12px;font-weight:750;color:#5d789f;flex-shrink:0}
.brand-logo-list{display:flex;gap:9px;align-items:center;overflow-x:auto;min-width:0;scrollbar-width:thin;padding:7px 0}
.brand-logo{display:flex;align-items:center;justify-content:center;min-width:70px;white-space:nowrap;padding:7px 12px;background:#fff;border:1px solid #d7e4f8;border-radius:10px;font:800 13px/1.2 system-ui,sans-serif;color:#2d527f;text-decoration:none;letter-spacing:-.025em}
.brand-logo:hover,.brand-logo:focus-visible{border-color:#5090e9;background:#ebf4ff}
.brand-ribbon-all{margin-left:auto;white-space:nowrap;text-decoration:none;font-size:12px;font-weight:750;color:#2b6cc4}
.mobile-filter-toggle{display:none}
.mobile-filter-content{display:block}
/* Cards use buttons, never overlapping photo navigation. */
.item{position:relative}
.compare-toggle{background:#fff;border:1px solid #b9d1f3;color:#2969c4;border-radius:10px;cursor:pointer;font:700 13px system-ui,sans-serif;min-height:36px;padding:7px 10px}
.compare-toggle:hover,.compare-toggle:focus-visible{background:#e9f3ff;outline:2px solid #9bbff3;outline-offset:1px}
.compare-toggle[aria-pressed="true"]{background:#286dcc;color:#fff;border-color:#286dcc}
.compare-card{position:absolute;right:16px;top:16px;z-index:2;width:38px;height:38px;padding:0;border-radius:12px;font-size:18px;box-shadow:0 2px 10px #31588828}
.compare-detail{margin:12px 0 0}
.price-trend{font-size:18px;font-weight:900;padding-left:5px;white-space:nowrap}
.price-trend--down{color:#168647}.price-trend--up{color:#d13e36}
.compare-live-status:not(:empty){position:fixed;z-index:100;bottom:20px;left:50%;transform:translateX(-50%);background:#193a6a;color:#fff;border-radius:12px;padding:10px 18px;max-width:min(90vw,480px);box-shadow:0 10px 30px #193a6a55;font-size:13px}
/* Brand landing pages */
.brand-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:13px;margin:22px 0 35px}
.brand-directory a{background:#fff;border:1px solid #d6e5f8;border-radius:15px;text-decoration:none;padding:23px 19px;display:flex;justify-content:space-between;align-items:center;gap:15px;color:#274b82}
.brand-directory a:hover{border-color:#6c9be4;background:#f3f8ff}
.brand-directory .wordmark{font-weight:850;font-size:19px}
.brand-header{padding:20px 0;border-bottom:1px solid #dae7f8}
.brand-categories{display:flex;flex-wrap:wrap;gap:8px;padding:14px 0 21px}
.brand-categories a{background:#fff;border:1px solid #cdddF5;border-radius:9px;padding:9px 12px;text-decoration:none;font-size:13px;color:#3269aa}
.brand-categories a.active{background:#347cdd;color:#fff}
.brand-products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.brand-pager{display:flex;justify-content:center;gap:10px;margin:25px 0;flex-wrap:wrap}
.brand-pager a{padding:10px 13px;text-decoration:none;border-radius:9px;border:1px solid #c7d9f4}
.brand-pager a[aria-current="page"]{background:#347cdd;color:white}
/* Comparison: horizontally scrollable on narrow screens, no column squeeze. */
.compare-wrap{max-width:100%;overflow-x:auto;border:1px solid #dae6f7;border-radius:15px;background:white;margin:20px 0 40px}
.compare-table{border-collapse:collapse;min-width:660px;width:100%}
.compare-table th,.compare-table td{padding:15px 16px;border-bottom:1px solid #e5edf9;text-align:left;vertical-align:top;min-width:185px;max-width:340px}
.compare-table th:first-child,.compare-table td:first-child{position:sticky;left:0;background:#f3f8ff;z-index:1;min-width:160px;max-width:190px;font-size:13px;color:#3d628f}
.compare-table img{max-width:135px;max-height:125px;object-fit:contain;display:block;margin:0 auto 8px}
.compare-table .compare-product-title{display:block;font-weight:750;font-size:13px;line-height:1.3;min-height:45px}
.compare-table button{margin-top:9px}
.compare-notice{padding:14px 18px;border:1px solid #ccdcf4;border-radius:12px;background:#f2f7ff;color:#3a5c8c;margin:14px 0}
@media(max-width:1040px){.brand-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:850px){
  .desktop-nav{display:none!important}
  .topbar .shell{gap:8px;flex-wrap:wrap;padding:10px 16px}
  .topbar .brand{font-size:16px;margin-right:auto}
  .topbar .site-search{order:5;flex-basis:100%;max-width:none;margin:0}
  .header-compare{margin-left:auto;padding:9px 10px}
  .header-compare-label{display:none}
  .mobile-hamburger{display:block;position:relative}
  .mobile-hamburger summary{display:flex;gap:7px;align-items:center;list-style:none;border:1px solid #c7d8f0;border-radius:10px;padding:9px 11px;color:#2565bf;background:#f4f8ff;font-weight:750;cursor:pointer;font-size:13px}
  .mobile-hamburger summary::-webkit-details-marker{display:none}
  .mobile-hamburger summary span:first-child{font-size:18px;line-height:1}
  .mobile-hamburger[open] summary{background:#e2efff}
  .mobile-menu-items{position:absolute;right:0;top:calc(100% + 9px);z-index:80;min-width:min(88vw,300px);max-height:70vh;overflow:auto;display:grid;gap:2px;padding:9px;background:#fff;box-shadow:0 15px 50px #234a793c;border:1px solid #bcd6f3;border-radius:14px}
  .mobile-menu-items a{display:block;padding:11px 12px;text-decoration:none;font-size:14px;font-weight:650;color:#2d5f9f;border-radius:8px}
  .mobile-menu-items a:hover,.mobile-menu-items a:focus-visible{background:#e9f3ff}
  .brand-ribbon-inner{min-height:48px;gap:9px}
  .brand-logo-list{gap:6px}
  .brand-logo{font-size:12px;padding:7px 10px;min-width:63px}
  .brand-ribbon-label{display:none}
  .brand-ribbon-all{font-size:12px}
  .catalog-layout{grid-template-columns:1fr!important;gap:14px!important}
  .catalog-sidebar{padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important}
  .mobile-filter-toggle{display:flex;width:100%;align-items:center;justify-content:space-between;gap:15px;border-radius:13px;background:#dcecff;border:1px solid #93bff7;padding:15px 17px;color:#1f59a1;font-weight:800;font-size:16px;min-height:52px;cursor:pointer;box-shadow:0 4px 13px #376ab520}
  .mobile-filter-toggle[aria-expanded="true"]{background:#cde2ff}
  .mobile-filter-content{display:none;background:#eaf3ff;border:1px solid #c5dcf9;border-top:0;border-radius:0 0 13px 13px;padding:17px}
  .mobile-filter-content.is-open{display:block}
  .brand-products{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:540px){
  .topbar .brand{font-size:15px}
  .topbar .brand-mark{width:30px;height:30px}
  .hamburger-label{display:none}
  .header-compare{font-size:15px}
  .brand-ribbon-all{display:none}
  .brand-products{grid-template-columns:1fr}
  .compare-table th,.compare-table td{padding:12px}
  .compare-card{right:10px;top:10px}
}
/* Shared cards outside the category listing's inline stylesheet. */
.brand-products .item{position:relative;border:1px solid #dfe9f8;border-radius:14px;background:#fff;padding:15px;display:flex;flex-direction:column;min-height:333px;overflow:hidden}
.brand-products .item-media{height:176px;background:#f2f7ff;border-radius:11px;display:flex;align-items:center;justify-content:center;text-decoration:none}
.brand-products .item-media img{max-width:100%;max-height:100%;object-fit:contain;padding:12px}
.brand-products .item .type{font-size:11px;color:#6885a5;text-transform:uppercase;letter-spacing:.04em;margin-top:12px}
.brand-products .item .title{color:#263f64;font-weight:750;font-size:14px;text-decoration:none;display:block;margin:8px 0}
.brand-products .item .bottom{margin-top:auto;padding-top:12px;border-top:1px solid #ecf1f8;display:flex;justify-content:space-between;gap:8px;align-items:end}
.brand-products .item .bottom .price{font-weight:850;font-size:21px}
.brand-products .item .item-open{font-size:12px;text-decoration:none;color:#2a71ce}
@media(max-width:850px){
  /* Keep the catalog usable on short mobile screens; don't pin a tall two-row header. */
  .topbar{position:relative}
  .summary{position:static!important}
}

/* V7.0.5.3: comparison toggle belongs to image (independent of photo link). */
.product-grid .gallery{position:relative}
.product-grid .gallery .compare-photo{
  position:absolute;z-index:3;top:14px;right:14px;
  width:43px;height:43px;display:grid;place-items:center;padding:0;
  border-radius:13px;background:#fff;color:#42638d;border:1px solid #d7e2f2;
  box-shadow:0 3px 15px #203d6330;font-size:21px;
}
.product-grid .gallery .compare-photo[aria-pressed="true"]{
  background:#2874d5;color:#fff;border-color:#2874d5;
}
.product-grid .gallery .compare-photo:hover{background:#e9f3ff}
.product-grid .gallery .compare-photo[aria-pressed="true"]:hover{background:#2367bb}
/* Country directory reuses the brand grid without green accents. */
.country-directory{display:grid;grid-template-columns:repeat(auto-fit,minmax(185px,1fr));gap:13px;margin:25px 0}
.country-directory a{border:1px solid #d0e2fa;padding:18px 20px;border-radius:14px;text-decoration:none;background:#fff;color:#255ba0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.country-directory a:hover{background:#f1f7ff;border-color:#8cb9f2}
.country-directory strong{font-size:16px}
.country-directory small{font-size:12px;color:#6283ad}

.scope-brand-links{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 13px;font-size:13px}
.scope-brand-links strong{color:#4f709b;margin-right:4px}
.scope-brand-links a{border:1px solid #c8dcf8;border-radius:20px;padding:6px 11px;background:#f3f8ff;color:#245eaa;text-decoration:none}
.scope-brand-links a:hover{background:#e7f2ff}

/* V7.0.5.4: search and comparison remain adjacent at every breakpoint. */
.header-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:260px;flex:1;margin-left:auto}
.header-actions .site-search{margin-left:0;min-width:0;flex:1;max-width:420px}
.header-actions .header-compare{flex-shrink:0;margin-left:0}
/* Motion follows the blue outline only; nothing flashes over the label. */
@property --compare-ring-angle{
  syntax:"<angle>";
  inherits:false;
  initial-value:0deg;
}
.header-actions .header-compare{
  border:2px solid transparent;
  background:linear-gradient(#f0f6ff,#f0f6ff) padding-box,
    conic-gradient(from var(--compare-ring-angle),#b3d4ff 0deg,#2369cf 90deg,#60a5fa 170deg,#d9eaff 275deg,#b3d4ff 360deg) border-box;
  animation:compare-ring-cycle 3.8s linear infinite;
  transition:box-shadow .2s ease,color .2s ease;
}
.header-actions .header-compare:hover,
.header-actions .header-compare:focus-visible{
  color:#164c9e;
  background:linear-gradient(#e5f0ff,#e5f0ff) padding-box,
    conic-gradient(from var(--compare-ring-angle),#a4ccff,#1359c2,#74b1ff,#a4ccff) border-box;
  box-shadow:0 0 0 3px #bfdcff66;
}
@keyframes compare-ring-cycle{to{--compare-ring-angle:360deg}}
@media (prefers-reduced-motion:reduce){
  .header-actions .header-compare{animation:none;transition:none}
}
@media(max-width:850px){
  .topbar .header-actions{order:5;flex-basis:100%;width:100%;min-width:0;margin:0;gap:8px}
  .header-actions .site-search{order:0;flex:1;min-width:0;max-width:none;margin:0}
  .header-actions .header-compare{order:0;margin:0;padding:9px 10px}
}

/* V7.0.5.5: mobile wordmarks hug the text; identical inner padding and gaps. */
@media(max-width:850px){
  .brand-ribbon-inner{min-width:0;gap:8px;min-height:44px}
  .brand-logo-list{flex:1 1 auto;min-width:0;gap:8px;overflow-x:auto;overflow-y:hidden;padding:6px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
  .brand-logo-list::-webkit-scrollbar{display:none}
  .brand-logo-list .brand-logo{min-width:0!important;width:max-content!important;max-width:none;flex:0 0 auto;white-space:nowrap;padding:7px 11px;font-size:12px;line-height:1.1;border-radius:9px}
  .main{padding-top:12px}
}

/* V7.0.5.6 Header: uniform visual gap; search immediately follows navigation. */
@media(min-width:1081px){
  .topbar>.shell{justify-content:center;gap:22px;max-width:1440px}
  .topbar .brand{margin:0;flex:0 0 auto}
  .topbar .desktop-nav{margin:0;gap:17px;flex:0 0 auto}
  .topbar .header-actions{margin:0;flex:0 1 735px;min-width:0;max-width:735px;gap:12px;justify-content:flex-start}
  .topbar .header-actions .site-search{margin:0;flex:1 1 330px;min-width:185px;max-width:none}
  .topbar .header-actions .header-compare,.topbar .header-actions .header-favorites{flex:0 0 auto}
}
@media(min-width:1081px) and (max-width:1260px){
  .topbar>.shell{gap:12px}
  .topbar .desktop-nav{gap:10px}
  .topbar .header-actions{gap:7px}
  .header-favorites-label{display:none}
}
/* Mid-size devices: show navigation behind hamburger instead of squeezing search. */
@media(min-width:851px) and (max-width:1080px){
  .topbar>.shell{justify-content:center;gap:14px}
  .topbar .desktop-nav{display:none!important}
  .topbar .mobile-hamburger{display:block;position:relative}
  .topbar .header-actions{margin:0;min-width:0;flex:1;max-width:750px;gap:9px}
  .topbar .header-actions .site-search{min-width:140px;max-width:none;flex:1}
  .header-favorites-label{display:none}
  .mobile-hamburger summary{display:flex;align-items:center;gap:7px;list-style:none;background:#f4f8ff;border:1px solid #c7d8f0;border-radius:10px;padding:9px 11px;color:#2565bf;font-weight:750;cursor:pointer}
  .mobile-menu-items{position:absolute;right:0;top:calc(100% + 9px);z-index:80;min-width:280px;max-height:70vh;overflow:auto;display:grid;gap:2px;padding:9px;background:#fff;box-shadow:0 15px 45px #234a7933;border:1px solid #bcd6f3;border-radius:12px}
  .mobile-menu-items a{padding:10px;text-decoration:none}
}
.header-favorites{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:45px;padding:8px 12px;border:1px solid #b9d3f5;border-radius:12px;background:#f1f7ff;color:#225bb1;font-size:13px;font-weight:750;white-space:nowrap;text-decoration:none;transition:background .15s}
.header-favorites:hover,.header-favorites:focus-visible{background:#e4f0ff;color:#194e9e}
.header-favorites svg{flex:0 0 auto}
.favorites-count{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 5px;border-radius:50%;background:#2a70c9;color:#fff;font-size:11px}
.favorite-toggle{display:grid;place-items:center;min-width:40px;min-height:40px;padding:0;background:#fff;border:1px solid #c9d9f0;border-radius:12px;color:#3869a7;cursor:pointer;font:700 28px/1 system-ui,sans-serif;box-shadow:0 3px 14px #244a6c23}
.favorite-toggle[aria-pressed="true"]{color:#d94363;border-color:#f2b3c3;background:#fff2f6}
.favorite-toggle:focus-visible{outline:3px solid #347fe4;outline-offset:2px}
.favorite-card{position:absolute;left:16px;top:16px;z-index:3}
.product-grid .gallery .favorite-photo{position:absolute;left:14px;top:14px;z-index:4}
.favorites-header{margin:16px 0 24px;padding:6px 0;border-bottom:1px solid #dfe9f8}
.favorites-header h1{margin:8px 0 14px}
.favorites-description{color:#58769c;margin-bottom:16px}
.favorites-empty{border:1px dashed #b9d5f5;border-radius:14px;background:#f3f8ff;padding:25px;color:#3e6599}
.favorites-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0}
.favorites-clear{border:1px solid #c4d9f4;background:#fff;color:#2d64ab;padding:9px 12px;border-radius:9px;cursor:pointer}
.footer-privacy{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
.footer-privacy a,.footer-privacy button{font:inherit;color:#315d9b;text-decoration:underline}
.footer-privacy button{border:0;padding:0;background:transparent;cursor:pointer}
.cookie-consent[hidden]{display:none!important}
.cookie-consent{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);z-index:1000;display:flex;align-items:center;gap:22px;width:min(900px,calc(100% - 32px));padding:18px 20px;border:1px solid #b9d2f2;border-radius:15px;background:#fff;box-shadow:0 12px 46px #1d47703b;color:#24405f}
.cookie-consent-copy{flex:1;min-width:0}
.cookie-consent-copy strong{font-size:15px}
.cookie-consent-copy p{font-size:13px;margin:5px 0 0;line-height:1.5}
.cookie-consent-copy a{color:#2269c6}
.cookie-consent-actions{display:flex;gap:9px;flex-shrink:0;flex-wrap:wrap}
.cookie-consent-actions button{min-height:42px;border:1px solid #b6d1f5;padding:9px 13px;border-radius:10px;font-size:13px;font-weight:750;cursor:pointer}
.cookie-only{background:#fff;color:#2d62a8}.cookie-accept{background:#3076d1;color:#fff;border-color:#3076d1!important}
.cookie-policy{max-width:900px;line-height:1.65}
.cookie-policy h2{font-size:22px;margin-top:26px}
.cookie-policy ul{padding-left:22px}
@media(max-width:850px){
  .topbar .header-actions{justify-content:stretch;gap:7px;min-width:0}
  .topbar .header-actions .site-search{min-width:0}
  .topbar .header-actions .header-compare{padding:9px 8px}
  .header-favorites{padding:8px;min-height:40px}
  .header-favorites-label{display:none}
  .favorite-card{left:10px;top:10px}
  .cookie-consent{bottom:9px;width:calc(100% - 18px);padding:14px;flex-direction:column;align-items:stretch;gap:10px}
  .cookie-consent-actions{flex-wrap:nowrap}
  .cookie-consent-actions button{flex:1;font-size:12px;padding:9px 6px}
}
@media(max-width:380px){
  .topbar .header-actions .header-compare{padding:7px;gap:4px}
  .topbar .header-actions .site-search input{padding:9px 7px;font-size:12px}
  .topbar .header-actions .site-search button{padding:9px 10px}
  .topbar .header-actions .favorites-count,.topbar .header-actions .compare-count{min-width:17px;height:17px;padding:0 3px;font-size:10px}
}
@media(prefers-reduced-motion:reduce){.header-favorites{transition:none}}
