/* =====================================================================
   Kayak West — Site Header CSS  v1.0.0
   All rules scoped to .kw-header — no clash with WP/Elementor/WC.
   Brand: teal #007b86 · lime #ccf048 · ink #09202e
   Fonts: Barlow Condensed (headings/logo) + Manrope (body/nav)
   ===================================================================== */

.kw-header,.kw-header *{box-sizing:border-box}
/* Kill pink tap highlights */
.kw-header *{-webkit-tap-highlight-color:rgba(0,0,0,0) !important}
.kw-header button,.kw-header input,.kw-header a{outline-color:#007b86}
.kw-header button:active,.kw-header button:focus,
.kw-header input:active,.kw-header input:focus,
.kw-header a:active,.kw-header a:focus{
  background-color:transparent !important;
  box-shadow:none !important;
  color:inherit !important;
}
.kw-header button:focus-visible,.kw-header a:focus-visible{outline:2px solid #007b86;outline-offset:2px}
.kw-header .kw-icon-btn:active,.kw-header .kw-icon-btn:focus,
.kw-header .kw-icon-btn:hover{
  background:transparent !important;
  border-color:#007b86 !important;
  color:#09202e !important;
  box-shadow:none !important;
}
.kw-header .kw-search-toggle:active,.kw-header .kw-search-toggle:focus{
  background:transparent !important;color:#007b86 !important;box-shadow:none !important;
}

/* ── Header root ── */
.kw-header{
  --kw-h-teal:#007b86;--kw-h-teal-dark:#005a63;
  --kw-h-ink:#09202e;--kw-h-line:#d0dce0;
  --kw-h-text:#1a2e38;--kw-h-muted:#5a7a86;
  font-family:"Manrope",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:var(--kw-h-text);
  position:sticky;top:0;z-index:1000;
  background:#fff;
}

/* Prevent Elementor wrappers showing through */
.elementor-template-header .elementor-section,
.elementor-template-header .elementor-column,
.elementor-template-header .elementor-widget-wrap,
.elementor-template-header .elementor-widget{
  background:transparent !important;
}

.kw-wrap{max-width:1240px;margin:0 auto;padding:0 20px}
.kw-header a{color:inherit;text-decoration:none}
.kw-skip{position:absolute;left:-9999px;top:0;background:#fff;color:#000;padding:10px 14px;z-index:2000;font-weight:700}
.kw-skip:focus{left:10px;top:10px}

/* ══ TOPBAR ═══════════════════════════════════════════════════════════ */
.kw-topbar{
  background:#005a63;
  font-size:13px;font-weight:600;letter-spacing:.04em;
  font-family:"Barlow Condensed",Arial,sans-serif;
  text-transform:uppercase;color:#fff;
}
.kw-topbar .kw-wrap{
  display:flex;justify-content:space-between;align-items:center;
  gap:12px;min-height:34px;flex-wrap:wrap;padding-top:4px;padding-bottom:4px;
}
.kw-topbar .kw-tb-left{opacity:.9}
.kw-topbar .kw-tb-right{display:flex;gap:20px;align-items:center}
.kw-topbar .kw-tb-phone{font-weight:700;color:#ccf048}
.kw-topbar .kw-tb-phone:hover{color:#fff}
.kw-topbar a:hover{text-decoration:underline}

/* ══ BRAND ROW ════════════════════════════════════════════════════════ */
.kw-brand{background:#fff}
.kw-brand .kw-wrap{
  display:grid !important;
  grid-template-columns:auto 1fr auto;
  align-items:center;gap:16px;min-height:80px;padding:0 20px;max-width:1240px;
}

/* ── Logo — text-based with arrow icon ── */
.kw-logo{
  display:flex !important;align-items:center;gap:10px;
  text-decoration:none;flex:none;
}
.kw-logo-icon{
  font-size:28px;color:#007b86;line-height:1;font-weight:900;
  font-family:"Barlow Condensed",Arial,sans-serif;
}
.kw-logo-word{
  display:flex;flex-direction:column;line-height:1;
}
.kw-logo-word b{
  font:900 28px/1 "Barlow Condensed","Arial Narrow",Arial,sans-serif;
  text-transform:uppercase;letter-spacing:.04em;color:#09202e;
}
.kw-logo-word b span{color:#007b86}
.kw-logo-word small{
  font:700 9px/1 "Manrope",Arial,sans-serif;
  text-transform:uppercase;letter-spacing:.18em;
  color:#5a7a86;margin-top:4px;
}
/* Optional: use an actual logo image */
.kw-logo img{height:60px !important;width:auto !important;max-height:60px !important;display:block !important}

/* ══ SEARCH BAR ═══════════════════════════════════════════════════════ */
.kw-search-bar{
  width:100%;max-width:520px;margin:0 auto;position:relative;
  display:flex !important;flex-direction:row !important;
  flex-wrap:nowrap !important;align-items:stretch !important;
  min-width:0;
}
.kw-search-bar .kw-search-input{
  flex:1 1 auto !important;display:block !important;
  height:44px;background:#f2f7f8;
  border:1px solid #cce3e6;border-right:none !important;
  border-radius:6px 0 0 6px;
  color:#09202e !important;
  font:500 15px "Manrope",system-ui,sans-serif;
  padding:0 14px;outline:none;min-width:0;width:100%;
  -webkit-text-fill-color:#09202e !important;
}
.kw-search-bar .kw-search-input:focus{border-color:#007b86}
.kw-search-bar .kw-search-input::placeholder{color:#7a9aa3}
.kw-search-bar .kw-search-submit{
  flex:0 0 auto !important;display:flex !important;
  align-items:center;justify-content:center;
  width:46px;height:44px;
  background:#007b86;border:1px solid #007b86;
  border-radius:0 6px 6px 0;color:#fff;cursor:pointer;
  transition:background .15s;padding:0;
}
.kw-search-bar .kw-search-submit:hover{background:#005a63;border-color:#005a63}
.kw-search-bar .kw-search-submit svg{width:18px;height:18px;flex:none}

/* AJAX results dropdown */
.kw-search-results{
  position:absolute;top:calc(100% + 6px);left:0;right:0;
  background:#f2f7f8;border:1px solid #cce3e6;border-radius:6px;
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  display:none;z-index:200;
  max-height:420px;overflow-y:auto;
}
.kw-search-results:not(:empty){display:block}
.kw-search-status{padding:10px 14px;color:#5a7a86;font-size:14px;margin:0}
.kw-search-all{display:block;padding:10px 14px;border-top:1px solid #cce3e6;color:#007b86;font-weight:700;font-size:14px;text-decoration:none}
.kw-search-all:hover{color:#005a63}

/* ══ ACTION BUTTONS ═══════════════════════════════════════════════════ */
.kw-actions{display:flex !important;align-items:center;gap:12px;flex:none;margin-left:auto}
.kw-icon-btn{
  position:relative;display:flex;align-items:center !important;
  justify-content:center !important;
  width:46px;height:46px;border-radius:6px;
  border:1px solid #cce3e6;background:transparent;
  color:#09202e;cursor:pointer;overflow:visible;padding:0;line-height:1;
}
.kw-icon-btn:hover{border-color:#007b86}
.kw-icon-btn svg{width:22px;height:22px}
.kw-count{
  position:absolute;top:-8px;right:-8px;min-width:20px;height:20px;
  padding:0 5px;border-radius:10px;
  background:#007b86;color:#fff;
  font-size:11px;font-weight:700;line-height:1;
  display:grid;place-items:center;pointer-events:none;z-index:1;
}
.kw-count:empty{display:none}

/* CTA button — teal + lime text */
.kw-call{
  display:inline-flex !important;align-items:center;gap:10px;
  background:#007b86;color:#fff;border-radius:6px;
  padding:10px 18px;font-weight:700;line-height:1.15;
  transition:background .15s;font-family:"Manrope",Arial,sans-serif;
}
.kw-call:hover{background:#005a63}
.kw-call svg{width:20px;height:20px;flex:none}
.kw-call small{
  display:block;font-size:11px;font-weight:600;
  letter-spacing:.08em;text-transform:uppercase;opacity:.85;
}
.kw-call span{font-size:17px}
.kw-call .kw-call-label{
  color:#ccf048;font-size:12px;font-weight:800;
  letter-spacing:.06em;text-transform:uppercase;
}

.kw-burger{display:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.kw-search-toggle{display:none;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}

/* ══ NAV ROW ══════════════════════════════════════════════════════════ */
.kw-nav{background:#007b86;border-top:none;border-bottom:3px solid #005a63}
.kw-menu{
  display:flex !important;justify-content:space-between;
  list-style:none;margin:0 auto;padding:0 20px;max-width:1240px;
}
.kw-menu > li{position:relative}
.kw-menu > li > a,.kw-menu > li > button{
  display:flex !important;align-items:center;justify-content:center;gap:4px;
  height:48px;padding:0 10px;
  font:700 14px/1 "Barlow Condensed",Arial,sans-serif;
  letter-spacing:.06em;text-transform:uppercase;
  color:#fff;background:none;border:0;cursor:pointer;white-space:nowrap;
  position:relative;width:100%;
}
.kw-menu > li > a::after,.kw-menu > li > button::after{
  content:"";position:absolute;left:10px;right:10px;bottom:-3px;
  height:3px;background:#ccf048;transform:scaleX(0);transition:transform .2s;
}
.kw-menu > li > a:hover::after,.kw-menu > li > button:hover::after,
.kw-menu > li > a[aria-current="page"]::after{transform:scaleX(1)}
.kw-menu > li > a:hover,.kw-menu > li > button:hover{
  color:#fff !important;background:rgba(255,255,255,.12) !important;
}
.kw-menu .kw-caret{width:12px;height:12px;transition:transform .2s;color:#fff}
.kw-has-sub[data-open="true"] .kw-caret{transform:rotate(180deg)}

/* Dropdown */
.kw-sub{
  position:absolute;top:100%;left:-16px;min-width:280px;margin-top:3px;
  background:#fff;color:#09202e;border-radius:0 0 6px 6px;
  box-shadow:0 18px 40px rgba(0,0,0,.24);
  padding:10px 0;list-style:none;
  opacity:0;visibility:hidden;transform:translateY(6px);
  transition:opacity .15s,transform .15s,visibility .15s;
}
.kw-has-sub:hover .kw-sub,
.kw-has-sub:focus-within .kw-sub,
.kw-has-sub[data-open="true"] .kw-sub{opacity:1;visibility:visible;transform:none}
.kw-sub a{
  display:block;padding:10px 20px;
  font:600 15px "Manrope",Arial,sans-serif;
  color:#09202e;
}
.kw-sub a:hover,.kw-sub a:focus{background:#eaf4f5;color:#007b86}
.kw-sub .kw-sub-label{
  padding:10px 20px 4px;font-size:11px;font-weight:800;
  letter-spacing:.12em;text-transform:uppercase;color:#5a7a86;
  border-top:1px solid #e0ecee;margin-top:6px;
}
.kw-sub .kw-sub-all a{color:#007b86;border-top:1px solid #e0ecee;margin-top:6px;font-weight:700}

/* ══ RESPONSIVE ═══════════════════════════════════════════════════════ */
@media (max-width:1080px){
  .kw-search-bar{max-width:380px}
}

@media (max-width:980px){
  /* Burger */
  .kw-burger{
    display:grid;place-items:center;
    width:44px;height:44px;
    border:1.5px solid #cce3e6;border-radius:8px;
    background:#fff;color:#09202e;
    transition:border-color .15s,color .15s;
  }
  .kw-burger:hover{border-color:#007b86;color:#007b86}
  /* Search toggle */
  .kw-search-toggle{display:grid;place-items:center}
  /* Phone CTA → icon-only */
  .kw-call{
    background:#007b86 !important;border:none !important;border-radius:8px;
    padding:0;width:44px;height:44px;gap:0;justify-content:center;color:#fff !important;
  }
  .kw-call:hover{background:#005a63 !important}
  .kw-call svg{width:20px;height:20px;flex:none;color:#fff !important;stroke:#fff !important}
  .kw-call div,.kw-call small,.kw-call span,.kw-call .kw-call-label{display:none !important}
  /* Search bar hidden by default */
  .kw-search-bar{display:none !important;max-width:none;width:100%;grid-column:1/-1}
  .kw-header[data-search="open"] .kw-search-bar{display:flex !important}
  .kw-brand .kw-wrap{
    grid-template-columns:auto 1fr;
    grid-template-rows:auto auto;
    padding-bottom:0;
  }
  .kw-logo{grid-column:1;grid-row:1}
  .kw-actions{grid-column:2;grid-row:1;justify-self:end}
  .kw-search-bar{grid-column:1/-1;grid-row:2}
  .kw-header[data-search="open"] .kw-brand .kw-wrap{padding-bottom:12px}

  /* Mobile nav — full-screen backdrop + right-side drawer */
  .kw-nav{
    display:none;position:fixed;inset:0;
    z-index:8000;background:rgba(0,0,0,.48);
    border:none;overflow:hidden;
    backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);
  }
  .kw-header[data-menu="open"] .kw-nav{display:block}

  /* Panel slides in from RIGHT */
  .kw-menu{
    position:absolute;top:0;right:0;bottom:auto;left:auto;
    width:min(300px,82vw);height:100vh;
    flex-direction:column !important;justify-content:flex-start !important;
    align-items:stretch !important;gap:0 !important;
    padding:0;list-style:none;
    background:#fff;
    box-shadow:-6px 0 40px rgba(0,0,0,.22);
    overflow-y:auto;overflow-x:hidden;
    transform:translateX(100%);
    transition:transform .32s cubic-bezier(.22,1,.36,1);
  }
  .kw-header[data-menu="open"] .kw-menu{transform:translateX(0)}

  /* Panel top strip */
  .kw-menu::before{
    content:"NAVIGATION";
    display:block;flex:none;
    padding:18px 20px 14px;
    background:#007b86;color:#fff;
    font:700 11px/1 "Barlow Condensed",Arial,sans-serif;
    letter-spacing:.18em;
  }

  .kw-nav .kw-menu{margin:0 !important;padding:0 !important}
  .kw-nav .kw-menu > li,
  .kw-nav .kw-menu li{
    border-bottom:1px solid #eef2f3;
    margin:0 !important;padding:0 !important;
    float:none !important;width:100% !important;
    list-style:none !important;
  }
  .kw-nav .kw-menu > li:last-child{border-bottom:0}
  .kw-nav .kw-menu > li > a,
  .kw-nav .kw-menu > li > button{
    display:flex !important;
    height:auto !important;min-height:0 !important;max-height:none !important;
    width:100% !important;
    justify-content:space-between !important;
    padding:14px 18px !important;margin:0 !important;
    font-size:15px !important;font-weight:600 !important;
    letter-spacing:.01em !important;text-transform:none !important;
    color:#09202e !important;background:transparent !important;
    text-align:left;transition:background .12s,color .12s;
    box-sizing:border-box !important;
  }
  .kw-nav .kw-menu > li > a:hover,.kw-nav .kw-menu > li > button:hover{
    background:#eaf4f5 !important;color:#007b86 !important;
  }
  .kw-nav .kw-menu > li > a::after,.kw-nav .kw-menu > li > button::after{display:none !important}
  .kw-nav .kw-menu > li > a[aria-current="page"]{color:#007b86 !important;background:#dff0f1 !important}
  .kw-nav .kw-menu .kw-caret{color:#aaa;width:14px;height:14px;flex:none}

  /* Sub-menus inside drawer */
  .kw-sub{
    position:static !important;opacity:1 !important;visibility:visible !important;
    transform:none !important;box-shadow:none !important;border-radius:0 !important;
    background:#f4fafb !important;margin:0;padding:4px 0 8px;display:none;min-width:0;
    border-top:1px solid #eef2f3;
  }
  .kw-has-sub:hover .kw-sub,.kw-has-sub:focus-within .kw-sub{display:none}
  .kw-has-sub[data-open="true"] .kw-sub{display:block}
  .kw-sub a{color:#2a3c44 !important;padding:11px 18px 11px 32px !important;font-weight:500 !important;font-size:14px !important}
  .kw-sub a:hover,.kw-sub a:focus{background:#dff0f1 !important;color:#007b86 !important}
  .kw-sub .kw-sub-label{color:#aaa !important;border-top-color:#eef2f3 !important;padding-left:32px !important;font-size:10px !important}
  .kw-sub .kw-sub-all a{border-top-color:#eef2f3 !important;color:#007b86 !important}
}

@media (max-width:600px){
  .kw-topbar{font-size:12px;line-height:1}
  .kw-topbar .kw-wrap{
    flex-direction:row;flex-wrap:nowrap;
    align-items:center;justify-content:space-between;
    gap:8px;padding-top:7px;padding-bottom:7px;min-height:auto;
  }
  .kw-topbar .kw-tb-left{
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
    max-width:60%;
  }
  .kw-topbar .kw-tb-showroom{display:none !important}
  .kw-topbar .kw-tb-right{gap:0}
  .kw-brand .kw-wrap{min-height:68px;gap:10px}
  .kw-logo-word b{font-size:24px}
  .kw-actions{gap:8px}
  .kw-search-bar .kw-search-input{font-size:16px}
}

@supports (padding-top:env(safe-area-inset-top)){
  .kw-topbar{padding-top:env(safe-area-inset-top,0px)}
}
@media (prefers-reduced-motion:reduce){.kw-header *{transition:none!important}}

/* ══ CART DRAWER ══════════════════════════════════════════════════════ */
.kw-cart-drawer{
  position:fixed;inset:0;z-index:9000;
  pointer-events:none;
}
.kw-cart-drawer[aria-hidden="false"]{pointer-events:auto}

.kw-cart-backdrop{
  position:absolute;inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;transition:opacity .28s ease;
}
.kw-cart-drawer[aria-hidden="false"] .kw-cart-backdrop{opacity:1}

.kw-cart-panel{
  position:absolute;left:0;right:0;bottom:0;
  background:#fff;
  border-top:3px solid #007b86;
  border-radius:14px 14px 0 0;
  max-height:85vh;
  display:flex;flex-direction:column;
  transform:translateY(100%);
  transition:transform .32s cubic-bezier(.22,1,.36,1);
}
.kw-cart-drawer[aria-hidden="false"] .kw-cart-panel{transform:translateY(0)}

.kw-cart-panel-head{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 20px 14px;
  border-bottom:1px solid #e0ecee;
  flex:none;
}
.kw-cart-panel-title{
  font:700 18px/1 "Manrope",system-ui,sans-serif;
  color:#09202e;letter-spacing:.01em;
}
.kw-cart-panel-close{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;
  border:1px solid #cce3e6;border-radius:6px;
  background:transparent;color:#09202e;cursor:pointer;padding:0;line-height:1;
}
.kw-cart-panel-close:hover{border-color:#007b86}
.kw-cart-panel-close svg{width:18px;height:18px}

.kw-cart-panel-body{
  flex:1;overflow-y:auto;padding:16px 20px 24px;
  color:#09202e;
}

/* Cart items (Allied pattern — JS-rendered) */
.kw-cart-loading,.kw-cart-empty{color:#5a7a86;font-size:14px;text-align:center;padding:28px 0;margin:0}
.kw-cart-items{list-style:none;margin:0;padding:0}
.kw-cart-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid #e0ecee}
.kw-cart-item:last-child{border-bottom:0}
.kw-cart-item-img-wrap{flex:none;display:block;width:60px;height:60px;border-radius:6px;overflow:hidden;background:#eaf4f5}
.kw-cart-item-img-wrap img{width:60px;height:60px;object-fit:cover;display:block}
.kw-cart-item-img-ph{width:60px;height:60px;background:#eaf4f5;border-radius:6px}
.kw-cart-item-info{flex:1;min-width:0}
.kw-cart-item-name{display:block;color:#09202e;font-weight:600;font-size:14px;line-height:1.4;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kw-cart-item-name:hover{color:#007b86}
.kw-cart-item-qty{display:block;font-size:13px;color:#5a7a86;margin-top:3px}
.kw-cart-item-remove{flex:none;display:grid;place-items:center;width:28px;height:28px;border-radius:5px;border:none;background:transparent;color:#7a9aa3;cursor:pointer;padding:0;transition:color .15s,background .15s}
.kw-cart-item-remove:hover{color:#007b86;background:#eaf4f5}
.kw-cart-subtotal{display:flex;justify-content:space-between;align-items:center;padding:16px 0 4px;font-weight:700;font-size:16px;color:#09202e;border-top:1px solid #e0ecee;margin-top:4px}
.kw-cart-buttons{display:flex;flex-direction:column;gap:10px;margin-top:14px}
.kw-cart-btn-view{display:block;text-align:center;padding:13px 20px;border-radius:6px;font-weight:700;font-size:15px;text-decoration:none;background:#eaf4f5;color:#09202e;border:1px solid #cce3e6}
.kw-cart-btn-view:hover{background:#dff0f1;color:#09202e}
.kw-cart-btn-checkout{display:block;text-align:center;padding:13px 20px;border-radius:6px;font-weight:700;font-size:15px;text-decoration:none;background:#007b86;color:#fff;border:1px solid #007b86}
.kw-cart-btn-checkout:hover{background:#005a63}
