/* ============================================================
   PRIESENDVARIO MEGA MENU
   Įdėti į: Appearance → Customize → Additional CSS
   arba į child theme style.css
   ============================================================ */

/* ── Pagrindinis meniu konteineris ── */
.ps-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
  position: relative;
}

/* ── Kiekvienas meniu punktas ── */
.ps-nav > li {
  position: static;
}

/* ── Meniu nuorodos ── */
.ps-nav > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 14px;
  height: 60px;
  font-size: 13.5px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
  cursor: pointer;
}

.ps-nav > li > a:hover,
.ps-nav > li.ps-open > a {
  border-bottom-color: #2ea87e;
  color: inherit;
}

/* Spalvinis taškas prie kiekvienos kategorijos */
.ps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

/* Rodyklė žemyn */
.ps-chevron {
  width: 10px;
  height: 10px;
  opacity: 0.45;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.ps-nav > li.ps-open .ps-chevron {
  transform: rotate(180deg);
  opacity: 0.8;
}

/* ── MEGA PANEL ── */
.ps-mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.09);
  border-top: 2px solid #2ea87e;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
  z-index: 9999;
  grid-template-columns: 190px 1fr 150px;
}

.ps-nav > li.ps-open .ps-mega {
  display: grid;
}

/* Fallback: desktop hover atidarymas, jei JS neužsikabina laiku */
@media (min-width: 992px) {
  .ps-nav > li:hover > .ps-mega {
    display: grid;
  }
}

/* ── Panel kairė: kategorijos antraštė ── */
.ps-panel-left {
  background: #f7f8f9;
  border-right: 1px solid rgba(0,0,0,0.07);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 0 0 0 10px;
}

.ps-cat-label {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 2px;
}

.ps-cat-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.ps-cat-desc {
  font-size: 12px;
  color: #777;
  line-height: 1.5;
}

.ps-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
  transition: opacity 0.15s;
  width: fit-content;
  margin-top: 16px;
}
.ps-cta:hover { opacity: 0.85; }

/* ── Panel vidurys: stulpeliai ── */
.ps-panel-cols {
  padding: 24px 28px;
  display: flex;
  gap: 28px;
}

.ps-col {
  flex: 1;
  min-width: 110px;
}

.ps-col-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.ps-col-links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ps-col-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: 13px;
  color: #444 !important;
  text-decoration: none !important;
  transition: background 0.1s, color 0.1s;
  line-height: 1.3;
}

.ps-col-links a:hover {
  background: rgba(46,168,126,0.08);
  color: #1a1a1a !important;
}

.ps-link-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  transition: background 0.1s;
}
.ps-col-links a:hover .ps-link-dot {
  background: #2ea87e;
}

/* ── Panel dešinė: greitosios nuorodos ── */
.ps-panel-right {
  background: #f7f8f9;
  border-left: 1px solid rgba(0,0,0,0.07);
  padding: 24px 16px;
  border-radius: 0 0 10px 0;
}

.ps-right-title {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 10px;
}

.ps-panel-right a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: #666 !important;
  text-decoration: none !important;
  transition: background 0.1s, color 0.1s;
  margin-bottom: 2px;
}
.ps-panel-right a:hover {
  background: rgba(46,168,126,0.08);
  color: #1a1a1a !important;
}

/* ── Overlay ── */
.ps-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.25);
  z-index: 9998;
}
.ps-overlay.ps-visible {
  display: block;
}

/* ── Tablet + mobilūs ── */
@media (max-width: 991px) {
  .ps-nav {
    display: block;
  }

  .ps-nav > li {
    margin-bottom: 8px;
  }

  .ps-nav > li > a {
    height: auto;
    min-height: 48px;
    padding: 12px 14px;
    border-bottom: 0;
    border-left: 3px solid transparent;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: background .2s, border-color .2s, box-shadow .2s, color .2s;
  }

  .ps-nav > li > a:active,
  .ps-nav > li.ps-open > a {
    background: rgba(46,168,126,0.10);
    border-left-color: #2ea87e;
    box-shadow: 0 8px 18px rgba(46,168,126,0.18);
  }

  .ps-nav .ps-chevron {
    margin-left: auto;
  }

  .ps-mega {
    display: none !important;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 6px;
    border-radius: 0 0 10px 10px;
    border: 1px solid rgba(0,0,0,0.08);
    border-top: 0;
    box-shadow: 0 10px 22px rgba(0,0,0,0.10);
    grid-template-columns: 1fr;
    overflow: hidden;
  }

  .ps-nav > li.ps-open .ps-mega {
    display: flex !important;
    flex-direction: column;
  }

  .ps-panel-left,
  .ps-panel-right {
    border-radius: 0;
    border: 0;
  }

  .ps-panel-cols {
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
}
