/* Shared mega-menu styles. Mirrors the inline copy in public/index.html so
   non-homepage pages can host Katalogas + Prekiniai ženklai dropdowns. */
:root { --bwm-ink:#1A1A1A; --bwm-ink-soft:rgba(26,26,26,0.75); --bwm-muted:#7a7a7a; --bwm-line:#e8e6e1; --bwm-line-soft:#efece4; --bwm-bg-warm:#faf6f0; --bwm-accent-deep:#e89770; --bwm-accent-tint:#fceee4; --bwm-shadow-sm:0 4px 14px rgba(40,30,20,0.06); --bwm-ease:cubic-bezier(.4,0,.2,1); --bwm-ease-out:cubic-bezier(.2,.85,.35,1); --bwm-serif:'Cormorant Garamond', Georgia, serif; }

.mega-trigger { display: inline-flex; align-items: center; gap: 6px; font-weight: 700 !important; letter-spacing: 0.08em !important; text-transform: uppercase; font-size: 12px !important; background:transparent; border:0; color:inherit; cursor:pointer; padding:6px 0; }
.mega-trigger .chev { width: 10px; height: 10px; stroke: currentColor; fill: none; stroke-width: 2; transition: transform 0.2s var(--bwm-ease); }
.mega-trigger.open .chev { transform: rotate(180deg); }
.mega-trigger:hover { color: var(--bwm-accent-deep); }

.mega-panel { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-top: 1px solid var(--bwm-line); border-bottom: 1px solid var(--bwm-line); box-shadow: 0 24px 60px -32px rgba(40,30,20,0.25); z-index: 70; max-height: 85vh; overflow-y: auto; animation: bwm-megaIn 0.18s var(--bwm-ease-out) both; }
.mega-panel[hidden] { display: none; }
@keyframes bwm-megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mega-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px; max-width: 1280px; margin: 0 auto; padding: 32px; }
.mega-col { display: flex; flex-direction: column; }
.mega-col-title { font-family: var(--bwm-serif); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--bwm-line-soft); color: var(--bwm-ink); text-decoration: none; display: block; }
.mega-col-title:hover { color: var(--bwm-accent-deep); }
.mega-link { display: block; font-size: 13px; line-height: 1.7; color: var(--bwm-ink-soft); text-decoration: none; padding: 4px 0; transition: color 0.15s var(--bwm-ease); }
.mega-link:hover { color: var(--bwm-accent-deep); }
.mega-link::after { display: none !important; }
.mega-singles { display: flex; flex-direction: column; gap: 0; }
.mega-single { font-family: var(--bwm-serif); font-size: 14px; font-weight: 600; color: var(--bwm-ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--bwm-line-soft); transition: color 0.15s var(--bwm-ease); }
.mega-single:last-child { border-bottom: none; }
.mega-single:hover { color: var(--bwm-accent-deep); }
.mega-footer { text-align: center; padding: 18px 32px 22px; border-top: 1px solid var(--bwm-line); background: var(--bwm-bg-warm); }
.mega-view-all { display: inline-flex; align-items: center; gap: 10px; padding: 14px 32px; background: var(--bwm-ink); color: #fff !important; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 999px; text-decoration: none; transition: background 0.2s var(--bwm-ease), transform 0.2s var(--bwm-ease); }
.mega-view-all:hover { background: var(--bwm-accent-deep); transform: translateY(-1px); }
.mega-view-all svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Brands mega panel — multi-column grid, matches Katalogas .mega-grid layout */
.mega-brands-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 28px; max-width: 1280px; margin: 0 auto; padding: 32px; }
.mega-brand-row { font-family: var(--bwm-serif); font-size: 14px; font-weight: 600; color: var(--bwm-ink); text-decoration: none; padding: 10px 0; border-bottom: 1px solid var(--bwm-line-soft); transition: color 0.15s var(--bwm-ease); }
.mega-brand-row:hover { color: var(--bwm-accent-deep); }
.mega-brand-count { font-family: 'Inter', -apple-system, sans-serif; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bwm-muted); font-weight: 600; }

@media (max-width: 1100px) {
  .mega-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 22px; }
  .mega-brands-list { grid-template-columns: repeat(3, 1fr); gap: 8px 22px; padding: 22px; }
}
@media (max-width: 720px) {
  .mega-grid { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .mega-brands-list { grid-template-columns: repeat(2, 1fr); gap: 6px 18px; padding: 20px; }
  .mega-col-title { padding-bottom: 8px; }
  .mega-single { padding: 12px 0; }
}
