/* ============================================================
   Rastin Shop — Brand Design System
   Navy #1f3c4b  |  Gold #ab892f
   ============================================================ */

:root {
  --color-navy: #1f3c4b;
  --color-navy-light: #2d5a73;
  --color-navy-dark: #152a35;
  --color-gold: #ab892f;
  --color-gold-light: #d4a84b;
  --color-gold-dark: #8a6e24;
  --color-bg: #f8f6f2;
  --color-bg-alt: #f0ebe3;
  --color-text: #1a1a1a;
  --color-muted: #6b7280;
  --color-border: #e5e0d8;
  --color-white: #ffffff;
  --gradient-navy: linear-gradient(135deg, #1f3c4b 0%, #2d5a73 100%);
  --gradient-gold: linear-gradient(135deg, #ab892f 0%, #d4a84b 100%);
  --gradient-hero: linear-gradient(135deg, #1f3c4b 0%, #2d5a73 50%, #ab892f 100%);
  --shadow-sm: 0 1px 3px rgba(31, 60, 75, 0.08);
  --shadow-md: 0 4px 16px rgba(31, 60, 75, 0.12);
  --shadow-lg: 0 8px 32px rgba(31, 60, 75, 0.16);
  --shadow-gold: 0 4px 20px rgba(171, 137, 47, 0.35);
  --radius: 1rem;
  --radius-sm: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-full: 9999px;
  --transition: 0.2s ease;
}

/* Override theme primary/secondary to brand colors */
:root {
  --color-primary-500: #1f3c4b;
  --color-primary-600: #152a35;
  --color-primary-400: #2d5a73;
  --color-secondary-500: #ab892f;
  --color-secondary-400: #d4a84b;
  --color-secondary-600: #8a6e24;
}

/* ---------- Base ---------- */
body.brand-body {
  background-color: var(--color-bg) !important;
  color: var(--color-text);
}

.brand-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

/* ---------- Buttons ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-gold);
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  text-decoration: none;
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(171, 137, 47, 0.45);
  filter: brightness(1.05);
  color: #fff !important;
}

.btn-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--gradient-navy);
  color: #fff !important;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.btn-navy:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: #fff !important;
}

.btn-outline-navy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-navy) !important;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-navy);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-outline-navy:hover {
  background: var(--color-navy);
  color: #fff !important;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--color-gold) !important;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--color-gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.btn-outline-gold:hover {
  background: var(--color-gold);
  color: #fff !important;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

/* ---------- Badges ---------- */
.badge-gold {
  display: inline-flex;
  align-items: center;
  background: var(--gradient-gold);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.badge-navy {
  display: inline-flex;
  align-items: center;
  background: var(--color-navy);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}
.badge-soft {
  display: inline-flex;
  align-items: center;
  background: var(--color-bg-alt);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
}

/* ---------- Cards ---------- */
.card-brand {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card-brand:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}

.card-product {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card-product:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(171, 137, 47, 0.5);
}
.card-product .card-product-img {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: var(--color-bg);
  overflow: hidden;
}
.card-product .card-product-img img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.card-product:hover .card-product-img img {
  transform: scale(1.06);
}
.card-product .card-product-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-product .card-product-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  transition: color var(--transition);
}
.card-product:hover .card-product-title {
  color: var(--color-navy);
}
.card-product .card-product-price {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  margin-top: auto;
  padding-top: 0.75rem;
}

/* Compact product cards in landing amazing-offers strip */
.amazing-offers .amazing-carousel .swiper-slide {
  width: 8.5rem !important;
  height: auto;
}
.amazing-offers .card-product {
  height: auto;
}
.amazing-offers .card-product .card-product-img {
  aspect-ratio: 1;
  max-height: 8.5rem;
  padding: 0.4rem;
}
.amazing-offers .card-product .card-product-img img {
  max-height: 100%;
}
.amazing-offers .card-product .card-product-body {
  padding: 0.5rem 0.6rem 0.65rem;
}
.amazing-offers .card-product .card-product-title {
  font-size: 0.75rem;
  line-height: 1.4;
  min-height: 2.1em;
  -webkit-line-clamp: 2;
}
.amazing-offers .card-product .card-product-price {
  font-size: 0.8rem;
  padding-top: 0.4rem;
}
.amazing-offers .badge-soft {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
}

/* ---------- Section helpers ---------- */
.section-hero {
  background: var(--gradient-navy);
  color: #fff;
  padding: 2.5rem 0;
  position: relative;
  overflow: hidden;
}
.section-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, rgba(171, 137, 47, 0.15));
  pointer-events: none;
}
.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 3.5rem;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}
.section-title::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: 3.75rem;
  width: 0.5rem;
  height: 3px;
  background: var(--color-navy);
  border-radius: 2px;
}

/* ---------- Page hero bar ---------- */
.page-hero {
  background: var(--gradient-navy);
  color: #fff;
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 40%;
  height: 200%;
  background: radial-gradient(circle, rgba(171, 137, 47, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero h1 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}
.page-hero .breadcrumb-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.85;
}
.page-hero .breadcrumb-brand a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color var(--transition);
}
.page-hero .breadcrumb-brand a:hover {
  color: var(--color-gold-light);
}
.page-hero .breadcrumb-brand .sep {
  opacity: 0.5;
}

/* ---------- Header brand ---------- */
.brand-header {
  background: var(--color-navy) !important;
  border-bottom: 3px solid var(--color-gold) !important;
  box-shadow: var(--shadow-md);
  overflow: visible;
}
.brand-header,
.brand-header a,
.brand-header svg,
.brand-header input,
.brand-header button {
  color: #fff;
}
.brand-header .search-input {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
}
.brand-header .search-input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}
.brand-header .search-input:focus {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: var(--color-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(171, 137, 47, 0.25);
}
.brand-header .icon-badge {
  background: var(--color-gold) !important;
  color: #fff !important;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -0.4rem;
  inset-inline-start: -0.4rem;
}
.brand-header .nav-link-brand {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  transition: color var(--transition);
}
.brand-header .nav-link-brand:hover {
  color: var(--color-gold-light);
}
.brand-header .btn-header-gold {
  background: var(--gradient-gold);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  transition: filter var(--transition), transform var(--transition);
}
.brand-header .btn-header-gold:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.brand-header .btn-header-ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff !important;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.875rem;
  transition: background var(--transition);
}
.brand-header .btn-header-ghost:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Mega menu brand */
#megaMenu {
  position: relative;
  z-index: 30;
}
.mega-dropdown-brand {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  position: absolute;
}
.mega-dropdown-brand::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0.5rem;
  transform: translateY(-100%);
}
.mega-trigger:hover .mega-dropdown-brand,
.mega-trigger:focus-within .mega-dropdown-brand {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mega-dropdown-brand .nav-brand-name,
.mega-dropdown-brand .nav-cat-name {
  display: block;
  width: 100%;
  max-width: 4.25rem;
  font-size: 0.625rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-word;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.nav-cat-card.is-active {
  background: rgba(31, 60, 75, 0.08);
  border-color: rgba(171, 137, 47, 0.45) !important;
}
.dark .nav-cat-card.is-active {
  background: rgba(255, 255, 255, 0.06);
}
.nav-cat-card.is-active .nav-cat-name {
  color: #1f3c4b;
  font-weight: 700;
}
.dark .nav-cat-card.is-active .nav-cat-name {
  color: #f3f4f6;
}
.mega-dropdown-brand .nav-cat-grid {
  max-height: min(24rem, calc(100vh - 8rem));
  overflow-y: auto;
}

/* Mega menu + search dropdowns: reset header white chrome (dropdowns use light/dark panels) */
.brand-header .mega-dropdown-brand {
  color: #374151;
}
.dark .brand-header .mega-dropdown-brand {
  color: #e5e7eb;
}
.brand-header .mega-dropdown-brand a {
  color: inherit;
}
.brand-header .mega-dropdown-brand svg {
  color: currentColor;
}
.brand-header .mega-dropdown-brand .text-gray-700,
.brand-header .mega-dropdown-brand .nav-cat-card {
  color: #374151 !important;
}
.dark .brand-header .mega-dropdown-brand .text-gray-700,
.dark .brand-header .mega-dropdown-brand .dark\:text-gray-300,
.dark .brand-header .mega-dropdown-brand .nav-cat-card {
  color: #d1d5db !important;
}
.brand-header .mega-dropdown-brand .nav-cat-card:hover {
  color: #1f3c4b !important;
}
.dark .brand-header .mega-dropdown-brand .nav-cat-card:hover {
  color: #f3f4f6 !important;
}
.brand-header .mega-dropdown-brand .text-gray-600 {
  color: #4b5563 !important;
}
.dark .brand-header .mega-dropdown-brand .text-gray-600,
.dark .brand-header .mega-dropdown-brand .dark\:text-gray-400 {
  color: #9ca3af !important;
}
.brand-header .mega-dropdown-brand .text-gray-400 {
  color: #9ca3af !important;
}
.brand-header .mega-dropdown-brand [class*="ab892f"] {
  color: #ab892f !important;
}
.brand-header .mega-dropdown-brand [class*="ab892f"] svg {
  color: #ab892f !important;
}
.brand-header .mega-dropdown-brand .text-\[\#1f3c4b\] {
  color: #1f3c4b !important;
}
.dark .brand-header .mega-dropdown-brand .text-\[\#1f3c4b\] {
  color: #e5e7eb !important;
}
.brand-header #searchResults,
.brand-header #searchResults a {
  color: #1f3c4b !important;
}
.dark .brand-header #searchResults,
.dark .brand-header #searchResults a {
  color: #e5e7eb !important;
}

/* Landing stories strip */
#stories-container .story-brand-label {
  color: #4b5563;
}
.dark #stories-container .story-brand-label {
  color: #d1d5db;
}
#stories-container .story-brand-label:hover {
  color: #ab892f;
}
#stories-container .story-featured-badge svg,
#stories-container .story-featured-badge svg path {
  fill: #ab892f !important;
  color: #ab892f;
}
.dark #stories-container .story-featured-badge svg,
.dark #stories-container .story-featured-badge svg path {
  fill: #d4a84b !important;
  color: #d4a84b;
}
.dark #stories-container .story-avatar-ring .story-avatar-inner {
  background: #1a2332;
}

/* ---------- Footer brand ---------- */
.brand-footer {
  background: var(--color-navy-dark);
  color: rgba(255, 255, 255, 0.85);
}
.brand-footer .footer-services {
  background: var(--color-navy);
  border-bottom: 1px solid rgba(171, 137, 47, 0.3);
}
.brand-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
  text-decoration: none;
}
.brand-footer a:hover {
  color: var(--color-gold-light);
}
.brand-footer .footer-heading {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.brand-footer .footer-heading strong {
  color: var(--color-gold-light);
}
.brand-footer .footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}
.brand-footer .social-btn {
  background: var(--color-gold);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), filter var(--transition);
}
.brand-footer .social-btn:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
}

.brand-footer .footer-brand-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  padding: 0.375rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .brand-footer .footer-brand-logo-link {
    width: 4rem;
    height: 4rem;
  }
}
.brand-footer .footer-brand-logo {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* ---------- Forms ---------- */
.form-brand input,
.form-brand textarea,
.form-brand select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-brand input:focus,
.form-brand textarea:focus,
.form-brand select:focus {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(171, 137, 47, 0.2);
}
.form-brand label {
  display: block;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

/* ---------- Accordion FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item.open,
.faq-item:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-sm);
}
.faq-item .faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: right;
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}
.faq-item .faq-icon {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--color-bg-alt);
  color: var(--color-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), background var(--transition), color var(--transition);
}
.faq-item.open .faq-icon {
  transform: rotate(180deg);
  background: var(--color-gold);
  color: #fff;
}
.faq-item .faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.25rem;
  color: var(--color-muted);
  line-height: 1.8;
  font-size: 0.9rem;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 1.25rem 1.25rem;
}

/* ---------- Format / Brand selectors ---------- */
.format-tile {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  color: var(--color-navy);
}
.format-tile:hover,
.format-tile.active {
  border-color: var(--color-gold);
  background: rgba(171, 137, 47, 0.08);
  color: var(--color-gold-dark);
}
.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  background: #fff;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-navy);
}
.brand-pill:hover,
.brand-pill.active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: #fff;
}

/* ---------- Qty stepper ---------- */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
}
.qty-stepper button {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  font-weight: 700;
  transition: background var(--transition);
}
.qty-stepper button:hover {
  background: var(--color-gold);
  color: #fff;
}
.qty-stepper input {
  width: 3rem;
  text-align: center;
  border: none;
  font-weight: 700;
  color: var(--color-navy);
  background: transparent;
}

/* ---------- Progress stepper ---------- */
.progress-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2rem;
}
.progress-stepper .step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  flex: 1;
  max-width: 10rem;
}
.progress-stepper .step-dot {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 1;
  transition: all var(--transition);
}
.progress-stepper .step.active .step-dot,
.progress-stepper .step.done .step-dot {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: var(--shadow-gold);
}
.progress-stepper .step-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-muted);
}
.progress-stepper .step.active .step-label,
.progress-stepper .step.done .step-label {
  color: var(--color-navy);
}
.progress-stepper .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 1.25rem;
  left: 0;
  right: 50%;
  height: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
  width: 100%;
  z-index: 0;
}
.progress-stepper .step.done:not(:last-child)::after {
  background: var(--color-gold);
}

/* ---------- Pagination ---------- */
.pagination-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.pagination-brand a,
.pagination-brand span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition);
}
.pagination-brand a {
  background: #fff;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
}
.pagination-brand a:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}
.pagination-brand .current {
  background: var(--gradient-navy);
  color: #fff;
  border: none;
}

/* ---------- Tabs ---------- */
.tabs-brand {
  display: flex;
  gap: 0.25rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.5rem;
  overflow-x: auto;
}
.tabs-brand .tab-btn {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: var(--color-muted);
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition), border-color var(--transition);
}
.tabs-brand .tab-btn:hover {
  color: var(--color-navy);
}
.tabs-brand .tab-btn.active {
  color: var(--color-navy);
  border-bottom-color: var(--color-gold);
}

/* ---------- Info icon cards ---------- */
.info-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.75rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}
.info-card .info-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: var(--shadow-gold);
}
.info-card h3 {
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.info-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ---------- Stats ---------- */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}
.stat-card .stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}
.stat-card .stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

/* ---------- Order summary card ---------- */
.summary-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 1.5rem;
  position: sticky;
  top: 6rem;
}
.summary-card h3 {
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-gold);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--color-muted);
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--color-navy);
  border-top: 1px solid var(--color-border);
  margin-top: 0.75rem;
  padding-top: 1rem;
}

/* ---------- Compare table ---------- */
.compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.compare-table th {
  background: var(--color-navy);
  color: #fff;
  padding: 1rem;
  font-weight: 700;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 2;
}
.compare-table td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9rem;
}
.compare-table tr:nth-child(even) td {
  background: var(--color-bg);
}
.compare-table td:first-child,
.compare-table th:first-child {
  text-align: right;
  font-weight: 600;
  color: var(--color-navy);
  background: var(--color-bg-alt);
  position: sticky;
  right: 0;
  z-index: 1;
}
.compare-table th:first-child {
  background: var(--color-navy-dark);
  z-index: 3;
}

/* ---------- Success checkmark ---------- */
.success-check {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: var(--shadow-gold);
  animation: popIn 0.5s ease;
}
@keyframes popIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- User panel sidebar ---------- */
.panel-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.panel-sidebar .panel-user {
  background: var(--gradient-navy);
  color: #fff;
  padding: 1.5rem;
  text-align: center;
}
.panel-sidebar a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
  transition: background var(--transition), color var(--transition);
}
.panel-sidebar a:hover,
.panel-sidebar a.active {
  background: rgba(171, 137, 47, 0.1);
  color: var(--color-gold-dark);
}
.panel-sidebar a:last-child {
  border-bottom: none;
}

/* ---------- Category card ---------- */
.cat-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-navy);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition), box-shadow var(--transition);
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
  transition: opacity var(--transition), transform 0.4s ease;
}
.cat-card:hover img {
  opacity: 0.4;
  transform: scale(1.05);
}
.cat-card .cat-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(31, 60, 75, 0.9) 0%, rgba(31, 60, 75, 0.3) 100%);
  color: #fff;
  text-align: center;
}
.cat-card .cat-overlay h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}
.cat-card .cat-overlay .gold-line {
  width: 3rem;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
  margin: 0.5rem auto;
}

/* ---------- Brand card ---------- */
.brand-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  text-align: center;
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.brand-card:hover {
  border-color: var(--color-gold);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.brand-card .brand-logo {
  width: clamp(4rem, 10vw, 7rem);
  height: clamp(4rem, 10vw, 7rem);
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  margin: 0 auto 0.75rem;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
}
.brand-card .brand-logo.brand-logo-lg {
  width: clamp(5rem, 12vw, 8rem);
  height: clamp(5rem, 12vw, 8rem);
  max-width: 100%;
}
.brand-card .brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  min-width: 0;
  min-height: 0;
}
.brand-card.brand-card-featured {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 2px rgba(171, 137, 47, 0.25), var(--shadow-md);
  position: relative;
}
.brand-card.brand-card-featured::after {
  content: "★";
  position: absolute;
  top: 0.6rem;
  inset-inline-end: 0.6rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 9999px;
  background: var(--color-gold);
  color: #fff;
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.brand-card h3 {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.95rem;
}

.brands-carousel {
  margin-top: 0.5rem;
  padding: 0.25rem 0;
}
.brands-carousel .brands-carousel-wrapper {
  padding: 0.75rem 0 1.25rem !important;
}
.brands-carousel .swiper-slide {
  width: 7.5rem;
  box-sizing: border-box;
  padding-inline: 0.25rem;
  height: auto;
}
@media (min-width: 640px) {
  .brands-carousel .swiper-slide {
    width: 8.5rem;
  }
}
.brands-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .brands-section-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 768px) {
  .brands-section-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .brands-section-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .brands-section-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
}

/* Denser shop grids — more columns, smaller cards */
.shop-grid-products {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .shop-grid-products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 768px) {
  .shop-grid-products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .shop-grid-products {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .shop-grid-products {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.shop-grid-brands {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .shop-grid-brands {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 768px) {
  .shop-grid-brands {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .shop-grid-brands {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .shop-grid-brands {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.shop-grid-categories {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .shop-grid-categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.875rem;
  }
}
@media (min-width: 768px) {
  .shop-grid-categories {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .shop-grid-categories {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
  }
}
@media (min-width: 1280px) {
  .shop-grid-categories {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.shop-grid-brands .brand-card {
  padding: 0.875rem;
  gap: 0.5rem;
  min-width: 0;
  overflow: hidden;
}
.shop-grid-brands .brand-card .brand-logo {
  width: min(100%, clamp(2.75rem, 7vw, 4.5rem));
  height: clamp(2.75rem, 7vw, 4.5rem);
  max-width: 100%;
  margin-bottom: 0.35rem;
  padding: 0.35rem;
}
.shop-grid-brands .brand-card .brand-logo.brand-logo-lg {
  width: min(100%, clamp(3rem, 8vw, 5rem));
  height: clamp(3rem, 8vw, 5rem);
  max-width: 100%;
}
.shop-grid-brands .brand-card h3 {
  font-size: 0.8125rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brands-section-grid .brand-card {
  padding: 0.75rem;
  gap: 0.4rem;
  min-width: 0;
  overflow: hidden;
}
.brands-section-grid .brand-card .brand-logo {
  width: min(100%, clamp(2.5rem, 6vw, 4rem));
  height: clamp(2.5rem, 6vw, 4rem);
  max-width: 100%;
  margin-bottom: 0.25rem;
  padding: 0.25rem;
}
.brands-section-grid .brand-card h3 {
  font-size: 0.75rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brands-carousel .brand-card {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}
.brands-carousel .brand-card .brand-logo {
  width: 100%;
  max-width: 100%;
  height: 3rem;
  margin-bottom: 0.25rem;
  padding: 0.25rem;
}

.shop-grid-products .card-product .card-product-body,
.shop-grid-products .card-product > .p-3 {
  padding: 0.625rem;
}
.shop-grid-products .card-product .card-product-title,
.shop-grid-products .card-product h3 {
  font-size: 0.8125rem;
  min-height: 2.4em;
}

.shop-grid-products > .w-full > .rounded {
  padding: 0.625rem;
}
.shop-grid-products .add-to-cart-btn {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  font-size: 0.75rem;
}
.shop-cat-slide {
  width: 7rem !important;
  height: 7rem !important;
}
@media (min-width: 640px) {
  .shop-cat-slide {
    width: 7.5rem !important;
    height: 7.5rem !important;
  }
}

.shop-grid-categories h3 {
  font-size: 0.875rem;
}

/* Product gallery responsive container */
.product-gallery-main {
  position: relative;
  background: var(--color-bg);
  border-radius: 15px;
  padding: 1.25rem 0.9rem 1.5rem;
  margin-bottom: 2rem;
}
.product-gallery-main .gallery-slide-box {
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  min-height: 220px;
  max-height: min(420px, 70vw);
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-gallery-main .gallery-slide-box img {
  max-height: min(420px, 70vw);
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}
.product-gallery-thumbs .thumb-box {
  aspect-ratio: 1;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
}
.product-gallery-thumbs .thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Blog card ---------- */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-gold);
}
.blog-card .blog-cover {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--color-navy);
}
.blog-card .blog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-cover img {
  transform: scale(1.05);
}
.blog-card .blog-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card .blog-title {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card .blog-excerpt {
  color: var(--color-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

/* ---------- Filter sidebar ---------- */
.filter-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem;
  position: sticky;
  top: 6rem;
}
.filter-sidebar .filter-title {
  font-weight: 800;
  color: var(--color-navy);
  font-size: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-gold);
}
.filter-sidebar .filter-group {
  margin-bottom: 1.25rem;
}
.filter-sidebar .filter-group-title {
  font-weight: 700;
  color: var(--color-navy);
  font-size: 0.875rem;
  margin-bottom: 0.6rem;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: #fff;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-navy);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  margin: 0.2rem;
}
.filter-chip:hover,
.filter-chip.active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

/* ---------- Mobile bottom nav brand ---------- */
.brand-bottom-nav {
  background: var(--color-navy) !important;
  border-top: 2px solid var(--color-gold) !important;
}
.brand-bottom-nav a,
.brand-bottom-nav button {
  color: rgba(255, 255, 255, 0.7);
}
.brand-bottom-nav .nav-icon-circle {
  background: rgba(255, 255, 255, 0.1) !important;
}
.brand-bottom-nav .nav-center-btn {
  background: var(--gradient-gold) !important;
  box-shadow: var(--shadow-gold) !important;
}

/* ---------- Alerts ---------- */
.alert-brand {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.alert-brand.success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.alert-brand.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
.alert-brand.warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-brand.info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
}

/* ---------- Misc utilities ---------- */
.text-navy { color: var(--color-navy) !important; }
.text-gold { color: var(--color-gold) !important; }
.bg-navy { background-color: var(--color-navy) !important; }
.bg-gold { background-color: var(--color-gold) !important; }
.bg-brand { background-color: var(--color-bg) !important; }
.border-brand { border-color: var(--color-border) !important; }
.gold-underline {
  position: relative;
  display: inline-block;
}
.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

/* Scrollbar hide helper */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Brand marquee */
.brand-marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}
.brand-marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Offcanvas brand */
.offcanvas {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0.3s;
}
.overlay {
  transition: opacity 0.3s ease, visibility 0.3s;
}

/* Dark mode overrides for brand */
.dark .card-product,
.dark .card-brand,
.dark .brand-card,
.dark .blog-card,
.dark .filter-sidebar,
.dark .summary-card,
.dark .info-card,
.dark .faq-item,
.dark .panel-sidebar {
  background: #1a2332;
  border-color: #2d3a4a;
}
.dark .card-product .card-product-img,
.dark .brand-card .brand-logo {
  background: #0d1520;
}
.dark .card-product .card-product-title,
.dark .brand-card h3,
.dark .blog-card .blog-title,
.dark .filter-sidebar .filter-title,
.dark .summary-card h3,
.dark .info-card h3,
.dark .faq-item .faq-q,
.dark .section-title {
  color: #e5e7eb;
}
.dark body.brand-body {
  background-color: #0d1117 !important;
}

/* ================================================================
   SEARCH DROPDOWN — Modern, Polished
   ================================================================ */

/* Entrance animation for the dropdown panel */
#searchResults {
  animation: searchDropdownIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.brand-header #searchResults {
  top: 100%;
  margin-top: 0.5rem;
  left: 0;
  right: 0;
  max-height: min(32rem, calc(100vh - 7rem));
}
@keyframes searchDropdownIn {
  from { opacity: 0; transform: translateY(4px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}

/* Skeleton shimmer loader rows */
.search-skeleton {
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: searchShimmer 1.4s ease-in-out infinite;
  border-radius: 0.5rem;
}
.dark .search-skeleton {
  background: linear-gradient(90deg, #1f2937 25%, #374151 50%, #1f2937 75%);
  background-size: 200% 100%;
  animation: searchShimmer 1.4s ease-in-out infinite;
}
@keyframes searchShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Result item base */
.search-result-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgb(243 244 246);
  cursor: pointer;
  transition: background-color 0.12s ease;
  text-decoration: none;
  color: inherit;
}
.dark .search-result-item {
  border-bottom-color: rgb(31 41 55);
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover,
.search-result-item.is-active {
  background-color: rgb(249 250 251);
}
.dark .search-result-item:hover,
.dark .search-result-item.is-active {
  background-color: rgb(17 24 39);
}

/* Highlighted term inside result name */
.search-term-highlight {
  color: var(--color-gold, #ab892f);
  font-weight: 700;
  background: transparent;
}

/* Product image thumbnail in result */
.search-result-thumb {
  width: 3rem;
  height: 3rem;
  min-width: 3rem;
  border-radius: 0.625rem;
  overflow: hidden;
  background: rgb(243 244 246);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
}
.dark .search-result-thumb {
  background: rgb(31 41 55);
}
.search-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Category badge inside result */
.search-category-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  background: rgb(243 244 246);
  color: rgb(75 85 99);
}
.dark .search-category-badge {
  background: rgb(31 41 55);
  color: rgb(156 163 175);
}

/* "View all results" footer row */
.search-footer-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-gold, #ab892f);
  border-top: 1px solid rgb(229 231 235);
  background: rgb(249 250 251);
  transition: background-color 0.12s ease;
  text-decoration: none;
}
.dark .search-footer-link {
  border-top-color: rgb(31 41 55);
  background: rgb(17 24 39);
}
.search-footer-link:hover {
  background: rgb(243 244 246);
}
.dark .search-footer-link:hover {
  background: rgb(31 41 55);
}

/* Recent search pill rows */
.search-recent-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: rgb(75 85 99);
  transition: background-color 0.12s ease;
  border-bottom: 1px solid rgb(243 244 246);
}
.dark .search-recent-item {
  color: rgb(156 163 175);
  border-bottom-color: rgb(31 41 55);
}
.search-recent-item:hover {
  background-color: rgb(249 250 251);
}
.dark .search-recent-item:hover {
  background-color: rgb(17 24 39);
}
.search-recent-item:last-child {
  border-bottom: none;
}

/* Search section header (e.g. "جستجوهای اخیر") */
.search-section-header {
  padding: 0.5rem 1rem 0.25rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: rgb(156 163 175);
  text-transform: uppercase;
}

/* Search backdrop overlay */
#searchOverlay {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.2s ease;
  z-index: 10;
}

/* Clear (×) button inside header search */
#searchClear {
  transition: opacity 0.15s ease, transform 0.15s ease;
}
#searchClear:hover {
  transform: scale(1.1);
}
