/* Jewelry Header Variant */

/* ── Topbar ── */
.jwl-topbar { background: #0d0d0d; border-bottom: 1px solid rgba(184,151,62,.2); }
.jwl-topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 34px; font-size: 12px; color: rgba(255,255,255,.55);
}
.jwl-topbar-msg { letter-spacing: .3px; }
.jwl-topbar-right { display: flex; align-items: center; gap: 10px; }
.jwl-td-wrap { position: relative; }
.jwl-td-toggle {
  background: none; border: none; color: rgba(255,255,255,.55);
  font-size: 12px; cursor: pointer; padding: 0; display: flex; align-items: center; gap: 4px;
}
.jwl-td-menu {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #1a1a1a; border: 1px solid rgba(184,151,62,.2);
  min-width: 100px; z-index: 300;
}
.jwl-td-menu a { display: block; padding: 8px 14px; font-size: 12px; color: rgba(255,255,255,.7); text-decoration: none; }
.jwl-td-menu a:hover { color: var(--molla-accent); }
.jwl-td-wrap:hover .jwl-td-menu { display: block; }

/* ── Main Header ── */
.jwl-header { background: #fff; border-bottom: 1px solid #f0ebe4; position: sticky; top: 0; z-index: 100; }
.jwl-header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; position: relative;
}

/* ── Logo Center — absolute so it's always centered in container ── */
.jwl-logo {
  text-decoration: none; flex-shrink: 0;
  position: absolute; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.jwl-logo-text {
  font-size: 20px; font-weight: 300; letter-spacing: 8px; text-transform: uppercase; color: #111;
}

/* ── Nav wraps ── */
.jwl-nav-wrap { display: flex; align-items: center; gap: 20px; }
.jwl-nav-wrap--left .jwl-nav ul { justify-content: flex-end; }
.jwl-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: nowrap; gap: 0; }
.jwl-nav > ul > li { position: relative; }
.jwl-nav > ul > li > a {
  display: block; padding: 0 14px; line-height: 76px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: #444; text-decoration: none; transition: color .15s; white-space: nowrap;
}
.jwl-nav > ul > li > a:hover,
.jwl-nav > ul > li > a.active { color: var(--molla-accent); }
.jwl-nav > ul > li > a.active { box-shadow: inset 0 -2px 0 var(--molla-accent); }

/* Dropdown */
.jwl-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #eee; border-top: 2px solid var(--molla-accent);
  min-width: 200px; list-style: none; padding: 8px 0; margin: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); z-index: 200;
}
.jwl-nav > ul > li:hover > .jwl-dropdown { display: block; }
.jwl-dropdown li a {
  display: block; padding: 10px 20px; font-size: 12px; color: #555; text-decoration: none;
  transition: color .15s, padding-left .15s;
}
.jwl-dropdown li a:hover { color: var(--molla-accent); padding-left: 26px; }

/* ── Icons ── */
.jwl-icons { display: flex; align-items: center; gap: 2px; }
.jwl-icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #333; font-size: 17px;
  text-decoration: none; cursor: pointer; position: relative;
  transition: color .15s, background .15s;
}
.jwl-icon-btn:hover { color: var(--molla-accent); background: rgba(184,151,62,.08); }
.jwl-badge {
  position: absolute; top: 3px; right: 3px;
  min-width: 15px; height: 15px; border-radius: 8px;
  background: var(--molla-accent); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 15px; text-align: center; padding: 0 3px;
}
.jwl-mobile-toggle { display: none; }

/* ── Search ── */
.jwl-search-bar {
  background: #faf8f5; border-top: 1px solid #eee;
  max-height: 0; overflow: hidden; transition: max-height .3s ease, padding .3s ease;
}
.jwl-search-bar.open { max-height: 72px; padding: 12px 0; }
.jwl-search-form { display: flex; align-items: center; gap: 8px; }
.jwl-search-form input {
  flex: 1; border: 1px solid #ddd; padding: 10px 16px; font-size: 13px;
  outline: none; background: #fff;
}
.jwl-search-form input:focus { border-color: var(--molla-accent); }
.jwl-search-form button {
  height: 40px; padding: 0 16px; border: none; cursor: pointer;
  font-size: 15px; background: var(--molla-accent); color: #fff;
}
.jwl-search-close { background: #eee !important; color: #666 !important; }

/* ── Responsive ── */
@media (max-width: 992px) {
  .jwl-nav { display: none; }
  .jwl-mobile-toggle { display: flex; }
  .jwl-header-inner { justify-content: space-between; }
  .jwl-nav-wrap--left { display: none; }
  .jwl-logo { position: static; transform: none; }
}
@media (max-width: 480px) {
  .jwl-topbar-msg { display: none; }
  .jwl-topbar-inner { justify-content: flex-end; }
  .jwl-logo-text { font-size: 15px; letter-spacing: 4px; }
  .jwl-header-inner { height: 52px; }
  .jwl-icon-btn { width: 32px; height: 32px; font-size: 15px; }
  .jwl-icons { gap: 0; }
  .jwl-search-toggle,
  .jwl-icons > a.jwl-icon-btn:not(.header-cart-icon) { display: none; }
}
