/* ==== Mini Cart Dropdown Styling (no drawer positioning) ==== */
#cart-panel.cartPanel {
  width: 100%;
}

#cart-panel .cartPanel__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 18px;
  padding-right: 18px;
}

#cart-panel .cartPanel__inner {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#cart-panel .cartPanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

#cart-panel .cartPanel__head {
  padding-top: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#cart-panel .cartPanel__title {
  margin: 0;
  font-weight: 900;
  font-size: 22px;
  color: #fff;
}

#cart-panel .cartPanel__all {
  color: var(--text);
  opacity: 0.9;
  text-decoration: none;
  font-weight: 700;
}

/* Mini cart list */
#cart-panel .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#cart-panel .woocommerce-mini-cart .mini_cart_item {
  position: relative;
  display: grid;
  grid-template-columns: 65px 1fr auto;
  /* controls | title/link | qty×price (controls +5px) */
  gap: 10px;
  align-items: center;
  padding: 9px 84px 9px 12px;
  /* reserve space for smaller thumb */
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  transition: background 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

#cart-panel .woocommerce-mini-cart .mini_cart_item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
  transform: none;
  /* no vertical lift */
}

#cart-panel .woocommerce-mini-cart .mini_cart_item img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  /* ~15% smaller */
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px;
  /* ~35% less than 3px */
}

#cart-panel .woocommerce-mini-cart .mini_cart_item>a:not(.remove) {
  grid-column: 2;
  /* title area */
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  font-size: 16px;
  line-height: 1.25;
  display: block;
  /* text only; image is positioned to far right */
  margin-left: 20px;
  /* nudge title 20px right */
  text-indent: 20px;
  /* force visible text shift even when stretched */
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .quantity {
  color: var(--text);
  font-weight: 800;
  grid-column: 3;
  justify-self: end;
  white-space: nowrap;
  margin-right: 36px;
}

/* Qty controls (left) */
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty {
  grid-column: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-left: 8px;
  transform: translateX(20px);
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  user-select: none;
  font-weight: 900;
  font-size: 28px;
  line-height: 1;
  padding: 0;
  width: auto;
  height: auto;
  transition: transform 140ms ease, opacity 140ms ease;
}

/* Per-button nudges */
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__dec {
  margin-left: -25px;
  margin-right: 10px;
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__inc {
  margin-left: -5px;
  margin-right: 5px;
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn:hover {
  transform: scale(1.08);
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

/* Desktop-only remove button in mini-cart */
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__rm {
  font-size: 29px;
  color: #fff;
  opacity: 1;
}

#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__rm:hover {
  opacity: 1;
}

/* Unified spacing for qty controls (no width-based variants) */
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__rm { margin-left: -25px; margin-right: 10px; }
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__dec { margin-left: -5px; margin-right: 10px; }
#cart-panel .woocommerce-mini-cart .mini_cart_item .miniQty__btn.miniQty__inc { margin-left: 0; margin-right: 5px; }

/* Remove button */
/* Hide Woo default remove X; we remove via − when qty would hit 0 */
#cart-panel .woocommerce-mini-cart .remove {
  display: none;
}

/* Move the product thumbnail to the far right of the line */
#cart-panel .woocommerce-mini-cart .mini_cart_item>a:not(.remove) img {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #fff;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 2px;
  margin: 0;
  /* override defaults */
}

/* Totals */
#cart-panel .woocommerce-mini-cart__total {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 6px 0 0;
  padding-bottom: 5px;
  color: #fff;
  font-weight: 800;
}

#cart-panel .woocommerce-mini-cart__total strong {
  font-weight: 900;
}

/* Buttons */
#cart-panel .woocommerce-mini-cart__buttons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 0;
}

#cart-panel .woocommerce-mini-cart__buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 900;
  text-decoration: none;
}
  display: none;
  display: none;
}

#cart-panel .woocommerce-mini-cart__buttons .button.checkout {
  width: 100%;
  justify-self: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
  font-size: 16px;
  background: #fff;
}

/* Remove the top border from the first mini-cart item to avoid a second separator under the header */
#cart-panel .woocommerce-mini-cart .mini_cart_item:first-child {
  border-top: none;
}

/* End mini cart dropdown styling */
/* Removed mini cart mobile-specific overrides */

/* ===== Cool Header POC ===== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 999;
  color: #fff;
  background: var(--hdr-bg);
}

/* removed viewport-forcing block */

.hdr__bar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent);
}

.is-safe .hdr {
  position: static;
}

.is-safe .hdr__bar {
  background: rgba(255, 255, 255, 0.06);
}

.hdr__inner {
  max-width: 1250px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 18px;
}

/* Logo */
.hdr__logo {
  height: var(--logo-h-desktop);
  width: auto;
  display: block;
}

/* “Tooted” pill */
.hdr__btn {
  height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: 0.2px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
  text-decoration: none;
}

.hdr__btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hdr__btnIcon {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-glow);
}

/* Nav links */
.hdr__nav {
  display: flex;
  gap: 10px;
  margin-left: 4px;
}

.hdr__nav a {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  padding: 8px 10px;
  border-radius: 12px;
  transition: background 120ms ease, opacity 120ms ease;
}

.hdr__nav a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.08);
}

/* Actions */
.hdr__actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}

.hdr__chip {
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 900;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.hdr__chip:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.hdr__chip--cart {
  background: #111;
  border-color: #111;
}

.hdr__cartCount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 8px;
  padding: 0 6px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(59, 130, 246, 0.35);
  transform-origin: center;
  will-change: transform;
}

@keyframes cartCountBump {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
  }

  25% {
    transform: translate3d(0, -9px, 0) rotate(120deg) scale(1.45);
  }

  55% {
    transform: translate3d(0, -14px, 0) rotate(260deg) scale(1.70);
  }

  78% {
    transform: translate3d(0, -6px, 0) rotate(360deg) scale(1.25);
  }

  100% {
    transform: translate3d(0, 0, 0) rotate(360deg) scale(1);
  }
}

.hdr__cartCount.is-bump {
  animation: cartCountBump 1200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  .hdr__cartCount.is-bump {
    animation: none;
  }
}

/* Removed mobile-only header controls */

/* Removed mobile menu button */

/* Removed mobile menu panel styles */

/* Mobile burger */
.hdr__burger {
  display: none;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

/* Dropdown panel animation */
.hdrPanel {
  background: transparent;
  overflow: visible;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 260ms ease, opacity 200ms ease, transform 200ms ease;
}

.is-safe .hdrPanel {
  display: none;
}

.hdrPanel.is-open {
  max-height: 710px;
  opacity: 1;
  transform: translateY(0);
}

/* Safari: reduce transitions to avoid potential rendering glitches */
.is-safari .hdrPanel {
  transition: none;
}

.is-safari .hdrPanel.is-open {
  max-height: none;
}

.hdrPanel__inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 8px 18px 18px;
  background: radial-gradient(100% 100% at 100% 0%, var(--panel-grad-start) 0%, var(--panel-grad-end) 100%);
  border-bottom-left-radius: 44px;
  border-bottom-right-radius: 44px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.hdrPanel__inner>* {
  position: relative;
  z-index: 1;
}

.hdrPanelFooterText {
  position: relative;
  margin: 14px -18px 0;
  padding: 14px 18px 18px;
  min-height: 60px;
  background: var(--panel-grad-start);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  color: #fff;
  pointer-events: auto;
}

.hdrPanelFooterText__main {
  font-weight: 950;
  font-size: 18px;
  line-height: 1.15;
  color: #fff;
  text-decoration: none;
  display: none;
}

.hdrPanelFooterText__main:hover {
  text-decoration: underline;
}

.hdrPanelFooterText__subs {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.35;
  opacity: 0.95;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  justify-content: center;
  gap: 0;
}

.hdrPanelFooterText__subs.is-fade {
  animation: hdrFooterSubsFade 140ms ease-out both;
}

@keyframes hdrFooterSubsFade {
  from {
    opacity: 0;
    transform: translateY(2px);
  }

  to {
    opacity: 0.95;
    transform: translateY(0);
  }
}

.hdrPanelFooterText__subLink {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.95;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hdrPanelFooterText__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  opacity: 0.7;
  flex: 0 0 52px;
}


/* ===== Header-attached bubble (for /poodredu) ===== */
.hdrBubble {
  width: 100%;
  max-width: none;
  margin: 0;
  background: radial-gradient(120% 120% at 100% 0%, var(--panel-grad-start) 0%, var(--panel-grad-end) 100%);
  color: #fff;
  border-radius: 0 0 16px 16px; /* small rounded bottom corners */
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  border: 1px solid #1f2937; /* dark gray border */
  border-top: 0; /* visually attach to the header above */
}

.hdrBubble__inner {
  padding: 28px 18px 48px; /* generous height */
  min-height: 1000px; /* temporary taller bubble */
}

/* Removed width-based hdrBubble adjustments */
.hdrPanelFooterText__sep::before {
  content: "";
  display: block;
  width: 1px;
  height: 1.94em;
  background: rgba(255, 255, 255, 0.65);
}

.hdrPanelFooterText__subs.is-tight .hdrPanelFooterText__sep {
  width: 20px;
  flex-basis: 20px;
}

.hdrPanelFooterText__subs.is-tight .hdrPanelFooterText__subLink {
  min-width: 0;
}

.hdrPanelFooterText__subLink:hover {
  opacity: 1;
  text-decoration: none;
  transform: scale(1.02);
}

.hdrPanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.hdrPanel__kicker {
  opacity: 0.75;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.hdrPanel__title {
  margin: 4px 0 0;
  font-size: 18px;
}

.hdrPanel__all {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.hdrPanel__all:hover {
  opacity: 1;
  text-decoration: underline;
}

.hdrPanel__blank {
  min-height: 280px;
}

/* Header dropdown: category images in one row */
.hdrCatRow {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  overflow-x: hidden;
  padding: 10px 2px 0;
  -webkit-overflow-scrolling: touch;
}

.hdrCatRow__cell {
  flex: 1 1 0;
  width: auto;
  max-width: 180px;
  min-width: 130px;
}

.hdrCatRow__item {
  text-decoration: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Removed width-based hdrCatRow adjustments */

.hdrCatRow__media {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.hdrCatRow__cell.is-active .hdrCatRow__img {
  filter: none;
  transform: translateY(-2px) scale(1.15);
}

.hdrCatRow__img {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 0;
  background: transparent;
  filter: grayscale(0.65) saturate(0.55);
  transition: filter 650ms ease, transform 120ms ease;
  transform: scale(1.15);
  transform-origin: center;
}

.hdrCatRow__item:hover .hdrCatRow__img,
.hdrCatRow__item:focus-visible .hdrCatRow__img {
  filter: none;
  transform: translateY(-2px) scale(1.15);
}

.hdrCatRow__img--placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  border-radius: 0;
  background: transparent;
}

.hdrCatRow__name {
  font-weight: 900;
  text-align: center;
  font-size: 15px;
  line-height: 1.15;
  opacity: 0.95;
  transform: translateY(-15px);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
  /* Allow natural hyphenation for long names */
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

.hdrCatRow__item:hover .hdrCatRow__name,
.hdrCatRow__item:focus-visible .hdrCatRow__name,
.hdrCatRow__cell.is-active .hdrCatRow__name {
  opacity: 1;
  transform: translateY(-15px) scale(1.02);
}

/* Tiles */
.hdrTiles {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.hdrTile {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.hdrTile:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.30);
}

.hdrTile__icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hdrTile__text strong {
  display: block;
  font-weight: 950;
}

.hdrTile__text span {
  display: block;
  opacity: 0.78;
  font-size: 13px;
}

/* Footer line inside panel */
.hdrPanel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.hdrPanel__link {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
  font-weight: 800;
}

.hdrPanel__link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive */
/* Removed width-based visibility changes for header nav/actions */

.hdr {
  transition: transform 180ms ease;
}

/* Ensure header never slides out (safety if class present) */
.hdr.is-hidden {
  transform: none;
}

.hdr.is-shadow .hdr__bar {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hdr.is-compact .hdr__inner {
  padding: 6px 18px;
}

.hdr.is-compact .hdr__logo {
  height: var(--logo-h-compact);
}

/* Force consistent logo sizing across all pages */
.hdr .hdr__brand {
  display: inline-flex;
  align-items: center;
}

.hdr .hdr__brand .hdr__logo {
  height: var(--logo-h-desktop);
  max-height: var(--logo-h-desktop);
  width: auto;
}

/* Removed mobile-specific logo sizing */

/* Glassy polish (progressive enhancement) */
.hdr__bar {
  /* Remove heavy backdrop blur to avoid text softening on Windows */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.is-safe .hdr__bar {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Removed device-class based backdrop changes */

/* Safari: also disable backdrop filter */
.is-safari .hdr__bar {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Active nav link */
.hdr__nav a.is-active {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Cart Panel ===== */
.cartPanel {
  background: radial-gradient(100% 100% at 100% 0%, var(--panel-grad-start) 0%, var(--panel-grad-end) 100%);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-8px);
  transition: max-height 260ms ease, opacity 200ms ease, transform 200ms ease;
}

.is-safe .cartPanel {
  display: none;
}

.cartPanel.is-open {
  max-height: 560px;
  opacity: 1;
  transform: translateY(0);
}

.is-safari .cartPanel {
  transition: none;
}

.is-safari .cartPanel.is-open {
  max-height: none;
}

.cartPanel__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 18px 24px;
  color: #fff;
}

.cartPanel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cartPanel__title {
  margin: 0;
  font-size: 18px;
}

.cartPanel__all {
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

.cartPanel__all:hover {
  opacity: 1;
  text-decoration: underline;
}

.cartPanel__content {
  border-top: none;
  /* keep no extra separator here */
  padding-top: 12px;
  margin-top: -25px;
  /* pull content up by 25px towards the header line */
}

.woocommerce-mini-cart__buttons .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  /* slimmer vertical */
  padding: 0 16px;
  border-radius: 12px;
  font-weight: 900;
}

.woocommerce-mini-cart__buttons .checkout {
  background: var(--accent);
  color: #fff;
}

.woocommerce-mini-cart__buttons .checkout:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Allow flex children to shrink properly */
.hdr__inner>* {
  min-width: 0;
}

.hdr__nav,
.hdr__actions {
  min-width: 0;
}

/* Removed mobile / narrow screen overrides for header */
