/* ============================================
   CURRENCY SWITCHER STYLES
   Add this to assets/css/style.css
   ============================================ */

.currency-switcher {
  position: relative;
  z-index: 500;
}

.currency-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid rgba(0,0,0,0.15);
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all var(--transition);
  white-space: nowrap;
}
.currency-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.currency-flag { font-size: 1rem; line-height: 1; }
.currency-code { letter-spacing: 0.05em; }

/* Dropdown */
.currency-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  overflow: hidden;
  z-index: 9999;
}
.currency-dropdown.open { display: block; }

.currency-search-wrap {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.07);
}
.currency-search {
  width: 100%;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 4px;
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  outline: none;
  color: var(--black);
}
.currency-search:focus { border-color: var(--gold); }

.currency-list {
  max-height: 280px;
  overflow-y: auto;
}
.currency-list::-webkit-scrollbar { width: 4px; }
.currency-list::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.15); border-radius: 2px; }

.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: var(--charcoal);
  transition: background var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.currency-option:hover { background: var(--light-grey); }
.currency-option.active {
  background: rgba(184,149,63,0.08);
  color: var(--gold-dark);
  font-weight: 500;
}
.currency-option .currency-flag { font-size: 1.1rem; flex-shrink: 0; }
.currency-option .currency-name { flex: 1; }
.currency-option .currency-code-sm {
  font-size: 0.72rem;
  color: var(--mid-grey);
  letter-spacing: 0.05em;
  font-weight: 500;
}
.currency-option .currency-check { color: var(--gold); font-weight: 700; margin-left: 4px; }
.currency-option[style*="display:none"] { display: none !important; }

/* Price display with conversion note */
.price-converted {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.price-inr-note {
  font-size: 0.68rem;
  color: var(--mid-grey);
  font-weight: 400;
}

/* Notification bar when non-INR selected */
.currency-notice {
  background: rgba(184,149,63,0.1);
  border-bottom: 1px solid rgba(184,149,63,0.2);
  padding: 8px 0;
  text-align: center;
  font-size: 0.75rem;
  color: var(--gold-dark);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .currency-dropdown { right: auto; left: 0; width: 220px; }
  .currency-btn span.currency-code { display: none; }
  .currency-btn { padding: 6px 8px; }
}
