/* ── DreamArt Mega Menu ── */

/* ── Desktop nav ── */
.dam-wrap { position: relative; }

.dam-list {
  display: flex;
  list-style: none;
  margin: 0; padding: 0;
  gap: 40px;
}

.dam-item { position: static; display: flex; align-items: center; }

.dam-link {
  display: flex; align-items: center;
  padding: 0;
  height: 48px;
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: inherit; text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s;
  cursor: pointer;
}
.dam-link:hover { color: #59358C; text-decoration: none; }

/* Desktop: hide mobile elements */
.dam-hamburger { display: none; }

/* ── Mega panel (desktop) ── */
.dam-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 0 0 12px 12px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
  min-height: 100vh;
  padding-top: 10px;
}
.dam-item--mega:hover .dam-panel,
.dam-item--mega:focus-within .dam-panel {
  opacity: 1; pointer-events: all; transform: translateY(0);
}

.dam-panel-inner {
	display: flex;
	min-height: 320px;
	max-height: calc(100vh - 170px);
	max-height: calc(100dvh - 170px);
}

/* Left sidebar */
.dam-panel-left {
	min-width: 230px;
	max-width: 350px;
	background: #f8f5ee;
	border-radius: 12px 0 0 12px;
	flex-shrink: 0;
	padding: 32px 25px;
	min-height: 0;
	overflow-y: auto;
}

.dam-panel-left  .title{
	font-weight: 700;
	font-style: Bold;
	font-size: 20px;
	line-height: 100%;
	color: black;
	margin: 0 0 12px 12px; 
}

.dam-left-item {
	display: flex;
	align-items: center;
	padding: 12px;
	cursor: pointer;
	transition: background 0.12s;
	gap: 0.4rem;
	border-radius: 8px;
}
.dam-left-item:hover, .dam-left-item.is-active { background: #EECE4B; }

.dam-left-link {
	flex: 1;
	letter-spacing: 0.04em;
	font-family: Jost;
	font-weight: 400;
	font-size: 16px;
	line-height: 17px;
	color: #2D2D2D;
}
.dam-left-link:hover { text-decoration: none; }

.dam-left-caret { color: #999; font-size: 1.1rem; flex-shrink: 0; }

/* Right content */
.dam-panel-right {
	flex: 1;
	padding: 1.5rem 2rem;
	overflow-y: auto;
	overflow-x: hidden;
	min-width: 0;
	background-color: white;
}

/* slim scrollbars inside the panel */
.dam-panel-left::-webkit-scrollbar,
.dam-panel-right::-webkit-scrollbar { width: 8px; }
.dam-panel-left::-webkit-scrollbar-thumb,
.dam-panel-right::-webkit-scrollbar-thumb {
	background: rgba(89, 53, 140, 0.25);
	border-radius: 4px;
}
.dam-panel-left::-webkit-scrollbar-thumb:hover,
.dam-panel-right::-webkit-scrollbar-thumb:hover { background: rgba(89, 53, 140, 0.45); }
.dam-panel-left,
.dam-panel-right { scrollbar-width: thin; scrollbar-color: rgba(89, 53, 140, 0.25) transparent; }

.dam-right-panel {
  display: none;
  flex-direction: row;
  align-items: flex-start;
  gap: 2rem;
  animation: dam-in 0.15s ease;
}
.dam-right-panel.is-active { display: flex; }

/* Each column: independent vertical stack */
.dam-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px
}

@keyframes dam-in {
  from { opacity: 0; transform: translateX(8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Groups */
.dam-group-title {
	font-weight: 500;
	font-size: 14px;
	color: black;
	text-decoration: none;
	margin-bottom: 12px;
	transition: 0.15s;
	display: flex;
	align-items: center;
	gap: 8px;
}

.dam-group-title:hover { color: #59358C; text-decoration: none; gap: 15px; }

.dam-group-list { list-style: none; margin: 0; padding: 0; }
.dam-group-list li { margin: 0; }
.dam-group-list a {
  display: block; font-size: 14px; color: #2D2D2D;font-weight: 400;
  text-decoration: none; padding: 0 0 8px 0;
  transition: color 0.12s;
}
.dam-group-list a:hover { color: #59358C; text-decoration: none; }

/* ── Overlay ── */
.dam-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 998;
}
.dam-overlay.is-open { display: block; }

/* ══════════════════════════════════════════
   MOBILE  (≤ 991px)
══════════════════════════════════════════ */
@media (max-width: 991px) {

  /* Hide desktop nav entirely */
  .dam-nav { display: none; }

  /* Show hamburger */
  .dam-hamburger {
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    gap: 5px; width: 40px; height: 40px;
    background: transparent; border: none;
    cursor: pointer; padding: 0;
  }
  .dam-hamburger span {
    display: block; width: 22px; height: 2px;
    background: currentColor; border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .dam-hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .dam-hamburger.is-open span:nth-child(2) { opacity: 0; }
  .dam-hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Mobile nav container ── */
.dam-mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
}

@media (max-width: 991px) {
  .dam-mobile-nav { display: block; }
}

.dam-mobile-nav.is-open { pointer-events: all; }

.dam-mobile-panels {
  position: absolute;
  top: 0; left: 0;
  width: 300px; max-width: 92vw;
  height: 100%;
  overflow: hidden;
}

/* ── Individual drill panel ── */
.dam-mpanel {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  overflow-y: auto;
  transform: translateX(110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 4px 0 24px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
}

.dam-mpanel.is-active  { transform: translateX(0); }
.dam-mpanel.is-out-left { transform: translateX(-28%); }

/* Panel header */
.dam-mpanel-head {
  display: flex; align-items: center;
  padding: 0 0.5rem;
  min-height: 52px;
  background: #59358C;
  color: #fff;
  position: sticky; top: 0; z-index: 2;
  flex-shrink: 0;
}

.dam-mpanel-back,
.dam-mpanel-close {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: none;
  color: #fff; cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  flex-shrink: 0;
}
.dam-mpanel-back:hover,
.dam-mpanel-close:hover { background: rgba(255,255,255,0.15); }

.dam-mpanel-back i,
.dam-mpanel-close i { font-size: 1.25rem; }

.dam-mpanel-title {
  flex: 1; font-size: 14px; font-weight: 700;
  text-align: center; padding: 0 0.25rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* "See all" link */
.dam-mpanel-seeall {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  font-size: 13px; font-weight: 600;
  color: #59358C; text-decoration: none;
  border-bottom: 2px solid #f0f0f0;
  background: #faf8fd;
  transition: background 0.12s;
  flex-shrink: 0;
}
.dam-mpanel-seeall:hover { background: #f0ebfa; color: #59358C; text-decoration: none; }
.dam-mpanel-seeall i { font-size: 1.1rem; }

/* List */
.dam-mpanel-list {
  list-style: none; margin: 0; padding: 0;
  flex: 1;
}

.dam-mpanel-item {
  border-bottom: 1px solid #f0f0f0;
}

/* Drill item (has sub-panel) */
.dam-mpanel-item--drill {
  display: flex; align-items: center;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  transition: background 0.12s;
}
.dam-mpanel-item--drill:hover { background: #fafafa; }

.dam-mpanel-label {
  flex: 1; font-size: 14px; color: #1a1a1a;
}

.dam-mpanel-caret { color: #bbb; font-size: 1.25rem; flex-shrink: 0; }

/* Plain link item */
.dam-mpanel-link {
  display: block;
  padding: 0.9rem 1.25rem;
  font-size: 14px; color: #1a1a1a;
  text-decoration: none;
  transition: background 0.12s;
}
.dam-mpanel-link:hover { background: #fafafa; color: #1a1a1a; text-decoration: none; }

@media(max-width:1639px){
  .dam-list{
    gap: 25px;
  }
}

@media(max-width:1399px){
  .dam-list{
    gap: 20px;
    
    li{
      a.dam-link{
        font-size: 12px;
        letter-spacing:0;
      }
    }
  }
}

@media(max-width:1199px){
  .dam-list{
    gap: 10px;
  }
}
/* ── Simple dropdown (desktop) – for shallow branches ── */
.dam-item--drop { position: relative; }
.dam-dropdown {
  position: absolute;
  top: 100%; left: 50%;
  transform: translate(-50%, -6px);
  min-width: 220px;
  margin: 0; padding: 0.5rem 0;
  list-style: none;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 1000;
}
.dam-item--drop:hover .dam-dropdown,
.dam-item--drop:focus-within .dam-dropdown {
  opacity: 1; pointer-events: all; transform: translate(-50%, 0);
}
.dam-dropdown li { list-style: none; }
.dam-dropdown a {
  display: block;
  padding: 0.5rem 1.25rem;
  color: #000;
  white-space: nowrap;
}
.dam-dropdown a:hover {
  background: rgba(238, 206, 75, 0.25);
  color: #59358C;
  text-decoration: none;
}

/* Non-clickable group title (synthetic parent, e.g. "Kolory farb") */
.dam-group-title--static { cursor: default; }
