/* ============================================================
   KORE Shop — Main Stylesheet
   Primary: #15537E (KORE.CO brand blue)  |  Font: Poppins
   ============================================================ */

:root {
  --primary: #15537e;
  --primary-dark: #0f3d5e;
  --primary-light: #e8f0f6;
  --accent: #e8951f;

  /* Product source badges — warehouse vs D&H dropship */
  --source-warehouse-bg: #e8f0f6;
  --source-warehouse-fg: #15537e;
  --source-dandh-bg: #fdf1e0;
  --source-dandh-fg: #9a5b06;
  --dark: #1a1a1a;
  --dark-2: #2d2d2d;
  --gray-1: #f5f5f5;
  --gray-2: #d1d1d1;
  --card-radius: 6px;
  --gray-3: #d0d0d0;
  --gray-4: #999;
  --gray-5: #666;
  --text: #212121;
  --text-light: #555;
  --white: #ffffff;
  --success: #22a86c;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 30px rgba(0, 0, 0, 0.12);
  --transition: 0.25s ease;
  --header-h: 64px;
  --subheader-h: 44px;
}

/* ── Container override ────────────────────────────────────── */
.container {
  max-width: 1280px !important;
  width: 100%;
}

@media (max-width: 1280px) {
  .container {
    max-width: 100% !important;
  }
}

/* ── Reset & Base ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
img {
  max-width: 100%;
  display: block;
}
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* ── Announcement Bar ──────────────────────────────────────── */
.announcement-bar {
  background: var(--dark);
  color: #ccc;
  font-size: 12px;
  font-weight: 500;
  padding: 8px 0;
  letter-spacing: 0.3px;
}
.announcement-bar .separator {
  opacity: 0.4;
}

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  background: transparent;
  z-index: 1000;
}

/* Dark top bar */
.header-main {
  background: #1c1c1c;
}

.header-inner {
  height: var(--header-h);
  gap: 32px;
}

/* Hamburger */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Logo */
.navbar-brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
.brand-smart {
  color: var(--white);
}
.brand-box {
  color: var(--primary);
}

/* Search */
.search-wrapper {
  position: relative;
  max-width: 560px;
}
.search-form {
  width: 100%;
}
.search-inner {
  display: flex;
  align-items: center;
  border: none;
  border-radius: 50px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow var(--transition);
}
.search-inner:focus-within {
  box-shadow: 0 0 0 3px rgba(21, 83, 126, 0.35);
}
.search-inner input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 18px;
  font-size: 14px;
  font-family: "Poppins", sans-serif;
  outline: none;
  color: var(--text);
}
.search-inner input::placeholder {
  color: var(--gray-4);
}
.search-btn {
  width: 44px;
  height: 44px;
  background: transparent;
  color: var(--gray-4);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: color var(--transition);
  flex-shrink: 0;
  padding-right: 14px;
}
.search-btn:hover {
  color: var(--primary);
}

/* Header Action Icons */
.hdr-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 22px;
  padding: 4px;
  transition: color var(--transition);
  text-decoration: none;
}
.hdr-icon-btn:hover {
  color: var(--primary);
}

.hdr-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #1c1c1c;
}

.hdr-account-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.hdr-account-btn i {
  font-size: 20px;
}
.hdr-account-btn:hover {
  color: var(--primary);
}

/* Mobile search row */
.header-search-mobile {
  padding: 0 0 10px;
  display: none;
}
.header-search-mobile.open {
  display: block;
}
.header-search-mobile .search-inner {
  background: rgba(255, 255, 255, 0.12);
}
.header-search-mobile .search-inner input {
  color: var(--white);
}
.header-search-mobile .search-inner input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}
.header-search-mobile .search-btn {
  color: rgba(255, 255, 255, 0.7);
}

/* Sub Navigation — inside container, aligned with sidebar+hero */
.sub-nav {
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 0;
}
.sub-nav-inner {
  height: var(--subheader-h);
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0 !important;
}
.sub-nav-inner::-webkit-scrollbar {
  display: none;
}

/* Categories button — same width as sidebar */
.subnav-categories-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 20px 0 0;
  height: var(--subheader-h);
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
  white-space: nowrap;
}
.subnav-categories-btn i {
  font-size: 20px;
}
.subnav-categories-btn:hover {
  color: var(--primary-dark);
}

.subnav-link {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-light);
  padding: 4px 8px;
  height: var(--subheader-h);
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  transition:
    color var(--transition),
    border-color var(--transition);
}
.subnav-link:hover,
.subnav-link.active {
  color: var(--primary);
  border-color: var(--primary);
}
.sale-link {
  color: var(--primary) !important;
  font-weight: 700;
}
.sale-badge {
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  margin-left: 4px;
}
.apple-link {
  display: inline-flex;
  align-items: center;
}

/* ── Top Section (sidebar + hero only) ────────────────────── */
.top-section {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-top: 16px;
  padding-bottom: 20px;
}

.hero-area {
  flex: 1;
  min-width: 0;
}

/* ── Sidebar (scoped to top-section only) ──────────────────── */
.sidebar {
  width: 300px;
  flex-shrink: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible; /* let mega submenus escape */
  position: relative;
  z-index: 20;
  transition: transform var(--transition);
  /* NOT sticky — only sits beside the hero */
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  font-weight: 700;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-2);
}
.sidebar-close {
  background: none;
  border: none;
  font-size: 18px;
  color: var(--gray-5);
  cursor: pointer;
  transition: color var(--transition);
}
.sidebar-close:hover {
  color: var(--primary);
}

.sidebar-menu {
  padding: 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
  transition:
    background var(--transition),
    color var(--transition);
  cursor: pointer;
  position: relative;
}
.sidebar-link i:first-child {
  font-size: 16px;
  color: var(--gray-5);
  flex-shrink: 0;
}
.sidebar-link span {
  flex: 1;
  line-height: 1.3;
}
.sidebar-link .arrow {
  font-size: 12px;
  color: var(--gray-4);
  margin-left: auto;
  transition: transform var(--transition);
}
.sidebar-link:hover,
.sidebar-item.active > .sidebar-link {
  background: var(--primary-light);
  color: var(--primary);
}
.sidebar-link:hover i:first-child,
.sidebar-item.active > .sidebar-link i:first-child {
  color: var(--primary);
}
.sidebar-item.active > .sidebar-link .arrow {
  transform: rotate(90deg);
}

/* ── Sidebar Submenu — Gjirafa-style mega flyout ─────────── */
.sidebar-item {
  /* No position: relative — positioning parent for submenus is .sidebar */
}

.sidebar-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  z-index: 200;
  min-height: 100%;
  width: 860px; /* overridden by JS to match hero-area exactly */
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  pointer-events: none;
  display: flex;
  flex-direction: column;
}
.sidebar-item:hover .sidebar-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.submenu-inner {
  background: var(--white);
  border: 1px solid var(--gray-2);
  border-left: none;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 6px 4px 28px rgba(0, 0, 0, 0.1);
  padding: 28px 32px;
  display: flex;
  align-items: stretch;
  flex: 1;
  gap: 0;
  overflow: hidden;
}

.submenu-col {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
  border-right: 1px solid #f0f0f0;
}

.submenu-col:not(:first-child) {
  padding-left: 24px;
}

.submenu-col:last-child {
  border-right: none;
  padding-right: 0;
}
.submenu-col h6 {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  margin-bottom: 11px;
  letter-spacing: 0;
  text-transform: none;
}
.submenu-col ul {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}
.submenu-col ul li a {
  display: block;
  font-size: 13px;
  color: var(--text-light);
  padding: 3px 0;
  transition: color var(--transition);
}
.submenu-col ul li a:hover {
  color: var(--primary);
}
.submenu-view-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.15s;
}
.submenu-view-more:hover {
  gap: 7px;
  text-decoration: none;
}
.submenu-view-more i {
  font-size: 11px;
}

.submenu-banner {
  margin-left: auto;
  flex-shrink: 0;
  width: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  align-self: stretch;
}
.submenu-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-sm);
  display: block;
  transition: transform 0.35s ease;
}
.submenu-banner:hover img {
  transform: scale(1.05);
}

/* Sidebar Overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.sidebar-overlay.active {
  display: block;
}

/* Mobile sidebar */
@media (max-width: 991px) {
  /* On tablet/mobile: sidebar becomes an off-canvas drawer */
  .top-section {
    padding-top: 16px;
  }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 280px;
    max-height: 100vh;
    border-radius: 0;
    z-index: 1001;
    transform: translateX(-100%);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--gray-3) transparent;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .sidebar-submenu {
    position: static;
    width: 100%;
    display: none !important;
  }
  .sidebar-item.open .sidebar-submenu {
    display: block !important;
  }
  .submenu-inner {
    flex-wrap: wrap;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--gray-2);
    border-radius: 0;
    padding: 12px 16px;
    background: var(--gray-1);
  }
  /* Hero takes full width on mobile since sidebar is off-canvas */
  .hero-area {
    flex: 1;
    width: 100%;
  }
}

/* ── Hero Area ─────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 340px;
  margin-bottom: 12px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 40px 60px;
  gap: 20px;
}

.hero-text {
  color: var(--white);
  flex: 1;
}
.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.hero-text h1 {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.85);
}
.hero-text h1 strong {
  color: var(--white);
  font-weight: 800;
}
.hero-text p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
}
.hero-percent {
  color: var(--primary);
  font-weight: 700;
  font-size: 20px;
}

.btn-hero {
  padding: 12px 30px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-image {
  position: relative;
  flex-shrink: 0;
  width: 420px;
  text-align: center;
}
.hero-image img {
  max-height: 300px;
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}
.hero-badge {
  position: absolute;
  top: 20px;
  right: 0;
  background: #2196f3;
  color: var(--white);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 4px 20px rgba(33, 150, 243, 0.4);
  animation: pulse 2s infinite;
}
.hero-badge span {
  font-size: 11px;
  opacity: 0.9;
}
.hero-badge strong {
  font-size: 22px;
  line-height: 1;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

/* Slider Controls */
.hero-prev,
.hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  z-index: 5;
}
.hero-prev {
  left: 16px;
}
.hero-next {
  right: 16px;
}
.hero-prev:hover,
.hero-next:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 5;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition:
    background var(--transition),
    transform var(--transition);
}
.hero-dot.active {
  background: var(--white);
  transform: scale(1.4);
}

/* Mini Banners */
.mini-banners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.mini-banner {
  border-radius: var(--radius);
  overflow: hidden;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  position: relative;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
}
.mini-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.mini-banner img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 110px;
  width: 200px;
  object-fit: cover;
  opacity: 0.7;
}
.mini-banner-text {
  position: relative;
  z-index: 1;
  color: var(--white);
}
.mini-banner-text span {
  font-size: 12px;
  opacity: 0.8;
  display: block;
  margin-bottom: 4px;
}
.mini-banner-text strong {
  font-size: 15px;
  font-weight: 700;
  display: block;
  line-height: 1.3;
}

/* ── Trust Section ─────────────────────────────────────────── */
.trust-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 24px;
  position: relative;
}
.trust-section::after {
  content: "";
  display: block;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff8a50, var(--primary));
  border-radius: 0 0 var(--radius) var(--radius);
}
.trust-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 180px;
}
.trust-icon {
  font-size: 28px;
  color: var(--primary);
  flex-shrink: 0;
}
.trust-text strong {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
}
.trust-text span {
  font-size: 12px;
  color: var(--gray-5);
}
.trust-divider {
  width: 1px;
  height: 40px;
  background: var(--gray-2);
  flex-shrink: 0;
}

/* ── Section Base ──────────────────────────────────────────── */
.section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
}

/* Spacing between sections */
main > section + section {
  margin-top: 20px;
}
main > section:last-child {
  margin-bottom: 40px;
}
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  padding-left: 14px;
}
.section-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 4px;
  background: var(--primary);
  border-radius: 2px;
}
.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}
.view-all-link:hover {
  gap: 8px;
}

/* ── Product Tabs ──────────────────────────────────────────── */
.product-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--gray-2);
  margin-bottom: 20px;
}
.product-tabs::-webkit-scrollbar {
  display: none;
}
.tab-btn {
  white-space: nowrap;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-5);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color var(--transition),
    border-color var(--transition);
  font-family: "Poppins", sans-serif;
  cursor: pointer;
}
.tab-btn:hover {
  color: var(--primary);
}
.tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

/* ── Products Grid ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

@media (max-width: 811px) {
  .products-grid {
    gap: 0.5rem;
  }
}

/* All Products grid */
.all-products-section .products-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

@media (max-width: 1280px) {
  .all-products-section .products-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 811px) {
  .all-products-section .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .all-products-section .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Product Card ──────────────────────────────────────────── */
.product-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  transition: box-shadow var(--transition);
}
/* All Products section keeps a subtle border */
.all-products-section .product-card {
  border: 1px solid #d1d1d1;
}
.all-products-section .product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #d1d1d1;
}
/* Recommended section: no outer box, cards have border */
.recommended-section,
.promo-banner-section {
  padding: 20px 0;
  background: #fff;
}

.recommended-section .product-card {
  border: 1px solid #d1d1d1;
}
.recommended-section .product-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-color: #d1d1d1;
}

/* ── Card Badges — inside .product-image-wrap (which is relative) ── */
.card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}
.badge-new {
  background: var(--success);
}
.badge-24h {
  background: var(--primary);
}
.badge-sold {
  background: var(--dark);
}
.badge-hot {
  background: #f44336;
}
.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ── Card Actions (wishlist + cart icons) — bottom-right of image ── */
.card-actions {
  position: absolute;
  bottom: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  gap: 6px;
}

.card-wishlist,
.card-cart-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #d1d1d1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #888;
  transition: all var(--transition);
  cursor: pointer;
  flex-shrink: 0;
}
.card-wishlist:hover {
  color: #e53935;
  border-color: #e53935;
  background: #fff0f0;
}
.card-wishlist.active {
  color: #e53935;
  border-color: #e53935;
  background: #fff0f0;
}
.card-wishlist.active i {
  font-weight: 900;
}
.card-cart-icon:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}
.card-cart-icon:disabled,
.card-cart-icon.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── Product Image ─────────────────────────────────────────── */
.product-image-wrap {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative; /* needed so wishlist positions inside it */
}
.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-image-wrap img {
  transform: scale(1.05);
}

/* ── Product Info ──────────────────────────────────────────── */
.product-info {
  padding: 8px 10px 14px;
}

.product-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 36px;
}

/* Price row: price + discount badge on same line */
.product-pricing {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
}
.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.product-discount {
  font-size: 11px;
  font-weight: 700;
  background: var(--primary-light);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}
/* Old price on its own line below */
.product-old-price {
  display: block;
  font-size: 12px;
  color: var(--gray-4);
  text-decoration: line-through;
  margin-top: 1px;
}

/* Stars — kept for All Products section */
.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
}
.stars {
  color: #ffc107;
  font-size: 12px;
  letter-spacing: 1px;
}
.rating-count {
  font-size: 11px;
  color: var(--gray-5);
}

/* .btn-add-cart — kept only for Special Offers section */
.btn-add-cart {
  width: 100%;
  padding: 8px;
  background: var(--gray-1);
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition);
  margin-top: 8px;
}
.btn-add-cart:hover,
.btn-add-cart:focus {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.btn-add-cart.adding {
  background: var(--success);
  border-color: var(--success);
  color: var(--white);
}

/* ── Promo Banner — image only ─────────────────────────────── */
.promo-banner-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.promo-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  transition: opacity var(--transition);
}
.promo-banner-link:hover .promo-banner-img {
  opacity: 0.93;
}

/* ── Special Offers ────────────────────────────────────────── */
.special-offers-section {
  padding: 20px 0;
}
.special-offers-section .d-flex {
  margin-bottom: 16px;
}

.special-offers-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

/* ── Left: featured slider — own card ─────────────────────── */
.special-featured {
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  padding: 24px 20px 20px;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* wishlist — top right of featured card */
.sf-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

/* slider arrows */
.sf-prev,
.sf-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #e2e2e2;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  z-index: 3;
  transition: all var(--transition);
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
.sf-prev {
  left: 12px;
}
.sf-next {
  right: 12px;
}
.sf-prev:hover,
.sf-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.sf-img-link {
  display: block;
  width: 100%;
}
.special-featured-img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}
.sf-img-link:hover .special-featured-img {
  transform: scale(1.03);
}

.special-featured-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--dark);
  line-height: 1.4;
}
.special-featured-name a {
  color: inherit;
}
.special-featured-name a:hover {
  color: var(--primary);
}

.special-featured-price {
  font-size: 20px;
  font-weight: 800;
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.special-featured-old {
  font-size: 13px;
  text-decoration: line-through;
  color: var(--gray-4);
  font-weight: 400;
}
.special-save {
  font-size: 13px;
  color: var(--success);
  font-weight: 500;
  margin-bottom: 16px;
}

.btn-add-cart-lg {
  padding: 10px 28px;
  background: var(--white);
  border: 1px solid #e2e2e2;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
  cursor: pointer;
  margin-top: 4px;
}
.btn-add-cart-lg:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Right: scrollable list — own card ─────────────────────── */
.special-list {
  display: flex;
  flex-direction: column;
  max-height: 420px;
  overflow-y: auto;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: var(--white);
  scrollbar-width: thin;
  scrollbar-color: #d1d1d1 transparent;
}
.special-list::-webkit-scrollbar {
  width: 6px;
}
.special-list::-webkit-scrollbar-track {
  background: transparent;
}
.special-list::-webkit-scrollbar-thumb {
  background: #d1d1d1;
  border-radius: 3px;
}

.special-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e2e2;
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}
.special-list-item:last-child {
  border-bottom: none;
}
.special-list-item:hover {
  background: #fafafa;
}
.special-list-item.active {
  border-left-color: var(--primary);
  background: var(--primary-light);
}

.special-item-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  background: var(--gray-1);
  border-radius: 4px;
  padding: 4px;
}
.special-item-info {
  flex: 1;
  min-width: 0;
}
.special-item-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.special-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.special-item-old {
  font-size: 11px;
  text-decoration: line-through;
  color: var(--gray-4);
  font-weight: 400;
}

/* ── Most Searched ─────────────────────────────────────────── */
.most-searched-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.searched-card {
  background: var(--gray-1);
  border-radius: var(--radius);
  border: 1px solid var(--gray-2);
  overflow: hidden;
  padding: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  min-height: 160px;
  transition:
    box-shadow var(--transition),
    transform var(--transition);
  position: relative;
  text-decoration: none;
}
.searched-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.searched-card.featured {
  border-color: var(--primary);
}
.searched-card-info {
  position: relative;
  z-index: 1;
}
.searched-card-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}
.btn-buy-now {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--gray-3);
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}
.btn-buy-now.active,
.searched-card:hover .btn-buy-now {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.searched-card img {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 140px;
  height: 110px;
  object-fit: contain;
  transition: transform var(--transition);
}
.searched-card:hover img {
  transform: scale(1.05);
}

/* ── Brands ────────────────────────────────────────────────── */
.brands-section {
  padding: 0;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.brand-card {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  padding: 18px 16px;
  background: var(--white);
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  min-height: 80px;
}
.brand-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 12px rgba(21, 83, 126, 0.1);
}
.brand-card img {
  max-height: 44px;
  width: 100%;
  object-fit: contain;
}

@media (max-width: 991px) {
  .brands-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 480px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Custom Select ─────────────────────────────────────────── */
.custom-select {
  position: relative;
  min-width: 180px;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  user-select: none;
}

.custom-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid #d1d1d1;
  border-radius: 6px;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  color: var(--text);
  cursor: pointer;
  transition:
    border-color var(--transition),
    box-shadow var(--transition);
  white-space: nowrap;
}
.custom-select-btn:hover,
.custom-select.open .custom-select-btn {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21, 83, 126, 0.1);
}

.custom-select-arrow {
  font-size: 11px;
  color: var(--gray-5);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.custom-select.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.custom-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: var(--white);
  border: 1px solid #d1d1d1;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 300;
  list-style: none;
  padding: 6px 0;
  margin: 0;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.custom-select.open .custom-select-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.custom-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition:
    background var(--transition),
    color var(--transition);
  white-space: nowrap;
}
.custom-select-option:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.custom-select-option.active {
  color: var(--primary);
  font-weight: 600;
}
.custom-select-option .bi-check-lg {
  font-size: 14px;
  color: var(--primary);
  opacity: 0;
  flex-shrink: 0;
}
.custom-select-option.active .bi-check-lg {
  opacity: 1;
}

.btn-load-more {
  padding: 12px 36px;
  border: 2px solid var(--gray-3);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  background: var(--white);
  font-family: "Poppins", sans-serif;
  transition: all var(--transition);
}
.btn-load-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Bootstrap Primary Override ───────────────────────────── */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #bbb;
  margin-top: 40px;
}

.footer-top {
  padding: 50px 0 40px;
}

.footer-brand .navbar-brand {
  font-size: 24px;
}
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
  margin-top: 10px;
  margin-bottom: 16px;
}
.footer-socials {
  display: flex;
  gap: 10px;
}
.footer-socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 15px;
  transition: all var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
  color: var(--white);
}

.footer-heading {
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links a {
  font-size: 13px;
  color: #888;
  transition: color var(--transition);
}
.footer-links a:hover {
  color: var(--primary);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
}
.footer-contact i {
  color: var(--primary);
  margin-top: 2px;
  flex-shrink: 0;
}
.footer-contact a {
  color: #888;
  transition: color var(--transition);
}
.footer-contact a:hover {
  color: var(--primary);
}

.app-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  color: #ccc;
  font-size: 14px;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.04);
}
.app-btn:hover {
  border-color: var(--primary);
  color: var(--white);
  background: rgba(21, 83, 126, 0.12);
}
.app-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.app-btn small {
  font-size: 10px;
  color: #888;
}

.footer-middle {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
}
.footer-payments {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-payments span {
  font-size: 12px;
  color: #666;
  font-weight: 600;
}
.payment-icons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.payment-icon {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 0;
  font-size: 12px;
  color: #555;
}
.footer-legal-links {
  display: flex;
  gap: 16px;
}
.footer-legal-links a {
  color: #555;
  font-size: 12px;
  transition: color var(--transition);
}
.footer-legal-links a:hover {
  color: var(--primary);
}

/* ── Cart Drawer ───────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 380px;
  background: var(--white);
  box-shadow: -4px 0 30px rgba(0, 0, 0, 0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.cart-drawer.open {
  transform: translateX(0);
}
.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--gray-2);
}
.cart-drawer-header h5 {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}
.cart-close {
  font-size: 18px;
  color: var(--gray-5);
  transition: color var(--transition);
}
.cart-close:hover {
  color: var(--primary);
}
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.cart-empty {
  text-align: center;
  padding: 40px 20px;
}
.cart-empty i {
  font-size: 48px;
  color: var(--gray-3);
  display: block;
  margin-bottom: 12px;
}
.cart-empty p {
  color: var(--gray-5);
  margin-bottom: 16px;
}
.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-2);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--gray-1);
  border-radius: var(--radius-sm);
  padding: 4px;
  flex-shrink: 0;
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 4px;
  line-height: 1.4;
}
.cart-item-price {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.qty-btn {
  width: 24px;
  height: 24px;
  border: 1px solid var(--gray-3);
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dark);
  background: var(--white);
  transition: all var(--transition);
}
.qty-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}
.qty-value {
  font-size: 13px;
  font-weight: 600;
  min-width: 24px;
  text-align: center;
}
.cart-item-remove {
  color: var(--gray-4);
  font-size: 14px;
  transition: color var(--transition);
  cursor: pointer;
  align-self: flex-start;
}
.cart-item-remove:hover {
  color: #e53935;
}
.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--gray-2);
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Checkout button */
.cart-drawer-footer .btn-cart-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.3px;
}
.cart-drawer-footer .btn-cart-checkout:hover {
  background: var(--primary-dark);
  box-shadow: 0 6px 20px rgba(225,87,38,.35);
  transform: translateY(-1px);
  color: #fff;
}

/* View Cart link */
.cart-drawer-footer .btn-cart-view {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--gray-2);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
}
.cart-drawer-footer .btn-cart-view:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}
.cart-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1999;
}
.cart-overlay.active {
  display: block;
}

/* ── Back to Top ───────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(21, 83, 126, 0.4);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 500;
  border: none;
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ── Toast ─────────────────────────────────────────────────── */
#cartToast {
  background: var(--dark);
  border-radius: var(--radius-sm);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .hero-content {
    padding: 30px 40px;
  }
  .hero-text h1 {
    font-size: 30px;
  }
  .hero-image {
    width: 320px;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */

/* Large desktop: sidebar visible inline */
@media (min-width: 992px) {
  .sidebar {
    /* natural height = matches hero area */
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
}

/* Tablet */
@media (max-width: 1199px) {
  .hero-content {
    padding: 28px 36px;
  }
  .hero-text h1 {
    font-size: 28px;
  }
  .hero-image {
    width: 300px;
  }
}

/* Tablet portrait — sidebar becomes off-canvas */
@media (max-width: 991px) {
  .top-section {
    padding-top: 14px;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: flex;
    flex-direction: column;
  }
  .hero-slider {
    height: 280px;
  }
  .hero-content {
    padding: 24px 30px;
  }
  .hero-text h1 {
    font-size: 24px;
  }
  .hero-image {
    width: 220px;
  }
  .mini-banners {
    grid-template-columns: 1fr 1fr;
  }
  .mini-banners .mini-banner:last-child {
    display: none;
  }
  .special-offers-layout {
    grid-template-columns: 1fr;
  }
  .most-searched-grid {
    grid-template-columns: 1fr 1fr;
  }
  .trust-grid {
    flex-direction: row;
    justify-content: space-around;
  }
  .trust-divider {
    display: none;
  }
  /* 4 columns on tablet */
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .all-products-section .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

/* Mobile */
@media (max-width: 767px) {
  .announcement-bar {
    display: none;
  }
  .sub-nav {
    display: none;
  }
  .subnav-categories-btn {
    display: none;
  }
  .header-inner {
    height: 54px;
    gap: 10px;
  }
  .navbar-brand {
    font-size: 20px;
  }
  .search-wrapper {
    max-width: 100%;
  }
  .hero-slider {
    height: 210px;
  }
  .hero-content {
    padding: 18px 20px;
  }
  .hero-text h1 {
    font-size: 19px;
  }
  .hero-text p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  .hero-image {
    width: 150px;
  }
  .hero-badge {
    width: 68px;
    height: 68px;
  }
  .hero-badge strong {
    font-size: 16px;
  }
  .btn-hero {
    padding: 9px 18px;
    font-size: 12px;
  }
  .mini-banners {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .mini-banners .mini-banner {
    height: 90px;
    display: flex;
  }
  .most-searched-grid {
    grid-template-columns: 1fr 1fr;
  }
  /* 2 columns on mobile */
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .all-products-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .promo-text h2 {
    font-size: 28px;
  }
  .promo-banner-content {
    padding: 24px;
  }
  .section {
    padding: 16px;
  }
  .brands-strip {
    justify-content: center;
  }
  .cart-drawer {
    width: 100%;
  }
  .trust-grid {
    gap: 10px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 16px;
  }
  .hero-image {
    width: 120px;
  }
  .hero-badge {
    display: none;
  }
  .most-searched-grid {
    grid-template-columns: 1fr;
  }
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Skeleton Loader ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-1) 25%,
    var(--gray-2) 50%,
    var(--gray-1) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Utilities ─────────────────────────────────────────────── */
.text-primary-color {
  color: var(--primary);
}
.bg-primary-light {
  background: var(--primary-light);
}
.fw-800 {
  font-weight: 800;
}
.gap-xs {
  gap: 4px;
}

/* Search suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-2);
  z-index: 500;
  overflow: hidden;
  display: none;
}
.search-suggestions.show {
  display: block;
}
.suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background var(--transition);
  font-size: 13px;
}
.suggestion-item:hover {
  background: var(--primary-light);
  color: var(--primary);
}
.suggestion-item i {
  color: var(--gray-4);
  font-size: 14px;
}
