/* Shared site header — all pages */
#site-header-mount {
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  min-height: 148px;
}

body.has-sticky-header #site-header-mount {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  background: #fff;
  box-shadow: 0 1px 0 #ececec;
}

/* Sticky header stays in document flow — no body padding (that caused empty gap above header) */
html {
  scroll-padding-top: var(--site-header-h, 72px);
}

.abaya-main-header {
  position: relative;
  z-index: 1;
  background: #fff;
  width: 100%;
  max-width: 100%;
  border-bottom: 1px solid #ececec;
}

.header-top-bar,
.header-middle-nav,
.header-announcement-bar {
  width: 100%;
}

.header-middle-nav .custom-container {
  width: 100%;
}

.custom-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 12px;
  box-sizing: border-box;
  width: 100%;
}

.header-top-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #f0f0f0;
  padding: 6px 0;
}

.top-bar-content {
  text-align: right;
  font-size: 13px;
  color: #555;
}

.top-bar-content a {
  text-decoration: none;
  color: inherit;
  margin: 0 4px;
}

.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 12px 16px;
  box-sizing: border-box;
  gap: 8px;
}

/* Logo | centered menu | icons — menu must not bleed under search/cart icons */
@media (min-width: 1024px) {
  .header-middle-nav .custom-container.nav-row,
  .header-middle-nav .nav-row.custom-container {
    display: grid;
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr) minmax(148px, max-content);
    align-items: center;
    column-gap: 12px;
    row-gap: 8px;
    padding: 10px 12px;
    justify-content: unset;
  }

  .brand-text-logo {
    justify-self: start;
    min-width: 0;
    max-width: 200px;
  }

  .brand-logo-img {
    max-width: 200px;
    height: 40px;
  }

  .desktop-menu {
    display: flex !important;
    justify-content: center;
    align-self: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    box-sizing: border-box;
    padding: 0 6px;
  }

  .desktop-menu ul {
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    row-gap: 6px;
    column-gap: 6px;
    max-width: 100%;
    margin: 0;
    padding: 0 8px;
    box-sizing: border-box;
  }

  .desktop-menu ul li a {
    font-size: 11px;
    letter-spacing: 0.3px;
    padding: 2px 4px;
    height: auto;
    line-height: 1.25;
  }

  .nav-icons {
    justify-self: end;
    flex-shrink: 0;
    position: relative;
    z-index: 4;
    background: #fff;
    padding-left: 10px;
    margin-left: 2px;
    box-shadow: -10px 0 10px 0 #fff;
  }
}

@media (min-width: 1024px) and (max-width: 1319px) {
  .desktop-menu ul li a {
    font-size: 10px;
    letter-spacing: 0.2px;
    padding: 2px 3px;
  }

  .desktop-menu ul {
    column-gap: 5px;
    row-gap: 4px;
  }
}

@media (min-width: 1200px) {
  .desktop-menu ul {
    column-gap: 12px;
    row-gap: 4px;
  }

  .desktop-menu ul li a {
    font-size: 12px;
    letter-spacing: 0.4px;
  }
}

@media (min-width: 1360px) {
  .desktop-menu ul li a {
    font-size: 13px;
    letter-spacing: 0.45px;
  }

  .desktop-menu ul {
    column-gap: 14px;
    flex-wrap: nowrap;
  }
}

.brand-text-logo {
  flex-shrink: 0;
}

.brand-text-logo a,
.brand-logo-link {
  text-decoration: none;
  color: #000;
  display: inline-flex;
  align-items: center;
}

.brand-logo-img {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(260px, 52vw);
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
}

.brand-logo-fallback {
  display: none;
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111;
  line-height: 1.1;
}

.brand-logo-link.brand-logo-failed .brand-logo-fallback {
  display: inline-block;
}

.desktop-menu {
  flex-grow: 1;
  display: none;
  justify-content: center;
}

.desktop-menu ul {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}

.desktop-menu ul li {
  display: flex;
  align-items: center;
}

.desktop-menu ul li a {
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
}

.desktop-menu ul li a:hover {
  color: #000;
}

.desktop-menu ul li .nav-link-soon,
.mobile-nav-panel ul li .nav-link-soon {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 2px 4px;
  font-size: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  color: #9ca3af;
  cursor: default;
  user-select: none;
  white-space: nowrap;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 30px;
  justify-content: flex-end;
  padding-right: 4px;
}

.nav-icons a,
.nav-icons button,
.nav-icons .cart-drawer-trigger,
.nav-icon-btn {
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.nav-icon-svg {
  width: 24px;
  height: 24px;
  min-width: 24px;
  min-height: 24px;
  display: block;
  flex: 0 0 auto;
  aspect-ratio: 1 / 1;
}

#cart-count {
  position: absolute;
  top: -5px;
  right: -8px;
  background: #ff0000;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 1px solid #fff;
}

.header-announcement-bar {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fb 100%);
  padding: 8px 0;
  border-top: 1px solid #eceff3;
  border-bottom: 1px solid #eceff3;
}

.announcement-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  height: 42px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 58px;
  box-sizing: border-box;
}

.announcement-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  height: 34px;
  text-align: center;
}

.ann-slide {
  display: none;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0.01em;
  position: absolute;
  width: 100%;
  left: 0;
  line-height: 34px;
}

.ann-slide.active {
  display: block;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
  z-index: 2;
  padding: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.slider-arrow-svg {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.slider-arrow:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.slider-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

.left-arrow { left: 0; }
.right-arrow { right: 0; }

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: -100%;
  left: auto;
  width: min(250px, 85vw);
  height: 100vh;
  height: 100dvh;
  background: #fff;
  z-index: 100001;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.mobile-nav-panel.active {
  right: 0;
}

.mobile-nav-panel .mobile-nav-top {
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

.mobile-nav-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-nav-panel ul li a {
  display: block;
  padding: 14px 18px;
  border-bottom: 1px solid #f5f5f5;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 100000;
  display: none;
}

.menu-overlay.active {
  display: block;
}

body.global-layout {
  font-family: 'Hind Siliguri', 'Inter', Arial, sans-serif;
  margin: 0;
  background: #f7f7f7;
  color: #222;
}

@media (min-width: 1024px) {
  .desktop-menu {
    display: flex;
  }

  .nav-menu-btn {
    display: none !important;
  }
}

@media (max-width: 1023px) {
  .custom-container {
    max-width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .brand-text-logo {
    flex: 1 1 auto;
    min-width: 0;
    padding-left: 2px;
  }

  .brand-text-logo a {
    font-size: 16px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-logo-img {
    height: 34px;
    max-width: min(190px, 50vw);
  }

  .header-middle-nav .nav-row {
    padding: 10px 16px;
    gap: 6px;
    width: 100%;
    justify-content: space-between;
    box-sizing: border-box;
  }

  .nav-icons {
    gap: 8px;
    padding-right: 0;
    flex-shrink: 0;
    margin-left: auto;
  }

  .nav-icons a,
  .nav-icons button,
  .nav-icons .cart-drawer-trigger,
  .nav-icon-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
  }

  .nav-icon-svg {
    width: 22px;
    height: 22px;
    min-width: 22px;
    min-height: 22px;
  }

  .header-announcement-bar {
    padding: 10px 0;
  }

  .header-announcement-bar .custom-container {
    padding-left: 0;
    padding-right: 0;
  }

  .announcement-slider {
    height: 48px;
    max-width: 100%;
    width: 100%;
    padding: 0 40px;
    margin: 0;
  }

  .ann-slide {
    font-size: 13px;
    line-height: 1.35;
    padding-top: 4px;
  }

  .slider-arrow {
    width: 40px;
    height: 40px;
  }

  .slider-arrow-svg {
    width: 20px;
    height: 20px;
  }

  .left-arrow {
    left: 6px;
  }

  .right-arrow {
    right: 6px;
  }
}

@media (max-width: 380px) {
  .brand-text-logo a {
    font-size: 14px;
  }

  .brand-logo-img {
    height: 30px;
    max-width: min(160px, 46vw);
  }

  .nav-icons {
    gap: 6px;
  }

  .nav-icons a,
  .nav-icons button,
  .nav-icons .cart-drawer-trigger,
  .nav-icon-btn {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
  }

  .nav-icon-svg {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
  }
}

/* Anzaar-style search bar — expands under main nav */
.site-search-drawer {
  position: relative;
  z-index: 6;
  background: #fff;
  border-bottom: 1px solid transparent;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.2s ease, border-color 0.2s ease, padding 0.2s ease;
  padding: 0;
  box-sizing: border-box;
}

body.site-search-open .site-search-drawer {
  max-height: min(70vh, 480px);
  opacity: 1;
  pointer-events: auto;
  border-bottom-color: #e8e8e8;
  padding: 20px 0 22px;
}

.site-search-inner {
  width: 100%;
  box-sizing: border-box;
}

.site-search-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
}

.site-search-form {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #1a1a1a;
  padding: 0 0 12px;
}

.site-search-form .nav-icon-svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #333;
  stroke-width: 1.5;
}

.site-search-form input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 300;
  letter-spacing: 0.01em;
  color: #222;
  background: transparent !important;
  font-family: inherit;
  min-width: 0;
  padding: 0;
  margin: 0;
  line-height: 1.4;
}

.site-search-form input::-webkit-search-decoration,
.site-search-form input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.site-search-form input::placeholder {
  color: #b0b0b0;
  font-weight: 300;
}

.site-search-close {
  flex-shrink: 0;
  border: none;
  background: transparent;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  color: #111;
  cursor: pointer;
  padding: 0 0 8px;
  margin: 0;
  width: auto;
  height: auto;
  transition: opacity 0.15s ease;
}

.site-search-close:hover {
  opacity: 0.55;
}

.site-search-results {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  max-height: 42vh;
  overflow-y: auto;
}

.site-search-results li {
  border-bottom: 1px solid #eee;
}

.site-search-results a {
  display: block;
  padding: 10px 2px;
  text-decoration: none;
  color: #111;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.02em;
}

.site-search-results a:hover {
  color: #000;
  background: #fafafa;
}

@media (max-width: 768px) {
  body.site-search-open .site-search-drawer {
    padding: 16px 0 18px;
  }

  .site-search-row {
    gap: 12px;
  }

  .site-search-form {
    padding-bottom: 10px;
  }

  .site-search-form input {
    font-size: 17px;
  }

  .site-search-close {
    font-size: 26px;
    padding-bottom: 6px;
  }
}
