:root{
  --wb-bg: #fff;
  --wb-text: #111;
  --wb-border: #e5e7eb;
  --wb-accent: #00ABEA;
  --wb-container: 1320px;
  --wb-pad-x: clamp(12px, 3vw, 32px);
}

*,
*::before,
*::after{
  box-sizing: border-box;
}

html, body{
  max-width: 100%;
  overflow-x: hidden;
}

.wb-header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wb-bg);
  border-bottom: 1px solid var(--wb-border);
  width: 100%;
}

.wb-inner{
  width: min(100%, var(--wb-container));
  margin: 0 auto;
  padding: 0 var(--wb-pad-x);
}

.wb-top{
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.wb-logo{
  text-decoration: none;
}

.wb-logo img{
  height: clamp(34px, 3vw, 46px);
  width: auto;
  display: block;
}

.wb-searchrow{
  width: 100%;
}

.wb-search{
  width: min(100%, 680px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.wb-search input{
  height: 42px;
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--wb-border);
  border-radius: 12px;
  outline: none;
  font-size: 14px;
}

.wb-search input:focus{
  border-color: rgba(0, 171, 234, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 171, 234, 0.12);
}

.wb-search button{
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--wb-accent);
  background: var(--wb-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.wb-search button:hover{
  background: #0b95cc;
  border-color: #0b95cc;
}

.wb-actions{
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.wb-icon-link{
  text-decoration: none;
  color: var(--wb-text);
  padding: 4px 6px;
  border-radius: 8px;
}

.wb-icon-link:hover{
  background: #f7f7f8;
}

.icon-wrapper{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.icon-svg{
  width: 38px;
  height: 28px;
  stroke: currentColor;
  display: block;
}

.icon-label{
  font-size: 15px;
  font-weight: 500;
  color: var(--wb-text);
}

.cart-container_1{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cart-count{
  position: absolute;
  top: -8px;
  right: 36px;
  background: var(--wb-accent);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s ease;
}

/* Fly-to-cart animation */
.wb-cart-flyer {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.22);
  background: #fff;
  will-change: transform, opacity, left, top;
}

.wb-cart-flyer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wb-cart-flyer--dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--wb-accent, #51bcff);
  box-shadow: 0 0 0 6px rgba(81, 188, 255, 0.25);
}

.wb-cart-pulse {
  animation: wbCartPulse 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wb-cart-count-bump {
  animation: wbCartCountBump 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wbCartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  100% { transform: scale(1); }
}

@keyframes wbCartCountBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .wb-cart-flyer {
    display: none !important;
  }
  .wb-cart-pulse,
  .wb-cart-count-bump {
    animation: none !important;
  }
}

.wb-menu-btn{
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.wb-menu-btn span{
  height: 2px;
  width: 100%;
  background: #111;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.wb-menu-btn.active span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.wb-menu-btn.active span:nth-child(2){ opacity: 0; }
.wb-menu-btn.active span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* Main nav */
.wb-nav{
  width: min(100%, var(--wb-container));
  margin: 0 auto;
  padding: 12px var(--wb-pad-x) 14px;
  border-top: 1px solid var(--wb-border);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(12px, 2vw, 24px);
  flex-wrap: wrap;
}

.wb-nav-link,
.wb-nav-trigger{
  text-decoration: none;
  color: var(--wb-text);
  font-size: 14px;
  font-weight: 500;
}

.wb-nav-link:hover,
.wb-nav-trigger:hover{
  color: var(--wb-accent);
}

.wb-nav-item{
  position: relative;
}

.wb-nav-trigger{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.wb-caret{
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -2px;
}

/* Level-1 dropdown */
.wb-subnav{
  position: absolute;
  top: calc(100% + 1px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  max-width: min(92vw, 360px);
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
  padding: 8px;
  display: none;
  z-index: 1200;
}

/* Simple non-group links */
.wb-subnav > .wb-subnav-link{
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--wb-text);
  font-size: 14px;
}
.wb-subnav > .wb-subnav-link:hover{
  background: #f7f7f8;
  color: var(--wb-accent);
}

/* Grouped submenu */
.wb-subnav-group{
  position: relative;
}

.wb-subnav-title{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--wb-text);
  cursor: pointer;
  text-align: left;
}

.wb-subnav-title:hover{
  background: #f7f7f8;
  color: var(--wb-accent);
}

.wb-sub-caret{
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  flex-shrink: 0;
}

/* wrapper panel (background/effects parent) */
.wb-subnav-links{
  display: none;
  background: #fff;
  border: 1px solid var(--wb-border);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  padding: 6px;
}

.wb-subnav-links .wb-subnav-link{
  display: block;
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--wb-text);
  font-size: 14px;
}
.wb-subnav-links .wb-subnav-link:hover{
  background: #f7f7f8;
  color: var(--wb-accent);
}

/* Desktop behavior */
@media (min-width: 861px) and (hover: hover) and (pointer: fine){
  .wb-nav-item:hover > .wb-subnav{
    display: block;
  }

  /* only hovered group's panel appears */
  .wb-subnav-group:hover > .wb-subnav-links{
    display: block;
    position: absolute;
    left: calc(100% + 1px);
    top: 0;
    min-width: 220px;
    max-width: 300px;
    z-index: 1300;
  }
}

/* Mobile */
@media (max-width: 860px){
  .wb-inner{ padding: 0 12px; }

  .wb-top{
    grid-template-columns: auto 1fr auto auto;
    gap: 10px;
    min-height: 58px;
  }

  .wb-logo img{
    height: 30px;
    max-width: 42vw;
    object-fit: contain;
  }

  .wb-searchrow{
    grid-column: 1 / -1;
    order: 4;
    margin-bottom: 8px;
  }

  .wb-search{
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .wb-search input,
  .wb-search button{
    width: 100%;
    height: 40px;
  }

  .icon-label{ display: none; }

  .cart-count{
    right: -10px;
    top: -8px;
  }

  .wb-menu-btn{
    display: flex;
    justify-self: end;
  }

  .wb-nav{
    display: none;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 12px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
  }

  .wb-header.is-open .wb-nav{
    display: flex;
  }

  .wb-nav-link,
  .wb-nav-trigger{
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 2px;
  }

  .wb-nav-item{ width: 100%; }

  .wb-subnav{
    position: static;
    transform: none;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    border: 1px solid var(--wb-border);
    box-shadow: none;
    border-radius: 10px;
    padding: 8px;
    margin-top: 4px;
    display: none;
  }

  .wb-nav-item.is-open > .wb-subnav{
    display: block;
  }

  .wb-sub-caret{
    transform: rotate(45deg);
    transition: transform .2s ease;
  }

  .wb-subnav-group.is-open > .wb-subnav-title .wb-sub-caret{
    transform: rotate(225deg);
  }

  .wb-subnav-links{
    position: static;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-shadow: none;
    margin-top: 4px;
    display: none;
  }

  .wb-subnav-group.is-open > .wb-subnav-links{
    display: block;
  }
}

@media (max-width: 415px){
  .wb-logo img{ height: 26px; }
  .icon-svg{ width: 18px; height: 18px; }

  .wb-search input,
  .wb-search button{
    height: 38px;
    font-size: 13px;
  }
}

@media (max-width: 800px){
    .wb-logo, .wb-actions, .wb-menu-btn{
        margin-top: 1.5rem;
    }
}


.wb-search { position: relative; }

.wb-search-suggest{
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 2px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  max-height: 320px;
  overflow: auto;
  display: none;
  z-index: 1600;
}
.wb-search-suggest.is-open{ display: block; }

.wb-suggest-item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  padding: 10px;
  text-decoration: none;
  color: #111;
}
.wb-suggest-item:hover{ background: #f8fafc; }

.wb-suggest-item img{
  width: 44px; height: 44px; object-fit: cover; border-radius: 8px;
}
.wb-suggest-title{ font-size: 13px; font-weight: 600; }
.wb-suggest-meta{ font-size: 12px; color: #6b7280; }

.wb-suggest-empty{ padding: 10px; font-size: 13px; color: #6b7280; }