/* Brand directory v2.2 */
.brand-search-panel{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 22px}.search-field-wrap{position:relative;max-width:620px;flex:1}.search-field-wrap input{width:100%;padding-right:46px}.field-clear{display:none;position:absolute;right:7px;top:50%;transform:translateY(-50%);width:32px;height:32px;border:0;border-radius:50%;background:transparent;font-size:22px;color:#6f7e8c;cursor:pointer}.field-clear.show{display:block}.field-clear:hover{background:#edf5fb;color:#075da8}.brand-directory-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.brand-directory-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;color:inherit;text-decoration:none;transition:.18s ease;min-width:0}.brand-directory-card:hover{transform:translateY(-3px);border-color:#9dc7e8;box-shadow:0 14px 35px rgba(18,56,86,.10)}.brand-logo-wrap{height:150px;padding:18px;background:linear-gradient(180deg,#fbfdff,#f3f8fc);border-bottom:1px solid var(--line);display:grid;place-items:center}.brand-logo-wrap img{max-width:100%;max-height:116px}.brand-card-body{padding:18px;display:flex;flex-direction:column;flex:1}.brand-card-body h3{font-size:21px;margin:11px 0 4px}.brand-card-body p{color:var(--muted);margin:0 0 11px}.brand-card-body .brand-meta{font-size:13px;color:#40566a}.brand-link{font-weight:700;color:var(--blue);margin-top:auto;padding-top:8px}.brand-empty{text-align:center;margin-top:18px}.brand-profile-hero{display:grid;grid-template-columns:270px 1fr;gap:34px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:30px;margin-bottom:22px}.brand-profile-logo{background:#f5f9fc;border:1px solid var(--line);border-radius:18px;display:grid;place-items:center;padding:22px;min-height:210px}.brand-profile-logo img{width:100%;max-width:240px}.brand-profile-main h1{font-size:42px;margin:10px 0}.brand-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:22px 0}.brand-facts>div{border:1px solid var(--line);border-radius:12px;padding:12px}.brand-facts small{display:block;color:var(--muted);margin-bottom:4px}.brand-facts strong{font-size:16px}.brand-profile-grid{display:grid;grid-template-columns:1.7fr 1fr;gap:18px}.brand-data-list{margin:0}.brand-data-list div{display:grid;grid-template-columns:130px 1fr;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.brand-data-list dt{color:var(--muted)}.brand-data-list dd{margin:0;font-weight:600;overflow-wrap:anywhere}.source-note{background:#f6f9fc;border-radius:10px;padding:12px;font-size:13px}.empty-product-state{display:flex;justify-content:space-between;gap:15px;color:var(--muted)}@media(max-width:1100px){.brand-directory-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:780px){.brand-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.brand-profile-hero{grid-template-columns:1fr;padding:20px}.brand-profile-logo{min-height:160px}.brand-profile-grid{grid-template-columns:1fr}.brand-facts{grid-template-columns:1fr}.brand-search-panel{align-items:stretch;flex-direction:column}.empty-product-state{flex-direction:column}}@media(max-width:480px){.brand-directory-grid{grid-template-columns:1fr}}

.brand-directory-card[hidden]{display:none!important}


/* Brands search — corrected premium component */
.brand-search-panel{
  display:flex;
  align-items:center;
  gap:14px;
  margin:0 0 24px;
  padding:14px;
  background:#fff;
  border:1px solid var(--wm-line,#d9e3ec);
  border-radius:16px;
  box-shadow:0 6px 20px rgba(18,56,86,.055);
}
.brand-search-box{
  position:relative;
  flex:1 1 auto;
  min-width:0;
  max-width:none;
}
.brand-search-box .brand-search-icon{
  position:absolute;
  left:17px;
  top:50%;
  width:18px;
  height:18px;
  transform:translateY(-50%);
  pointer-events:none;
  z-index:2;
}
.brand-search-box .brand-search-icon::before{
  content:"";
  position:absolute;
  width:11px;
  height:11px;
  border:2px solid #64788a;
  border-radius:50%;
  left:0;
  top:0;
}
.brand-search-box .brand-search-icon::after{
  content:"";
  position:absolute;
  width:7px;
  height:2px;
  border-radius:2px;
  background:#64788a;
  transform:rotate(45deg);
  left:11px;
  top:13px;
}
.brand-search-box input[type="search"]{
  display:block;
  width:100%;
  height:54px;
  margin:0;
  padding:0 52px 0 49px;
  border:1px solid #c6d4df;
  border-radius:13px;
  outline:none;
  background:#fbfdff;
  color:var(--wm-text,#172635);
  font:600 15px/1.2 Inter,Arial,sans-serif;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:inset 0 1px 2px rgba(16,44,69,.025);
  transition:border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.brand-search-box input[type="search"]::-webkit-search-cancel-button{
  display:none;
  -webkit-appearance:none;
}
.brand-search-box input[type="search"]::placeholder{
  color:#7b8d9d;
  font-weight:500;
  opacity:1;
}
.brand-search-box input[type="search"]:hover{
  border-color:#9fb6c8;
  background:#fff;
}
.brand-search-box input[type="search"]:focus{
  border-color:var(--wm-blue,#075fae);
  background:#fff;
  box-shadow:0 0 0 4px rgba(7,95,174,.11),0 7px 18px rgba(18,56,86,.06);
}
.brand-search-box:focus-within .brand-search-icon::before{
  border-color:var(--wm-blue,#075fae);
}
.brand-search-box:focus-within .brand-search-icon::after{
  background:var(--wm-blue,#075fae);
}
.brand-search-box .field-clear{
  display:none;
  align-items:center;
  justify-content:center;
  position:absolute;
  right:10px;
  top:50%;
  z-index:3;
  width:34px;
  height:34px;
  min-width:34px;
  padding:0;
  margin:0;
  transform:translateY(-50%);
  border:0;
  border-radius:50%;
  background:#edf3f7;
  box-shadow:none;
  color:#536779;
  font:400 23px/1 Arial,sans-serif;
  cursor:pointer;
  transition:background .15s ease,color .15s ease,transform .15s ease;
}
.brand-search-box .field-clear.show{display:flex}
.brand-search-box .field-clear:hover{
  background:#dfeaf2;
  color:var(--wm-blue,#075fae);
  transform:translateY(-50%) scale(1.04);
}
.brand-search-box .field-clear:active{
  transform:translateY(-50%) scale(.94);
}
.brand-search-box .field-clear:focus-visible{
  outline:3px solid rgba(7,95,174,.18);
  outline-offset:2px;
}
.brand-count-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  min-width:106px;
  height:42px;
  padding:0 15px;
  border:1px solid #d8e3eb;
  border-radius:999px;
  background:#f4f8fb;
  color:#40576b;
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
@media(max-width:780px){
  .brand-search-panel{
    align-items:stretch;
    flex-direction:column;
    gap:10px;
    padding:12px;
  }
  .brand-count-badge{
    align-self:flex-start;
    height:34px;
    min-width:0;
  }
}
@media(max-width:480px){
  .brand-search-panel{border-radius:14px;padding:10px}
  .brand-search-box input[type="search"]{height:50px;font-size:14px}
}


/* Brands search — final compact alignment fix */
body.wm-v2 .brand-search-panel{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:12px;
  width:100%;
  max-width:720px;
  margin:0 0 24px;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}
.misterwater-logo-surface{background:linear-gradient(145deg,#061927,#123c54)!important}.misterwater-logo-surface img{filter:none;object-fit:contain}

body.wm-v2 .brand-search-box{
  position:relative;
  flex:0 1 540px;
  width:100%;
  max-width:540px;
  min-width:260px;
}

body.wm-v2 .brand-search-box .brand-search-icon{
  position:absolute;
  left:15px;
  top:50%;
  width:18px;
  height:18px;
  margin:0;
  transform:translateY(-50%);
  pointer-events:none;
  z-index:3;
}

body.wm-v2 .brand-search-box .brand-search-icon::before{
  width:10px;
  height:10px;
  left:0;
  top:0;
  border-width:2px;
}

body.wm-v2 .brand-search-box .brand-search-icon::after{
  width:7px;
  height:2px;
  left:10px;
  top:12px;
}

body.wm-v2 .brand-search-box input[type="search"]{
  width:100%;
  height:48px;
  margin:0;
  padding:0 45px 0 45px;
  border:1px solid #c9d7e2;
  border-radius:12px;
  background:#fff;
  font-size:15px;
  font-weight:600;
  line-height:48px;
  box-shadow:none;
}

body.wm-v2 .brand-search-box input[type="search"]:focus{
  border-color:var(--wm-blue,#075fae);
  box-shadow:0 0 0 3px rgba(7,95,174,.10);
}

body.wm-v2 .brand-search-box input[type="search"]::-webkit-search-cancel-button,
body.wm-v2 .brand-search-box input[type="search"]::-webkit-search-decoration{
  display:none;
  -webkit-appearance:none;
}

body.wm-v2 .brand-search-box > .search-clear-btn{
  display:none!important;
}

body.wm-v2 .brand-search-box .field-clear{
  display:none;
  position:absolute;
  right:8px;
  top:50%;
  width:32px;
  height:32px;
  margin:0;
  padding:0;
  transform:translateY(-50%);
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:50%;
  background:#eef4f8;
  color:#627486;
  font:400 21px/1 Arial,sans-serif;
  z-index:4;
}

body.wm-v2 .brand-search-box .field-clear.show{
  display:flex;
}

body.wm-v2 .brand-search-box .field-clear:hover{
  background:#dfeaf2;
  color:var(--wm-blue,#075fae);
  transform:translateY(-50%);
}

body.wm-v2 .brand-count-badge{
  flex:0 0 auto;
  min-width:96px;
  height:38px;
  padding:0 14px;
  margin:0;
  border-radius:999px;
  font-size:13px;
}

@media(max-width:760px){
  body.wm-v2 .brand-search-panel{
    max-width:100%;
    align-items:stretch;
    flex-direction:column;
    gap:9px;
  }
  body.wm-v2 .brand-search-box{
    flex:1 1 auto;
    max-width:none;
    min-width:0;
  }
  body.wm-v2 .brand-count-badge{
    align-self:flex-start;
    height:34px;
    min-width:0;
  }
}

/* New brand pages: balanced information above the fold */
body.wm-v2 .brand-hero{
  display:grid;
  grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);
  gap:24px;
  align-items:stretch;
  margin-bottom:22px;
}
body.wm-v2 .brand-hero-primary,
body.wm-v2 .brand-hero-details{
  background:#fff;
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:0 14px 38px rgba(18,56,86,.07);
}
body.wm-v2 .brand-hero-primary{
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  gap:28px;
  align-items:center;
  padding:30px;
}
body.wm-v2 .brand-hero-logo{
  display:grid;
  place-items:center;
  min-height:190px;
  padding:22px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#f1f7fb);
}
body.wm-v2 .brand-hero-logo img{
  display:block;
  width:100%;
  max-width:170px;
  max-height:150px;
  object-fit:contain;
}
body.wm-v2 .brand-hero-copy h1{
  margin:12px 0 10px;
  font-size:clamp(38px,4vw,58px);
  line-height:1;
}
body.wm-v2 .brand-hero-copy .lead{max-width:670px;margin-bottom:0}
body.wm-v2 .brand-hero-details{
  display:flex;
  flex-direction:column;
  padding:26px;
  background:linear-gradient(155deg,#f8fbfe,#eef6fb);
}
body.wm-v2 .brand-hero-details h2{margin:0 0 12px;font-size:22px}
body.wm-v2 .brand-hero-details dl{margin:0 0 20px}
body.wm-v2 .brand-hero-details dl div{
  display:grid;
  grid-template-columns:minmax(105px,.85fr) minmax(0,1.15fr);
  gap:14px;
  padding:12px 0;
  border-bottom:1px solid rgba(155,180,199,.4);
}
body.wm-v2 .brand-hero-details dt{color:var(--muted);font-size:13px}
body.wm-v2 .brand-hero-details dd{margin:0;font-weight:750;text-align:right}
body.wm-v2 .brand-hero-details .btn{width:100%;margin-top:auto}
@media(max-width:980px){
  body.wm-v2 .brand-hero{grid-template-columns:1fr}
  body.wm-v2 .brand-hero-details dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
  body.wm-v2 .brand-hero-details dl div{display:block;border:1px solid var(--line);border-radius:12px;padding:12px}
  body.wm-v2 .brand-hero-details dd{margin-top:5px;text-align:left}
}
@media(max-width:620px){
  body.wm-v2 .brand-hero-primary{grid-template-columns:1fr;padding:20px;gap:18px}
  body.wm-v2 .brand-hero-logo{min-height:145px}
  body.wm-v2 .brand-hero-copy h1{font-size:38px}
  body.wm-v2 .brand-hero-details{padding:20px}
  body.wm-v2 .brand-hero-details dl{grid-template-columns:1fr}
}

/* Official white wordmarks need a dark field on the light directory cards. */
.brand-logo-wrap img[src*="sprudelux."],
.brand-logo-wrap img[src$="blanco.svg"],
body.wm-v2 .brand-hero-logo img[src*="sprudelux."],
body.wm-v2 .brand-hero-logo img[src$="blanco.svg"]{
  box-sizing:border-box;
  border-radius:12px;
  background:#143d57;
  padding:18px;
}
