/* ============================================================
   DIVOKÉ+ . Navigácia (dropdown), Hub, Tapety / Kurz / Presety
   ============================================================ */

/* ── DROPDOWN V NAVIGÁCII ── */
.nav-item--dropdown { position: relative; }

/* Neviditeľný "most" medzi odkazom a rozbaleným menu. Bez neho by kurzor
   pri prechode cez medzeru prišiel o :hover a menu by sa predčasne zatvorilo. */
.nav-item--dropdown::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 18px;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-link { position: relative; }

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  padding: 2px;
  cursor: pointer;
  color: rgba(245,240,232,0.7);
  transition: color 0.2s, transform 0.2s;
}

.nav-item--dropdown:hover .nav-dropdown-toggle,
.nav-item--dropdown.open .nav-dropdown-toggle,
.nav-item--active .nav-dropdown-toggle {
  color: var(--gold-light);
}

.nav-item--dropdown.open .nav-dropdown-toggle { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 170px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(10,20,14,0.28);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 150;
}

.nav-item--dropdown:hover .nav-dropdown,
.nav-item--dropdown.open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown li a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--forest) !important;
  transition: background 0.15s;
}

.nav-dropdown li a::after { display: none !important; content: none !important; }
.nav-dropdown li a:hover { background: rgba(26,58,42,0.07); color: var(--forest) !important; }

/* ── HERO POZADIE (page-divoke-plus.php) ── */
.page-hero--divoke-plus .page-hero-bg {
  background-image:
    radial-gradient(ellipse 70% 80% at 70% 50%, rgba(74,140,92,0.12) 0%, transparent 70%),
    linear-gradient(160deg, rgba(26,58,42,0.90) 0%, rgba(45,90,64,0.82) 100%),
    url('../img/divoke-plus-hero.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 30%;
  background-repeat: no-repeat;
}

/* ── HERO "+" (page-divoke-plus.php) ── */
.hero-plus {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 0.55em;
  color: var(--gold-light);
  vertical-align: super;
  margin-left: 2px;
}

/* ── HUB DLAŽDICE (page-divoke-plus.php) ── */
.section--hub-dark {
  position: relative;
  overflow: hidden;
}

.section-hub-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 70% 80% at 30% 40%, rgba(74,140,92,0.14) 0%, transparent 70%),
    linear-gradient(160deg, rgba(26,58,42,0.93) 0%, rgba(45,90,64,0.87) 100%),
    url('../img/divoke-plus-hero.jpg');
  background-size: cover, cover, cover;
  background-position: center, center, center 65%;
  background-repeat: no-repeat;
}

.section--hub-dark .section-inner {
  position: relative;
  z-index: 1;
}

/* ── VITAJ NA DIVOKÉ+ (biela úvodná sekcia) ── */
.divoke-intro { max-width: 720px; }

.divoke-intro-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.divoke-intro-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 22px;
  background: var(--cream-dark);
  border-radius: 12px;
  border-left: 3px solid var(--gold);
}

.divoke-intro-list strong {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--forest);
}

.divoke-intro-list span {
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.6;
}

.divoke-intro-list em {
  font-style: normal;
  color: var(--stone);
}

.produkty-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid rgba(26,58,42,0.06);
  border-radius: 20px;
  padding: 40px 32px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(26,58,42,0.05);
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), box-shadow 0.28s, border-color 0.28s;
}

.hub-card::before {
  content: '';
  position: absolute;
  top: -50px; right: -50px;
  width: 150px; height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,168,76,0.10) 0%, transparent 72%);
  pointer-events: none;
}

.hub-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(26,58,42,0.14);
  border-color: rgba(201,168,76,0.35);
}

.hub-card-badge {
  position: absolute;
  top: 22px; right: 22px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 20px;
  z-index: 1;
}

.hub-card-badge--new { background: rgba(201,168,76,0.16); color: var(--stone-dark); }
.hub-card-badge--soon { background: rgba(138,126,110,0.14); color: var(--stone-dark); }

.hub-card-icon-wrap {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,58,42,0.06);
  color: var(--forest);
  margin-bottom: 24px;
  position: relative; z-index: 1;
}

.hub-card-icon-wrap svg { width: 26px; height: 26px; }

.hub-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 23px;
  color: var(--forest);
  margin-bottom: 10px;
  position: relative; z-index: 1;
}

.hub-card p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 26px;
  position: relative; z-index: 1;
}

.hub-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--forest);
  margin-top: auto;
  position: relative; z-index: 1;
}

.hub-card-cta svg { width: 14px; height: 14px; transition: transform 0.2s; }
.hub-card:hover .hub-card-cta svg { transform: translateX(4px); }

.hub-card--soon .hub-card-icon-wrap { background: rgba(138,126,110,0.12); color: var(--stone); }
.hub-card--soon .hub-card-cta { color: var(--stone); }
.hub-card--soon:hover {
  transform: none;
  box-shadow: 0 2px 10px rgba(26,58,42,0.05);
  border-color: rgba(26,58,42,0.06);
}
.hub-card--soon:hover .hub-card-cta svg { transform: none; }

/* ── OZNAM O ČOSKORO SPUSTENOM PREDAJI (page-tapety.php) ── */
.tapety-notice {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  background: rgba(201,168,76,0.15);
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: var(--radius);
  color: var(--gold-light) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
}

/* ── FILTRE (page-tapety.php) ── */
.tapety-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(26,58,42,0.08);
}

.filter-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-dark);
}

.filter-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--forest);
  background: var(--cream-dark);
  border: 1.5px solid transparent;
  border-radius: 20px;
  padding: 8px 16px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.filter-btn:hover { border-color: rgba(201,168,76,0.5); }

.filter-btn.is-active {
  background: var(--forest);
  color: var(--cream);
  border-color: var(--forest);
}

.produkty-empty--filtered {
  padding: 32px 20px;
}

/* ── GRID PRODUKTOV (tapety) ── */
.produkty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 28px;
}

.produkt-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(26,58,42,0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.produkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(26,58,42,0.1);
}

.produkt-card-img {
  overflow: hidden;
  line-height: 0;
}

.produkt-card-img img {
  width: 100%;
  height: auto;
  display: block;
}

.produkt-card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.produkt-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  color: var(--forest);
  margin-bottom: 6px;
}

.produkt-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 16px;
}

.produkt-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.produkt-cena {
  font-size: 15px;
  font-weight: 500;
  color: var(--forest);
}

.btn-sm { padding: 8px 16px; font-size: 12px; }

.produkt-badge {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius);
}

.produkt-badge--soon {
  background: rgba(138,126,110,0.15);
  color: var(--stone-dark);
}

/* ── PRÁZDNY STAV / PLACEHOLDER ── */
.produkty-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-weight: 300;
}

.produkty-empty a { color: var(--forest-light); text-decoration: underline; }

.produkty-empty--big {
  max-width: 560px;
  margin: 0 auto;
}

/* ── MODAL — zväčšený náhľad tapety ── */
.produkt-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}

.produkt-modal.open {
  opacity: 1;
  visibility: visible;
}

.produkt-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,20,14,0.72);
  backdrop-filter: blur(4px);
}

.produkt-modal-box {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  display: grid;
  grid-template-columns: minmax(0, 320px) 1fr;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.produkt-modal.open .produkt-modal-box { transform: translateY(0) scale(1); }

.produkt-modal-close {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(26,58,42,0.65);
  color: var(--cream);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.produkt-modal-close:hover { background: var(--forest); }

.produkt-modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(26,58,42,0.65);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.produkt-modal-nav:hover { background: var(--forest); }
.produkt-modal-prev { left: 24px; }
.produkt-modal-next { right: 24px; }

.produkt-modal-img {
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: 88vh;
}

.produkt-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.produkt-modal-body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.produkt-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 40px 36px 12px;
}

.produkt-modal-pinned {
  flex-shrink: 0;
  padding: 18px 36px 32px;
  border-top: 1px solid rgba(26,58,42,0.08);
  background: var(--white);
}

.produkt-modal-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  color: var(--forest);
  margin-bottom: 14px;
}

.produkt-modal-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* ── Technické údaje (foťák / objektív / úprava) ── */
.produkt-modal-specs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.spec-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--stone-dark);
  white-space: nowrap;
}

.spec-item svg {
  width: 15px;
  height: 15px;
  color: var(--gold);
  flex-shrink: 0;
}

.spec-divider {
  width: 1px;
  height: 13px;
  background: rgba(26,58,42,0.14);
  flex-shrink: 0;
}

/* ── Licenčná poznámka ── */
.produkt-modal-license {
  font-size: 12.5px;
  color: var(--stone);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 14px;
}

.produkt-modal-license a { color: var(--forest-light); text-decoration: underline; }

/* ── Súhlas s obchodnými podmienkami ── */
.produkt-modal-agree {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
  cursor: pointer;
}

.produkt-modal-agree input {
  margin-top: 2px;
  accent-color: var(--forest);
  cursor: pointer;
}

.produkt-modal-agree a { color: var(--forest-light); text-decoration: underline; }

.produkt-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(26,58,42,0.08);
}

.produkt-modal-footer .produkt-cena {
  font-size: 20px;
  font-weight: 600;
}

/* ── SHEET TOGGLE (šípka na rozbalenie detailov, len mobil) ── */
.produkt-modal-sheet-toggle {
  display: none;
}

@media (max-width: 640px) {
  /* Fotka na celú výšku boxu, detail sa vysúva ako poloprehľadný panel zospodu. */
  .produkt-modal {
    padding: 0;
    background: #000;
  }

  .produkt-modal-overlay { background: #000; }

  .produkt-modal-box {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    background: #000;
  }

  .produkt-modal-img {
    position: absolute;
    inset: 0;
    max-height: none;
    background: #000;
  }

  .produkt-modal-img img { object-fit: cover; }

  .produkt-modal-nav {
    width: 34px; height: 34px;
    background: rgba(10,20,14,0.35);
    backdrop-filter: blur(6px);
    top: 44%;
    transition: opacity 0.2s, visibility 0.2s;
  }
  .produkt-modal-prev { left: 12px; }
  .produkt-modal-next { right: 12px; }

  /* Kým je otvorený panel s detailmi, šípky na prekliknutie nemajú čo prekrývať. */
  .produkt-modal.sheet-open .produkt-modal-nav {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .produkt-modal-close {
    background: rgba(10,20,14,0.35);
    backdrop-filter: blur(6px);
  }

  .produkt-modal-body {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    max-height: 60px;
    background: rgba(253,250,245,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: 22px 22px 0 0;
    overflow: hidden;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
    transition: max-height 0.35s cubic-bezier(.25,1,.4,1);
  }

  .produkt-modal-body.sheet-open {
    max-height: 78vh;
  }

  .produkt-modal-sheet-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--forest);
  }

  .sheet-toggle-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
  }

  .sheet-toggle-chevron { flex-shrink: 0; transition: transform 0.3s ease; }
  .produkt-modal-body.sheet-open .sheet-toggle-chevron { transform: rotate(180deg); }

  .produkt-modal-scroll { padding: 0 24px 8px; }
  .produkt-modal-pinned { padding: 14px 24px 28px; background: transparent; border-top: none; }
}

/* ── RESPONZÍVNE ── */
@media (max-width: 900px) {
  .produkty-hub-grid { grid-template-columns: 1fr; }

  /* Neviditeľný "most" je len pre desktop hover, na mobile by blokoval klik na ďalšie položky menu */
  .nav-item--dropdown::after { content: none; }

  /* Dropdown sa na mobile rozbaľuje ako harmonika priamo v menu */
  .nav-item-row { justify-content: space-between; }
  .nav-dropdown-toggle { padding: 8px; }

  .nav-dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
  }

  .nav-item--dropdown.open .nav-dropdown {
    max-height: 220px;
    margin-top: 8px;
    transform: none;
  }

  .nav-dropdown li a {
    color: rgba(245,240,232,0.65) !important;
    padding: 10px 0 10px 18px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }

  .nav-dropdown li a:hover { background: none; color: var(--gold-light) !important; }
}

@media (max-width: 600px) {
  .produkty-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
}
