/* ==========================================================================
   IceGold Accessories — Luxury theme
   ========================================================================== */

:root {
  --ig-black: #12100d;
  --ig-charcoal: #211d18;
  --ig-ivory: #faf7f1;
  --ig-cream: #f3ede2;
  --ig-hairline: #e6ddc9;
  --ig-gold: #b8912f;
  --ig-gold-light: #d9b158;
  --ig-gold-dark: #8f6f22;
  --ig-gold-gradient: linear-gradient(135deg, #e7c777 0%, #b8912f 45%, #8f6f22 100%);
  --ig-text: #211d18;
  --ig-text-muted: #79705f;
  --ig-radius: 2px;
  --ig-shadow-sm: 0 2px 10px rgba(18, 16, 13, 0.06);
  --ig-shadow-md: 0 10px 30px rgba(18, 16, 13, 0.10);
  --ig-serif: "Playfair Display", "Times New Roman", serif;
  --ig-sans: "Jost", "Segoe UI", Arial, sans-serif;
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

* {
  -webkit-font-smoothing: antialiased;
}

html, body {
  background-color: var(--ig-ivory);
  color: var(--ig-text);
}

body {
  font-family: var(--ig-sans);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0;
  padding-bottom: 76px;
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, .ig-serif {
  font-family: var(--ig-serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ig-black);
}

a {
  color: var(--ig-gold-dark);
}

a:hover {
  color: var(--ig-gold);
}

.text-muted {
  color: var(--ig-text-muted) !important;
}

/* ---- Buttons -------------------------------------------------------- */

.btn {
  border-radius: var(--ig-radius);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.65rem 1.5rem;
  transition: all 0.2s ease;
}

.btn-dark, .btn-primary {
  background: var(--ig-black);
  border-color: var(--ig-black);
  color: var(--ig-ivory);
}

.btn-dark:hover, .btn-dark:focus, .btn-primary:hover {
  background: var(--ig-gold-dark);
  border-color: var(--ig-gold-dark);
  color: #fff;
}

.btn-outline-dark {
  border-color: var(--ig-black);
  color: var(--ig-black);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--ig-black);
  border-color: var(--ig-black);
  color: var(--ig-ivory);
}

.btn-gold {
  background: var(--ig-gold-gradient);
  border: none;
  color: #1a1500;
  font-weight: 600;
}

.btn-gold:hover {
  filter: brightness(1.06);
  color: #1a1500;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.15rem var(--ig-gold-light);
}

.form-control:focus, .form-select:focus {
  border-color: var(--ig-gold);
  box-shadow: 0 0 0 0.15rem rgba(184, 145, 47, 0.25);
}

/* ---- Top navigation --------------------------------------------------- */

.ig-header {
  background: var(--ig-black);
  border-bottom: 1px solid var(--ig-gold-dark);
}

.ig-header .navbar-brand {
  font-family: var(--ig-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ig-ivory) !important;
  text-transform: uppercase;
}

.ig-header .navbar-brand span {
  color: var(--ig-gold-light);
}

.ig-brand-logo {
  display: flex;
  align-items: center;
  padding: 0.35rem 0;
}

.ig-brand-logo img {
  height: 52px;
  width: 52px;
  object-fit: cover;
  border-radius: 50%;
}

.ig-header .nav-link {
  color: rgba(250, 247, 241, 0.82) !important;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  padding: 0.5rem 0.85rem !important;
  transition: color 0.15s ease;
}

.ig-header .nav-link:hover,
.ig-header .nav-link.active {
  color: var(--ig-gold-light) !important;
}

.ig-header .navbar-toggler {
  border-color: rgba(250, 247, 241, 0.3);
}

.ig-header .navbar-toggler-icon {
  filter: invert(1);
}

.ig-cart-link {
  position: relative;
}

.ig-cart-badge {
  background: var(--ig-gold-light);
  color: var(--ig-black);
  font-weight: 700;
}

/* ---- Hero -------------------------------------------------------------- */

.ig-breakout {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.ig-hero {
  position: relative;
  background: radial-gradient(ellipse at top, #2a241a 0%, var(--ig-black) 65%);
  color: var(--ig-ivory);
  text-align: center;
  padding: 5.5rem 1rem 5rem;
  overflow: hidden;
}

.ig-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(217, 177, 88, 0.25) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.4;
  pointer-events: none;
}

.ig-hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.35em;
  font-size: 0.75rem;
  color: var(--ig-gold-light);
  margin-bottom: 1rem;
}

.ig-hero h1 {
  color: var(--ig-ivory);
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

.ig-hero p.lead {
  color: rgba(250, 247, 241, 0.78);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.1rem;
}

.ig-hero-rule {
  width: 64px;
  height: 2px;
  background: var(--ig-gold-gradient);
  margin: 1.75rem auto;
  border: none;
}

.ig-hero-photo {
  background-size: cover;
  background-position: center 30%;
}

.ig-hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 13, 0.72) 0%, rgba(18, 16, 13, 0.55) 55%, rgba(18, 16, 13, 0.85) 100%);
  z-index: 0;
}

.ig-hero-photo > * {
  position: relative;
  z-index: 1;
}

/* ---- Promo band ---------------------------------------------------------- */

.ig-promo {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 1rem;
  text-align: center;
  color: var(--ig-ivory);
}

.ig-promo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 13, 0.72);
}

.ig-promo-overlay {
  position: relative;
  z-index: 1;
}

.ig-promo-overlay h2 {
  color: var(--ig-ivory);
}

.ig-promo-overlay p {
  color: rgba(250, 247, 241, 0.85);
}

/* ---- Video gallery -------------------------------------------------------- */

.ig-video-card {
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ig-shadow-sm);
}

.ig-video-card video {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: var(--ig-black);
  display: block;
  max-height: 480px;
}

.ig-video-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ig-text-muted);
}

/* ---- Star ratings ---------------------------------------------------------- */

.ig-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 1.1rem;
  line-height: 1;
}

.ig-star-filled {
  color: var(--ig-gold);
}

.ig-star-empty {
  color: var(--ig-hairline);
}

/* ---- Lookbook -------------------------------------------------------------- */

.ig-lookbook-grid {
  columns: 1;
  gap: 1.25rem;
}

@media (min-width: 576px) {
  .ig-lookbook-grid {
    columns: 2;
  }
}

@media (min-width: 992px) {
  .ig-lookbook-grid {
    columns: 3;
  }
}

.ig-lookbook-card {
  break-inside: avoid;
  margin-bottom: 1.25rem;
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--ig-shadow-sm);
}

.ig-lookbook-media img,
.ig-lookbook-media video {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
  background: var(--ig-black);
}

.ig-lookbook-body {
  padding: 1rem 1.1rem 1.25rem;
}

.ig-lookbook-body h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

/* ---- Collection tiles ----------------------------------------------------- */

.ig-collection-tile {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  border-radius: var(--ig-radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--ig-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ig-collection-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--ig-shadow-md);
}

.ig-collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ig-collection-fallback {
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, var(--ig-cream), var(--ig-hairline));
}

.ig-collection-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background: linear-gradient(0deg, rgba(18, 16, 13, 0.85) 0%, rgba(18, 16, 13, 0.15) 60%, transparent 100%);
  color: var(--ig-ivory);
}

.ig-collection-overlay h2 {
  color: var(--ig-ivory);
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.ig-collection-overlay p {
  font-size: 0.85rem;
  color: rgba(250, 247, 241, 0.85);
  margin-bottom: 0.5rem;
  max-width: 420px;
}

.ig-collection-cta {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ig-gold-light);
  font-weight: 600;
}

/* ---- Category tiles ----------------------------------------------------- */

.ig-category-tile {
  display: block;
  position: relative;
  border-radius: var(--ig-radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--ig-cream), var(--ig-hairline));
  text-decoration: none;
  box-shadow: var(--ig-shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ig-category-tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--ig-shadow-md);
}

.ig-category-tile .ig-category-name {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 0.5rem;
  text-align: center;
  background: linear-gradient(0deg, rgba(18, 16, 13, 0.75), transparent);
  color: var(--ig-ivory);
  font-family: var(--ig-serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.ig-category-tile .ig-category-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--ig-gold-dark);
  opacity: 0.55;
}

/* ---- Trust strip ---------------------------------------------------- */

.ig-trust-strip {
  background: var(--ig-cream);
  border-top: 1px solid var(--ig-hairline);
  border-bottom: 1px solid var(--ig-hairline);
}

.ig-trust-item {
  text-align: center;
  padding: 1.75rem 1rem;
}

.ig-trust-item .ig-trust-icon {
  font-size: 1.6rem;
  color: var(--ig-gold-dark);
  margin-bottom: 0.5rem;
}

.ig-trust-item h6 {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

/* ---- Product cards ---------------------------------------------------- */

.ig-product-card {
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.ig-product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ig-shadow-md);
}

.ig-product-media {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--ig-cream);
}

.ig-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.ig-product-card:hover .ig-product-media img {
  transform: scale(1.05);
}

.ig-wishlist-toggle {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 2;
}

.ig-wishlist-toggle button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ig-black);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--ig-shadow-sm);
  transition: all 0.15s ease;
}

.ig-wishlist-toggle button:hover {
  background: #fff;
  color: var(--ig-gold-dark);
}

.ig-product-media .ig-no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ig-text-muted);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ig-product-body {
  padding: 1.1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ig-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.7rem;
  color: var(--ig-gold-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.ig-product-name {
  font-family: var(--ig-serif);
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  color: var(--ig-black);
}

.ig-product-desc {
  font-size: 0.85rem;
  color: var(--ig-text-muted);
  flex-grow: 1;
}

.ig-price {
  font-family: var(--ig-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ig-black);
  margin: 0.5rem 0 0.85rem;
}

/* ---- Filter bar --------------------------------------------------------- */

.ig-filter-bar {
  background: #fff;
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  padding: 1.25rem;
}

.ig-filter-bar label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ig-text-muted);
  font-weight: 600;
}

.ig-pill {
  border: 1px solid var(--ig-black);
  color: var(--ig-black);
  background: transparent;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  transition: all 0.15s ease;
}

.ig-pill:hover {
  background: var(--ig-black);
  color: var(--ig-ivory);
}

.ig-pill.active {
  background: var(--ig-black);
  color: var(--ig-ivory);
  border-color: var(--ig-black);
}

/* ---- Cards used elsewhere (cart / account / admin tables) ------------- */

.card {
  border-color: var(--ig-hairline);
  border-radius: var(--ig-radius);
}

.table {
  --bs-table-bg: transparent;
}

/* ---- Footer -------------------------------------------------------------- */

.ig-footer {
  background: var(--ig-black);
  color: rgba(250, 247, 241, 0.75);
  padding: 3rem 0 2rem;
  margin-top: 4rem;
}

.ig-footer h6 {
  color: var(--ig-gold-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.ig-footer a {
  color: rgba(250, 247, 241, 0.75);
  text-decoration: none;
}

.ig-footer a:hover {
  color: var(--ig-gold-light);
}

.ig-footer .ig-footer-bottom {
  border-top: 1px solid rgba(250, 247, 241, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.78rem;
  text-align: center;
  color: rgba(250, 247, 241, 0.5);
}

.ig-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(250, 247, 241, 0.3);
  margin-right: 0.5rem;
}

.ig-social-link:hover {
  border-color: var(--ig-gold-light);
  background: rgba(217, 177, 88, 0.12);
}

/* ---- Bottom nav (mobile) ------------------------------------------------ */

.ig-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: var(--ig-black);
  border-top: 1px solid var(--ig-gold-dark);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0.4rem 0.25rem calc(0.4rem + env(safe-area-inset-bottom));
}

@media (min-width: 992px) {
  .ig-bottom-nav {
    display: none;
  }
}

.ig-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  color: rgba(250, 247, 241, 0.65);
  text-decoration: none;
  font-size: 0.65rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.25rem 0.5rem;
  position: relative;
  flex: 1;
}

.ig-bottom-nav-item svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.ig-bottom-nav-item.active,
.ig-bottom-nav-item:hover {
  color: var(--ig-gold-light);
}

.ig-bottom-nav-badge {
  position: absolute;
  top: -2px;
  right: 18%;
  background: var(--ig-gold-light);
  color: var(--ig-black);
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
}

/* ---- Auth pages (Login / Register) --------------------------------------- */

.ig-auth-section {
  background: linear-gradient(180deg, var(--ig-cream) 0%, var(--ig-ivory) 100%);
  padding: 3.5rem 1rem 4rem;
}

.ig-auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  box-shadow: var(--ig-shadow-md);
  padding: 2.5rem 2.25rem;
}

.ig-auth-logo {
  display: block;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  object-fit: cover;
}

.ig-auth-title {
  text-align: center;
  margin-bottom: 0.35rem;
}

.ig-auth-subtitle {
  text-align: center;
  color: var(--ig-text-muted);
  font-size: 0.9rem;
  margin-bottom: 1.75rem;
}

.ig-auth-card .form-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-text-muted);
  font-weight: 600;
}

.ig-auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--ig-text-muted);
}

.ig-auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}

/* ---- Admin shell ----------------------------------------------------------- */

.ig-admin-shell {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-top: 1.5rem;
}

.ig-admin-sidebar {
  flex: 0 0 220px;
  background: var(--ig-black);
  border-radius: var(--ig-radius);
  padding: 1.5rem 0;
  position: sticky;
  top: 1rem;
}

.ig-admin-sidebar .ig-admin-heading {
  color: rgba(250, 247, 241, 0.45);
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  padding: 0 1.5rem 0.75rem;
}

.ig-admin-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.5rem;
  color: rgba(250, 247, 241, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  border-left: 3px solid transparent;
  transition: all 0.15s ease;
}

.ig-admin-sidebar a:hover {
  color: var(--ig-gold-light);
  background: rgba(255, 255, 255, 0.04);
}

.ig-admin-sidebar a.active {
  color: var(--ig-gold-light);
  border-left-color: var(--ig-gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.ig-admin-sidebar svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ig-admin-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 767.98px) {
  .ig-admin-shell {
    flex-direction: column;
  }

  .ig-admin-sidebar {
    flex: 1 1 auto;
    width: 100%;
    position: static;
    padding: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .ig-admin-sidebar .ig-admin-heading {
    display: none;
  }

  .ig-admin-sidebar a {
    border-left: none;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
  }

  .ig-admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
  }
}

/* ---- KPI / stat cards ------------------------------------------------------- */

.ig-kpi-card {
  background: #fff;
  border: 1px solid var(--ig-hairline);
  border-radius: var(--ig-radius);
  padding: 1.5rem;
  height: 100%;
}

.ig-kpi-label {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ig-text-muted);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ig-kpi-value {
  font-family: var(--ig-serif);
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--ig-black);
}

.ig-kpi-value.ig-kpi-warn {
  color: #a15c00;
}

/* ---- Account (customer) shell ---------------------------------------------- */

.ig-account-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--ig-hairline);
}

.ig-account-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.ig-account-subnav a {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--ig-hairline);
  border-radius: 999px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ig-text);
  text-decoration: none;
  transition: all 0.15s ease;
}

.ig-account-subnav a:hover {
  border-color: var(--ig-black);
}

.ig-account-subnav a.active {
  background: var(--ig-black);
  border-color: var(--ig-black);
  color: var(--ig-ivory);
}

.ig-manage-nav .nav-link {
  color: var(--ig-text);
  border-radius: var(--ig-radius);
  padding: 0.6rem 1rem;
  margin-bottom: 0.25rem;
  font-size: 0.88rem;
}

.ig-manage-nav .nav-link.active {
  background: var(--ig-black);
  color: var(--ig-ivory);
}

/* ---- Breadcrumb ---------------------------------------------------------- */

.breadcrumb {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---- Analytics charts ----------------------------------------------------- */

.ig-chart-wrap {
  position: relative;
}

.ig-chart {
  display: flex;
  gap: 0.75rem;
}

.ig-chart-yaxis,
.ig-chart-yaxis-spacer {
  width: 4.5rem;
  flex-shrink: 0;
}

.ig-chart-yaxis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: right;
  font-size: 0.72rem;
  color: var(--ig-text-muted);
  font-variant-numeric: tabular-nums;
  height: 220px;
}

.ig-chart-plot {
  position: relative;
  flex: 1 1 auto;
  height: 220px;
}

.ig-chart-gridline {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px solid var(--ig-hairline);
}

.ig-chart-bars {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 100%;
  width: 100%;
}

.ig-bar-col {
  position: relative;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  outline: none;
}

.ig-bar-fill {
  width: 100%;
  max-width: 24px;
  background: var(--ig-gold-dark);
  border-radius: 4px 4px 0 0;
  min-height: 1px;
  transition: background 0.15s ease;
}

.ig-bar-col:hover .ig-bar-fill,
.ig-bar-col:focus-visible .ig-bar-fill {
  background: var(--ig-gold);
}

.ig-bar-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ig-text);
  white-space: nowrap;
  margin-bottom: 2px;
}

.ig-chart-xaxis-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.ig-chart-xaxis {
  display: flex;
  gap: 2px;
  flex: 1 1 auto;
}

.ig-chart-xcell {
  flex: 1 1 0;
  text-align: center;
  font-size: 0.65rem;
  color: var(--ig-text-muted);
  white-space: nowrap;
  overflow: visible;
}

.ig-chart-tooltip {
  position: absolute;
  background: var(--ig-black);
  color: var(--ig-ivory);
  font-size: 0.72rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--ig-radius);
  transform: translateX(-50%);
  pointer-events: none;
  white-space: nowrap;
  z-index: 5;
}

/* Horizontal bar chart (e.g. top products) */

.ig-hbar-chart {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ig-hbar-row {
  display: grid;
  grid-template-columns: 9rem 1fr 4.5rem;
  align-items: center;
  gap: 0.75rem;
}

.ig-hbar-label {
  font-size: 0.82rem;
  color: var(--ig-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ig-hbar-track {
  height: 20px;
  background: var(--ig-cream);
  border-radius: 4px;
}

.ig-hbar-fill {
  height: 100%;
  max-width: 100%;
  background: var(--ig-gold-dark);
  border-radius: 0 4px 4px 0;
  min-width: 2px;
}

.ig-hbar-value {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ig-text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}
