/* ============================================
   WINESPOT MEGAMENU CSS
   Fonts: Poppins (body) · Hepta Slab (headings)
   ============================================ */

/* ---- Wrapper (shared) ---- */
.megamenu-wrapper {
  display: none;
  position: fixed;
  z-index: 1001;
  width: min(960px, calc(100vw - 32px));
  box-shadow: 0 8px 32px rgba(0,0,0,.14);
  border-top: 3px solid #8b2332;
}


.menu-item-wina > a[aria-expanded="true"],
.menu-item-alkohole > a[aria-expanded="true"] {
  color: var(--wp--preset--color--accent-1, #8b2332) !important;
}

.ast-desktop .ast-mega-menu-enabled .ast-hide-menu-item + .ast-mm-custom-content {
  margin-top: 0 !important;
}

/* ---- Mobile drawer trigger reset ---- */
.mobile-drawer button.drawer-nav-item {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 15px 22px;
  border: 0;
  border-bottom: 1px solid rgba(224,219,212,.5);
  border-radius: 0;
  background: none;
  color: #1c1c1c;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.mobile-drawer button.drawer-nav-item:hover,
.mobile-drawer button.drawer-nav-item:focus-visible {
  background: #fafaf8;
  color: #8b1a2b;
  outline: none;
}

/* ---- Mobile drawer subpanel ---- */
.mobile-sub-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  z-index: 3;
  display: flex;
  flex-direction: column;
  box-shadow: none;
  transform: translate3d(-104%, 0, 0);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .18s ease, visibility 0s linear .34s;
  -webkit-overflow-scrolling: touch;
}

.mobile-sub-panel.open {
  transform: translate3d(0, 0, 0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .34s cubic-bezier(.4, 0, .2, 1), opacity .18s ease;
}

.mobile-sub-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 18px;
  border-bottom: 1px solid #e0d8d0;
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.mobile-sub-panel__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: #2c1810;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.mobile-sub-panel__back svg {
  flex-shrink: 0;
}

.mobile-sub-panel__title {
  font-family: 'Hepta Slab', serif;
  font-size: 16px;
  font-weight: 600;
  color: #2c1810;
  text-align: right;
}

.mobile-sub-panel__body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f9f7f5;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-sub-panel__body > .megamenu-wina-cnt,
.mobile-sub-panel__body > .megamenu-alkohole-cnt {
  min-height: 100%;
  max-width: none;
  box-shadow: none;
}

.mobile-drawer.mobile-sub-panel-active {
  overflow: hidden;
}

.megamenu-wina-cnt {
  padding: 28px 32px 26px;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  background: #f9f7f5;
}

.megamenu-wina-cnt,
.megamenu-wina-cnt * {
  box-sizing: border-box;
}

.megamenu-wina-cnt img {
  max-width: 100%;
}

/* ---- Header ---- */
.megamenu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0d8d0;
  gap: 20px;
}

.megamenu-logo img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.megamenu-top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.megamenu-top-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #4a3f38;
  text-decoration: none;
  padding: 5px 13px;
  border-radius: 6px;
  transition: color 0.22s ease, background 0.22s ease;
  position: relative;
  white-space: nowrap;
}

.megamenu-top-link::after {
  content: '';
  position: absolute;
  bottom: 1px;
  left: 13px;
  right: 13px;
  height: 2px;
  background: #8b2332;
  transform: scaleX(0);
  transition: transform 0.22s ease;
  transform-origin: left;
}

.megamenu-top-link:hover { color: #8b2332; background: rgba(139,35,50,.05); }
.megamenu-top-link:hover::after { transform: scaleX(1); }

.megamenu-top-divider {
  display: block;
  width: 1px;
  height: 15px;
  background: #cfc8c0;
  flex-shrink: 0;
}

/* ============================================
   DESKTOP GRID (≥ 861px)
   ============================================ */
.megamenu-content {
  display: grid;
  grid-template-columns:
    minmax(100px, 0.85fr)
    minmax(100px, 0.85fr)
    minmax(120px, 1.1fr)
    minmax(100px, 0.85fr)
    minmax(100px, 0.85fr);
  grid-template-areas:
    "kolor smak kraj styl     cena    "
    "inne  inne kraj produkty produkty";
  gap: 6px 28px;
  margin-bottom: 26px;
}

.mm-kolor { grid-area: kolor; }
.mm-smak  { grid-area: smak;  }
.mm-kraj  { grid-area: kraj;  }
.mm-styl  { grid-area: styl;  }
.mm-cena  { grid-area: cena;  }
.mm-inne  { grid-area: inne; padding-top: 16px; }
.mm-produkty { grid-area: produkty; padding-top: 14px; }

.megamenu-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

/* ---- Section title ---- */
.megamenu-section-title {
  font-family: 'Hepta Slab', serif;
  font-size: 10px;
  font-weight: 700;
  color: #2c1810;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  margin: 0 0 13px 0;
  padding: 0;
}

/* ---- List links ---- */
.megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.megamenu-list li { margin-bottom: 8px; }

.megamenu-link {
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #4a3f38;
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.megamenu-link:hover { color: #8b2332; }

.megamenu-link--more {
  font-size: 12px;
  color: #8b7a70;
  gap: 5px;
  margin-top: 2px;
}

.megamenu-link--more:hover { color: #8b2332; }
.megamenu-link--more svg { flex-shrink: 0; transition: transform 0.18s ease; }
.megamenu-link--more:hover svg { transform: translateX(3px); }

/* ---- Color dots ---- */
.color-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 8px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.12);
}

.color-white  { background: #f5f5dc; border-color: #c5c5b0; }
.color-rose   { background: #e8959f; }
.color-red    { background: #8b2332; }
.color-orange { background: #e07b30; }

/* ---- Country flag ---- */
.country-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  border: 1px solid #ddd;
  margin-right: 8px;
  flex-shrink: 0;
}

.country-flag .fi {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%) scale(1.2);
  width: 100%;
  height: 100%;
}

.country-flag--sm { width: 15px; height: 15px; margin-right: 7px; }

/* ---- Format buttons ---- */
.megamenu-format-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  background: #ffffff;
  border: 1px solid #ddd6d0;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #4a3f38;
  text-decoration: none;
  transition: all 0.18s ease;
  line-height: 1.3;
  white-space: nowrap;
}

.megamenu-format-btn svg { flex-shrink: 0; color: #8b2332; }
.megamenu-format-btn:hover { border-color: #8b2332; background: #fef6f7; color: #8b2332; }

/* ---- Produkt cards ---- */
.mm-produkty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  height: 100%;
  align-content: start;
}

.mm-produkt-skeleton {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ede8e3;
  background: linear-gradient(90deg, #f0ebe6 25%, #f8f4f0 50%, #f0ebe6 75%);
  background-size: 200% 100%;
  animation: mm-shimmer 1.4s infinite;
  min-height: 150px;
}

@keyframes mm-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.mm-produkt-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #ede8e3;
  background: #faf8f6;
  transition: all 0.22s ease;
}

.mm-produkt-card:hover {
  border-color: #8b2332;
  box-shadow: 0 4px 14px rgba(139,35,50,.12);
  transform: translateY(-2px);
}

.mm-produkt-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
  min-height: 90px;
  overflow: hidden;
}

.mm-produkt-img img {
  width: 100%;
  height: 90px;
  object-fit: contain;
  display: block;
}

.mm-produkt-img .mm-no-img {
  width: 32px;
  height: 64px;
  opacity: .35;
}

.mm-produkt-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 10px;
}

.mm-produkt-name {
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  color: #2c1810;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mm-produkt-price {
  font-family: 'Hepta Slab', serif;
  font-size: 11px;
  font-weight: 700;
  color: #8b2332;
  margin-top: 3px;
}

.mm-produkt-card:hover .mm-produkt-name { color: #8b2332; }

/* ---- Featured row ---- */
.megamenu-featured {
  border-top: 1px solid #e0d8d0;
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.megamenu-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  background: #ffffff;
  border: 1.5px solid #d8cfc9;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  color: #4a3f38;
  text-decoration: none;
  transition: all 0.22s ease;
}

.megamenu-featured-btn svg { flex-shrink: 0; color: #8b2332; transition: color 0.22s ease; }

.megamenu-featured-btn:hover {
  border-color: #8b2332;
  background: #8b2332;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139,35,50,.18);
}

.megamenu-featured-btn:hover svg { color: #ffffff; }

/* ============================================
   KRAJ CAROUSEL
   ============================================ */
.mm-kraj { overflow: hidden; }

.kraj-viewport { overflow: hidden; }

.kraj-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* will-change celowo pominięte — powoduje blurowanie tekstu na GPU */
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0); /* stabilizuje warstwę GPU */
}

.kraj-page {
  min-width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  /* zapobiega rozmyciu liter podczas animacji */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.kraj-page li { margin-bottom: 8px; }

.kraj-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 12px;
}

.kraj-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 5px;
  border: 1px solid #e0d8d0;
  background: #fff;
  cursor: pointer;
  color: #8b7a70;
  transition: all 0.18s ease;
  padding: 0;
  flex-shrink: 0;
}

.kraj-arrow:hover { border-color: #8b2332; color: #8b2332; background: #fef6f7; }
.kraj-arrow:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.kraj-arrow svg { width: 12px; height: 12px; }

.kraj-dots {
  display: flex;
  gap: 5px;
  align-items: center;
}

.kraj-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d0c8c0;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.kraj-dot.active { background: #8b2332; transform: scale(1.3); }

/* ============================================
   MOBILE SUB-PANEL (burger drawer drill-down)
   ============================================ */
.mobile-sub-panel .megamenu-wina-cnt,
.mobile-sub-panel .megamenu-alkohole-cnt {
  max-width: 100%;
  padding: 20px 20px 28px;
}

/* Single column stacked layout */
.mobile-sub-panel .megamenu-content {
  display: block !important;
}

.mobile-sub-panel .megamenu-content > * {
  padding-bottom: 16px;
  padding-top: 16px;
  border-bottom: 1px solid #ede8e3;
}

.mobile-sub-panel .megamenu-content > *:first-child {
  padding-top: 0;
}

.mobile-sub-panel .megamenu-content > *:last-child {
  border-bottom: none;
}

/* Hide header (logo row), product grid, featured row */
.mobile-sub-panel .megamenu-header,
.mobile-sub-panel .mm-produkty,
.mobile-sub-panel .megamenu-featured {
  display: none !important;
}

/* Country carousel: wrap all pages, hide controls */
.mobile-sub-panel .kraj-track {
  flex-wrap: wrap !important;
  transform: none !important;
  transition: none !important;
}

.mobile-sub-panel .kraj-page {
  min-width: 50% !important;
}

.mobile-sub-panel .kraj-footer {
  display: none !important;
}

/* Format grid: 2 columns */
.mobile-sub-panel .megamenu-format-grid {
  grid-template-columns: 1fr 1fr;
}

/* Hide on desktop (hamburger hides at > 768px) */
@media (min-width: 769px) {
  .mobile-sub-panel {
    display: none !important;
  }
}

/* ============================================
   MEDIUM (≤ 860px)
   ============================================ */
@media (max-width: 860px) {
  .megamenu-wina-cnt { padding: 22px 20px 20px; }

  .megamenu-header { flex-direction: column; align-items: center; gap: 14px; }
  .megamenu-logo img { height: 40px; }
  .megamenu-top-nav { justify-content: center; }

  .megamenu-content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "kolor    smak     kraj"
      "styl     cena     kraj"
      "produkty produkty produkty"
      "inne  inne inne";
    gap: 20px 24px;
  }

  .mm-styl  { padding-top: 0; }
  .mm-cena  { padding-top: 0; }
  .mm-inne  { border-top: 1px solid #e8e0d8; padding-top: 18px; margin-top: 0; }
  .mm-produkty-grid { grid-template-columns: repeat(3, 1fr); }
  .megamenu-format-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ≤ 640px — Kolor+Smak → Styl+Cena → Kraj (2 kol) → Produkty → Inne */
@media (max-width: 640px) {
  .megamenu-content {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "kolor    smak"
      "styl     cena"
      "kraj     kraj"
      "produkty produkty"
      "inne     inne";
    gap: 18px;
  }

  .mm-styl  { padding-top: 0; }
  .mm-cena  { padding-top: 0; }
  .mm-produkty-grid { grid-template-columns: repeat(3, 1fr); }

  /* Na małym ekranie wyświetl wszystkie strony naraz w 2 kolumnach */
  .kraj-track { flex-wrap: wrap; }
  .kraj-page  { min-width: 50%; }
  .kraj-footer { display: none; }

  .megamenu-top-nav { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .megamenu-top-divider { display: none; }
  .megamenu-top-link { font-size: 12px; padding: 5px 10px; }
  .megamenu-format-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ≤ 480px — 1 kolumna */
@media (max-width: 480px) {
  .megamenu-wina-cnt { padding: 18px 16px 16px; }

  .megamenu-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kolor" "smak" "kraj" "styl" "cena" "produkty" "inne";
    gap: 18px;
  }

  .mm-produkty-grid { grid-template-columns: repeat(3, 1fr); }

  .kraj-track { flex-wrap: nowrap; }
  .kraj-page  { min-width: 100%; }
  .kraj-footer { display: flex; }

  .megamenu-featured-btn { font-size: 12px; padding: 7px 12px; }
}


/* ============================================
   SIDEBAR WINA  (.sb-*)
   ============================================ */

/* ---- Wrapper ---- */
.sb-wina {
  font-family: 'Poppins', sans-serif;
  box-sizing: border-box;
}
.sb-wina * { box-sizing: border-box; }

/* ---- Header ---- */
.sb-wina__header {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid #e0d8d0;
}

.sb-wina__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Hepta Slab', serif;
  font-size: 17px;
  font-weight: 700;
  color: #2c1810;
  text-decoration: none;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  transition: color .18s;
}
.sb-wina__title svg {
  width: 18px;
  height: 18px;
  color: #8b2332;
  flex-shrink: 0;
}
.sb-wina__title:hover { color: #8b2332; }

.sb-featured {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.sb-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid #d0c8c0;
  border-radius: 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  color: #4a3f38;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s, background .18s, color .18s;
  line-height: 1.5;
}
.sb-tag:hover {
  border-color: #8b2332;
  background: #fef6f7;
  color: #8b2332;
}
.sb-tag.is-active {
  border-color: #8b2332;
  background: #8b2332;
  color: #fff;
}
.sb-tag__flag {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

/* ---- Accordion (details/summary) ---- */
.sb-section {
  border-bottom: 1px solid #ede8e3;
}

.sb-section__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  padding: 12px 0;
  font-family: 'Hepta Slab', serif;
  font-size: 10px;
  font-weight: 700;
  color: #2c1810;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  user-select: none;
  -webkit-user-select: none;
}
.sb-section__trigger::-webkit-details-marker { display: none; }
.sb-section__trigger::marker { display: none; }

.sb-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #8b7a70;
  transition: transform .22s ease;
}
details[open] > .sb-section__trigger .sb-chevron {
  transform: rotate(180deg);
}

/* ---- Section body ---- */
.sb-section__body {
  padding-bottom: 14px;
}

/* ---- Kolor chips ---- */
.sb-kolor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.sb-kolor-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  background: #ffffff;
  border: 1px solid #ddd6d0;
  border-radius: 7px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #4a3f38;
  text-decoration: none;
  transition: border-color .18s, background .18s, color .18s;
  line-height: 1;
}
.sb-kolor-btn:hover {
  border-color: #8b2332;
  background: #fef6f7;
  color: #8b2332;
}
.sb-kolor-btn.is-active {
  border-color: #8b2332;
  background: #8b2332;
  color: #ffffff;
}
.sb-kolor-btn.is-active .color-dot {
  border-color: rgba(255,255,255,.5);
}

/* ---- Active state for list links ---- */
.megamenu-link.is-active {
  color: #8b2332;
  font-weight: 600;
}

/* ---- Check indicator (przed nazwą aktywnego filtra) ---- */
.sb-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  background: #8b2332;
  flex-shrink: 0;
  margin-right: 4px;
}
.sb-check::after {
  content: '';
  display: block;
  width: 7px;
  height: 4px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}

/* ---- Count badge ---- */
.sb-count {
  margin-left: auto;
  font-size: 10px;
  color: #b0a49c;
  font-weight: 400;
  flex-shrink: 0;
}

/* ---- Scrollable list ---- */
.sb-scroll {
  max-height: 200px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #d0c8c0 transparent;
  padding-right: 2px;
}
.sb-scroll::-webkit-scrollbar { width: 3px; }
.sb-scroll::-webkit-scrollbar-thumb { background: #d0c8c0; border-radius: 3px; }

/* ---- Regions tree ---- */
.sb-region-search {
  margin-bottom: 10px;
}

.sb-region-search__input {
  width: 100%;
  min-height: 36px;
  padding: 8px 11px;
  border: 1px solid #ddd6d0;
  border-radius: 8px;
  background: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  color: #4a3f38;
  box-sizing: border-box;
}

.sb-region-search__input:focus {
  outline: none;
  border-color: #8b2332;
  box-shadow: 0 0 0 3px rgba(139, 35, 50, 0.08);
}

.sb-region-tree {
  display: grid;
  gap: 6px;
}

.sb-region-country {
  border: 1px solid #ede8e3;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}

.sb-region-country > summary {
  list-style: none;
}

.sb-region-country > summary::-webkit-details-marker {
  display: none;
}

.sb-region-country__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #2c1810;
}

.sb-region-country__summary-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.sb-region-country__summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid #8b7a70;
  border-bottom: 1.5px solid #8b7a70;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  transition: transform .18s ease;
}

.sb-region-country[open] .sb-region-country__summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.sb-region-country__body {
  padding: 0 12px 12px;
  border-top: 1px solid #f1ece8;
}

.sb-region-country__all {
  padding: 10px 0 8px;
}

.sb-region-country__children {
  padding-left: 10px;
  border-left: 1px solid #ede8e3;
}

.sb-region-country__children li {
  margin-bottom: 6px;
}

.sb-region-country__children li:last-child {
  margin-bottom: 0;
}

/* ---- Region → Apelacje (poziom 3) ---- */
.sb-region-sub {
  margin-bottom: 4px;
}

.sb-region-sub > summary {
  list-style: none;
  cursor: pointer;
}

.sb-region-sub > summary::-webkit-details-marker {
  display: none;
}

.sb-region-sub__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 5px 0;
  font-size: 13px;
  color: #2c1810;
  user-select: none;
}

.sb-region-sub__summary::after {
  content: '';
  width: 7px;
  height: 7px;
  border-right: 1.5px solid #8a7060;
  border-bottom: 1.5px solid #8a7060;
  transform: rotate(45deg) translateY(-1px);
  flex-shrink: 0;
  transition: transform .15s ease;
}

.sb-region-sub[open] .sb-region-sub__summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.sb-region-sub__body {
  padding-left: 10px;
  border-left: 1px solid #ede8e3;
  margin-top: 2px;
}

.sb-region-sub__all {
  padding: 6px 0 4px;
}

.sb-region-sub__apelacje {
  padding-left: 8px;
  border-left: 1px solid #f1ece8;
}

.sb-region-sub__apelacje li {
  margin-bottom: 4px;
}

.sb-region-sub__apelacje li:last-child {
  margin-bottom: 0;
}

/* ---- Brand dot (dla Producent) ---- */
.sb-brand-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b2332;
  flex-shrink: 0;
  margin-right: 7px;
  opacity: .45;
}
.megamenu-link.is-active .sb-brand-dot { opacity: 1; }

/* ---- Pojemność pills ---- */
.sb-poj-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.sb-poj-grid .megamenu-format-btn {
  justify-content: center;
  text-align: center;
  font-size: 11.5px;
}
.sb-poj-grid .megamenu-format-btn.is-active {
  border-color: #8b2332;
  background: #8b2332;
  color: #ffffff;
}
.sb-poj-grid .megamenu-format-btn.is-active svg { color: #ffffff; }

/* ---- Empty fallback ---- */
.sb-empty {
  font-size: 12px;
  color: #b0a49c;
  margin: 0;
}
