/* ══════════════════════════════════════════
   UTILITIES
══════════════════════════════════════════ */
.gl-img-cover {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}
.gl-img-cover--top {
  object-position: center top;
}

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
.gl-navbar {
  position: fixed; top: var(--ticker-h); left: 0; right: 0; z-index: 1040;
  height: var(--nav-h);
  background: var(--gl-bg);
  border-bottom: 1px solid var(--gl-line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  transition: border-color 0.18s;
}
.gl-navbar.menu-open,
.gl-navbar.gl-navbar--menu-open {
  border-bottom-color: transparent;
}

.gl-nav-left { display: flex; gap: 24px; align-items: center; }

.gl-nav-link {
  font-family: var(--gl-body);
  font-size: 11px; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gl-muted);
  background: none; border: none; cursor: pointer;
  text-decoration: none; transition: color 0.2s;
  padding: 0;
}
.gl-nav-link:hover, .gl-nav-link.active { color: var(--gl-ink); }
.gl-nav-link.sale { color: var(--gl-red); }

.gl-nav-logo {
  cursor: pointer; display: flex; align-items: center;
  justify-self: center; grid-column: 2;
  margin-top: -8px;
  text-decoration: none;
}

.gl-nav-right {
  display: flex; gap: 20px; align-items: center; justify-content: flex-end;
}

.gl-icon-btn {
  background: none; border: none; cursor: pointer;
  color: var(--gl-muted); padding: 0; margin: 0;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  width: 28px; height: 28px;
  line-height: 1;
  font-size: 0;             /* collapse any whitespace inside */
  transition: color 0.2s; text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.gl-icon-btn svg {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}
/* Heart icon optical correction: the visible shape sits slightly higher
   than the other toolbar icons inside the shared 20x20 viewBox. */
.gl-icon-btn[aria-label="Избранное"] svg,
.gl-nav-right .gl-icon-btn:nth-child(3) svg {
  transform: translateY(1.5px);
}
.gl-icon-btn:hover { color: var(--gl-ink); }
.gl-icon-btn--cart {
  position: relative;
}

.gl-cart-badge {
  position: absolute; top: -2px; right: -4px;
  min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--gl-ink); color: var(--gl-bg);
  font-size: 8px; font-weight: 600; line-height: 14px;
  text-align: center; font-family: var(--gl-body);
  border-radius: 0;
}

.gl-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.gl-burger span {
  display: block; width: 20px; height: 1.3px;
  background: var(--gl-muted); transition: background 0.2s;
}
.gl-burger:hover span { background: var(--gl-ink); }

@media (max-width: 1024px) {
  .gl-navbar {
    padding: 0 16px;
    grid-template-columns: auto auto 1fr auto;
  }
  .gl-nav-left { display: none; }
  .gl-burger {
    display: flex;
    grid-column: 1;
  }
  .gl-nav-logo {
    grid-column: 2;
    justify-self: start;
    margin-top: -8px;
    margin-left: 12px;
  }
  .gl-nav-right {
    grid-column: 4;
    gap: 8px;
  }
  .gl-icon-btn { padding: 2px; }
}

/* ══════════════════════════════════════════
   OFFCANVAS SIDEBAR
══════════════════════════════════════════ */
/* ══════════════════════════════════════════
   SIDEBAR (kein Bootstrap — eigenes CSS)
══════════════════════════════════════════ */
.gl-sidebar {
  position: fixed;
  top: var(--ticker-h);
  left: 0;
  width: 300px;
  max-width: 88vw;
  height: calc(100% - var(--ticker-h));
  background: var(--gl-bg);
  border-right: 1px solid var(--gl-line);
  display: flex;
  flex-direction: column;
  z-index: 1045;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gl-sidebar.open {
  transform: translateX(0);
}

/* Overlay hinter der Sidebar */
.gl-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1044;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gl-sidebar-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Body scroll lock */
body.gl-sidebar-lock {
  overflow: hidden;
}

.gl-sidebar-header {
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--gl-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.gl-sidebar-body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gl-line) transparent;
}

/* Close button */
#glSidebar .sb-close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; color: var(--gl-muted);
  padding: 0; margin: 0;
  transition: color 0.2s;
}
#glSidebar .sb-close:hover { color: var(--gl-ink); }

.sb-logo { cursor: pointer; display: flex; align-items: center; margin-top: -2px; text-decoration: none; }

.sb-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sb-nav-item {
  min-height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--gl-line);
  cursor: pointer; background: none;
  text-align: left; text-decoration: none;
  transition: background 0.15s;
  font-family: var(--gl-body);
  font-size: 30px; letter-spacing: 0.05em; line-height: 1;
  color: var(--gl-ink);
}
.sb-nav-item:last-child { border-bottom: none; }
.sb-nav-item:hover { background: var(--gl-bg2); }
.sb-nav-item:hover .sb-arrow { opacity: 1; transform: translateX(3px); }
.sb-nav-item.sale { color: var(--gl-red); }

.sb-arrow {
  color: var(--gl-muted); opacity: 0;
  transition: opacity 0.15s, transform 0.2s; flex-shrink: 0;
}

.sb-bottom { flex-shrink: 0; border-top: 1px solid var(--gl-line); }

.sb-icons { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--gl-line); }
.sb-icon-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 6px;
  background: none; border: none; cursor: pointer;
  border-right: 1px solid var(--gl-line);
  color: var(--gl-muted); text-decoration: none;
  font-family: var(--gl-body); font-size: 8px;
  letter-spacing: 0.12em; text-transform: uppercase;
  transition: color 0.15s, background 0.15s; position: relative;
}
.sb-icon-btn:last-child { border-right: none; }
.sb-icon-btn:hover { color: var(--gl-ink); background: var(--gl-bg2); }

.sb-badge {
  position: absolute; top: 6px; right: calc(50% - 16px);
  min-width: 14px; height: 14px; padding: 0 3px;
  background: var(--gl-ink); color: var(--gl-bg);
  font-size: 8px; font-weight: 600; line-height: 14px;
  text-align: center; pointer-events: none;
}

.sb-foot { padding: 16px 20px 24px; }
.sb-foot-label {
  font-size: 8px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gl-muted); margin-bottom: 6px;
}
.sb-foot-phone {
  display: block; font-family: var(--gl-disp);
  font-size: 22px; letter-spacing: 0.04em;
  color: var(--gl-ink); text-decoration: none;
  margin-bottom: 2px; transition: color 0.2s;
}
.sb-foot-phone:hover { color: var(--gl-gold); }
.sb-foot-hours { font-size: 10px; color: var(--gl-muted); }

/* ══════════════════════════════════════════
   TICKER
══════════════════════════════════════════ */
.gl-ticker {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1050;
  height: var(--ticker-h); overflow: hidden;
  background: #EFECE6;
  display: flex; align-items: center; justify-content: center;
}

.gl-ticker-fade-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gl-ticker-msg {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gl-muted);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  user-select: none;
}

.gl-ticker-msg.active {
  opacity: 1;
  pointer-events: auto;
}

.gl-ticker-sep { color: var(--gl-gold); }

.gl-ticker-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.gl-ticker-link:hover { color: var(--gl-ink); }


/* ══════════════════════════════════════════
   MEGA MENU — DESKTOP 2-LEVEL
══════════════════════════════════════════ */
.gl-nav-item-wrap {
  position: static;
}

.gl-nav-link--has-dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
}

.gl-nav-chevron {
  transition: transform 0.2s;
  flex-shrink: 0;
  color: var(--gl-muted);
}
.gl-nav-item-wrap.open .gl-nav-chevron { transform: rotate(180deg); }
.gl-nav-item-wrap.open > .gl-nav-link--has-dropdown { color: var(--gl-ink); }

/* Menu panel */
.gl-mega-menu {
  position: fixed;
  top: calc(var(--ticker-h) + var(--nav-h));
  left: 0;
  right: 0;
  z-index: 1039;
  background: var(--gl-bg);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  overflow-y: auto;
  max-height: calc(100vh - var(--ticker-h) - var(--nav-h));
}
.gl-nav-item-wrap.open .gl-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ── 2-Level inner layout ── */
.gl-mega-inner--2level {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* gl-mega-body: L1 + L2 + Promo side by side */
.gl-mega-body {
  display: grid;
  grid-template-columns: 160px 1fr 340px;
  width: 100%;
  align-items: stretch;
}

/* Level 1 — vertical, same height as L2 */
.gl-mega-l1 {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.gl-mega-l1-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px 10px 32px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gl-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
  cursor: pointer;
  position: relative;
}
.gl-mega-l1-item svg {
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.15s;
}
.gl-mega-l1-item:hover { color: var(--gl-ink); background: var(--gl-bg2); }
.gl-mega-l1-item:hover svg { opacity: 1; }
.gl-mega-l1-item.active { color: var(--gl-ink); }
.gl-mega-l1-item.active svg { opacity: 1; }

/* Underline only the text span — not the full padding width */
.gl-mega-l1-item span {
  position: relative;
}
.gl-mega-l1-item.active span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--gl-ink);
}

/* When mega menu is open — remove navbar border, add it to gl-mega-body */
.gl-navbar--menu-open {
  border-bottom-color: transparent;
}

/* Level 2 panels */
.gl-mega-l2 {
  position: relative;
  min-height: 280px;
}

.gl-mega-l2-panel {
  display: none;
  padding: 28px 40px 36px;
}
.gl-mega-l2-panel.active { display: block; }

/* Quick links — own row above the columns */
.gl-mega-quick {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
}

.gl-mega-l2-cols {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0 32px;
  align-items: start;
}

/* Equal height columns — use subgrid rows so items align across cols */
.gl-mega-l2-col {
  display: flex;
  flex-direction: column;
  align-self: stretch;   /* stretch to full panel height */
}

.gl-mega-l2-col a {
  font-size: 13px;
  color: var(--gl-muted);
  text-decoration: none;
  padding: 5px 0;
  transition: color 0.15s;
  display: block;
  line-height: 1.5;
}
.gl-mega-l2-col a:hover { color: var(--gl-ink); }

/* Quick tags — no border, plain text links */
.gl-mega-quick {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}
.gl-mega-tag {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gl-muted);
  text-decoration: none;
  display: inline-block;
  transition: color 0.15s;
  border: none;
  padding: 0;
  background: none;
}
.gl-mega-tag:hover { color: var(--gl-ink); }
.gl-mega-tag.sale { color: var(--gl-red); }
.gl-mega-tag.sale:hover { color: var(--gl-red); opacity: 0.7; }

/* Promo image — fixed size, margin right */
.gl-mega-col--promo {
  overflow: visible;
  padding: 20px 0 20px 0;
  margin-right: 32px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.gl-mega-promo-card {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.gl-mega-promo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.gl-mega-promo-card:hover img { transform: scale(1.04); }

.gl-mega-promo-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 16px 14px;
  background: linear-gradient(to top, rgba(10,10,10,0.72) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gl-mega-promo-tag {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.gl-mega-promo-title {
  font-family: var(--gl-disp);
  font-size: 24px;
  line-height: 0.9;
  color: #ffffff;
}
.gl-mega-promo-link {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 6px;
}

/* Backdrop */
.gl-mega-backdrop {
  position: fixed;
  inset: 0;
  top: calc(var(--ticker-h) + var(--nav-h));
  z-index: 1038;
  background: rgba(17,17,17,0.28);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
}
.gl-mega-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

/* ══════════════════════════════════════════
   MOBILE SIDEBAR — ACCORDION EXTENSION
══════════════════════════════════════════ */

.sb-nav-item--trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: 1px solid var(--gl-line);
  cursor: pointer;
  text-align: left;
  font-family: var(--gl-disp);
  font-size: 30px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--gl-ink);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.15s;
}
.sb-nav-item--trigger:hover { background: var(--gl-bg2); }
.sb-nav-item--trigger.open { background: var(--gl-bg2); }

.sb-chevron {
  color: var(--gl-muted);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sb-nav-item--trigger.open .sb-chevron { transform: rotate(180deg); }

.sb-sub-panel {
  background: var(--gl-bg2);
  border-bottom: 1px solid var(--gl-line);
  padding: 16px 20px 20px;
}
.sb-sub-panel[hidden] { display: none; }

.sb-sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gl-line);
}
.sb-sub-all {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gl-ink);
  text-decoration: none;
  transition: color 0.2s;
}
.sb-sub-all:hover { color: var(--gl-gold); }

.sb-sub-quick {
  display: flex;
  gap: 6px;
}
.sb-sub-quick a {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gl-muted);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--gl-line);
  transition: border-color 0.15s, color 0.15s;
}
.sb-sub-quick a:hover { border-color: var(--gl-ink); color: var(--gl-ink); }

.sb-sub-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.sb-sub-col {
  display: flex;
  flex-direction: column;
}
.sb-sub-col a {
  font-size: 12px;
  color: var(--gl-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
  line-height: 1.5;
}
.sb-sub-col a:hover { color: var(--gl-ink); }
.sb-sub-heading {
  font-size: 11px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gl-ink) !important;
  font-weight: 500;
  margin-bottom: 6px;
  margin-top: 4px;
  padding-top: 4px;
}

/* Hide mega menu on mobile */
@media (max-width: 1024px) {
  .gl-mega-menu,
  .gl-mega-backdrop { display: none !important; }
}

/* ══════════════════════════════════════════
   MOBILE SIDEBAR — ACCORDION EXTENSION
══════════════════════════════════════════ */

/* Trigger button replaces the <a> link */
.sb-nav-item--trigger {
  width: 100%;
  background: none;
  border: none;
  border-bottom: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--gl-body);
  font-size: 30px;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--gl-ink);
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  transition: background 0.15s;
}
.sb-nav-item--trigger:hover { background: var(--gl-bg2); }
.sb-nav-item--trigger.open { background: var(--gl-bg2); }

.sb-chevron {
  color: var(--gl-muted);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1);
}
.sb-nav-item--trigger.open .sb-chevron { transform: rotate(180deg); }

/* Sub panel */
.sb-sub-panel {
  background: var(--gl-bg2);
  border-bottom: 1px solid var(--gl-line);
  padding: 16px 20px 20px;
}
.sb-sub-panel[hidden] { display: none; }

.sb-sub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gl-line);
}
.sb-sub-all {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gl-ink);
  text-decoration: none;
  transition: color 0.2s;
}
.sb-sub-all:hover { color: var(--gl-gold); }

.sb-sub-quick {
  display: flex;
  gap: 6px;
}
.sb-sub-quick a {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gl-muted);
  text-decoration: none;
  padding: 3px 9px;
  border: 1px solid var(--gl-line);
  transition: border-color 0.15s, color 0.15s;
}
.sb-sub-quick a:hover { border-color: var(--gl-ink); color: var(--gl-ink); }

.sb-sub-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.sb-sub-col {
  display: flex;
  flex-direction: column;
}
.sb-sub-col a {
  font-size: 12px;
  color: var(--gl-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.15s;
  line-height: 1.5;
}
.sb-sub-col a:hover { color: var(--gl-ink); }
.sb-sub-heading {
  font-size: 11px !important;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gl-ink) !important;
  margin-bottom: 6px;
  margin-top: 4px;
  padding-top: 4px;
  font-weight: 500;
}

/* Hide mega menu on mobile */
@media (max-width: 1024px) {
  .gl-mega-menu,
  .gl-mega-backdrop { display: none !important; }
}