/* ==========================================================================
   PRICE ROOTS — Premium Responsive Design System
   Single source of truth for all pages (home, deals, category, product, etc.)
   Builds on design-tokens.css
   ========================================================================== */

/* ── Page Layout ── */
.page-wrapper {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  flex-direction: column;
}

.page-section {
  padding: var(--section-padding);
  position: relative;
}

.page-section-sm {
  padding: 2.5rem 0;
}

/* ── Premium Product Card (used everywhere) ── */
.product-card-premium {
  background: var(--color-bg-card);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-base);
  position: relative;
}

.product-card-premium:hover {
  transform: translateY(-8px);
  border-color: var(--color-brand-light);
  box-shadow: var(--shadow-xl);
}

.product-image-wrap {
  position: relative;
  overflow: hidden;
  padding-top: 120%;
  background: var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.product-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-lg);
  transition: transform var(--transition-slow);
}

.product-card-premium:hover .product-image-wrap img {
  transform: scale(1.06);
}

.product-card-body {
  padding: var(--space-md) var(--space-md) var(--space-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-cat {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: 0.5rem;
  display: block;
}

.product-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-gray-900);
  margin: 0 0 var(--space-sm);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3.9em;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: var(--space-sm) 0 auto;
}

.product-price-current {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-brand);
}

.product-price-original {
  font-size: 0.85rem;
  color: var(--color-gray-400);
  text-decoration: line-through;
}

.product-discount {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-hot);
  background: var(--color-hot-glow);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-md);
}

.product-btn {
  width: 100%;
  padding: 0.7rem;
  background: var(--color-gray-900);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}

.product-btn:hover {
  background: var(--color-brand);
  transform: translateY(-1px);
}

/* ── Product Card Ribbon / Badges ── */
.product-ribbon {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 3;
  transform: rotate(-5deg);
  transform-origin: top left;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  color: var(--color-white);
}

.badge-new { background: var(--color-new); box-shadow: 0 4px 12px 0 var(--color-new-glow); }
.badge-trending { background: var(--color-trending); box-shadow: 0 4px 12px 0 var(--color-trending-glow); }
.badge-hot { background: var(--color-hot); box-shadow: 0 4px 12px 0 var(--color-hot-glow); }

/* ── Responsive Product Grid ── */
.products-grid-premium {
  display: grid;
  gap: var(--space-lg);
  margin: 0 auto;
  max-width: 1400px;
  padding: 0 var(--container-padding);
}

.products-grid-premium.cols-1 { grid-template-columns: repeat(1, 1fr); }
.products-grid-premium.cols-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid-premium.cols-3 { grid-template-columns: repeat(3, 1fr); }
.products-grid-premium.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Main Catalog Grid (with sidebar) ── */
.products-grid-responsive {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
  align-items: start;
}

@media (min-width: 1400px) { .products-grid-responsive { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) and (max-width: 1399px) { .products-grid-responsive { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) and (max-width: 1199px) { .products-grid-responsive { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 576px) and (max-width: 991px)  { .products-grid-responsive { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .products-grid-responsive { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; } }

/* Remove Bootstrap column interference */
.products-grid-responsive > * { width: 100% !important; flex: none !important; padding: 0 !important; }

/* ── Horizontal Deal Track (Swiper) ── */
.home-deals-track {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--color-gray-300) var(--color-gray-100);
  padding-bottom: 1rem;
  margin-bottom: -1rem;
}

.home-deals-track::-webkit-scrollbar { height: 8px; }
.home-deals-track::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 4px; }
.home-deals-track::-webkit-scrollbar-track { background: var(--color-gray-100); }

.home-deals-track .product-card-premium {
  flex: 0 0 auto;
  width: 210px;
  scroll-snap-align: center;
  height: auto;
}

@media (max-width: 991px) {
  .home-deals-track .product-card-premium { width: 170px; }
}
@media (max-width: 576px) {
  .home-deals-track .product-card-premium { width: 150px; }
}

/* ── Section Headers ── */
.section-premium-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-premium-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-brand);
  margin-bottom: var(--space-sm);
}

.section-premium-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: var(--space-sm);
}

.section-premium-header p {
  color: var(--color-gray-500);
  font-size: 1rem;
  max-width: 640px;
  margin: 0 auto;
}

.home-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
  gap: 1rem;
}

.home-section-eyebrow {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-brand);
}

.home-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.02em;
}

.home-section-title .text-primary { color: var(--color-brand); }

.home-section-desc {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  margin: var(--space-sm) 0 0;
  max-width: 600px;
}

/* ── Category Cards ── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--space-lg);
}

.category-card {
  position: relative;
  height: 210px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  text-decoration: none !important;
  color: var(--color-white) !important;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent 50%);
  z-index: 1;
  transition: var(--transition-base);
}

.category-card:hover::before { background: linear-gradient(to top, rgba(0,0,0,0.85), transparent 55%); }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }

.category-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-slow);
}

.category-card:hover img { transform: scale(1.05); }

.category-card-content { position: relative; z-index: 2; }
.category-card h3 { font-size: 1.15rem; margin: 0 0 0.25rem; }
.category-card p { font-size: 0.85rem; opacity: 0.9; margin: 0; }

/* ── Newsletter ── */
.newsletter-premium {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--gradient-brand);
  color: var(--color-white);
  padding: 4rem 2rem;
  text-align: center;
  margin: var(--space-4xl) 0;
  box-shadow: 0 24px 48px -12px var(--color-brand-glow);
}

.newsletter-premium::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 240px; height: 240px;
  background: rgba(255,255,255,0.08);
  border-radius: 50%;
}

.newsletter-premium h2 {
  color: var(--color-white);
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 2;
}

.newsletter-premium p {
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 0.95rem;
}

.newsletter-form button {
  padding: 0.9rem 1.75rem;
  background: var(--color-white);
  color: var(--color-brand-dark);
  border: none;
  border-radius: var(--radius-lg);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.newsletter-form button:hover {
  background: var(--color-gray-100);
  transform: translateY(-2px);
}

@media (max-width: 991px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form button { width: 100%; border-radius: var(--radius-lg); }
}

/* ── Promo Band / CTA ── */
.promo-band {
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.promo-band h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.promo-band p { color: var(--color-gray-500); margin-bottom: var(--space-lg); max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Top Trust Bar (right below hero) ── */
.trust-bar-top {
  background: var(--color-white);
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
  padding: 0.85rem 0;
}

.trust-grid-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

/* ── Trust Bar ── */
.trust-bar-premium {
  padding: var(--space-lg) var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-bottom: none;
  margin: 0;
}

.trust-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  align-items: center;
  justify-content: center;
}

.trust-item-premium {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-600);
  opacity: 0.85;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.trust-item-premium:hover { opacity: 1; }
.trust-item-premium i { color: var(--color-brand); font-size: 0.95rem; }

/* ── Quick Stats ── */
.stat-row {
  display: flex;
  gap: 0;
  margin: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  border-top: 1px solid var(--color-gray-100);
  overflow: hidden;
}

.stat-item {
  flex: 1;
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb,99,102,241),0.04) 0%, transparent 100%);
  padding: var(--space-lg);
  text-align: center;
  transition: var(--transition-base);
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--color-gray-100);
}

.stat-item:hover {
  background: linear-gradient(135deg, rgba(var(--color-brand-rgb,99,102,241),0.08) 0%, transparent 100%);
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.4rem;
  display: block;
}

/* ── Blog Feed Section ── */
.blog-feed-section {
  border-top: 1px solid var(--color-gray-100);
}

.blog-posts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .blog-posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .blog-posts-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.blog-card-premium {
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.blog-card-premium:hover {
  transform: translateY(-4px);
  border-color: var(--color-brand);
  box-shadow: 0 12px 24px rgba(30, 64, 175, 0.08);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.blog-card-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-brand);
  background: rgba(30, 64, 175, 0.08);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}
.blog-card-tag--partner {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.blog-card-date {
  font-size: 0.78rem;
  color: var(--color-gray-500);
  font-weight: 500;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 0.65rem 0;
  color: var(--color-gray-900);
}
.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.blog-card-title a:hover {
  color: var(--color-brand);
}

.blog-card-excerpt {
  color: var(--color-gray-600);
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.blog-card-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-gray-100);
}

.blog-card-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: gap 0.2s ease, color 0.2s ease;
}
.blog-card-link:hover {
  color: #1d4ed8;
  gap: 0.25rem;
}

.blog-feed-compact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.blog-feed-compact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--color-gray-700);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--color-gray-50);
  transition: background 0.2s ease, color 0.2s ease;
}
.blog-feed-compact-link:hover {
  background: rgba(30, 64, 175, 0.06);
  color: var(--color-brand);
}
.blog-feed-compact-link i {
  font-size: 0.72rem;
  opacity: 0.6;
  flex-shrink: 0;
}

/* ── Premium Header Overrides for old classes ── */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    background: var(--gradient-brand);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.35rem;
    filter: drop-shadow(0 4px 6px rgba(30, 64, 175, 0.25));
    transition: var(--transition-base);
}

.logo:hover .logo-icon {
    transform: scale(1.1) rotate(-5deg);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gray-900);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-text span.text-primary {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 1px;
}

.nav-item-mega {
    position: relative;
}

.nav-item-mega .categories-mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-xl) var(--container-padding);
    background: var(--color-white);
    border: 1px solid var(--color-gray-100);
    border-top: 2px solid var(--color-brand);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    z-index: 999;
}

.nav-item-mega:hover .categories-mega-menu,
.nav-item-mega:focus-within .categories-mega-menu,
.nav-item-mega.is-mega-open .categories-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-item-mega.is-active-trail > .nav-categories-trigger,
.nav-categories-trigger.active {
    color: var(--color-brand) !important;
}

.nav-item-mega.is-active-trail > .nav-categories-trigger .nav-chevron,
.nav-categories-trigger.active .nav-chevron {
    color: var(--color-brand) !important;
}

.nav-item-mega .categories-mega-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.nav-item-mega .categories-mega-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.nav-item-mega .categories-mega-parent {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-gray-900);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-brand);
    margin-bottom: var(--space-sm);
}

.nav-item-mega .categories-mega-subs {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.nav-item-mega .categories-mega-subs li a {
    display: block;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    padding: 0.35rem 0;
    transition: var(--transition-fast);
}

.nav-item-mega .categories-mega-subs li a:hover {
    color: var(--color-brand);
    padding-left: 0.4rem;
}

.nav-item-mega .categories-mega-footer {
    margin-top: var(--space-xs);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-gray-100);
}

.nav-item-mega .categories-mega-all {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: var(--color-brand);
    font-size: 0.9rem;
}

.nav-item-mega .categories-mega-all:hover { color: var(--color-brand-dark); }

@media (max-width: 991px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form input[type="email"],
  .newsletter-form button { width: 100%; border-radius: var(--radius-lg); }
  .home-deals-track .product-card-premium { width: 170px; }
}
@media (max-width: 576px) {
  .home-deals-track .product-card-premium { width: 150px; }
  .spotlight-image { height: 110px; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  animation: fadeInUp 0.7s ease-out forwards;
  opacity: 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--color-gray-100); }
::-webkit-scrollbar-thumb { background: var(--color-gray-300); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-gray-400); }

::selection { background: var(--color-brand); color: var(--color-white); }

/* ====================================================================
   HERO SECTION — Premium Refinements
   ==================================================================== */

/* Live Deal Tracker Pill */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem 0.4rem 0.7rem;
  background: rgba(30, 64, 175, 0.07);
  border: 1px solid rgba(30, 64, 175, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-brand);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.status-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16a34a;
  flex-shrink: 0;
  position: relative;
}
.status-pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(22, 163, 74, 0.3);
  animation: pulse-ring 1.5s ease-out infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(0.85); opacity: 0; }
}

/* Inline Hero Search Bar */
.hero-search-bar {
  display: flex;
  align-items: center;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  max-width: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hero-search-bar:focus-within {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 4px var(--color-brand-glow);
}
.hero-search-bar input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: none;
  outline: none;
  font-size: 0.95rem;
  background: transparent;
  color: var(--color-gray-900);
}
.hero-search-bar input::placeholder { color: var(--color-gray-400); }
.hero-search-bar button {
  padding: 0.65rem 1.25rem;
  background: var(--gradient-brand);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: var(--transition-fast);
  margin: 4px;
  border-radius: var(--radius-full);
}
.hero-search-bar button:hover { filter: brightness(1.08); }

/* Quick category chips */
.hero-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.hero-quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.85rem;
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gray-600);
  text-decoration: none;
  transition: var(--transition-fast);
}
.hero-quick-chip:hover {
  border-color: var(--color-brand);
  color: var(--color-brand);
  background: var(--color-brand-glow);
  transform: translateY(-1px);
}

/* Trust badges inside hero */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.8rem;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gray-600);
  box-shadow: var(--shadow-xs);
}
.trust-badge i { color: var(--color-brand); }

/* ── Spotlight Deal Card (Hero Sidebar) ── */
.spotlight-deal-card {
  background: #ffffff;
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 48px -12px rgba(30, 64, 175, 0.14), var(--shadow-lg);
  overflow: hidden;
  transition: var(--transition-base);
}
.spotlight-deal-card:hover {
  transform: translateY(-6px) rotate(0.5deg);
  box-shadow: 0 32px 60px -12px rgba(30, 64, 175, 0.18);
}
.spotlight-header {
  padding: 0.75rem 1.25rem;
  background: var(--color-gray-50);
  border-bottom: 1px solid var(--color-gray-100);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.7rem;
  background: var(--color-accent);
  color: #ffffff;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.spotlight-content {
  padding: 1rem 1.25rem 1.25rem;
  text-align: center;
}
.spotlight-image {
  height: 140px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spotlight-image img {
  max-height: 100%;
  object-fit: contain;
  transition: transform var(--transition-slow);
}
.spotlight-deal-card:hover .spotlight-image img { transform: scale(1.06); }
.spotlight-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-gray-900);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight-price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.spotlight-price .current {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-brand);
}
.spotlight-price .original {
  font-size: 0.9rem;
  color: var(--color-gray-400);
  text-decoration: line-through;
}
.btn-spotlight {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-gray-900);
  color: #ffffff;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  text-align: center;
  transition: var(--transition-base);
}
.btn-spotlight:hover {
  background: var(--color-brand);
  color: #ffffff;
  transform: scale(1.02);
}

/* ── Hero Slide Row ── */
.hero-slide-row {
  min-height: 340px;
  padding: 2rem 0;
}

/* Spotlight visible on tablet too */
@media (min-width: 768px) {
  .spotlight-deal-card { display: block !important; }
}
@media (max-width: 767px) {
  .col-lg-4.spotlight-col { display: none !important; }
}

/* ── Category Mini-Grid (Hero Slide 2 right column) ── */
.hero-category-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hero-cat-tile {
  position: relative;
  height: 110px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-white);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
  transition: var(--transition-base);
  box-shadow: var(--shadow-md);
}
.hero-cat-tile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 60%);
  z-index: 1;
  transition: var(--transition-base);
}
.hero-cat-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform var(--transition-slow);
}
.hero-cat-tile:hover img { transform: scale(1.08); }
.hero-cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.hero-cat-tile span {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
}

/* ── Product Card Stars ── */
.product-stars {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.35rem;
}
.product-stars .star {
  color: #f59e0b;
  font-size: 0.75rem;
}
.product-stars .star-empty { color: var(--color-gray-300); }
.product-stars .rating-count {
  font-size: 0.7rem;
  color: var(--color-gray-400);
  margin-left: 0.25rem;
}

/* ── Product Card: Compact on very small screens ── */
@media (max-width: 400px) {
  .product-card-body { padding: var(--space-xs) var(--space-sm); }
  .product-title { font-size: 0.82rem; min-height: unset; -webkit-line-clamp: 2; }
  .product-price-current { font-size: 1rem; }
  .product-btn { padding: 0.5rem; font-size: 0.8rem; }
}

/* ── Swiper Carousel Navigation Arrows ── */
.carousel-nav-wrapper { position: relative; }
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-calc(50% + 1rem));
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-gray-200);
  color: var(--color-gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-fast);
  z-index: 10;
  font-size: 0.85rem;
}
.carousel-nav-btn:hover {
  background: var(--color-brand);
  color: var(--color-white);
  border-color: var(--color-brand);
  box-shadow: 0 4px 14px rgba(30, 64, 175, 0.3);
}
.carousel-nav-prev { left: -20px; }
.carousel-nav-next { right: -20px; }

@media (max-width: 767px) {
  .carousel-nav-btn { display: none; }
}

/* ── Deal Hero Block ── */
.deals-hero {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 60%, #1e3068 100%);
  color: var(--color-white);
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}
.deals-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 60%);
  pointer-events: none;
}

/* ── Section Padding Utilities ── */
.section-pad { padding: 3.5rem 0; }
.section-pad-sm { padding: 2.5rem 0; }
.section-pad-xs { padding: 1.5rem 0; }

/* ── Catalog Layout Fixes ── */
.catalog-layout { align-items: start; }

/* On desktop the sidebar + main grid: ensure main never overflows */
@media (min-width: 992px) {
  .catalog-products-main { min-width: 0; }
}

/* ════════════════════════════════════════
   Refined Smart Hero Section Styles
   ════════════════════════════════════════ */
.hero-section-smart {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #f0f6ff 0%, #edf4fc 40%, #ffffff 100%);
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid rgba(30, 64, 175, 0.08);
}

/* Ambient mesh glow orbs */
.hero-mesh-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.5;
  will-change: transform;
}

.orb-primary {
  width: 440px;
  height: 440px;
  top: -120px;
  left: -100px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, rgba(37, 99, 235, 0.02) 70%, transparent 100%);
}

.orb-accent {
  width: 400px;
  height: 400px;
  top: 20px;
  right: -80px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, rgba(249, 115, 22, 0.02) 70%, transparent 100%);
}

.orb-coral {
  width: 360px;
  height: 360px;
  bottom: -80px;
  left: 30%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.10) 0%, transparent 70%);
}

.hero-container {
  z-index: 2;
}

.hero-main-row {
  min-height: auto;
  align-items: center;
}

/* Live Pulse Tracker Pill */
.hero-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(30, 64, 175, 0.16);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #1e293b;
  box-shadow: 0 2px 10px rgba(30, 64, 175, 0.05);
  margin-bottom: 0.65rem;
}

.beacon-dot {
  position: relative;
  width: 9px;
  height: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.beacon-point {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  z-index: 1;
}

.beacon-wave {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(16, 185, 129, 0.45);
  border-radius: 50%;
  animation: beacon-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes beacon-ping {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* Smart Headline */
.hero-smart-headline {
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -0.025em;
  color: #0f172a;
  margin-bottom: 0.55rem;
}

.hero-gradient-text {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #f97316 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
}

.hero-smart-subtext {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
  max-width: 540px;
  margin-bottom: 0.85rem;
}

/* Smart Search Bar */
.hero-smart-search-form {
  max-width: 540px;
  margin-bottom: 0.75rem;
}

.smart-search-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid rgba(30, 64, 175, 0.16);
  border-radius: 12px;
  padding: 0.22rem 0.3rem 0.22rem 0.95rem;
  box-shadow: 0 6px 20px -3px rgba(30, 64, 175, 0.08);
  transition: all 0.2s ease;
}

.smart-search-box:focus-within {
  border-color: #2563eb;
  box-shadow: 0 8px 24px -3px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.smart-search-icon {
  font-size: 0.95rem;
  color: #64748b;
  margin-right: 0.65rem;
  flex-shrink: 0;
}

.smart-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 0.88rem;
  color: #0f172a;
  background: transparent;
  padding: 0.35rem 0;
  min-width: 0;
}

.smart-search-input::placeholder {
  color: #94a3b8;
}

.smart-search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.84rem;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.22);
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.smart-search-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(37, 99, 235, 0.30);
}

/* Trending Strip */
.hero-trending-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.85rem;
}

.trending-strip-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.trending-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.45rem;
  align-items: center;
}

.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 0.74rem;
  font-weight: 600;
  color: #475569;
  text-decoration: none;
  transition: all 0.2s ease;
}

.trending-pill:hover {
  border-color: #2563eb;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.04);
  transform: translateY(-1px);
}

.trending-pill.highlight {
  border-color: rgba(239, 68, 68, 0.25);
  background: rgba(254, 242, 242, 0.8);
  color: #dc2626;
}

.trending-pill.highlight:hover {
  border-color: #dc2626;
  background: #fee2e2;
}

/* Trust Metrics */
.hero-trust-metrics {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  padding-top: 0.15rem;
}

.trust-metric-box {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.metric-caption {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-metric-sep {
  width: 1px;
  height: 22px;
  background: rgba(148, 163, 184, 0.3);
}

/* ── Right Column: Spotlight Deal Card Showcase ── */
.hero-spotlight-card-wrapper {
  position: relative;
  max-width: 390px;
  margin: 0 auto;
}

.card-ambient-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at center, rgba(37, 99, 235, 0.18) 0%, rgba(249, 115, 22, 0.08) 60%, transparent 75%);
  filter: blur(20px);
  z-index: 0;
  border-radius: 24px;
}

/* Floating Badges */
.hero-floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 11px;
  box-shadow: 0 8px 18px -3px rgba(30, 64, 175, 0.12), 0 2px 5px rgba(0,0,0,0.03);
  transition: transform 0.3s ease;
}

.hero-floating-badge.badge-top-right {
  top: -12px;
  right: -10px;
  animation: float-soft 4s ease-in-out infinite alternate;
}

.hero-floating-badge.badge-bottom-left {
  bottom: 14px;
  left: -14px;
  animation: float-soft 4s ease-in-out 2s infinite alternate-reverse;
}

@keyframes float-soft {
  0% { transform: translateY(0); }
  100% { transform: translateY(-5px); }
}

.floating-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.bg-success-soft { background: #dcfce7; }
.bg-primary-soft { background: #e0e7ff; }

.floating-badge-info {
  display: flex;
  flex-direction: column;
}

.floating-badge-strong {
  font-size: 0.72rem;
  font-weight: 750;
  color: #0f172a;
  line-height: 1.2;
}

.floating-badge-muted {
  font-size: 0.64rem;
  color: #64748b;
  font-weight: 500;
}

/* Spotlight Glass Card */
.hero-spotlight-glass-card {
  position: relative;
  z-index: 2;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 18px;
  box-shadow: 0 16px 36px -8px rgba(30, 64, 175, 0.14), 0 3px 10px rgba(0,0,0,0.03);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-spotlight-glass-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px -8px rgba(30, 64, 175, 0.20);
}

.spotlight-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.95rem;
  background: linear-gradient(90deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid #e2e8f0;
}

.spotlight-badge-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.spotlight-discount-pill {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.25);
}

.spotlight-card-body {
  padding: 0.75rem 0.95rem 0.65rem;
}

.spotlight-img-container {
  position: relative;
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.spotlight-img {
  max-width: 80%;
  max-height: 85%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.hero-spotlight-glass-card:hover .spotlight-img {
  transform: scale(1.05);
}

.spotlight-store-tag {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 0.64rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
  color: #334155;
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.spotlight-meta-block {
  display: flex;
  flex-direction: column;
}

.spotlight-cat-eyebrow {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #2563eb;
  margin-bottom: 0.2rem;
}

.spotlight-title {
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.28;
  margin-bottom: 0.25rem;
}

.spotlight-title a {
  color: #0f172a;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.spotlight-title a:hover {
  color: #2563eb;
}

.spotlight-rating-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
  font-size: 0.74rem;
}

.rating-stars-inline i {
  color: #f59e0b;
  font-size: 0.7rem;
}

.rating-number {
  font-weight: 800;
  color: #0f172a;
}

.rating-reviews {
  color: #64748b;
}

.spotlight-price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 0.55rem;
}

.spotlight-price-left {
  display: flex;
  flex-direction: column;
}

.price-eyebrow {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
}

.price-figures {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.price-current-main {
  font-size: 1.2rem;
  font-weight: 850;
  color: #2563eb;
  line-height: 1.15;
}

.price-original-main {
  font-size: 0.8rem;
  color: #94a3b8;
  text-decoration: line-through;
}

.spotlight-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  background: #ecfdf5;
  color: #059669;
  font-size: 0.7rem;
  font-weight: 750;
  border: 1px solid #a7f3d0;
}

.btn-spotlight-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-spotlight-action:hover {
  background: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

/* Sub-deals mini strip */
.spotlight-sub-deals {
  padding: 0.45rem 0.95rem 0.55rem;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.sub-deals-title {
  display: block;
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.sub-deals-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}

.sub-deal-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.45rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sub-deal-chip:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.1);
}

.sub-deal-chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  border-radius: 5px;
  background: #f1f5f9;
  flex-shrink: 0;
}

.sub-deal-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sub-deal-name {
  font-size: 0.68rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

.sub-deal-price {
  font-size: 0.72rem;
  font-weight: 750;
  color: #2563eb;
}

/* ── Integrated Trust Strip ── */
.hero-trust-bar-integrated {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(30, 64, 175, 0.12);
  border-radius: 12px;
  box-shadow: 0 4px 16px -3px rgba(30, 64, 175, 0.06);
}

.trust-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 650;
  color: #334155;
  white-space: nowrap;
}

.trust-pill-item i {
  font-size: 0.85rem;
}

/* ── Mobile & Tablet Responsiveness ── */
@media (max-width: 991.98px) {
  .hero-section-smart {
    padding: 2rem 0 1.25rem;
  }
  .hero-col-left {
    text-align: center;
  }
  .hero-pulse-badge {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-smart-subtext {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-smart-search-form {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-trending-strip {
    justify-content: center;
  }
  .hero-trust-metrics {
    justify-content: center;
  }
  .hero-spotlight-card-wrapper {
    margin-top: 1.5rem;
  }
  .hero-floating-badge {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .smart-search-box {
    padding: 0.3rem 0.35rem 0.3rem 0.85rem;
  }
  .smart-search-btn span {
    display: none;
  }
  .smart-search-btn {
    padding: 0.65rem 0.9rem;
  }
  .hero-trust-bar-integrated {
    justify-content: center;
    gap: 0.6rem 1rem;
    padding: 1rem;
  }
  .trust-pill-item {
    font-size: 0.76rem;
  }
  .hero-trust-metrics {
    gap: 0.85rem;
  }
  .metric-number {
    font-size: 1.15rem;
  }
  .metric-caption {
    font-size: 0.68rem;
  }
}

/* ── Mobile-first hero adjustments ── */
@media (max-width: 991px) {
  .hero-section-premium { padding: 3rem 0 2rem; }
  .hero-slide-row { min-height: unset; padding: 1rem 0; }
  .hero-content { max-width: 100%; text-align: center; }
  .hero-search-bar { margin: 0 auto 1rem; }
  .hero-quick-chips { justify-content: center; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 360px; justify-content: center; }
}

@media (max-width: 575px) {
  .hero-status-pill { font-size: 0.72rem; }
  .hero-search-bar input { font-size: 0.88rem; }
  .hero-quick-chips { gap: 0.35rem; }
  .hero-quick-chip { font-size: 0.75rem; padding: 0.28rem 0.7rem; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card { height: 150px; }
  /* Trust grid: horizontal scroll on mobile */
  .trust-grid,
  .trust-grid-top {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 1rem;
    padding: 0.25rem 0;
    scrollbar-width: none;
  }
  .trust-grid::-webkit-scrollbar,
  .trust-grid-top::-webkit-scrollbar { display: none; }
  .trust-item-premium { flex-shrink: 0; }
  /* Stats: stack vertically on small screens */
  .stat-row {
    flex-direction: column;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  }
  .stat-item:not(:last-child)::after {
    right: auto;
    left: 10%;
    top: auto;
    bottom: 0;
    width: 80%;
    height: 1px;
  }
}

/* ── Products Swiper slides: equal height ── */
.products-swiper { overflow: hidden; }
.products-swiper .swiper-slide {
  height: auto;
  align-items: stretch;
}
.products-swiper .swiper-slide > * { width: 100%; }

/* ── Image fallback placeholder ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--color-gray-100) 0%, var(--color-gray-50) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-300);
  font-size: 2rem;
}

/* ── Home Deals Block ── */
.home-deals-block { margin-bottom: 2.5rem; }
.home-deals-block:last-child { margin-bottom: 0; }
.home-deals-block-header { margin-bottom: 1rem; }
.home-deals-block-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
  color: var(--color-gray-900);
}
.home-deals-track-scroll {
  display: flex;
  gap: var(--space-md);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.75rem;
  align-items: stretch;
}
.home-deals-track-scroll > * {
  flex: 0 0 240px !important;
  max-width: 240px !important;
  width: 240px !important;
  scroll-snap-align: start;
}
@media (min-width: 768px) {
  .home-deals-track-scroll > * {
    flex: 0 0 260px !important;
    max-width: 260px !important;
    width: 260px !important;
  }
}
/* ── Home Shop by Collection (Responsive Grid & Tabs) ── */
.home-collection-section {
  background: var(--color-white);
  border-top: 1px solid rgba(30, 64, 175, 0.08);
  border-bottom: 1px solid rgba(30, 64, 175, 0.08);
}

.collection-nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin-bottom: 2rem;
  align-items: center;
}

.collection-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.collection-tab i {
  font-size: 0.8rem;
  color: #64748b;
  transition: color 0.2s ease;
}

.collection-tab:hover {
  background: #ffffff;
  border-color: var(--color-brand);
  color: var(--color-brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 64, 175, 0.08);
}
.collection-tab:hover i {
  color: var(--color-brand);
}

.collection-tab.active {
  background: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.22);
}
.collection-tab.active i {
  color: #ffffff !important;
}

/* Collection Grid: 5 cols (xxl), 4 cols (lg), 3 cols (md), 2 cols (sm/xs) */
.home-collection-grid {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .home-collection-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.35rem;
  }
}

@media (min-width: 992px) {
  .home-collection-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .home-collection-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
  }
}

/* Ensure product cards in home-collection-grid take 100% cell space & align uniformly */
.home-collection-grid > * {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;
  margin: 0 !important;
}

.home-collection-grid .product-card-premium {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-collection-grid .product-card-premium .product-image-wrap {
  padding-top: 100%; /* Clean square ratio */
}

/* Collection Pagination */
.collection-pagination-wrap {
  padding-top: 1.5rem;
}

.collection-pagination .page-link {
  color: var(--color-gray-700);
  border: 1px solid var(--color-gray-200);
  padding: 0.5rem 0.95rem;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  margin: 0 0.2rem;
  transition: all 0.2s ease;
  background: #ffffff;
}

.collection-pagination .page-link:hover {
  background: rgba(30, 64, 175, 0.06);
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.collection-pagination .page-item.active .page-link {
  background: var(--color-brand) !important;
  border-color: var(--color-brand) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 8px rgba(30, 64, 175, 0.25);
}

.collection-pagination .page-item.disabled .page-link {
  background: #f8fafc;
  border-color: var(--color-gray-200);
  color: var(--color-gray-400);
}

/* ── Deals Page Grid (Full-width, responsive) ── */
.deals-products-grid {
  display: grid !important;
  gap: 1.25rem;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 576px)  { .deals-products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .deals-products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px)  { .deals-products-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1400px) { .deals-products-grid { grid-template-columns: repeat(5, 1fr); } }
.deals-products-grid > * { width: 100% !important; flex: none !important; padding: 0 !important; }

/* ════════════════════════════════════════
   Responsive Footer  — CSS Grid layout
   ════════════════════════════════════════ */
.site-footer {
  --footer-bg:           linear-gradient(180deg, #f8fafc 0%, #edf2f9 100%);
  --footer-text:         #3d4a5c;
  --footer-muted:        #64748b;
  --footer-heading-clr:  #1e293b;
  --footer-border:       rgba(30,64,175,0.09);
  --footer-link:         #475569;
  --footer-link-hover:   var(--color-brand);

  background:  var(--footer-bg) !important;
  color:       var(--footer-text) !important;
  border-top:  1px solid var(--footer-border);
  box-shadow:  inset 0 3px 0 0 var(--color-brand);
  padding:     3.5rem 0 1.5rem;
  margin-top:  3rem;
}

/* 4-column grid: brand (wide) + 3 link columns */
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--footer-border);
}

/* Brand column */
.footer-col-brand { }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--footer-heading-clr);
  text-decoration: none;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  transition: color 0.2s;
}
.footer-logo:hover { color: var(--footer-link-hover); }
.footer-logo-icon  { width: 2.25rem; height: 2.25rem; object-fit: contain; flex-shrink: 0; }
.footer-logo-text  { line-height: 1.2; }
.footer-logo-text .text-primary { color: var(--color-brand); }

.footer-tagline {
  color: var(--footer-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 26rem;
  margin-bottom: 1.1rem;
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
}

.footer-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--footer-text);
  white-space: nowrap;
  padding: 0.32rem 0.7rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(30,64,175,0.12);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(30,64,175,0.04);
}
.footer-trust-item i { color: var(--color-brand); font-size: 0.75rem; }

/* Heading */
.footer-heading,
.site-footer .footer-heading {
  font-size: 0.72rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--footer-heading-clr) !important;
  margin-bottom: 1rem !important;
  padding-bottom: 0 !important;
}

.footer-heading::after,
.site-footer .footer-heading::after {
  display: block;
  content: '';
  width: 1.5rem;
  height: 2px;
  margin-top: 0.45rem;
  background: var(--color-brand);
  border-radius: 1px;
}

/* Links */
.footer-links { margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.55rem; }
.footer-links a {
  color: var(--footer-link);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s, transform 0.15s;
}
.footer-links a:hover {
  color: var(--footer-link-hover);
  transform: translateX(3px);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.4rem;
}

.footer-copyright {
  font-size: 0.8rem;
  color: var(--footer-muted);
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.1rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--footer-link);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--footer-link-hover); }

/* ── Responsive breakpoints ── */

/* Tablet: 2-column grid */
@media (max-width: 991.98px) {
  .site-footer { padding: 3rem 0 1.5rem; }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 2rem;
  }
  .footer-col-brand {
    grid-column: 1 / -1; /* brand spans both columns */
  }
  .footer-tagline { max-width: 100%; }
}

/* Mobile: single column */
@media (max-width: 575.98px) {
  .site-footer { padding: 2.5rem 0 1.25rem; margin-top: 2rem; }
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .footer-col-brand { grid-column: auto; }
  .footer-brand { text-align: center; }
  .footer-logo  { justify-content: center; }
  .footer-tagline { margin: 0 auto 1rem; text-align: center; }
  .footer-trust { justify-content: center; }
  .footer-heading::after { margin: 0.45rem auto 0; }
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
  }
  .footer-legal { justify-content: center; gap: 0.75rem; }
}

