/* ==========================================================================
   BASHI JEWELRY — Shared UI Components
   components.css
   ========================================================================== */


/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 11px 24px;
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wide);
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* Primary — Gold */
.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}
.btn--primary:hover {
  background: var(--color-gold-dark);
  border-color: var(--color-gold-dark);
  color: var(--color-white);
  box-shadow: var(--shadow-gold);
}
.btn--primary:active {
  background: #6B4D17;
}

/* Secondary — Dark */
.btn--secondary {
  background: var(--color-charcoal);
  color: var(--color-white);
  border-color: var(--color-charcoal);
}
.btn--secondary:hover {
  background: var(--color-black);
  border-color: var(--color-black);
  color: var(--color-white);
}

/* Outline — Dark border */
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}
.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-white);
}

/* Outline Gold */
.btn--outline-gold {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn--outline-gold:hover {
  background: var(--color-gold);
  color: var(--color-white);
}

/* Ghost / Text */
.btn--text {
  background: transparent;
  color: var(--color-text);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn--text:hover {
  color: var(--color-gold);
}

/* Sizes */
.btn--sm {
  padding: 7px 14px;
  font-size: var(--text-sm);
}
.btn--lg {
  padding: 14px 32px;
  font-size: var(--text-md);
}
.btn--full {
  width: 100%;
}

/* Icon button */
.btn--icon {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  background: transparent;
  border: none;
  color: var(--color-text);
}
.btn--icon:hover {
  color: var(--color-gold);
  background: var(--color-gold-bg);
}


/* --------------------------------------------------------------------------
   BADGES
   -------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.badge--new {
  background: var(--color-charcoal);
  color: var(--color-white);
}

.badge--sale {
  background: var(--color-sale);
  color: var(--color-white);
}

.badge--bestseller {
  background: var(--color-gold);
  color: var(--color-white);
}

.badge--featured {
  background: var(--color-info);
  color: var(--color-white);
}

.badge--out-of-stock {
  background: var(--color-text-muted);
  color: var(--color-white);
}

.badge--gold-outline {
  background: transparent;
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
}


/* --------------------------------------------------------------------------
   RATING STARS
   -------------------------------------------------------------------------- */

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
}

.rating__stars {
  display: inline-flex;
  gap: 1px;
}

.rating__star {
  width: 12px;
  height: 12px;
  fill: var(--color-star);
  color: var(--color-star);
}

.rating__star--empty {
  fill: var(--color-star-empty);
  color: var(--color-star-empty);
}

.rating__value {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  line-height: 1;
}

.rating__count {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1;
}


/* --------------------------------------------------------------------------
   BREADCRUMB
   -------------------------------------------------------------------------- */

.breadcrumb {
  padding: var(--space-3) 0;
}

.breadcrumb__list {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.breadcrumb__item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.breadcrumb__item a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}
.breadcrumb__item a:hover {
  color: var(--color-gold);
}

.breadcrumb__separator {
  color: var(--color-border);
  margin: 0 2px;
  user-select: none;
}

.breadcrumb__item--active {
  color: var(--color-text);
  font-weight: var(--weight-medium);
}


/* --------------------------------------------------------------------------
   PRICE DISPLAY
   -------------------------------------------------------------------------- */

.price {
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.price__current {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-text);
  line-height: 1;
}

.price__original {
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  color: var(--color-text-muted);
  text-decoration: line-through;
  line-height: 1;
}

.price__discount {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-sale);
  line-height: 1;
}


/* --------------------------------------------------------------------------
   FILTER CHIPS (active filters)
   -------------------------------------------------------------------------- */

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 10px;
  background: var(--color-gold-bg);
  border: 1px solid var(--color-gold-light);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  color: var(--color-gold-dark);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.chip:hover {
  background: var(--color-gold-light);
  color: var(--color-white);
}

.chip__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  opacity: 0.7;
}


/* --------------------------------------------------------------------------
   TOAST NOTIFICATIONS
   -------------------------------------------------------------------------- */

.toast-container {
  position: fixed;
  bottom: calc(var(--bottom-nav-h) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--color-charcoal);
  color: var(--color-white);
  border-radius: var(--radius-base);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  min-width: 240px;
  max-width: 320px;
  animation: toastIn var(--transition-smooth) ease;
}

.toast--success {
  border-left: 3px solid var(--color-success);
}

.toast--error {
  border-left: 3px solid var(--color-error);
}

.toast--gold {
  border-left: 3px solid var(--color-gold);
}

@keyframes toastIn {
  from { transform: translateX(120%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}


/* --------------------------------------------------------------------------
   LOADING / SKELETON
   -------------------------------------------------------------------------- */

.skeleton {
  background: linear-gradient(90deg,
    var(--color-surface-3) 25%,
    var(--color-border)    50%,
    var(--color-surface-3) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}


/* --------------------------------------------------------------------------
   DIVIDERS
   -------------------------------------------------------------------------- */

.divider {
  height: 1px;
  background: var(--color-border);
  border: none;
  margin: var(--space-6) 0;
}

.divider--gold {
  background: var(--color-gold);
  height: 2px;
  width: 48px;
  margin: var(--space-4) 0;
}


/* --------------------------------------------------------------------------
   QUANTITY CONTROL
   -------------------------------------------------------------------------- */

.qty-control {
  display: inline-flex;
  align-items: center;
  border: var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qty-control__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--color-surface-3);
  color: var(--color-text);
  border: none;
  cursor: pointer;
  font-size: var(--text-lg);
  transition: background var(--transition-fast);
  flex-shrink: 0;
}
.qty-control__btn:hover {
  background: var(--color-border);
}

.qty-control__input {
  width: 48px;
  height: 36px;
  text-align: center;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  border: none;
  border-left: var(--border);
  border-right: var(--border);
  background: var(--color-white);
  color: var(--color-text);
  -moz-appearance: textfield;
}
.qty-control__input::-webkit-outer-spin-button,
.qty-control__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
}


/* --------------------------------------------------------------------------
   TABS
   -------------------------------------------------------------------------- */

.tabs {
  border-bottom: var(--border);
  margin-bottom: var(--space-6);
}

.tabs__nav {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs__nav::-webkit-scrollbar { display: none; }

.tabs__tab {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}
.tabs__tab:hover {
  color: var(--color-text);
}
.tabs__tab.is-active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
  font-weight: var(--weight-semibold);
}

.tabs__panel {
  display: none;
}
.tabs__panel.is-active {
  display: block;
}


/* --------------------------------------------------------------------------
   ACCORDION
   -------------------------------------------------------------------------- */

.accordion__item {
  border-bottom: var(--border);
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) 0;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  gap: var(--space-4);
}

.accordion__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform var(--transition-base);
  color: var(--color-text-muted);
}

.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(180deg);
}

.accordion__body {
  display: none;
  padding-bottom: var(--space-4);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}
.accordion__body.is-open {
  display: block;
}


/* --------------------------------------------------------------------------
   MODAL
   -------------------------------------------------------------------------- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
}

.modal {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: var(--border);
}

.modal__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
  background: none;
  border: none;
}
.modal__close:hover {
  color: var(--color-text);
  background: var(--color-surface-3);
}

.modal__body {
  padding: var(--space-6);
}


/* ─── Filter Chips ────────────────────────────────────────────── */

.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  color: var(--color-text);
  transition: border-color .15s, background .15s, color .15s;
  user-select: none;
}
.filter-chip:hover { border-color: var(--color-gold); }
.filter-chip--active {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: #fff;
}

/* ─── Product Badges (rendered by products.js) ────────────────── */

.product-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  border-radius: 2px;
  line-height: 1;
}
.product-badge--new { background: var(--color-charcoal); color: #fff; }
.product-badge--sale { background: #C0392B; color: #fff; }
.product-badge--featured { background: var(--color-gold); color: #fff; }
.product-badge--best { background: var(--color-text); color: #fff; }

/* ─── Search Dropdown ─────────────────────────────────────────── */

.search-dropdown__section {
  padding: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}
.search-dropdown__section:last-child { border-bottom: none; }
.search-dropdown__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-2);
}
.search-dropdown__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
}
.search-dropdown__clear {
  font-size: var(--text-xs);
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-1);
  font-size: var(--text-sm);
  color: var(--color-text);
  border-radius: var(--radius-sm);
  transition: background .1s;
}
.search-dropdown__item:hover { background: var(--color-surface); }
.search-dropdown__item--popular { color: var(--color-secondary); }
.search-dropdown__product-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-1);
  border-radius: var(--radius-sm);
  transition: background .1s;
}
.search-dropdown__product-item:hover { background: var(--color-surface); }
.search-dropdown__product-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}
.search-dropdown__product-info { display: flex; flex-direction: column; gap: 2px; }
.search-dropdown__product-name { font-size: var(--text-sm); color: var(--color-text); }
.search-dropdown__product-price { font-size: var(--text-xs); color: var(--color-gold); font-weight: 600; }
.search-dropdown__view-all {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-gold);
  font-weight: 600;
  padding: var(--space-1);
}
.search-dropdown__no-results { font-size: var(--text-sm); color: var(--color-text); margin-bottom: var(--space-1); }
.search-dropdown__tip { font-size: var(--text-xs); color: var(--color-muted); }

/* ─── Product Card — cart btn & quick view bar ─────────────────── */

.product-card__cart-btn {
  display: none;
  width: 100%;
  margin-top: var(--space-2);
  height: 36px;
  background: var(--color-charcoal);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .15s;
}
.product-card__cart-btn:hover { background: var(--color-gold-dark); }
.product-card:hover .product-card__cart-btn { display: block; }

.product-card__quick-view-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(26,26,26,.85);
  display: flex;
  justify-content: center;
  padding: var(--space-2);
  opacity: 0;
  transition: opacity .2s;
}
.product-card:hover .product-card__quick-view-bar { opacity: 1; }
.product-card__quick-view-btn {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Wishlist button active state */
.wishlist-btn--active { color: #C0392B; }
.wishlist-btn--active svg { fill: currentColor; }

/* ─── Quick View Modal ────────────────────────────────────────── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
}
.modal--open { display: flex; align-items: center; justify-content: center; }
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
}
.modal__box {
  position: relative;
  background: #fff;
  border-radius: var(--radius-md);
  max-width: 840px;
  width: 95%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1;
}
.modal__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  z-index: 2;
  padding: var(--space-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s;
}
.modal__close:hover { color: var(--color-text); }
.modal__body { padding: var(--space-6); }
.quick-view {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
@media(max-width: 576px) { .quick-view { grid-template-columns: 1fr; } }
.quick-view__img-wrap { border-radius: var(--radius-sm); overflow: hidden; background: var(--color-surface); }
.quick-view__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.quick-view__name {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  line-height: 1.25;
}
.quick-view__rating { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-3); }
.quick-view__price { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }

/* ─── Cart Item (drawer variant) ─────────────────────────────── */

.cart-item__img-link { display: block; flex-shrink: 0; }
.cart-item__img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--color-border); }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-2); }
.cart-item__price-block { display: flex; flex-direction: column; align-items: flex-end; }
.cart-item__price { font-weight: 700; font-size: var(--text-sm); color: var(--color-text); }
.cart-item__original { font-size: var(--text-xs); color: var(--color-muted); text-decoration: line-through; }

/* ─── Toast show state ────────────────────────────────────────── */

.toast--show { opacity: 1; transform: translateY(0); }
.toast {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--color-charcoal);
  color: #fff;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  pointer-events: auto;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  min-width: 240px;
  max-width: 360px;
}
.toast--success .toast__icon { color: #4CAF50; }
.toast--error .toast__icon { color: #f44336; }
.toast__icon { flex-shrink: 0; }

/* ─── Mega Menu open state ────────────────────────────────────── */

.mega-menu--open { display: block !important; }

/* ─── Mobile Nav open state ──────────────────────────────────── */

.mobile-nav--open {
  transform: translateX(0) !important;
}


/* ==========================================================================
   HOMEPAGE COMPONENTS
   ========================================================================== */

/* ── Category Cards (circular) ─────────────────────────────────────────── */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-5);
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}

.cat-card__img-wrap {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-surface-3);
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}
.cat-card:hover .cat-card__img-wrap {
  border-color: var(--color-gold);
  transform: scale(1.04);
}

.cat-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Placeholder gradient when no image */
  background: linear-gradient(135deg, var(--color-surface-3), var(--color-border));
}

.cat-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: center;
  color: var(--color-text);
  line-height: 1.3;
}

/* ── Section Tabs ──────────────────────────────────────────────────────── */

.section-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: var(--space-7);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.section-tabs::-webkit-scrollbar { display: none; }

.section-tab {
  padding: var(--space-3) var(--space-6);
  font-size: var(--text-base);
  font-weight: 500;
  font-family: var(--font-primary);
  color: var(--color-text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s;
  margin-bottom: -2px;
  white-space: nowrap;
  min-height: 44px;
}
.section-tab:hover { color: var(--color-text); }
.section-tab--active,
.section-tab[aria-selected="true"] {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.section-footer {
  text-align: center;
  margin-top: var(--space-8);
}

/* ── Promotional Banner ────────────────────────────────────────────────── */

.promo-banner {
  background: linear-gradient(135deg, var(--color-charcoal) 0%, #2C2418 60%, #1A1A1A 100%);
  padding: var(--space-12) 0;
  overflow: hidden;
}

.promo-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

.promo-banner__text {
  max-width: 520px;
}

.promo-banner__kicker {
  font-size: var(--text-xs);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--color-gold-light);
  font-weight: 500;
  margin-bottom: var(--space-3);
}

.promo-banner__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.promo-banner__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,.7);
  max-width: 480px;
  margin-bottom: var(--space-7);
  line-height: 1.6;
}

.promo-banner__visual {
  flex-shrink: 0;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.promo-banner__visual-placeholder {
  font-size: var(--text-xl);
  color: var(--color-gold-light);
  letter-spacing: .3em;
  font-weight: 600;
  opacity: .6;
}

/* ── Trust Section ─────────────────────────────────────────────────────── */

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.trust-item__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-gold-bg);
  border-radius: 50%;
}

.trust-item__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--color-gold);
}

.trust-item__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
}

.trust-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ── Reviews ───────────────────────────────────────────────────────────── */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.review-card {
  background: var(--color-white);
  border: var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.review-card__stars {
  color: var(--color-star);
  font-size: var(--text-xl);
  letter-spacing: .1em;
}

.review-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
  font-style: italic;
}

.review-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.review-card__verified {
  color: var(--color-success);
  font-weight: 400;
}

/* ── Instagram Grid ────────────────────────────────────────────────────── */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
}

.insta-item {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-3);
  position: relative;
}

.insta-item:hover .insta-item__placeholder { opacity: .7; }

.insta-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  background: linear-gradient(135deg, var(--color-surface-3), var(--color-border));
  transition: opacity 0.2s;
}

/* ── Newsletter Section ────────────────────────────────────────────────── */

.newsletter-section {
  background: var(--color-gold-bg);
  border-top: 1px solid var(--color-gold-light);
  padding: var(--space-12) 0;
  text-align: center;
}

.newsletter-inner {
  max-width: 540px;
}

.newsletter-form {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.newsletter-input {
  flex: 1;
  height: 48px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-family: var(--font-primary);
  background: var(--color-white);
  outline: none;
  min-width: 0;
}
.newsletter-input:focus { border-color: var(--color-gold); }

.newsletter-btn {
  height: 48px;
  padding: 0 var(--space-6);
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-primary);
  white-space: nowrap;
  transition: background 0.2s;
}
.newsletter-btn:hover { background: var(--color-gold-dark); }

/* ── Quick View Modal ─────────────────────────────────────────────────── */

.modal__inner--quick-view {
  max-width: 880px;
  padding: var(--space-6);
  position: relative;
}

.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface-2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  color: var(--color-text-muted);
  z-index: 1;
}
.modal__close:hover { background: var(--color-surface-3); color: var(--color-text); }

.qv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.qv-category {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: .15em;
  color: var(--color-text-muted);
  font-weight: 500;
}

.qv-name {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: var(--space-2) 0 var(--space-3);
  color: var(--color-text);
}

.qv-price {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.qv-desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.qv-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-bottom: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.qv-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

/* ── Cart Item (Drawer) ────────────────────────────────────────────────── */

.cart-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: var(--border);
}

.cart-item:last-child { border-bottom: none; }

.cart-item__image-link { flex-shrink: 0; }

.cart-item__image {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
}

.cart-item__details { flex: 1; min-width: 0; }

.cart-item__name {
  display: block;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  margin-bottom: var(--space-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cart-item__name:hover { color: var(--color-gold); }

.cart-item__variant {
  display: block;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.cart-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.cart-item__price {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-gold);
}

.cart-item__remove {
  flex-shrink: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-light);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
}
.cart-item__remove:hover { color: var(--color-error); background: var(--color-error-bg); }

/* ── Toast ─────────────────────────────────────────────────────────────── */

.toast {
  position: fixed;
  bottom: 80px; /* above bottom nav on mobile */
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 500;
  z-index: 9999;
  box-shadow: var(--shadow-xl, 0 8px 32px rgba(0,0,0,.25));
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast--info { background: var(--color-text); }
.toast--error { background: var(--color-error); }

@media (min-width: 769px) {
  .toast { bottom: var(--space-6); }
}

/* ── Overlay ──────────────────────────────────────────────────────────── */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 450;       /* below drawer (500) and modal (600) */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Body Lock States ─────────────────────────────────────────────────── */

body.nav-open,
body.cart-open,
body.modal-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Search Results Page (search.php)
   -------------------------------------------------------------------------- */

.search-page-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}

.search-page-title {
  font-size: 14px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.search-page-title strong {
  color: var(--color-charcoal);
}

.search-bar-large {
  display: flex;
  gap: 0;
  max-width: 600px;
}
.search-bar-large__input {
  flex: 1;
  padding: 13px 18px;
  border: 2px solid var(--color-charcoal);
  border-right: none;
  border-radius: 8px 0 0 8px;
  font-size: 15px;
  font-family: var(--font-primary);
  color: var(--color-charcoal);
  background: #fff;
}
.search-bar-large__input:focus {
  outline: none;
  border-color: var(--color-gold);
}
/* Stop the browser's own autofill/search-suggestion styling from
   overriding our text color (a common Chrome/Edge quirk on type="search"). */
.search-bar-large__input:-webkit-autofill,
.search-bar-large__input:-webkit-autofill:hover,
.search-bar-large__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-charcoal);
  -webkit-box-shadow: 0 0 0 1000px #fff inset;
  box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 9999s ease-in-out 0s;
}
.search-bar-large__btn {
  padding: 13px 22px;
  background: var(--color-charcoal);
  color: #fff;
  border: none;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background var(--transition-fast, 0.2s);
}
.search-bar-large__btn:hover {
  background: var(--color-gold);
}

.search-suggestions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.search-suggestions__label {
  font-size: 12px;
  color: var(--color-text-muted);
  flex-shrink: 0;
}
.search-suggestion-chip {
  padding: 5px 14px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 99px;
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition-fast, 0.15s);
}
.search-suggestion-chip:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.search-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}
.search-toolbar__count {
  flex: 1;
  font-size: 14px;
  color: var(--color-text-muted);
}
.search-toolbar__sort select {
  padding: 7px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}

@media (max-width: 768px) {
  .search-toolbar { flex-wrap: wrap; gap: 8px; padding: 12px 0; }
  .search-toolbar__count { font-size: 12px; order: -1; width: 100%; }
  .search-toolbar__sort select { font-size: 13px; padding: 7px 10px; }
}

/* --------------------------------------------------------------------------
   Mobile Filter Drawer (template-parts/shop/filter-drawer.php)
   -------------------------------------------------------------------------- */

.filter-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  max-width: 90vw;
  height: 100vh;
  background: #fff;
  z-index: var(--z-modal);
  box-shadow: var(--shadow-lg);
  transition: right var(--transition-smooth, 0.3s ease);
  overflow-y: auto;
}
.filter-drawer--open {
  right: 0;
}
.filter-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.filter-drawer__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-charcoal);
  letter-spacing: 0.04em;
}
.filter-drawer__close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  background: none;
}
.filter-drawer__body {
  padding: 8px 18px 18px;
}
.filter-drawer__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px;
  border-top: 1px solid var(--color-border);
  position: sticky;
  bottom: 0;
  background: #fff;
}
.filter-drawer__footer .btn {
  width: 100%;
  text-align: center;
}
.filter-option--link {
  display: block;
  padding: 8px 0;
  color: var(--color-text);
  text-decoration: none;
}
.filter-option--link:hover {
  color: var(--color-gold);
}

@media (min-width: 901px) {
  .filter-drawer { display: none; }
}

/* ==========================================================================
   Static info pages (About, Contact, FAQ, Jewelry Care, Shipping, Returns,
   Terms, Privacy) — page.php's generic hero + content wrapper.
   Ported exactly from the HTML theme's shared info-page inline <style> block
   (identical across about.html/contact.html/faq.html/etc.).
   ========================================================================== */

.info-hero {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
}
.info-hero__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  color: var(--color-charcoal);
  margin-top: 12px;
}
.info-content {
  max-width: 760px;
  margin: 40px auto 64px;
  padding: 0 16px;
}
.info-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-charcoal);
  margin: 28px 0 12px;
}
.info-content p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
  margin-bottom: 14px;
}
.info-content ul {
  margin-left: 20px;
  margin-bottom: 14px;
  list-style: disc;
}
.info-content ul li {
  font-size: 14px;
  color: var(--color-text);
  line-height: 2;
}
.info-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.info-content table th,
.info-content table td {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  font-size: 13px;
  text-align: left;
}
.info-content table th {
  background: var(--color-bg);
  font-weight: 600;
  color: var(--color-charcoal);
}

/* FAQ accordion (faq.html) */
.faq-item { border: 1px solid var(--color-border); border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.faq-q { padding: 16px 18px; font-size: 14px; font-weight: 600; color: var(--color-charcoal); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #fff; }
.faq-q:hover { background: var(--color-bg); }
.faq-a { padding: 0 18px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s; }
.faq-item.open .faq-a { max-height: 200px; padding: 0 18px 16px; }
.faq-q span { transition: transform 0.2s; font-size: 18px; color: var(--color-text-muted); }
.faq-item.open .faq-q span { transform: rotate(45deg); }

/* ==========================================================================
   Floating WhatsApp button (template-parts/header/whatsapp-float.php)
   Bottom-LEFT deliberately -- .back-to-top (assets/js/ui.js) already owns
   bottom-right at bottom:80px/right:20px, appearing after 400px of scroll.
   Putting both on the same corner would collide/overlap once a visitor has
   scrolled. On mobile, offset above .bottom-nav (var(--bottom-nav-h)) the
   same way .bottom-nav itself accounts for the home-indicator safe area.
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: var(--z-fixed);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: calc(var(--bottom-nav-h) + 16px);
    width: 52px;
    height: 52px;
  }
  @supports (padding: env(safe-area-inset-bottom)) {
    .whatsapp-float { bottom: calc(var(--bottom-nav-h) + 16px + env(safe-area-inset-bottom, 0)); }
  }
}
