/* ============================================
   COMPONENT STYLES - UI ELEMENTS
   ============================================ */

/* ==================== TOP BAR ==================== */
.top-bar {
  background-color: var(--dark);
  color: var(--white);
  font-size: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar__promo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-bar__promo i {
  color: var(--white);
}

.top-bar__link {
  color: var(--white);
  font-size: 13px;
  transition: opacity var(--transition-fast);
}

.top-bar__link:hover {
  color: var(--white);
  opacity: 0.8;
}

.top-bar__dropdown {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--white);
  background: transparent;
  font-size: 13px;
  cursor: pointer;
}

/* ==================== LOGO ==================== */
.logo {
  display: flex;
  align-items: center;
}

.logo__text {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

/* ==================== SEARCH BAR ==================== */
.header {
  background-color: #172337;
  padding: 16px 0;
}

.search-bar {
  display: flex;
  align-items: center;
  position: relative;
  background: var(--white);
  border-radius: var(--radius-sm);
  /* Square rounded */
  padding: 2px;
  height: 44px;
  /* Compact */
  box-shadow: var(--shadow-sm);
  /* Flat Shadow */
  transition: box-shadow var(--transition-base);
}

.search-bar:focus-within {
  box-shadow: var(--shadow-md);
}

.search-bar__category {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0 var(--space-md);
  height: 100%;
  font-size: var(--fs-sm);
  color: var(--muted);
  background: var(--bg-lighter);
  border-right: 1px solid var(--border-light);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.search-bar__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0 var(--space-md);
  font-size: var(--fs-base);
  color: var(--dark);
}

.search-bar__btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  width: 44px;
  /* Square */
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.search-bar__btn:hover {
  background: var(--primary-dark);
}

/* ==================== SEARCH CATEGORY DROPDOWN ==================== */
.search-bar__category {
  position: relative;
  user-select: none;
  transition: background-color var(--transition-fast);
}

.search-bar__category:hover {
  background: var(--border-light);
}

.search-bar__category .bi-chevron-down {
  font-size: 10px;
  transition: transform var(--transition-fast);
}

.search-bar__category[aria-expanded="true"] .bi-chevron-down {
  transform: rotate(180deg);
}

.search-bar__category-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  max-height: 320px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  z-index: 1100;
  padding: 6px 0;
  animation: searchDropdownFadeIn 0.2s ease;
}

.search-bar__category-dropdown.open {
  display: block;
}

.search-bar__category-item {
  padding: 8px 16px;
  font-size: var(--fs-sm);
  color: var(--dark-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-bar__category-item:hover {
  background: rgba(20, 108, 218, 0.06);
  color: var(--primary);
}

.search-bar__category-item.active {
  background: rgba(20, 108, 218, 0.1);
  color: var(--primary);
  font-weight: var(--font-weight-medium);
}

/* Custom scrollbar for category dropdown */
.search-bar__category-dropdown::-webkit-scrollbar {
  width: 5px;
}

.search-bar__category-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-bar__category-dropdown::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* ==================== SEARCH SUGGESTIONS ==================== */
.search-suggestions {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
  z-index: 1100;
  max-height: 460px;
  overflow-y: auto;
  animation: searchDropdownFadeIn 0.2s ease;
}

.search-suggestions.open {
  display: block;
}

/* Loading state */
.search-suggestions__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 10px;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.search-suggestions__loading .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: searchSpinner 0.6s linear infinite;
}

/* No results */
.search-suggestions__empty {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: var(--fs-sm);
}

.search-suggestions__empty i {
  font-size: var(--fs-2xl);
  display: block;
  margin-bottom: 8px;
  opacity: 0.4;
}

/* Header row */
.search-suggestions__header {
  padding: 10px 16px;
  font-size: var(--fs-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-light);
}

/* Suggestion item */
.search-suggestion__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--border-light);
}

.search-suggestion__item:last-child {
  border-bottom: none;
}

.search-suggestion__item:hover,
.search-suggestion__item.highlighted {
  background: rgba(20, 108, 218, 0.05);
}

.search-suggestion__icon {
  font-size: var(--fs-sm);
  color: var(--muted-light);
  flex-shrink: 0;
}

.search-suggestion__name {
  flex: 1;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-normal);
  color: var(--dark);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-suggestion__name mark {
  background: transparent;
  color: var(--dark);
  font-weight: var(--font-weight-semibold);
  padding: 0;
}

.search-suggestion__brand {
  font-size: var(--fs-xs);
  color: var(--muted);
  font-weight: var(--font-weight-normal);
}

/* "View all" footer */
.search-suggestions__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  font-size: var(--fs-sm);
  font-weight: var(--font-weight-medium);
  color: var(--primary);
  cursor: pointer;
  border-top: 1px solid var(--border-light);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.search-suggestions__footer:hover {
  background: rgba(20, 108, 218, 0.05);
}

.search-suggestions__footer i {
  margin-left: 6px;
  font-size: var(--fs-xs);
  transition: transform var(--transition-fast);
}

.search-suggestions__footer:hover i {
  transform: translateX(3px);
}

/* Custom scrollbar for suggestions */
.search-suggestions::-webkit-scrollbar {
  width: 5px;
}

.search-suggestions::-webkit-scrollbar-track {
  background: transparent;
}

.search-suggestions::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 10px;
}

/* Animations */
@keyframes searchDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* ==================== HEADER ACTIONS ==================== */
.header-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}

.header-action:hover {
  color: var(--white);
  opacity: 0.9;
}

.header-action__icon {
  position: relative;
  font-size: 24px;
}

.header-action__badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  border: 1px solid #172337;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-action__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-action__label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.header-action__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* ==================== MAIN NAVIGATION ==================== */
.main-nav {
  background: var(--primary);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.category-dropdown {
  position: relative;
}

.category-dropdown__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: 10px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color var(--transition-fast);
  min-width: 270px;
  /* Ensure a good base width */
}

.category-dropdown__toggle:hover {
  background: rgba(0, 0, 0, 0.2);
}

.category-dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 1000;
  border-radius: 0 0 4px 4px;
}

/* Show state for JS */
.category-dropdown__menu.show {
  display: block;
  animation: fadeInDown 0.2s ease forwards;
}

.category-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-menu__item {
  border-bottom: 1px solid var(--border-light);
}

.category-menu__item:last-child {
  border-bottom: none;
}

.category-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  color: var(--dark-secondary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.category-menu__link:hover {
  background: var(--bg-lighter);
  color: var(--primary);
  padding-left: 25px;
  /* Hover effect */
}

.category-menu__link i {
  font-size: 10px;
  color: var(--muted-light);
}

.category-menu__link:hover i {
  color: var(--primary);
}

.transition-transform {
  transition: transform 0.3s ease;
}

.rotate-180 {
  transform: rotate(180deg);
}

/* Nested Submenu Styles */
.category-menu__item {
  position: relative;
}

.category-menu__dropdown {
  position: absolute;
  top: 0;
  left: 100%;
  width: 250px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.05);
  /* Softer shadow */
  visibility: hidden;
  opacity: 0;
  transform: translateX(10px);
  transition: all 0.2s ease;
  z-index: 1001;
  border-radius: 0 4px 4px 0;
  padding: 10px 0;
  min-height: 100%;
}

.category-menu__dropdown--mega {
  width: 750px;
  padding: 0;
}

.category-menu__item:hover .category-menu__dropdown {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.mega-column {
  flex: 1;
}

.mega-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  padding-left: 20px;
}

.category-submenu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-submenu li a {
  display: block;
  padding: 8px 20px;
  color: var(--dark-secondary);
  font-size: 14px;
  font-weight: 400;
  /* Lighter weight for subitems */
  text-decoration: none;
  transition: color 0.2s ease;
}

.category-submenu li a:hover {
  color: var(--primary);
  background: transparent;
}

/* Keep background hover for simple dropdowns if preferred, or remove globally */
.category-menu__dropdown:not(.category-menu__dropdown--mega) .category-submenu li a:hover {
  background-color: var(--bg-lighter);
}



@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-menu__item {
  position: relative;
}

.nav-menu__link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: background-color var(--transition-fast);
}

.nav-menu__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.nav-menu__badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  position: relative;
  top: -1px;
}

.nav-menu__badge--sale {
  background: var(--accent-green);
  color: var(--white);
}

.nav-menu__badge--hot {
  background: var(--accent-red);
  color: var(--white);
}

/* ==================== NAV DROPDOWNS ==================== */
.nav-menu__dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-radius: 0 0 4px 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.25s ease;
  z-index: 999;
  border-top: 3px solid var(--primary);
}

.nav-menu__item:hover .nav-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mega Menu Variant */
.nav-menu__dropdown--mega {
  width: 700px;
  padding: 30px;
}

.nav-dropdown__title {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 15px;
  display: block;
}

.nav-dropdown__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-dropdown__list li {
  margin-bottom: 8px;
}

.nav-dropdown__list li:last-child {
  margin-bottom: 0;
}

.nav-dropdown__link {
  color: var(--dark-secondary);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.nav-dropdown__link:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.weekly-deal:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.weekly-deal {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* ==================== HERO SLIDER ==================== */
.hero-slider {
  background: #ffda2b;
  /* Fallback */
}

.hero-slide {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 550px;
  /* Increased height for full impact */
  padding: 0;
}

.hero-slide picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

.hero-slide__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Slide Content Layout */
.hero-slide .container {
  position: relative;
  z-index: 2;
}

/* Slide Content Layout */
.hero-slide .container .row {
  align-items: center;
}

.hero-slide__content {
  position: relative;
  max-width: 550px;
  z-index: 2;
  padding-left: 100px;
}

.hero-slide__discount {
  display: inline-block;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
}

.hero-slide__title {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  /* Responsive font size */
  font-weight: 800;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-slide__price {
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 30px;
}

.hero-slide__price-value {
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  margin-left: 5px;
}

/* Custom Button for Hero */
.btn--hero {
  background: var(--primary);
  color: var(--white);
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 4px;
  box-shadow: 0 4px 6px rgba(40, 116, 240, 0.3);
}

.btn--hero:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(40, 116, 240, 0.4);
}

/* Hero Slider Navigation Arrows */
.hero-slider .swiper-button-prev,
.hero-slider .swiper-button-next {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: var(--white);
  transition: all 0.3s ease;
  z-index: 10;
}

.hero-slider .swiper-button-prev:hover,
.hero-slider .swiper-button-next:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(40, 116, 240, 0.3);
}

.hero-slider .swiper-button-prev::after,
.hero-slider .swiper-button-next::after {
  font-size: 16px;
  font-weight: 900;
}

/* Position them at the extreme ends of the slider */
.hero-slider .swiper-button-prev {
  left: 30px;
}
.hero-slider .swiper-button-next {
  right: 30px;
}

@media (max-width: 991.98px) {
  .hero-slider .swiper-button-prev {
    left: 20px;
  }
  .hero-slider .swiper-button-next {
    right: 20px;
  }
}

@media (max-width: 575.98px) {
  .hero-slider .swiper-button-prev,
  .hero-slider .swiper-button-next {
    width: 36px;
    height: 36px;
  }
  .hero-slider .swiper-button-prev::after,
  .hero-slider .swiper-button-next::after {
    font-size: 12px;
  }
  .hero-slider .swiper-button-prev {
    left: 12px;
  }
  .hero-slider .swiper-button-next {
    right: 12px;
  }
}

/* Pagination Dots */
.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: rgba(0, 0, 0, 0.2);
  opacity: 1;
  margin: 0 6px !important;
}

.swiper-pagination-bullet-active {
  background: var(--white);
  box-shadow: 0 0 0 2px var(--primary);
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  font-size: var(--fs-base);
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  background: var(--primary);
  color: var(--white);
  border: 2px solid var(--primary);
}

.btn--primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
}

.btn--secondary {
  background: var(--secondary);
  color: var(--white);
  border: 2px solid var(--secondary);
}

.btn--secondary:hover {
  background: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--sm {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
}

.btn--lg {
  padding: var(--space-lg) var(--space-2xl);
  font-size: var(--fs-md);
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--dark);
  color: var(--white);
}

.footer__title {
  font-size: var(--fs-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  color: var(--muted-light);
  font-size: var(--fs-base);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
}

.footer__social {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.footer__social-link:hover {
  background: var(--primary);
  color: var(--white);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.footer__copyright {
  font-size: var(--fs-sm);
  color: var(--muted-light);
}

/* ==================== CART SIDEBAR ==================== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100vh;
  background: #fff;
  z-index: 1050;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.cart-sidebar.active {
  right: 0;
}

.cart-overlay-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.cart-overlay-sidebar.active {
  opacity: 1;
  visibility: visible;
}

/* Header */
.cart-sidebar__header {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e5e7eb;
}

.cart-sidebar__title {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin: 0;
  text-transform: uppercase;
  color: #1a1a2e;
}

.cart-sidebar__close {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6b7280;
  cursor: pointer;
  padding: 4px;
  transition: color 0.2s ease;
}

.cart-sidebar__close:hover {
  color: #1a1a2e;
}

/* Labels */
.cart-sidebar__labels {
  display: flex;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  text-transform: uppercase;
}

/* Body */
.cart-sidebar__body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

/* Cart Item */
.cart-item {
  display: flex;
  margin-bottom: 24px;
}

.cart-item__image-wrapper {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
}

.cart-item__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cart-item__details {
  flex: 1;
}

.cart-item__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.cart-item__brand {
  font-size: 0.75rem;
  color: #6b7280;
  text-transform: uppercase;
}

.cart-item__price-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary, #2563eb);
}

.cart-item__title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #1a1a2e;
  margin-bottom: 4px;
  line-height: 1.4;
  padding-right: 10px;
}

.cart-item__price-unit {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 8px;
}

.cart-item__variants p {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

.cart-item__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.quantity-selector--small {
  height: 32px;
}

.quantity-selector--small .quantity-selector__btn {
  width: 28px;
  height: 32px;
  font-size: 0.8rem;
}

.quantity-selector--small .quantity-selector__input {
  width: 32px;
  font-size: 0.85rem;
}

.cart-item__remove {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary, #2563eb);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cart-item__remove:hover {
  background: #1d4ed8;
}

/* Footer */
.cart-sidebar__footer {
  padding: 24px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.cart-sidebar__note {
  margin-bottom: 20px;
}

.cart-sidebar__note summary {
  font-size: 0.85rem;
  color: #4b5563;
  cursor: pointer;
}

.cart-sidebar__note textarea {
  font-size: 0.85rem;
  border-color: #e5e7eb;
}

.cart-sidebar__subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.subtotal-label {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a2e;
}

.subtotal-amount {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.cart-sidebar__tax-note {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 20px;
  text-align: right;
}

.cart-sidebar__actions .btn {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px;
  border-radius: 4px;
}

/* Responsive */
@media (max-width: 576px) {
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
}

/* ==================== PAGE HEADER ==================== */
.page-header {
  background-color: var(--page-header-bg);
  /* Light blue-grey from reference */
  padding: 1.2rem 0;
  margin-bottom: 1.5rem;
}

.page-header__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header__title {
  color: #172337;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.5px;
}

.page-header .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.page-header .breadcrumb-item {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.page-header .breadcrumb-item a {
  color: #6c757d !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.page-header .breadcrumb-item a:hover {
  color: var(--primary) !important;
}

.page-header .breadcrumb-item.active {
  color: #adb5bd !important;
  padding-left: 8px;
}

.page-header .breadcrumb-item+.breadcrumb-item::before {
  content: "/";
  color: #adb5bd;
  padding: 0 8px;
}