/* ============================================================
   CHIST ERP - Store CSS
   Premium e-commerce design system
   ============================================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #0ea5e9;
  --accent: #f59e0b;
  --dark: #0f172a;
  --dark-card: #1e293b;
  --dark-border: #334155;
  --text-muted: #64748b;
  --header-bg: #ffffff;
  --header-top-bg: #f8fafc;
  --header-border: #e2e8f0;
  --header-text: #334155;
  --header-text-muted: #64748b;
  --success: #10b981;
  --danger: #ef4444;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.15);
  --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

/* ── Site Header (topbar + navbar) ── */
.site-header {
  position: relative;
  z-index: 1000;
  background: var(--header-bg);
  overflow: visible;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.06);
}

.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary), #a855f7, var(--secondary), var(--primary));
  background-size: 300% 100%;
  animation: header-line-flow 6s linear infinite;
}

/* ── Topbar ── */
.topbar--premium {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #0f2744 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  padding: 8px 0;
  border-bottom: none;
}
.topbar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.85);
}
.topbar-chip i { color: #93c5fd; font-size: 0.72rem; }
.topbar-chip--accent {
  background: rgba(99, 102, 241, 0.22);
  border: 1px solid rgba(147, 197, 253, 0.25);
  padding: 3px 10px;
  border-radius: 100px;
}
.topbar-link {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}
.topbar-link:hover { color: #fff; }
.topbar-link--highlight { color: #a5b4fc; }
.topbar-sep {
  margin: 0 8px;
  opacity: 0.35;
}

/* ── Navbar shell ── */
.main-navbar {
  position: relative;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  padding: 14px 0 12px;
  z-index: 1000;
  transition: box-shadow 0.3s ease, padding 0.3s ease;
}
.main-navbar.navbar-scrolled {
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.12);
  padding: 10px 0;
}
.navbar-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* ── Brand block ── */
.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.brand-block:hover { transform: translateY(-1px); }
.brand-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff, #eef2ff);
  border: 2px solid rgba(99, 102, 241, 0.2);
  box-shadow:
    0 4px 14px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  position: relative;
  overflow: hidden;
}
.brand-frame::before {
  content: '';
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(99,102,241,0.15), transparent 30%);
  animation: brand-ring-spin 8s linear infinite;
}
.brand-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  position: relative;
  z-index: 1;
}
.footer-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.brand-text { line-height: 1.05; position: relative; }
.brand-logo {
  display: block;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #4338ca 0%, #6366f1 40%, #0ea5e9 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logo-shimmer 5s linear infinite;
}
.brand-tagline {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}
.brand-tagline-line {
  font-family: 'Outfit', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1.2;
}
.brand-tagline-line--accent {
  color: var(--primary);
  letter-spacing: 0.28em;
}

/* ── Nav pills ── */
.navbar-collapse--modern {
  align-items: center;
  gap: 1rem;
}
.nav-pills-main {
  flex-direction: row;
  align-items: center;
  gap: 6px;
}
.nav-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569 !important;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.nav-pill i {
  font-size: 0.8rem;
  color: #94a3b8;
  transition: color 0.25s ease;
}
.nav-pill:hover,
.nav-pill.active {
  color: var(--primary-dark) !important;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.08));
  border-color: rgba(99, 102, 241, 0.18);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}
.nav-pill:hover i,
.nav-pill.active i { color: var(--primary); }
.nav-pill.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.14), rgba(14,165,233,0.1));
}

/* ── Search (modern) ── */
.search-form--modern {
  flex: 1 1 280px;
  max-width: 360px;
  margin: 0;
}
.search-wrap {
  position: relative;
  width: 100%;
}
.search-shell {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 100px;
  overflow: hidden;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.search-shell:focus-within {
  background: #fff;
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.search-shell__icon {
  padding-left: 16px;
  color: #94a3b8;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.search-shell .search-input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: #1e293b;
  min-width: 0;
}
.search-shell .search-input:focus {
  outline: none;
  box-shadow: none;
  background: transparent;
}
.search-shell .btn-search {
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 18px;
  letter-spacing: 0.02em;
  transition: filter 0.2s ease;
  flex-shrink: 0;
}
.search-shell .btn-search:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* ── Search suggestions dropdown ── */
.search-suggest {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 1100;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  animation: search-drop-in 0.2s ease;
}
@keyframes search-drop-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.search-suggest__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 6px;
  border-bottom: 1px solid #f1f5f9;
}
.search-suggest__label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  font-family: 'Outfit', sans-serif;
}
.search-suggest__count {
  font-size: 0.72rem;
  color: #94a3b8;
}
.search-suggest__list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.search-suggest__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}
.search-suggest__item:hover,
.search-suggest__item.is-active {
  background: #f1f5f9;
}
.search-suggest__thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}
.search-suggest__body {
  flex: 1;
  min-width: 0;
}
.search-suggest__name {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggest__brand {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.search-suggest__price {
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.search-suggest__empty {
  padding: 24px 16px;
  text-align: center;
  color: #64748b;
  font-size: 0.875rem;
}
.search-suggest__empty img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.6;
  margin-bottom: 8px;
}
.search-suggest__all {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  border-top: 1px solid #f1f5f9;
  background: #fafbff;
  transition: background 0.15s ease;
}
.search-suggest__all:hover {
  background: #eef2ff;
  color: var(--primary-dark);
}
.search-suggest__loading {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}
.search-suggest__loading i {
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Nav action buttons ── */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-action-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  text-decoration: none;
  transition: all 0.25s ease;
}
.nav-action-btn:hover {
  color: var(--primary);
  border-color: rgba(99, 102, 241, 0.35);
  background: #eef2ff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}
.nav-action-btn--cart {
  background: linear-gradient(135deg, #eef2ff, #f0f9ff);
  border-color: rgba(99, 102, 241, 0.25);
}
.nav-action-badge,
.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 100px;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* ── Mega menu ── */
.nav-item--mega { position: static; }
@media (min-width: 992px) {
  .nav-item--mega { position: relative; }
}
.mega-menu-dropdown {
  border: none;
  border-radius: 18px;
  padding: 0;
  margin-top: 12px !important;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  min-width: min(680px, 92vw);
}
.mega-menu-panel { padding: 1.25rem 1.25rem 1rem; }
.mega-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}
.mega-menu-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}
.mega-menu-all {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
}
.mega-menu-all:hover { color: var(--primary); }
.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.mega-menu-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 12px;
  text-decoration: none;
  color: #334155;
  transition: background 0.2s ease, transform 0.2s ease;
}
.mega-menu-item:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
  color: var(--primary-dark);
}
.mega-menu-item__img-wrap {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  margin-bottom: 6px;
  transition: border-color 0.2s ease;
}
.mega-menu-item:hover .mega-menu-item__img-wrap {
  border-color: var(--primary);
}
.mega-menu-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mega-menu-item__name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
}

/* ── Category strip ── */
.category-strip {
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 0;
}
.category-strip__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}
.category-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  white-space: nowrap;
  flex-shrink: 0;
}
.category-strip__track {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}
.category-strip__track::-webkit-scrollbar { display: none; }
.category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 100px;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s ease;
  flex-shrink: 0;
}
.category-chip:hover {
  color: var(--primary-dark);
  border-color: rgba(99, 102, 241, 0.35);
  background: #eef2ff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}
.category-chip__img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #e2e8f0;
}

.navbar-toggler {
  border: 1px solid var(--header-border);
  border-radius: 10px;
  padding: 8px 11px;
  transition: var(--transition);
  margin-left: auto;
}
.navbar-toggler:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}
.navbar-toggler-icon-custom { color: var(--header-text); font-size: 1.1rem; }

/* Legacy nav-link overrides (mobile dropdown items) */
.nav-link {
  color: var(--header-text) !important;
  font-weight: 500;
}
.main-navbar .dropdown-menu:not(.mega-menu-dropdown) {
  background: #fff;
  border: 1px solid var(--header-border);
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
}
.badge-dot {
  position: absolute; top: 0; right: 0;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Hero ── */
.hero-section { overflow: hidden; }
.hero-slide {
  min-height: clamp(420px, 52vw, 560px);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide--modern {
  background: #0f172a;
}
.hero-slide__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-slide--modern .hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(15, 23, 42, 0.82) 36%,
    rgba(15, 23, 42, 0.4) 58%,
    rgba(15, 23, 42, 0.12) 100%
  );
}
.hero-slide--modern .hero-content {
  position: relative;
  z-index: 2;
}
.hero-slide--modern .hero-badge {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #e0e7ff;
}
.hero-slide--photo {
  background-size: cover;
  background-position: center;
}
.hero-slide--photo .hero-overlay {
  background: linear-gradient(135deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.45) 55%, rgba(0,0,0,0.25) 100%);
}
.hero-logo-img {
  width: min(280px, 80%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 40px rgba(99,102,241,0.35));
  animation: hero-float 4s ease-in-out infinite;
}
.hero-float-card--logo {
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(99,102,241,0.15);
  padding: 2rem;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(99,102,241,0.15);
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero-default {
  background: linear-gradient(160deg, #ffffff 0%, #f0f4ff 40%, #e0f2fe 100%);
  position: relative;
}
.hero-default::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle 400px at 80% 30%, rgba(99,102,241,0.12) 0%, transparent 70%),
    radial-gradient(circle 350px at 20% 80%, rgba(14,165,233,0.1) 0%, transparent 70%);
  animation: hero-orb-drift 10s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.3));
}
.hero-default .hero-overlay {
  background: linear-gradient(135deg, rgba(255,255,255,0.4), rgba(248,250,252,0.1));
}
.hero-content { position: relative; z-index: 2; padding: 60px 0; }
.min-vh-60 { min-height: 60vh; }
.hero-badge {
  display: inline-block;
  background: rgba(99,102,241,0.1);
  border: 1px solid rgba(99,102,241,0.25);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: 100px;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
  animation: badge-pulse 3s ease-in-out infinite;
}
.hero-default .hero-badge {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(14,165,233,0.12));
  border-color: rgba(99,102,241,0.3);
  color: var(--primary-dark);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-default .hero-title { color: #0f172a; }
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle { color: rgba(255,255,255,0.75); font-size: 1.1rem; margin-bottom: 28px; }
.hero-default .hero-subtitle { color: var(--header-text-muted); }
.btn-hero {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-hero:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  transition: var(--transition);
}
.btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.hero-default .btn-hero-outline {
  color: var(--primary);
  border-color: rgba(99,102,241,0.4);
}
.hero-default .btn-hero-outline:hover {
  border-color: var(--primary);
  background: rgba(99,102,241,0.08);
  color: var(--primary-dark);
}
.hero-pc-icon {
  font-size: 10rem;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: float 3s ease-in-out infinite;
  display: block;
}
.hero-float-card {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(99,102,241,0.15);
  border-radius: 24px;
  padding: 40px;
  display: inline-block;
  backdrop-filter: blur(10px);
  box-shadow: 0 20px 60px rgba(99,102,241,0.12);
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

/* ── Header & hero animation keyframes ── */
@keyframes header-slide-down {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes header-line-flow {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
@keyframes header-bg-shift {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 1; transform: scale(1.02); }
}
@keyframes logo-shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes hero-orb-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(20px, -15px) scale(1.05); }
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50% { box-shadow: 0 0 0 6px rgba(99,102,241,0.12); }
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before,
  .site-header::after,
  .topbar,
  .main-navbar,
  .brand-logo,
  .hero-default::before,
  .hero-badge {
    animation: none;
  }
  .nav-link::before { transition: none; }
}

/* ── USP Strip ── */
.usp-strip {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
}
.usp-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.usp-item:last-child { border-right: none; }
.usp-item i { font-size: 1.4rem; opacity: 0.9; }
.usp-item strong { display: block; font-size: 0.875rem; font-weight: 700; }
.usp-item span { font-size: 0.75rem; opacity: 0.8; }

@keyframes brand-ring-spin {
  to { transform: rotate(360deg); }
}

/* ── Sections ── */
.section-header--designed {
  text-align: center;
  margin-bottom: 2rem;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(14,165,233,0.1));
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid rgba(99,102,241,0.22);
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.08);
}
.section-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  flex-shrink: 0;
}
.section-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
  position: relative;
}
.section-header--designed .section-title::after {
  content: '';
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.section-header:not(.section-header--designed) .section-title {
  margin-bottom: 0;
}
.about-showroom-img,
.contact-store-img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}
.about-showroom-img--wide { max-height: 220px; }

/* ── Page Banners ── */
.page-banner {
  background-size: cover;
  background-position: center;
  min-height: 200px;
  position: relative;
  margin-bottom: 0;
}
.page-banner--compact { min-height: 140px; }
.page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.82), rgba(99,102,241,0.45));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1rem;
}
.page-banner__title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  margin: 0;
}
.page-banner__subtitle {
  color: rgba(255,255,255,0.85);
  margin: 0.5rem 0 0;
  max-width: 50ch;
}

/* ── Nav / filter category thumbs ── */
.nav-cat-thumb,
.filter-cat-thumb {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  border: 1px solid #e2e8f0;
}
.filter-cat-item { margin-bottom: 0.35rem; }

/* ── Empty states ── */
.empty-state-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.85;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  object-fit: cover;
}

/* ── CTA with photo background ── */
.cta-section--photo {
  background-size: cover;
  background-position: center;
  position: relative;
}
.cta-section--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}
.cta-section--photo .container { position: relative; z-index: 1; }
.cta-card--overlay {
  background: rgba(15, 23, 42, 0.72) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

/* ── Category Cards ── */
.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px 12px;
  text-decoration: none;
  color: #1e293b;
  transition: var(--transition);
  height: 100%;
}
.category-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 30px rgba(99,102,241,0.15);
  transform: translateY(-4px);
  color: var(--primary);
}
.category-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(14,165,233,0.1));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 10px;
  transition: var(--transition);
}
.category-card:hover .category-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
}
.category-card--image .category-icon {
  width: 88px;
  height: 88px;
  background: #f8fafc;
  border-radius: 50%;
  padding: 4px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
}
.category-card--image:hover .category-icon {
  border-color: var(--primary);
  background: #fff;
}
.category-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.category-name { font-size: 0.85rem; font-weight: 600; }

/* ── Category Page Banner ── */
.category-page-banner {
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  min-height: 140px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.category-page-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.75), rgba(99,102,241,0.45));
  display: flex;
  align-items: center;
  padding: 1.5rem 2rem;
}
.category-page-banner__title {
  color: #fff;
  font-weight: 800;
  font-size: 1.75rem;
  margin: 0;
}

/* ── Product Cards ── */
.product-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--primary);
}
.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  background: #f8fafc;
  aspect-ratio: 4/3;
}
.product-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img { transform: scale(1.05); }
.badge-new {
  position: absolute; top: 10px; left: 10px;
  background: var(--success); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; z-index: 2;
}
.badge-sale {
  position: absolute; top: 10px; right: 10px;
  background: var(--danger); color: #fff;
  font-size: 0.7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 100px; z-index: 2;
}
.product-actions {
  position: absolute; bottom: -50px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  padding: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  transition: var(--transition);
}
.product-card:hover .product-actions { bottom: 0; }
.action-btn {
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer;
  color: #374151;
  transition: var(--transition);
  text-decoration: none;
}
.action-btn:hover { background: var(--primary); color: #fff; }
.product-card-body {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-brand { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 4px; }
.product-name { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; flex: 1; }
.product-name a { color: #1e293b; text-decoration: none; }
.product-name a:hover { color: var(--primary); }
.product-price { margin-bottom: 10px; }
.price-current { font-size: 1.05rem; font-weight: 800; color: var(--primary); }
.price-original { font-size: 0.8rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }
.btn-add-cart {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  padding: 8px 14px;
  transition: var(--transition);
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(99,102,241,0.4); color: #fff; }

/* ── Filter Panel ── */
.filter-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.filter-title { font-weight: 700; margin-bottom: 16px; color: #0f172a; font-size: 0.95rem; }
.filter-group { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid #f1f5f9; }
.filter-group:last-child { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.filter-label { font-size: 0.8rem; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; display: block; }

/* ── Product Detail ── */
.product-gallery { background: #fff; border-radius: var(--radius); padding: 16px; }
.main-image-wrap { aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: #f8fafc; }
.main-product-img { width: 100%; height: 100%; object-fit: contain; }
.thumbnail-strip { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-img {
  width: 72px; height: 54px; object-fit: cover;
  border-radius: 6px; cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
}
.thumb-img:hover, .thumb-img.active { border-color: var(--primary); }
.product-detail-title { font-size: 1.5rem; font-weight: 800; line-height: 1.3; }
.price-block { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-large { font-size: 2rem; font-weight: 900; color: var(--primary); }
.price-original-lg { font-size: 1.1rem; color: var(--text-muted); text-decoration: line-through; }
.qty-control {
  display: flex; align-items: center;
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden;
}
.qty-btn {
  width: 36px; height: 40px;
  background: #f1f5f9; border: none;
  font-size: 1.1rem; cursor: pointer;
  transition: var(--transition);
}
.qty-btn:hover { background: var(--primary); color: #fff; }
.qty-input { width: 56px; text-align: center; border: none; outline: none; font-weight: 700; }
.specs-quick-view { background: #f8fafc; border-radius: var(--radius); padding: 16px; }
.spec-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
}
.product-short-desc { color: #475569; line-height: 1.7; }
.product-tabs { }
.product-tabs .nav-tabs .nav-link { color: #64748b; font-weight: 500; }
.product-tabs .nav-tabs .nav-link.active { color: var(--primary); font-weight: 700; }

/* ── Cart ── */
.cart-row { transition: var(--transition); }
.cart-row:hover { background: #fafafa; }
.qty-control-sm input { width: 60px; }
.empty-state { padding: 60px 20px; }
.empty-state i { opacity: 0.3; }

/* ── CTA Section ── */
.cta-section { background: linear-gradient(135deg, #0f172a, #1e1b4b); }
.cta-card {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 20px;
  padding: 40px;
  color: #fff;
}
.cta-card h3 { font-weight: 800; }

/* ── Footer ── */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 30px;
  margin-top: 60px;
}
.footer-brand {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6366f1, #0ea5e9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { padding: 4px 0; font-size: 0.875rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-divider { border-color: rgba(255,255,255,0.08); margin: 30px 0 20px; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}
.social-links a:hover { background: var(--primary); color: #fff; }
.payment-badges { display: flex; gap: 8px; align-items: center; filter: brightness(0.8); }
.site-footer h6 { color: #fff; font-weight: 700; font-size: 0.875rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }

/* ── Pagination ── */
.page-link { color: var(--primary); border-radius: 8px !important; margin: 0 2px; border-color: #e2e8f0; }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ── Auth ── */
.alert { border-radius: var(--radius); border: none; }
.alert-success { background: #dcfce7; color: #166534; }
.alert-danger { background: #fee2e2; color: #991b1b; }
.alert-warning { background: #fef3c7; color: #92400e; }
.alert-info { background: #dbeafe; color: #1e40af; }

/* ── Order Success ── */
.order-success-icon {
  width: 90px; height: 90px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; color: #fff;
  margin: 0 auto 20px;
  animation: pop 0.5s ease;
}
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }

/* ── Profile / Account ── */
.profile-card { border-radius: var(--radius); border: 1px solid #e2e8f0; }

.account-page { min-height: 60vh; }
.account-header h2 { font-weight: 700; }

.account-content {
  min-width: 0;
  flex: 1 1 auto;
}

.account-page > .row {
  align-items: flex-start;
}

.account-sidebar {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.account-avatar {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #2563eb);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.account-nav .list-group-item {
  border: none;
  padding: 14px 20px;
  font-weight: 500;
  color: #475569;
  transition: background 0.2s, color 0.2s;
}

.account-nav .list-group-item:hover {
  background: #f1f5f9;
  color: var(--primary);
}

.account-nav .list-group-item.active {
  background: #eff6ff;
  color: var(--primary);
  border-left: 3px solid var(--primary);
}

.account-panel {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
}

.account-panel .card-header {
  font-weight: 600;
  padding: 16px 20px;
}

.account-stat .card-body { padding: 20px; }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.stat-label {
  color: #64748b;
  font-size: 0.875rem;
}

.account-table thead th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
  border-bottom-width: 1px;
  padding: 12px 16px;
}

.account-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.account-empty {
  text-align: center;
  padding: 48px 24px;
}

.font-monospace { font-family: ui-monospace, monospace; }

/* ── Wishlist ── */
.wishlist-empty { padding: 60px; text-align: center; }

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .navbar-shell { flex-wrap: wrap; }
  .navbar-collapse--modern {
    flex-direction: column;
    align-items: stretch !important;
    padding-top: 1rem;
    gap: 1rem;
  }
  .nav-pills-main {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .nav-pill {
    justify-content: flex-start;
    width: 100%;
  }
  .search-form--modern {
    max-width: none;
    width: 100%;
  }
  .nav-actions {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
  .mega-menu-dropdown {
    min-width: 100%;
    box-shadow: none;
    border: 1px solid #e2e8f0;
    margin-top: 6px !important;
  }
  .mega-menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .main-navbar .dropdown-menu {
    position: static !important;
    transform: none !important;
  }
}

@media (max-width: 768px) {
  .brand-logo { font-size: 1.45rem; }
  .brand-frame { width: 46px; height: 46px; }
  .brand-logo-img { width: 32px; height: 32px; }
  .topbar-chip--accent { display: none !important; }
  .hero-slide { min-height: 360px; }
  .hero-slide--modern .hero-title { font-size: 1.75rem; }
  .hero-title { font-size: 1.8rem; }
  .usp-item { padding: 10px 14px; }
  .usp-item i { font-size: 1.1rem; }
}
