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

.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-alkohole-cnt {
  padding: 28px 32px 26px;
  box-sizing: border-box;
  width: 100%;
  max-width: 960px;
  background: #f9f7f5;
}

/* ---- Header ---- */
.megamenu-alkohole-cnt .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-alkohole-cnt .megamenu-logo img {
  height: 46px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

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

.megamenu-alkohole-cnt .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-alkohole-cnt .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-alkohole-cnt .megamenu-top-link:hover { color: #8b2332; background: rgba(139,35,50,.05); }
.megamenu-alkohole-cnt .megamenu-top-link:hover::after { transform: scaleX(1); }

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

/* ============================================
   DESKTOP GRID (≥ 861px)
   ============================================ */
.megamenu-alkohole-cnt .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:
    "kategorie typy    kraj profile  cena"
    ".         .       kraj produkty produkty";
  gap: 6px 28px;
  margin-bottom: 26px;
}

.megamenu-alkohole-cnt .mm-kategorie { grid-area: kategorie; }
.megamenu-alkohole-cnt .mm-typy      { grid-area: typy;      }
.megamenu-alkohole-cnt .mm-kraj      { grid-area: kraj;      }
.megamenu-alkohole-cnt .mm-profile   { grid-area: profile;   }
.megamenu-alkohole-cnt .mm-cena      { grid-area: cena;      }
.megamenu-alkohole-cnt .mm-produkty  { grid-area: produkty; padding-top: 14px; }

/* ---- Section title ---- */
.megamenu-alkohole-cnt .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-alkohole-cnt .megamenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.megamenu-alkohole-cnt .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-alkohole-cnt .megamenu-link:hover { color: #8b2332; }

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

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

/* ---- Country flag ---- */
.megamenu-alkohole-cnt .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;
}

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

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

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

.megamenu-alkohole-cnt .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; }
}

.megamenu-alkohole-cnt .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;
}

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

.megamenu-alkohole-cnt .mm-produkt-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: linear-gradient(160deg, #f9f5f2 0%, #f0ebe6 100%);
  min-height: 90px;
  overflow: hidden;
}

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

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

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

.megamenu-alkohole-cnt .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;
}

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

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

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

.megamenu-alkohole-cnt .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-alkohole-cnt .megamenu-featured-btn svg { flex-shrink: 0; color: #8b2332; transition: color 0.22s ease; }

.megamenu-alkohole-cnt .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-alkohole-cnt .megamenu-featured-btn:hover svg { color: #ffffff; }

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

.megamenu-alkohole-cnt .kraj-viewport { overflow: hidden; }

.megamenu-alkohole-cnt .kraj-track {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

.megamenu-alkohole-cnt .kraj-page {
  min-width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.megamenu-alkohole-cnt .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;
}

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

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

.megamenu-alkohole-cnt .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;
}

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

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

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

  .megamenu-alkohole-cnt .megamenu-content {
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "kategorie typy    kraj"
      "profile   cena    kraj"
      "produkty  produkty produkty";
    gap: 20px 24px;
  }

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

/* ≤ 640px */
@media (max-width: 640px) {
  .megamenu-alkohole-cnt .megamenu-content {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas:
      "kategorie typy"
      "profile   cena"
      "kraj      kraj"
      "produkty  produkty";
    gap: 18px;
  }

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

  .megamenu-alkohole-cnt .kraj-track { flex-wrap: wrap; }
  .megamenu-alkohole-cnt .kraj-page  { min-width: 50%; }
  .megamenu-alkohole-cnt .kraj-footer { display: none; }

  .megamenu-alkohole-cnt .megamenu-top-nav { flex-wrap: wrap; justify-content: center; gap: 2px; }
  .megamenu-alkohole-cnt .megamenu-top-divider { display: none; }
  .megamenu-alkohole-cnt .megamenu-top-link { font-size: 12px; padding: 5px 10px; }
}

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

  .megamenu-alkohole-cnt .megamenu-content {
    grid-template-columns: 1fr;
    grid-template-areas:
      "kategorie" "typy" "kraj" "profile" "cena" "produkty";
    gap: 18px;
  }

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

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

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