/*
 * WooHeader — Frontend Stylesheet
 * Designed by Luis Koepke · luiskoepke.com
 * Version: 1.0.0
 *
 * All values derived from the Elementor JSON and reference images.
 */

/* ─────────────────────────────────────────────────────────
   CSS CUSTOM PROPERTIES (Design Tokens)
   ───────────────────────────────────────────────────────── */
.wh-root {
  --wh-font-family:       'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --wh-header-bg:         #ffffff;
  --wh-header-height:     115px;
  --wh-header-height-mob: 80px;
  --wh-header-pad-x:      30px;
  --wh-header-pad-x-mob:  15px;

  /* Promo bar — from JSON */
  --wh-promo-grad-start:  #FFADD0;
  --wh-promo-grad-end:    #53A6D0;
  --wh-promo-grad-angle:  90deg;
  --wh-promo-height:      30px;
  --wh-promo-height-mob:  37px;

  /* Search — from JSON */
  --wh-search-bg:         #FAFAFA;
  --wh-search-radius:     48px;
  --wh-search-pad:        12px;
  --wh-search-icon-color: #DEDEDE;
  --wh-search-text-color: #414141;
  --wh-search-icon-size:  23px;

  /* Nav */
  --wh-nav-color:         #AAAFB6;
  --wh-nav-color-hover:   #000000;
  --wh-nav-font-size:     14px;

  /* Icons */
  --wh-icon-color:        #000000;
  --wh-icon-size:         22px;

  /* Drawer — from JSON */
  --wh-drawer-bg:         #F5F5F5;
  --wh-drawer-width:      480px;
  --wh-drawer-radius:     35px;
  --wh-drawer-radius-mob: 25px;
  --wh-drawer-offset-x:   10px;
  --wh-drawer-offset-y:   10px;
  --wh-drawer-menu-fs:    48px;
  --wh-drawer-menu-fs-mob:36px;
  --wh-drawer-util-fs:    18px;
  --wh-drawer-util-fs-mob:17px;

  /* Trigger cluster — from JSON */
  --wh-trigger-size:      45px;
  --wh-trigger-size-mob:  40px;
  --wh-trigger-radius:    14px;
  --wh-trigger-radius-mob:9px;

  /* Transitions */
  --wh-transition-fast:   0.18s ease;
  --wh-transition-med:    0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --wh-transition-slow:   0.38s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --wh-z-header:   100;
  --wh-z-overlay:  200;
  --wh-z-drawer:   210;
  --wh-z-cart:     210;
  --wh-z-search:   300;

  font-family: var(--wh-font-family);
  position: relative;
}

/* ─────────────────────────────────────────────────────────
   RESET (scoped)
   ───────────────────────────────────────────────────────── */
.wh-root *,
.wh-root *::before,
.wh-root *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.wh-root ul, .wh-root ol {
  list-style: none;
}
.wh-root a {
  text-decoration: none;
  color: inherit;
}
.wh-root button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
}
.wh-root img {
  max-width: 100%;
  display: block;
}

/* ─────────────────────────────────────────────────────────
   PROMO BAR
   ───────────────────────────────────────────────────────── */
.wh-promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--wh-promo-height);
  background: linear-gradient(
    var(--wh-promo-grad-angle),
    var(--wh-promo-grad-start),
    var(--wh-promo-grad-end)
  );
  padding: 4px 20px;
  text-align: center;
}

.wh-promo-bar__text {
  font-family: var(--wh-font-family);
  font-size: 15px;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .wh-promo-bar {
    min-height: var(--wh-promo-height-mob);
  }
  .wh-promo-bar__text {
    font-size: 14px;
  }
}

/* ─────────────────────────────────────────────────────────
   HEADER BAR (shared)
   ───────────────────────────────────────────────────────── */
.wh-header-bar {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--wh-header-height);
  padding: 0 var(--wh-header-pad-x);
  background-color: var(--wh-header-bg);
  position: relative;
  z-index: var(--wh-z-header);
  transition:
    box-shadow var(--wh-transition-med),
    transform var(--wh-transition-med),
    background-color var(--wh-transition-med);
}

/* Sticky states added by JS */
.wh-root[data-sticky="1"] .wh-header-bar {
  position: sticky;
  top: 0;
}
.wh-root.wh--scrolled .wh-header-bar {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}
.wh-root.wh--hidden .wh-header-bar {
  transform: translateY(-100%);
}

/* ─────────────────────────────────────────────────────────
   DESKTOP HEADER
   ───────────────────────────────────────────────────────── */
.wh-desktop-header {
  display: flex;
  gap: 20px;
}

@media (max-width: 1024px) {
  .wh-desktop-header {
    display: none;
  }
}

/* ─────────────────────────────────────────────────────────
   LOGO
   ───────────────────────────────────────────────────────── */
.wh-logo {
  flex-shrink: 0;
}

.wh-logo a {
  display: flex;
  align-items: center;
}

.wh-logo img {
  max-width: 140px;
  height: auto;
  display: block;
}

.wh-logo__text {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #000;
  white-space: nowrap;
}

.wh-logo--desktop {
  /* ~16% width from JSON: width 16% */
  flex: 0 0 16%;
  max-width: 16%;
}

@media (max-width: 1200px) {
  .wh-logo--desktop {
    flex: 0 0 auto;
    max-width: none;
  }
}

/* ─────────────────────────────────────────────────────────
   SEARCH
   ───────────────────────────────────────────────────────── */
.wh-search-wrap {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 0;
}

.wh-search {
  display: flex;
  align-items: center;
  background: var(--wh-search-bg);
  border-radius: var(--wh-search-radius);
  padding: var(--wh-search-pad);
  width: 100%;
  max-width: 480px;
  gap: var(--wh-search-pad);
  transition: box-shadow var(--wh-transition-fast), background var(--wh-transition-fast);
  position: relative;
}

.wh-search:focus-within {
  box-shadow: 0 0 0 2px rgba(83, 166, 208, 0.3);
  background: #f5f5f5;
}

.wh-search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--wh-font-family);
  font-size: 14px;
  color: var(--wh-search-text-color);
  outline: none;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}

.wh-search__input::placeholder {
  color: var(--wh-search-icon-color);
}

.wh-search__input::-webkit-search-decoration,
.wh-search__input::-webkit-search-cancel-button {
  display: none;
}

.wh-search__icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wh-search-icon-color);
  font-size: var(--wh-search-icon-size);
  flex-shrink: 0;
  transition: color var(--wh-transition-fast);
  line-height: 1;
}

.wh-search__icon-btn:hover {
  color: #000;
}

.wh-search__icon-btn .ph {
  font-size: var(--wh-search-icon-size);
  line-height: 1;
}

.wh-search__clear {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wh-search-icon-color);
  font-size: 16px;
  flex-shrink: 0;
  transition: color var(--wh-transition-fast), opacity var(--wh-transition-fast);
}

.wh-search__clear:hover {
  color: #000;
}

/* ─────────────────────────────────────────────────────────
   SEARCH DROPDOWN
   ───────────────────────────────────────────────────────── */
.wh-search__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.10), 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  z-index: var(--wh-z-search);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity var(--wh-transition-fast), transform var(--wh-transition-fast);
}

.wh-search__dropdown.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.wh-search__result {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--wh-transition-fast);
  text-decoration: none;
  color: inherit;
}

.wh-search__result:hover,
.wh-search__result.is-focused {
  background: #f8f8f8;
}

.wh-search__result-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f0f0f0;
}

.wh-search__result-info {
  flex: 1;
  min-width: 0;
}

.wh-search__result-title {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.wh-search__result-price {
  font-size: 12px;
  color: #777;
  margin-top: 2px;
}

.wh-search__state {
  padding: 18px 16px;
  font-size: 13px;
  color: #aaa;
  text-align: center;
}

/* ─────────────────────────────────────────────────────────
   DESKTOP NAV
   ───────────────────────────────────────────────────────── */
.wh-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.wh-nav__list {
  display: flex;
  align-items: center;
  gap: 28px;
}

.wh-nav__link {
  font-family: var(--wh-font-family);
  font-size: var(--wh-nav-font-size);
  font-weight: 400;
  color: var(--wh-nav-color);
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  transition: color var(--wh-transition-fast);
  position: relative;
}

.wh-nav__link:hover,
.wh-nav__link:focus-visible {
  color: var(--wh-nav-color-hover);
  outline: none;
}

.wh-nav__link--bold {
  font-weight: 600;
  color: #000;
}

.wh-nav__link--bold:hover,
.wh-nav__link--bold:focus-visible {
  color: #000;
}

/* ─────────────────────────────────────────────────────────
   ACTION ICONS (desktop)
   ───────────────────────────────────────────────────────── */
.wh-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.wh-actions__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: var(--wh-icon-color);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: background var(--wh-transition-fast), color var(--wh-transition-fast);
}

.wh-actions__btn:hover {
  background: #f0f0f0;
}

.wh-actions__btn .ph {
  font-size: 22px;
  line-height: 1;
}

/* Cart count badge */
.wh-cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  pointer-events: none;
  transition: opacity var(--wh-transition-fast), transform var(--wh-transition-fast);
}

.wh-cart-count--hidden {
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
}

/* ─────────────────────────────────────────────────────────
   MOBILE HEADER
   ───────────────────────────────────────────────────────── */
.wh-mobile-header {
  display: none;
  min-height: var(--wh-header-height-mob);
  padding: 0 var(--wh-header-pad-x-mob);
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 1024px) {
  .wh-desktop-header {
    display: none;
  }
  .wh-mobile-header {
    display: flex;
  }
}

.wh-logo--mobile img {
  max-width: 110px;
}

/* ─────────────────────────────────────────────────────────
   MOBILE TRIGGER CLUSTER
   From JSON: width/height 45px (mob 40px), radius 14px (mob 9px)
   offset-x-end 35px (mob 20px), offset-y 35px (mob 20px)
   ───────────────────────────────────────────────────────── */
.wh-mobile-triggers {
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border-radius: var(--wh-trigger-radius);
  border: 1px solid #e8e8e8;
  overflow: hidden;
  height: var(--wh-trigger-size);
}

@media (max-width: 480px) {
  .wh-mobile-triggers {
    height: var(--wh-trigger-size-mob);
    border-radius: var(--wh-trigger-radius-mob);
  }
}

.wh-mobile-triggers__cart,
.wh-mobile-triggers__menu {
  width: var(--wh-trigger-size);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  position: relative;
  transition: background var(--wh-transition-fast);
}

@media (max-width: 480px) {
  .wh-mobile-triggers__cart,
  .wh-mobile-triggers__menu {
    width: var(--wh-trigger-size-mob);
  }
}

.wh-mobile-triggers__cart:hover,
.wh-mobile-triggers__menu:hover {
  background: #f5f5f5;
}

.wh-mobile-triggers__cart .ph,
.wh-mobile-triggers__menu .ph {
  font-size: 20px;
}

.wh-mobile-triggers__divider {
  color: #ddd;
  font-size: 14px;
  font-weight: 300;
  pointer-events: none;
  padding: 0 2px;
}

/* ─────────────────────────────────────────────────────────
   OVERLAY
   ───────────────────────────────────────────────────────── */
.wh-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  z-index: var(--wh-z-overlay);
  opacity: 0;
  transition: opacity var(--wh-transition-med);
  pointer-events: none;
}

.wh-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ─────────────────────────────────────────────────────────
   DRAWER
   From JSON:
   - width 480px (mobile calc(100% - 20px))
   - border-radius 35px (mob 25px)
   - offset end 10px, offset-y 10px
   - margin-top (panel) = header height
   ───────────────────────────────────────────────────────── */
.wh-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--wh-drawer-width);
  max-width: calc(100vw - 20px);
  z-index: var(--wh-z-drawer);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--wh-drawer-offset-y) var(--wh-drawer-offset-x) var(--wh-drawer-offset-y) 0;
}

.wh-drawer.is-open {
  pointer-events: auto;
}

.wh-drawer__panel {
  width: 100%;
  max-height: calc(100vh - 20px);
  background-color: var(--wh-drawer-bg);
  border-radius: var(--wh-drawer-radius);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + var(--wh-drawer-offset-x)));
  opacity: 0;
  transition:
    transform var(--wh-transition-slow),
    opacity var(--wh-transition-med);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.wh-drawer.is-open .wh-drawer__panel {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 540px) {
  .wh-drawer {
    width: calc(100% - 20px);
    right: 0;
    left: auto;
  }
  .wh-drawer__panel {
    border-radius: var(--wh-drawer-radius-mob);
  }
}

/* Drawer Header Row */
.wh-drawer__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 20px 0;
  flex-shrink: 0;
  /* From JSON: trigger positioned absolute at offset-y 35px (mob 20px) */
  /* We replicate that spacing using padding-top */
}

.wh-drawer__cart-btn,
.wh-drawer__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #000;
  transition: background var(--wh-transition-fast);
  position: relative;
}

.wh-drawer__cart-btn:hover,
.wh-drawer__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wh-drawer__cart-btn .ph,
.wh-drawer__close .ph {
  font-size: 20px;
}

/* Drawer Menu View */
.wh-drawer__view {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wh-drawer__view--menu {
  /* margin-top from JSON: 113px desktop, 80px mobile */
  padding: 70px 25px 25px;
}

@media (max-width: 540px) {
  .wh-drawer__view--menu {
    padding: 50px 25px 25px;
  }
}

/* Drawer Menu List */
.wh-drawer__menu-list {
  flex: 1;
}

.wh-drawer__menu-item + .wh-drawer__menu-item {
  margin-top: 0;
}

.wh-drawer__menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--wh-font-family);
  font-size: var(--wh-drawer-menu-fs);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #000;
  padding: 10px 0;
  transition: opacity var(--wh-transition-fast);
  text-decoration: none;
}

.wh-drawer__menu-link:hover {
  opacity: 0.6;
}

@media (max-width: 540px) {
  .wh-drawer__menu-link {
    font-size: var(--wh-drawer-menu-fs-mob);
    padding: 8px 0;
  }
}

/* The arrow — hidden by default, shown on hover */
.wh-drawer__menu-arrow {
  font-size: 0.6em;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity var(--wh-transition-fast), transform var(--wh-transition-fast);
  display: inline-block;
  line-height: 1;
  color: #000;
}

.wh-drawer__menu-item:hover .wh-drawer__menu-arrow,
.wh-drawer__menu-item:focus-within .wh-drawer__menu-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Drawer Utility Links */
.wh-drawer__utils {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin-top: 55px;
  padding-bottom: 30px;
}

@media (max-width: 540px) {
  .wh-drawer__utils {
    margin-top: 45px;
  }
}

.wh-drawer__util-link {
  font-family: var(--wh-font-family);
  font-size: var(--wh-drawer-util-fs);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.3;
  color: #000;
  text-decoration: none;
  transition: opacity var(--wh-transition-fast);
}

.wh-drawer__util-link:hover {
  opacity: 0.5;
}

@media (max-width: 540px) {
  .wh-drawer__util-link {
    font-size: var(--wh-drawer-util-fs-mob);
  }
}

/* ─────────────────────────────────────────────────────────
   CART PANEL
   ───────────────────────────────────────────────────────── */
.wh-cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--wh-drawer-width);
  max-width: calc(100vw - 20px);
  z-index: var(--wh-z-cart);
  pointer-events: none;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: var(--wh-drawer-offset-y) var(--wh-drawer-offset-x) var(--wh-drawer-offset-y) 0;
}

.wh-cart-panel.is-open {
  pointer-events: auto;
}

.wh-cart-panel__inner {
  width: 100%;
  max-height: calc(100vh - 20px);
  background-color: #f5f5f5;
  border-radius: var(--wh-drawer-radius);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  transform: translateX(calc(100% + var(--wh-drawer-offset-x)));
  opacity: 0;
  transition:
    transform var(--wh-transition-slow),
    opacity var(--wh-transition-med);
  overscroll-behavior: contain;
}

.wh-cart-panel.is-open .wh-cart-panel__inner {
  transform: translateX(0);
  opacity: 1;
}

@media (max-width: 540px) {
  .wh-cart-panel {
    width: calc(100% - 20px);
  }
  .wh-cart-panel__inner {
    border-radius: var(--wh-drawer-radius-mob);
  }
}

/* Cart Panel Header Row */
.wh-cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 20px 20px 0;
  flex-shrink: 0;
}

.wh-cart-panel__cart-btn,
.wh-cart-panel__close {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #000;
  transition: background var(--wh-transition-fast);
}

.wh-cart-panel__cart-btn:hover,
.wh-cart-panel__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wh-cart-panel__cart-btn .ph,
.wh-cart-panel__close .ph {
  font-size: 20px;
}

/* Cart Items */
.wh-cart-panel__items {
  flex: 1;
  padding: 20px 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wh-cart-panel__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.wh-cart-panel__empty p {
  font-family: var(--wh-font-family);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.03em;
  color: #000;
  line-height: 1.3;
}

/* Cart Item Card */
.wh-cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  position: relative;
  transition: box-shadow var(--wh-transition-fast);
}

.wh-cart-item:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.wh-cart-item__img {
  width: 54px;
  height: 66px;
  object-fit: cover;
  border-radius: 8px;
  background: #f0f0f0;
  flex-shrink: 0;
}

.wh-cart-item__info {
  flex: 1;
  min-width: 0;
}

.wh-cart-item__name {
  font-family: var(--wh-font-family);
  font-size: 13px;
  font-weight: 500;
  color: #111;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.wh-cart-item__meta {
  font-size: 11px;
  color: #999;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wh-cart-item__price {
  font-family: var(--wh-font-family);
  font-size: 13px;
  font-weight: 500;
  color: #111;
  flex-shrink: 0;
  text-align: right;
}

.wh-cart-item__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  border-radius: 50%;
  transition: color var(--wh-transition-fast), background var(--wh-transition-fast);
  font-size: 12px;
  opacity: 0;
}

.wh-cart-item:hover .wh-cart-item__remove {
  opacity: 1;
}

.wh-cart-item__remove:hover {
  color: #000;
  background: #f0f0f0;
}

/* Cart Footer */
.wh-cart-panel__footer {
  padding: 16px 20px 20px;
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.wh-cart-panel__cta {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  border-radius: 12px;
  font-family: var(--wh-font-family);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
  transition: background var(--wh-transition-fast), color var(--wh-transition-fast), transform var(--wh-transition-fast);
  white-space: nowrap;
}

.wh-cart-panel__cta:hover {
  transform: translateY(-1px);
}

.wh-cart-panel__cta--view {
  background: #fff;
  color: #000;
  border: 1px solid #e0e0e0;
}

.wh-cart-panel__cta--view:hover {
  background: #f5f5f5;
}

.wh-cart-panel__cta--checkout {
  background: #000;
  color: #fff;
}

.wh-cart-panel__cta--checkout:hover {
  background: #222;
}

/* Loading state for cart */
.wh-cart-panel__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.wh-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e0e0e0;
  border-top-color: #000;
  border-radius: 50%;
  animation: wh-spin 0.7s linear infinite;
}

@keyframes wh-spin {
  to { transform: rotate(360deg); }
}

/* ─────────────────────────────────────────────────────────
   FOCUS VISIBLE (Accessibility)
   ───────────────────────────────────────────────────────── */
.wh-root :focus-visible {
  outline: 2px solid #53A6D0;
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────
   REDUCED MOTION
   ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .wh-root *,
  .wh-root *::before,
  .wh-root *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────
   ELEMENTOR EDITOR ADJUSTMENTS
   ───────────────────────────────────────────────────────── */
.elementor-editor-active .wh-drawer,
.elementor-editor-active .wh-cart-panel,
.elementor-editor-active .wh-overlay {
  display: none !important;
}

/* Ensure plugin doesn't conflict with Elementor grid */
.wh-root.elementor-widget-wooheader {
  width: 100%;
}

/* ─────────────────────────────────────────────────────────
   UTILITY
   ───────────────────────────────────────────────────────── */
[hidden] {
  display: none !important;
}
