/* =============================================
   CROWN GEM — HEADER / NAVBAR CSS
   Styles matching UI design for Crown Gems
   ============================================= */

/* ===== Header Shell & Hero Shell ===== */
.site-header {
  position: relative;
  z-index: 100;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.hero-shell {
  position: relative;
  background-color: var(--cream);
}

/* ===== Header Main Row ===== */
header.main {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: all var(--transition);
}

header.main .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  gap: 24px;
}

/* --- Brand Logo --- */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--gold);
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #1a1a1a;
  text-transform: uppercase;
  line-height: 1.1;
}

.logo-subtitle {
  font-family: var(--sans);
  font-size: 8.5px;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 600;
}

/* --- Nav Links (Desktop) --- */
nav.main-nav {
  display: flex;
  justify-content: center;
  flex-grow: 1;
}

nav.main-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
}

nav.main-nav a {
  color: #222222;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px 0;
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
}

nav.main-nav a:hover {
  color: var(--gold);
}

nav.main-nav a.active {
  color: var(--gold);
  font-weight: 700;
}

/* --- Action Icons --- */
.header-icons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-icons a.icon-link,
.header-icons button.icon-link {
  color: #222222;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  transition: color var(--transition);
}

.header-icons a.icon-link:hover,
.header-icons button.icon-link:hover {
  color: var(--gold);
}

.header-icons svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

/* --- Badges --- */
.header-icons .badge {
  position: absolute;
  top: -2px;
  right: -6px;
  background: var(--gold);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Language & Currency Dropdowns --- */
.currency-selector {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  padding-left: 10px;
  border-left: 1px solid var(--line);
  user-select: none;
}

.currency-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--transition);
}

.currency-current:hover {
  background: #FAF8F5;
}

.currency-current svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
  transition: transform var(--transition);
}

.currency-selector.open .currency-current svg {
  transform: rotate(180deg);
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #ffffff;
  border: 1px solid rgba(228, 220, 206, 0.9);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  min-width: 120px;
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.currency-selector.open .currency-dropdown {
  display: flex;
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 12px;
  color: #444444;
  transition: all var(--transition);
  cursor: pointer;
}

.currency-option:hover {
  background: #FAF8F5;
  color: var(--gold);
}

.currency-option.active {
  background: #FAF5EB;
  color: var(--gold);
  font-weight: 700;
}

.lang-selector {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--sans);
  font-size: 11.5px;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.lang-selector svg {
  width: 12px;
  height: 12px;
  stroke-width: 2;
}

/* --- Hamburger Mobile Button --- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-dark);
  transition: all var(--transition);
}

/* ===== Responsive Media Queries ===== */
@media (max-width: 1100px) {
  nav.main-nav ul {
    gap: 18px;
  }
}

@media (max-width: 960px) {
  nav.main-nav {
    display: none;
  }
  
  nav.main-nav.mobile-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--line);
    z-index: 999;
  }

  nav.main-nav.mobile-open ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 640px) {
  header.main .container {
    padding: 12px 16px;
  }
  .header-icons {
    gap: 12px;
  }
  .lang-selector {
    display: none;
  }
}
