/* ===========================
   NAVBAR (desktop styles)
   =========================== */
.custom-navbar {
  width: 100%;
  background: transparent !important;
  position: absolute;
  top: 0; left: 0;
  z-index: 100;
  box-shadow: none;
  transition: background 0.3s;
}

.navbar-top, .navbar-bottom {
  width: 100%;
  left: 0;
}

.custom-navbar.scrolled {
  background: rgba(255,255,255,0.85);
  box-shadow: 0 1px 8px #ccc3;
}

.navbar-top {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 2vw 8px 2vw;
  width: 100%;
  gap: 36px;
  position: relative;
}

.navbar-logo {
  flex: 1;
  font-family: 'Parisienne', cursive;
  font-weight: bold;
  font-size: 1.35rem;
  text-align: center;
  color: #23292f;
  user-select: none;
  margin-left: 4vw;
}

.navbar-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.13);
  width: 100%;
  max-width: 340px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 24px;
  position: relative;
  padding: 0;
  box-shadow: 0 2px 8px rgba(80,80,80,0.07);
  backdrop-filter: blur(4px);
}

.navbar-search input[type="text"] {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  padding: 0 48px 0 14px;
  background: transparent;
  font-size: 1.1rem;
  font-family: 'Montserrat', Arial, sans-serif;
  color: #222;
  letter-spacing: 0.04em;
}

.navbar-search input[type="text"]::placeholder {
  color: #888;
  opacity: 1;
}

.search-btn {
  position: absolute;
  top: 50%;
  right: 7px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: #f6f7f900;
  border: 1px solid #bdbdbd;
  border-radius: 6px;
  cursor: pointer;
  transition: border 0.2s, box-shadow 0.2s;
  z-index: 2;
  border: none;
}

.search-btn:hover {
  border-color: #a98a6f;
  box-shadow: 0 1px 4px rgba(170, 150, 110, 0.09);
}

.search-btn i {
  color: #23292f;
  font-size: 1.07rem;
}

.navbar-icons {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-right: 4vw;
}

.navbar-icons a {
  color: #23292f;
  font-size: 1.19rem;
  transition: color 0.17s;
}

.navbar-icons a:hover {
  color: #bc9a7e;
}

.navbar-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 38px;
  padding: 8px 0 2px 0;
  background: #ffffff00;
}

.navbar-bottom a {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 0.93rem;
  letter-spacing: 0.18em;
  color: #22292f;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 400;
  padding: 2px 2px;
  transition: color 0.18s;
}

.navbar-bottom a:hover {
  color: #a98a6f;
}

/* cart badge in top-right icon */
.nav-cart { position: relative; display: inline-block; }
.cart-badge {
  position: absolute;
  top: -8px;
  right: -11px;
  background: #fad3bb;
  color: #222;
  border-radius: 50%;
  font-size: 14px;
  padding: 2px 7px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
  z-index: 2;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px #0001;
}

/* Desktop dropdown under "Abayas" */
.navbar-bottom { display: flex; align-items: center; gap: 38px; position: relative; }
.navbar-dropdown { position: relative; display: inline-block; }

.navbar-dropdown .dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  z-index: 1000;
  background: #fff;
  border-radius: 10px;
  min-width: 220px;
  box-shadow: 0 8px 32px rgba(140,120,100,0.15);
  margin-top: 0;
  padding: 0;
}

.navbar-dropdown:hover .dropdown-content,
.navbar-dropdown:focus-within .dropdown-content { display: block; }

.large-dropdown a {
  color: #22292f;
  display: block;
  padding: 16px 18px;
  text-decoration: none;
  font-size: 1.06em;
  font-family: 'Montserrat', Arial, sans-serif;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #f2efe9;
  transition: background 0.18s, color 0.14s;
}
.large-dropdown a:last-child { border-bottom: none; }
.large-dropdown a:hover { background: #f8f5f2; color: #a98a6f; }

/* Desktop tweaks */
@media (max-width: 950px) {
  .navbar-bottom { gap: 14px; font-size: 0.89rem; }
  .navbar-logo { font-size: 1rem; }
  .navbar-search { max-width: 180px; }
}
@media (max-width: 700px) {
  .navbar-top { flex-direction: column; gap: 14px; }
  .navbar-search { max-width: 90vw; width: 100%; }
  .navbar-bottom { flex-wrap: wrap; gap: 11px; font-size: 0.85rem; }
}

/* ===========================
   MOBILE HAMBURGER (Font Awesome)
   =========================== */
.nm-hamburger{
  display: none;                 /* shown only under 820px */
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  border: none; background: transparent; cursor: pointer;
  padding: 0;
  position: absolute;            /* left-corner inside navbar */
  left: 12px; top: 50%;
  transform: translateY(-50%);
  z-index: 110;
}
/* font awesome icon inside the button */
.nm-hamburger i{
  font-size: 22px;
  color: #23292f;
  line-height: 1;
  transition: transform .2s ease;
}
/* optional rotate when open (JS toggles .is-open) */
.nm-hamburger.is-open i{ transform: rotate(90deg); }

/* (Old line bars rules kept harmless – not used anymore)
.nm-hamburger span{display:block;width:22px;height:2px;background:#222;margin:3px 0;}
.nm-hamburger.active span:nth-child(1){transform:translateY(5px) rotate(45deg);}
.nm-hamburger.active span:nth-child(2){opacity:0;}
.nm-hamburger.active span:nth-child(3){transform:translateY(-5px) rotate(-45deg);}
*/

/* ===========================
   MOBILE SLIDE-IN MENU
   =========================== */
.nm-mm-backdrop{
  position: fixed; inset: 0;
  background: #0006;
  z-index: 8500;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.nm-mm-backdrop.show{ opacity: 1; pointer-events: auto; }

.nm-mm{
  position: fixed; top: 0; left: -320px;
  width: 300px; max-width: 85vw; height: 100vh;
  background: #fff; box-shadow: 2px 0 24px #00000026;
  z-index: 8600; transition: left .25s;
  display: flex; flex-direction: column;
  box-sizing: border-box; overflow: hidden;
}
.nm-mm.open{ left: 0; }

.nm-mm-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px; font-weight: 700; border-bottom: 1px solid #eee;
}
.nm-mm-close{
  font-size: 1.8rem; border: none; background: transparent; cursor: pointer;
}

/* Actions row (Profile / Wishlist / Cart) — icons only */
.nm-mm-actions{
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px; padding: 12px; border-bottom: 1px solid #f3f3f3;
}
.nm-mm-action{
  min-width: 0;
  display: flex; align-items: center; justify-content: center;
  height: 48px; padding: 0;
  border: 1px solid #eee; border-radius: 12px;
  text-decoration: none; color: #222; position: relative;
  overflow: hidden;
}
.nm-mm-action span{ display: none !important; } /* hide labels */
.nm-mm-action i{ font-size: 1.25rem; line-height: 1; }
.nm-mm-badge{
  position: absolute; top: 4px; right: 6px;
  background: #222; color: #fff; border-radius: 12px;
  padding: 1px 6px; font-size: .78rem; font-weight: 700;
}

/* Search in sidebar */
.nm-mm-search{
  display: flex; gap: 8px; padding: 12px; border-bottom: 1px solid #f3f3f3;
}
.nm-mm-search input{
  flex: 1; padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px;
}
.nm-mm-search button{
  border: none; padding: 10px 12px; background: #222; color: #fff;
  border-radius: 6px; cursor: pointer;
}

/* Links inside sidebar */
.nm-mm-links{
  display: flex; flex-direction: column;
  padding: 10px 8px 18px; overflow: auto;
}
.nm-mm-links a{
  padding: 12px 12px; text-decoration: none; color: #222; border-radius: 8px;
}
.nm-mm-links a:hover{ background: #f7f7f7; }

/* Abayas group stacked vertically */
.nm-mm-group{ padding: 4px 8px; }
.nm-mm-group>summary{
  list-style: none; cursor: pointer; padding: 12px; border-radius: 8px; font-weight: 600;
}
.nm-mm-group>summary::-webkit-details-marker{ display: none; }
.nm-mm-group[open]>summary{ background: #f7f7f7; }
.nm-mm-sub{
  display: block; padding: 10px 12px 10px 16px; border-radius: 8px; margin-top: 2px;
}
.nm-mm-sub:hover{ background:#fafafa; }

/* ===========================
   RESPONSIVE RULES
   =========================== */
@media (max-width: 820px){
  .nm-hamburger{ display: flex; }
  /* mobile uses sidebar; hide top-row extras */
  .custom-navbar .navbar-bottom{ display: none; }
  .custom-navbar .navbar-search{ display: none; }
  .custom-navbar .navbar-icons{ display: none; }
  .navbar-logo{ margin-left: 0; padding-left: 44px; } /* space so logo doesn't overlap hamburger */
}

/* tiny phones still fine; sidebar width already max 85vw */
