/* BE.GE Pre-Order Editorial Navigation — Zara Home / Nordic Gallery Minimalist System (v1s) */
body.bege-po-editorial-active,
body.bege-po-editorial-active app-products,
body.bege-po-editorial-active .products-page-wrapper {
  background: #ffffff !important;
}

body.bege-po-editorial-active .products-page-wrapper {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 22px 44px 88px !important;
  box-sizing: border-box !important;
}
@media (max-width: 1199px) and (min-width: 768px) {
  body.bege-po-editorial-active .products-page-wrapper {
    padding: 20px 28px 72px !important;
  }
}
@media (min-width: 2400px) {
  body.bege-po-editorial-active .all-products-wrapper .products {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 44px 28px !important;
  }
}

/* Eliminate cramped sidebar so all laptop & desktop screens get 100% pure gallery width */
body.bege-po-editorial-active .products-flex-container {
  display: block !important;
  width: 100% !important;
}

body.bege-po-editorial-active .products-flex-container > .filter-wrapper,
body.bege-po-editorial-active .products-content-wrapper > .breadcrumb-wrapper,
body.bege-po-editorial-active .products-flex-container > .breadcrumb-wrapper {
  display: none !important;
}

body.bege-po-editorial-active .products-content-wrapper,
body.bege-po-editorial-active .all-products-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Editorial Header + Navigation Container */
#bege-zara-nav {
  width: 100%;
  background: #ffffff;
  margin: 4px 0 28px 0;
  padding: 0;
  box-sizing: border-box;
}

.bz-top-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.bz-crumb-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.bz-kicker {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #767676;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.18s ease;
}
html[lang="ka"] .bz-kicker,
html[lang="hy"] .bz-kicker {
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 12px;
}
.bz-kicker:hover {
  color: #111111;
}

.bz-sep {
  font-size: 12px;
  color: #c4c4c4;
  font-weight: 300;
}

.bz-current-heading {
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 400;
  color: #111111;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 4px 0 0 0;
}

/* Hide redundant default Angular title row left-text while keeping native sort/grid controls aligned cleanly */
body.bege-po-editorial-active .title-flex-container {
  margin-bottom: 18px !important;
  padding-bottom: 0 !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
body.bege-po-editorial-active .title-flex-container .section-title {
  display: none !important;
}
body.bege-po-editorial-active .title-flex-container .results {
  font-size: 12px !important;
  color: #767676 !important;
  font-weight: 400 !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
}

/* ROW 1 — 12 Rooms Editorial Bar (Pure Text on White, Hairline Baseline) */
.bz-rooms-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 28px;
  row-gap: 4px;
  border-bottom: 1px solid #ebebeb;
  padding: 0;
  margin: 0;
  list-style: none;
}

.bz-room-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 10px 0 12px 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: 0.025em;
  color: #767676 !important;
  text-decoration: none !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s ease;
}

html[lang="ka"] .bz-room-link,
html[lang="hy"] .bz-room-link {
  letter-spacing: 0.005em;
  font-size: 13.5px;
}

.bz-room-link:hover {
  color: #111111 !important;
}

.bz-room-link.is-active {
  color: #111111 !important;
  font-weight: 500;
}

.bz-room-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: #111111;
}

/* ROW 2 — Contextual Subcategories (Appears ONLY when a Room is selected) */
.bz-subs-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 22px;
  row-gap: 8px;
  padding: 14px 0 4px 0;
  margin: 0;
  list-style: none;
  animation: none;
}

@keyframes bzFadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.bz-sub-link {
  position: relative;
  display: inline-block;
  padding: 3px 0 5px 0;
  font-size: 12.5px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0.015em;
  color: #8c8c8c !important;
  text-decoration: none !important;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease;
}

.bz-sub-link:hover {
  color: #111111 !important;
}

.bz-sub-link.is-active {
  color: #111111 !important;
  font-weight: 500;
}

.bz-sub-link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #111111;
}

/* Responsive Product Grid Across All Desktop & Mobile Zones */
body.bege-po-editorial-active .all-products-wrapper .products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 36px 24px !important;
  width: 100% !important;
}

body.bege-po-editorial-active .all-products-wrapper .products > * {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  flex: none !important;
}

/* Ultrawide 2K / 4K monitors */
@media (min-width: 2050px) {
  body.bege-po-editorial-active .all-products-wrapper .products {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 42px 28px !important;
  }
  .bz-rooms-bar {
    column-gap: 34px;
  }
  .bz-room-link {
    font-size: 13.5px;
  }
}

/* Compact Laptops 13" / Windows 125%–150% DPI (1024px–1365px) */
@media (min-width: 1024px) and (max-width: 1365px) {
  body.bege-po-editorial-active .all-products-wrapper .products {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 28px 18px !important;
  }
  .bz-rooms-bar {
    column-gap: 22px;
  }
}

/* Tablets (640px–1023px) */
@media (min-width: 640px) and (max-width: 1023px) {
  body.bege-po-editorial-active .all-products-wrapper .products {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 26px 16px !important;
  }
}

/* Mobile (< 768px): Single-line touch glide on white, zero scrollbars, 2-column gallery */
@media (max-width: 767px) {
  body.bege-po-editorial-active .products-page-wrapper {
    padding: 12px 14px 56px !important;
  }
  #bege-zara-nav {
    margin: 0 0 18px 0;
  }
  .bz-top-meta {
    margin-bottom: 10px;
  }
  .bz-current-heading {
    font-size: 19px;
  }
  .bz-rooms-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    column-gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-right: 24px;
    mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  }
  .bz-rooms-bar::-webkit-scrollbar {
    display: none;
  }
  .bz-room-link {
    padding: 9px 0 11px 0;
    font-size: 13px;
  }
  .bz-subs-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    column-gap: 18px;
    padding: 11px 24px 4px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, #000 90%, transparent 100%);
  }
  .bz-subs-bar::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 639px) {
  body.bege-po-editorial-active .all-products-wrapper .products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }
}

/* Editorial refinement of product cards inside Pre-Order (quieter badge, crisp gallery look) */
body.bege-po-editorial-active .product-card,
body.bege-po-editorial-active app-product-card .card-wrapper,
body.bege-po-editorial-active app-product-item {
  border: none !important;
  box-shadow: none !important;
}

body.bege-po-editorial-active .preorder-text,
body.bege-po-editorial-active [class*="preorder"] {
  font-size: 11px !important;
  line-height: 1.35 !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  letter-spacing: 0.02em !important;
}


/* Monochrome Zara Home Toolbar & Clean Card Footer */
body.bege-po-editorial-active .right-filter-wrapper .sort-title {
  display: none !important;
}
body.bege-po-editorial-active .right-filter-wrapper .sort-by-price {
  border: none !important;
  border-bottom: 1px solid #111111 !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 4px 2px 6px 2px !important;
  height: auto !important;
  min-width: 136px !important;
  font-size: 12.5px !important;
  color: #111111 !important;
  box-shadow: none !important;
}
body.bege-po-editorial-active .right-filter-wrapper .right-icons .icon {
  border: 1px solid #ebebeb !important;
  border-radius: 0 !important;
  background: #ffffff !important;
}
body.bege-po-editorial-active .right-filter-wrapper .right-icons .icon img {
  filter: grayscale(1) contrast(1.8) !important;
  opacity: 0.85;
  transition: opacity 0.16s ease;
}
body.bege-po-editorial-active .right-filter-wrapper .right-icons .icon:hover img {
  opacity: 1;
}

/* === TOP HEADER MEGA-MENU GRID FIX & HOVER BRIDGE (v2) === */
app-header .bottom-header {
  position: relative !important;
}

app-header .menu__item > a {
  padding: 18px 0 !important;
  display: inline-block !important;
}

app-header .menu-dropdown-wrapper {
  top: 100% !important;
  left: 0 !important;
  width: 100% !important;
  padding: 26px 0 32px !important;
  background: #ffffff !important;
  border-top: 1px solid #ededed !important;
  box-shadow: 0 20px 44px rgba(17, 17, 17, 0.08) !important;
  z-index: 950 !important;
  pointer-events: none !important;
  transition: opacity 0.16s ease, visibility 0.16s ease !important;
}

app-header .menu-dropdown-wrapper::before {
  content: "";
  position: absolute;
  top: -22px;
  left: 0;
  right: 0;
  height: 22px;
  background: transparent;
}

app-header .menu-dropdown-wrapper.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

app-header .menu-dropdown-wrapper .wider-container {
  max-width: 1640px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 2px 44px 10px !important;
  box-sizing: border-box !important;
  max-height: min(70vh, 640px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

app-header .menu-dropdown-wrapper .dropdown-columns-wrapper {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 36px !important;
  align-items: start !important;
  width: 100% !important;
}

@media (max-width: 1399px) {
  app-header .menu-dropdown-wrapper .dropdown-columns-wrapper {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 24px 28px !important;
  }
}

@media (max-width: 991px) {
  app-header .menu-dropdown-wrapper .wider-container {
    padding: 2px 24px 10px !important;
  }
  app-header .menu-dropdown-wrapper .dropdown-columns-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 22px !important;
  }
}

app-header .menu-dropdown-wrapper .dropdown-column {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

app-header .menu-dropdown-wrapper .dropdown-column li {
  min-width: 0 !important;
  max-width: 100% !important;
  margin-bottom: 7px !important;
}

app-header .menu-dropdown-wrapper .dropdown-column li.column-title {
  display: block !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.38 !important;
  color: #111111 !important;
  margin-bottom: 10px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #f0f0f0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  cursor: pointer !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

app-header .menu-dropdown-wrapper .dropdown-column li.column-title:hover {
  color: #000000 !important;
  border-bottom-color: #111111 !important;
}

app-header .menu-dropdown-wrapper .dropdown-column li a {
  display: block !important;
  width: 100% !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  font-size: 13.5px !important;
  line-height: 1.44 !important;
  color: #575d61 !important;
  padding: 2px 0 !important;
  text-transform: none !important;
  transition: color 0.15s ease !important;
}

app-header .menu-dropdown-wrapper .dropdown-column li a:hover {
  color: #111111 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

/* Also protect left burger flyout columns from nowrap overlap */
app-header .inner-categories-wrapper .dropdown-column,
app-header .inner-categories-wrapper .dropdown-column li,
app-header .inner-categories-wrapper .dropdown-column li a {
  min-width: 0 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

/* Editorial Room Bar Hover Preview Indicator */
.bz-room-link.is-hover-preview:not(.is-active) {
  color: #111111 !important;
}
.bz-room-link.is-hover-preview:not(.is-active)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: #a8a8a8;
}
.bz-subs-slot {
  min-height: 0;
}
.bz-subs-bar.is-fade-in {
  animation: bzFadeIn 0.15s ease-out;
}
