/* ============================================
   ilachete.com - Main Stylesheet
   Complete rewrite matching HTML template classes
   ============================================ */

/* ===========================================
   1. CSS CUSTOM PROPERTIES
   =========================================== */
:root {
  /* Brand colors */
  --primary: #1e3a5c;
  --primary-light: #2c5282;
  --primary-dark: #132a43;
  --accent: #f58220;
  --accent-light: #ffa94d;
  --accent-dark: #dd6b10;

  /* Neutral palette */
  --bg: #f8f9fa;
  --card-bg: #ffffff;
  --text: #2d3748;
  --text-muted: #718096;
  --text-light: #a0aec0;
  --border: #e2e8f0;

  /* Semantic colors */
  --success: #38a169;
  --error: #e53e3e;
  --warning: #dd6b20;
  --info: #3182ce;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

  /* Radii */
  --radius: 8px;
  --radius-lg: 12px;

  /* Transition */
  --transition: 0.3s ease;

  /* Font */
  --font-family: 'Poppins', sans-serif;
}


/* ===========================================
   2. BASE / RESET
   =========================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--primary-light);
}

img {
  max-width: 100%;
  height: auto;
}

ul, ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Page-load fade-in */
@keyframes fadeInPage {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

main {
  animation: fadeInPage 0.4s ease-out;
}

/* Body lock when mobile menu is open */
body.menu-open {
  overflow: hidden;
}


/* ===========================================
   3. MAIN CONTENT OFFSET
   =========================================== */
.main-content {
  padding-top: 120px; /* accounts for fixed header + categories bar */
  min-height: 60vh;
}


/* ===========================================
   4. HEADER / NAVBAR
   =========================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background-color: var(--primary);
  box-shadow: var(--shadow);
}

.site-header .navbar {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.site-header .navbar.navbar-expand-lg.navbar-dark {
  background-color: transparent;
}

/* Logo */
.site-header .navbar-brand {
  padding: 0;
  margin-right: 1.5rem;
}

.site-header .navbar-brand img.site-logo,
.site-header .navbar-brand .site-logo {
  max-height: 45px;
  width: auto;
  display: block;
}

/* Nav links */
.site-header .nav-link {
  color: #fff !important;
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  transition: opacity var(--transition);
  position: relative;
}

.site-header .nav-link:hover {
  opacity: 0.85;
  color: #fff !important;
}

/* Search bar in header */
.nav-search {
  position: relative;
  max-width: 420px;
  width: 100%;
  flex: 1;
}

.nav-search .form-control {
  border-radius: 50px 0 0 50px;
  padding-left: 1.25rem;
  padding-right: 1rem;
  border: none;
  background-color: rgba(255, 255, 255, 0.95);
  color: var(--text);
  font-size: 0.875rem;
  height: 40px;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.nav-search .form-control::placeholder {
  color: var(--text-muted);
}

.nav-search .form-control:focus {
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(245, 130, 32, 0.3);
  color: var(--text);
}

.nav-search .btn.btn-accent {
  border-radius: 0 50px 50px 0;
  background-color: var(--accent);
  border: none;
  color: #fff;
  padding: 0 1rem;
  height: 40px;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition);
}

.nav-search .btn.btn-accent:hover {
  background-color: var(--accent-dark);
}

/* Cart badge */
.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 50px;
  padding: 0 4px;
  pointer-events: none;
}

/* Mobile toggle */
.navbar-toggler#mobileMenuToggle,
.navbar-toggler {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.25rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  z-index: 1061;
  position: relative;
  border-radius: var(--radius);
}

.navbar-toggler:focus {
  box-shadow: none;
}


/* ===========================================
   5. CATEGORIES BAR
   =========================================== */
.categories-bar {
  background-color: var(--primary-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.categories-nav {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.categories-nav::-webkit-scrollbar {
  display: none;
}

.categories-nav li {
  flex-shrink: 0;
}

.categories-nav li a {
  display: block;
  padding: 0.55rem 1rem;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
  border-radius: 4px;
}

.categories-nav li a:hover,
.categories-nav li a.active {
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
}


/* ===========================================
   6. MOBILE MENU
   =========================================== */
.mobile-menu-overlay,
.mobile-menu-overlay#mobileMenuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}

body.menu-open .mobile-menu-overlay,
body.menu-open .mobile-menu-overlay#mobileMenuOverlay {
  opacity: 1;
  visibility: visible;
}

.mobile-menu,
.mobile-menu#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 1060;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

body.menu-open .mobile-menu,
body.menu-open .mobile-menu#mobileMenu {
  transform: translateX(0);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.mobile-menu-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text);
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  transition: color var(--transition);
}

.mobile-menu-close:hover {
  color: var(--error);
}

.mobile-menu-search {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mobile-menu-search .form-control {
  border-radius: 50px;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.mobile-menu-nav {
  flex: 1;
  padding: 0.5rem 0;
}

.mobile-menu-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background-color var(--transition), color var(--transition);
}

.mobile-menu-nav a:hover {
  background-color: var(--bg);
  color: var(--accent);
}

.mobile-menu-nav a i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
  color: var(--text-muted);
}

.mobile-menu-lang {
  padding: 0.75rem 1.25rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.mobile-menu-lang a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--text);
  transition: border-color var(--transition), color var(--transition);
}

.mobile-menu-lang a:hover,
.mobile-menu-lang a.active {
  border-color: var(--accent);
  color: var(--accent);
}


/* ===========================================
   7. HERO SLIDER
   =========================================== */
.hero-slider,
.hero-slider#heroSlider {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.slider-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.6s ease;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide.active {
  opacity: 1;
  position: relative;
}

.slide-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(19, 42, 67, 0.75) 0%,
    rgba(19, 42, 67, 0.3) 50%,
    transparent 100%
  );
}

.slide-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
}

.slide-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.75rem;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.slide-description {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.25rem;
  max-width: 550px;
}

/* Slider arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background var(--transition);
}

.slider-arrow:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-arrow.slider-prev {
  left: 1rem;
}

.slider-arrow.slider-next {
  right: 1rem;
}

/* Slider dots */
.slider-dots {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.7);
}


/* ===========================================
   8. REASSURANCE BAR
   =========================================== */
.reassurance-bar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-align: center;
  flex-direction: column;
}

@media (min-width: 768px) {
  .reassurance-item {
    flex-direction: row;
    text-align: left;
  }
}

.reassurance-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.reassurance-item h6,
.reassurance-item strong {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.reassurance-item p,
.reassurance-item small {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}


/* ===========================================
   9. SECTION STYLES (HOME)
   =========================================== */
.section-categories,
.section-products,
.section-about,
.section-cta {
  padding: 3rem 0;
}

.section-categories {
  background-color: var(--bg);
}

.section-products {
  background-color: #fff;
}

.section-about {
  background-color: var(--bg);
}

.section-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 0;
}

.section-cta .section-title {
  color: #fff;
}

.section-cta p {
  color: rgba(255, 255, 255, 0.85);
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent);
  margin: 0.75rem auto 1.5rem;
  border-radius: 2px;
}

/* About section logo */
.about-logo-img {
  max-width: 200px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
}


/* ===========================================
   10. CATEGORY CARDS
   =========================================== */
.category-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: block;
  height: 200px;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition);
}

.category-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-card-image {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.category-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.category-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(19, 42, 67, 0.7) 0%, transparent 60%);
}

.category-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 3rem;
}

.category-card-name {
  position: absolute;
  bottom: 1rem;
  left: 1.25rem;
  right: 1.25rem;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}


/* ===========================================
   11. PRODUCT CARDS (CRITICAL)
   =========================================== */
.product-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--border);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.product-card-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 0.5rem;
  transition: transform 0.4s ease;
}

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

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  color: var(--text-light);
  font-size: 3rem;
}

/* Product badges */
.badge-sale {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 3;
  background-color: var(--error);
  transform: rotate(-3deg);
  box-shadow: 0 2px 6px rgba(229, 62, 62, 0.3);
}

.badge-new {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #fff;
  z-index: 3;
  background-color: var(--primary);
  box-shadow: 0 2px 6px rgba(30, 58, 92, 0.3);
}

.product-card-body {
  padding: 0.85rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-price {
  margin-bottom: 0.5rem;
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.price-sale {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

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

.price-current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

.product-card-action {
  padding: 0 1rem 1rem;
}

.product-card-action .btn.btn-accent.btn-sm.w-100 {
  background-color: var(--accent);
  border: none;
  color: #fff;
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: background-color var(--transition), transform var(--transition);
}

.product-card-action .btn.btn-accent.btn-sm.w-100:hover {
  background-color: var(--accent-dark);
  transform: scale(1.02);
}

/* Products grid: responsive */
@media (max-width: 575.98px) {
  .product-card-title {
    font-size: 0.82rem;
  }
  .price-sale,
  .price-current {
    font-size: 0.95rem;
  }
}


/* ===========================================
   12. PRODUCT LISTING / FILTER SIDEBAR
   =========================================== */
.filter-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  position: sticky;
  top: 130px;
}

.filter-group {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.filter-group:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-group h6,
.filter-group label.h6 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  transition: background-color var(--transition);
}

.filter-option:hover {
  background-color: var(--bg);
}

.filter-option input[type="radio"],
.filter-option input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
}

.empty-state i {
  font-size: 3.5rem;
  color: var(--text-light);
  display: block;
  margin-bottom: 1rem;
}

.empty-state h4,
.empty-state h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}


/* ===========================================
   13. PRODUCT DETAIL PAGE
   =========================================== */
.product-gallery {
  position: relative;
}

.product-main-image {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f0f0f0;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-main-image img,
.product-main-image img#mainImg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 1rem;
}

.product-placeholder-lg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  color: var(--text-light);
  font-size: 5rem;
  border-radius: var(--radius-lg);
  aspect-ratio: 1;
}

.product-thumbnails {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.product-thumbnail {
  width: 70px;
  height: 70px;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: border-color var(--transition), opacity var(--transition);
  opacity: 0.6;
  background: #f0f0f0;
  padding: 2px;
}

.product-thumbnail:hover {
  opacity: 0.85;
}

.product-thumbnail.active {
  border-color: var(--primary);
  opacity: 1;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

/* Product info section */
.product-info {
  padding-left: 0;
}

@media (min-width: 992px) {
  .product-info {
    padding-left: 1.5rem;
  }
}

.product-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-sku {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.product-price-block {
  margin-bottom: 1rem;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.price-sale-lg {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent);
}

.price-original-lg {
  font-size: 1.1rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-current-lg {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
}

.product-availability {
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.product-availability .text-success {
  color: var(--success) !important;
}

.product-availability .text-danger {
  color: var(--error) !important;
}

.product-short-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Product options */
.product-option {
  margin-bottom: 1rem;
}

.product-option label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

.option-values {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.option-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: border-color var(--transition), transform var(--transition);
  padding: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.option-swatch:hover {
  transform: scale(1.1);
}

.option-swatch.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

.option-swatch span {
  width: calc(100% - 4px);
  height: calc(100% - 4px);
  border-radius: 50%;
  display: block;
}

.option-btn {
  min-width: 44px;
  height: 38px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  padding: 0 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.option-btn:hover {
  border-color: var(--primary-light);
}

.option-btn.active {
  border-color: var(--primary);
  background-color: var(--primary);
  color: #fff;
}

.option-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  text-decoration: line-through;
}

/* Quantity selector */
.product-quantity {
  margin-bottom: 1.25rem;
}

.product-quantity label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  display: block;
}

.qty-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.qty-btn:hover {
  background: var(--border);
}

.qty-btn.qty-minus {
  border-right: 1px solid var(--border);
}

.qty-btn.qty-plus {
  border-left: 1px solid var(--border);
}

.qty-input {
  width: 55px;
  height: 40px;
  text-align: center;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--card-bg);
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Small quantity selector (cart) */
.qty-selector-sm {
  border-radius: 6px;
}

.qty-selector-sm .qty-btn {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.qty-selector-sm .qty-input {
  width: 40px;
  height: 32px;
  font-size: 0.85rem;
}

/* Product description */
.product-description {
  margin-top: 2rem;
}

.product-description h4,
.product-description h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.product-description-content {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.7;
}

.product-description-content p {
  margin-bottom: 0.75rem;
}

.product-description-content ul {
  padding-left: 1.25rem;
  list-style: disc;
  margin-bottom: 1rem;
}

.product-description-content li {
  margin-bottom: 0.35rem;
}

/* Related products */
.related-products {
  padding: 3rem 0;
}

.related-products h3,
.related-products .section-title {
  font-size: 1.5rem;
}


/* ===========================================
   14. CART PAGE
   =========================================== */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 0.75rem;
  transition: box-shadow var(--transition);
}

.cart-item:hover {
  box-shadow: var(--shadow-sm);
}

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}

.cart-item-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.product-placeholder-sm {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f0f0;
  border-radius: var(--radius);
  color: var(--text-light);
  font-size: 1.5rem;
}

.cart-item-details {
  flex: 1;
  min-width: 0;
}

.cart-item-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.cart-item-title a {
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition);
}

.cart-item-title a:hover {
  color: var(--accent);
}

.cart-item-variant {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.cart-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cart-item-quantity {
  flex-shrink: 0;
}

.cart-item-total {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  min-width: 80px;
  text-align: right;
  flex-shrink: 0;
}

.cart-item-remove {
  background: none;
  border: none;
  color: var(--error);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.35rem;
  opacity: 0.6;
  transition: opacity var(--transition), transform var(--transition);
  flex-shrink: 0;
}

.cart-item-remove:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Cart summary sidebar */
.cart-summary {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 130px;
}

.cart-summary h5 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.cart-summary-lines {
  margin-bottom: 0.5rem;
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.9rem;
  color: var(--text);
}

.cart-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 700;
  border-top: 2px solid var(--border);
  padding-top: 0.75rem;
  margin-top: 0.5rem;
  color: var(--text);
}

.free-shipping-progress {
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--bg);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.free-shipping-progress .progress {
  height: 6px;
  border-radius: 3px;
  margin-top: 0.5rem;
  background-color: var(--border);
}

.free-shipping-progress .progress-bar {
  background-color: var(--success);
  border-radius: 3px;
}

/* Cart mobile responsive */
@media (max-width: 767.98px) {
  .cart-item {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .cart-item-total {
    min-width: auto;
    text-align: left;
  }

  .cart-summary {
    position: static;
    margin-top: 1rem;
  }
}


/* ===========================================
   15. CHECKOUT PAGE
   =========================================== */
.checkout-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
  gap: 0;
}

.checkout-steps .step {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.checkout-steps .step::before {
  content: attr(data-step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-right: 0.5rem;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}

.checkout-steps .step.active::before {
  background: var(--primary);
  color: #fff;
}

.checkout-steps .step.active {
  color: var(--primary);
  font-weight: 600;
}

.checkout-steps .step.completed::before {
  background: var(--success);
  color: #fff;
  content: '\2713';
}

.checkout-steps .step.completed {
  color: var(--success);
}

/* Connecting lines between steps */
.checkout-steps .step + .step {
  margin-left: 0.5rem;
}

.checkout-steps .step + .step::after {
  content: '';
  position: absolute;
  right: calc(100% + 0.25rem);
  top: 50%;
  width: 2rem;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
}

.checkout-steps .step.completed + .step::after,
.checkout-steps .step.active + .step::after {
  background: var(--success);
}

@media (min-width: 768px) {
  .checkout-steps .step + .step {
    margin-left: 2rem;
  }

  .checkout-steps .step + .step::after {
    width: 2rem;
  }
}

@media (max-width: 575.98px) {
  .checkout-steps .step span {
    display: none;
  }

  .checkout-steps .step + .step {
    margin-left: 1.5rem;
  }
}

/* Checkout sections */
.checkout-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.checkout-section h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.checkout-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.checkout-item:last-child {
  border-bottom: none;
}

.checkout-item img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: contain;
  background: #f0f0f0;
  flex-shrink: 0;
}

.shipping-method-option,
.payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition), background-color var(--transition);
}

.shipping-method-option:hover,
.payment-method-option:hover {
  border-color: var(--primary-light);
  background-color: rgba(44, 82, 130, 0.03);
}

.shipping-method-option input:checked ~ *,
.payment-method-option input:checked ~ * {
  color: var(--primary);
}

.shipping-method-option:has(input:checked),
.payment-method-option:has(input:checked) {
  border-color: var(--primary);
  background-color: rgba(44, 82, 130, 0.05);
}

.shipping-method-option input[type="radio"],
.payment-method-option input[type="radio"] {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}


/* ===========================================
   16. ACCOUNT PAGES
   =========================================== */
.account-sidebar {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.account-sidebar .list-group-item,
.account-sidebar .list-group a {
  color: var(--text);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: background var(--transition), color var(--transition);
  border-left: 3px solid transparent;
}

.account-sidebar .list-group-item:last-child,
.account-sidebar .list-group a:last-child {
  border-bottom: none;
}

.account-sidebar .list-group-item:hover,
.account-sidebar .list-group a:hover,
.account-sidebar .list-group-item.active,
.account-sidebar .list-group a.active {
  background-color: var(--bg);
  color: var(--primary);
}

.account-sidebar .list-group-item.active,
.account-sidebar .list-group a.active {
  font-weight: 600;
  border-left-color: var(--primary);
}

/* Dashboard cards with hover */
.card.card-hover {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--transition), box-shadow var(--transition);
  background: var(--card-bg);
}

.card.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card.card-hover .card-body {
  padding: 1.25rem;
}

/* Order status badges */
.order-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}

.order-status.pending {
  background-color: #fefcbf;
  color: #975a16;
}

.order-status.processing {
  background-color: #bee3f8;
  color: #2a69ac;
}

.order-status.shipped {
  background-color: #c6f6d5;
  color: #276749;
}

.order-status.delivered {
  background-color: #c6f6d5;
  color: #22543d;
}

.order-status.cancelled {
  background-color: #fed7d7;
  color: #9b2c2c;
}

.order-status.refunded {
  background-color: #e9d8fd;
  color: #553c9a;
}

/* Account sidebar: mobile horizontal tabs */
@media (max-width: 767.98px) {
  .account-sidebar {
    border-radius: var(--radius);
    display: flex;
    overflow-x: auto;
    padding: 0;
    margin-bottom: 1rem;
  }

  .account-sidebar .list-group-item,
  .account-sidebar .list-group a {
    border-bottom: none;
    border-right: 1px solid var(--border);
    border-left: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }

  .account-sidebar .list-group-item.active,
  .account-sidebar .list-group a.active {
    border-left: none;
    border-bottom: 2px solid var(--primary);
  }
}


/* ===========================================
   17. FOOTER
   =========================================== */
.site-footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 3rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.site-footer a:hover {
  color: var(--accent-light);
}

/* Footer brand / logo */
.footer-brand {
  margin-bottom: 1rem;
}

.footer-brand img.footer-logo,
.footer-brand .footer-logo {
  max-height: 45px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Footer language links */
.footer-languages {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition: border-color var(--transition), color var(--transition);
}

.footer-lang-link:hover,
.footer-lang-link.active {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer headings */
.footer-heading {
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Footer links list */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links li a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-links li a:hover {
  color: var(--accent-light);
}

/* Footer newsletter */
.footer-newsletter {
  margin-top: 0.5rem;
}

.footer-newsletter .form-control {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: 50px 0 0 50px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

.footer-newsletter .form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter .form-control:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  box-shadow: none;
  color: #fff;
}

.footer-newsletter .btn {
  border-radius: 0 50px 50px 0;
  background-color: var(--accent);
  border: none;
  color: #fff;
  padding: 0.5rem 1.25rem;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background-color var(--transition);
}

.footer-newsletter .btn:hover {
  background-color: var(--accent-dark);
}

/* Footer payment icons */
.footer-payment {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.payment-icon {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.3rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Footer bottom / copyright */
.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 0.75rem 0;
  margin-top: 2rem;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: var(--accent-light);
}


/* ===========================================
   18. TOAST NOTIFICATIONS
   =========================================== */
.toast-container {
  position: fixed;
  top: 80px;
  right: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 380px;
  width: 100%;
  pointer-events: none;
}

.toast-notification {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.85rem 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  pointer-events: auto;
  position: relative;
  overflow: hidden;
  animation: toastSlideIn 0.35s ease-out;
  border-left: 4px solid var(--info);
}

.toast-notification.toast-success { border-left-color: var(--success); }
.toast-notification.toast-error   { border-left-color: var(--error); }
.toast-notification.toast-warning { border-left-color: var(--warning); }
.toast-notification.toast-info    { border-left-color: var(--info); }

.toast-notification.removing {
  animation: toastSlideOut 0.3s ease-in forwards;
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(100%); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(100%); }
}

.toast-notification .toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.toast-notification.toast-success .toast-icon { color: var(--success); }
.toast-notification.toast-error   .toast-icon { color: var(--error); }
.toast-notification.toast-warning .toast-icon { color: var(--warning); }
.toast-notification.toast-info    .toast-icon { color: var(--info); }

.toast-notification .toast-message {
  flex: 1;
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.4;
}

.toast-notification .toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color var(--transition);
}

.toast-notification .toast-close:hover {
  color: var(--text);
}

/* Toast progress bar */
.toast-notification .toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 var(--radius);
  animation: toastProgress linear forwards;
}

.toast-notification.toast-success .toast-progress { background: var(--success); }
.toast-notification.toast-error   .toast-progress { background: var(--error); }
.toast-notification.toast-warning .toast-progress { background: var(--warning); }
.toast-notification.toast-info    .toast-progress { background: var(--info); }

@keyframes toastProgress {
  from { width: 100%; }
  to   { width: 0%; }
}


/* ===========================================
   19. SCROLL TO TOP BUTTON
   =========================================== */
.scroll-top-btn,
.scroll-top-btn#scrollTopBtn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1040;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background-color var(--transition);
}

.scroll-top-btn.visible,
.scroll-top-btn#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover,
.scroll-top-btn#scrollTopBtn:hover {
  background-color: var(--accent-dark);
  transform: translateY(-2px);
}


/* ===========================================
   20. BUTTONS
   =========================================== */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-light) !important;
  border-color: var(--primary-light) !important;
  transform: translateY(-1px);
}

.btn-accent {
  background-color: var(--accent);
  border: 2px solid var(--accent);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.btn-accent:hover,
.btn-accent:focus {
  background-color: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-primary {
  background-color: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-accent {
  background-color: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  border-radius: var(--radius);
  transition: background-color var(--transition), color var(--transition), transform var(--transition);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Loading state */
.btn[disabled],
.btn.btn-loading {
  opacity: 0.65;
  cursor: not-allowed;
  pointer-events: none;
}


/* ===========================================
   21. FORM INPUTS
   =========================================== */
.form-control,
.form-select {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.15);
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: var(--error);
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form-control.is-valid,
.form-select.is-valid {
  border-color: var(--success);
}

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.invalid-feedback {
  font-size: 0.8rem;
  color: var(--error);
}

/* Password strength indicator */
.password-strength {
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin-top: 0.35rem;
  overflow: hidden;
}

.password-strength .strength-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease, background-color 0.3s ease;
  width: 0;
}

.password-strength .strength-bar.weak    { width: 25%; background: var(--error); }
.password-strength .strength-bar.fair    { width: 50%; background: var(--warning); }
.password-strength .strength-bar.good    { width: 75%; background: var(--info); }
.password-strength .strength-bar.strong  { width: 100%; background: var(--success); }


/* ===========================================
   22. BREADCRUMBS
   =========================================== */
.breadcrumb-wrapper {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  padding: 0.6rem 0;
}

.breadcrumb {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.breadcrumb-item a {
  color: var(--text-muted);
}

.breadcrumb-item a:hover {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text);
  font-weight: 500;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: var(--text-light);
}


/* ===========================================
   23. PAGINATION
   =========================================== */
.pagination .page-link {
  color: var(--text);
  border-color: var(--border);
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius) !important;
  margin: 0 2px;
  transition: background-color var(--transition), color var(--transition);
}

.pagination .page-link:hover {
  background-color: var(--bg);
  color: var(--primary);
  border-color: var(--primary-light);
}

.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pagination .page-item.disabled .page-link {
  color: var(--text-light);
}


/* ===========================================
   24. LOADING SPINNER
   =========================================== */
.spinner-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spinRotate 0.75s linear infinite;
}

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

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}


/* ===========================================
   25. UTILITY CLASSES
   =========================================== */
.text-accent { color: var(--accent) !important; }
.text-primary-custom { color: var(--primary) !important; }
.bg-primary-custom { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }

.divider {
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Lazy load image placeholder */
img[data-src] {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}


/* ===========================================
   26. RESPONSIVE BREAKPOINTS
   =========================================== */

/* Extra small devices (phones, <576px) */
@media (max-width: 575.98px) {
  .hero-slider,
  .hero-slider#heroSlider {
    height: 250px;
  }

  .slide-title {
    font-size: 1.3rem;
  }

  .slide-description {
    font-size: 0.85rem;
    display: none;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .category-card {
    height: 140px;
  }

  .product-title {
    font-size: 1.25rem;
  }

  .price-sale-lg,
  .price-current-lg {
    font-size: 1.4rem;
  }
}

/* Small devices (landscape phones, <768px) */
@media (max-width: 767.98px) {
  .hero-slider,
  .hero-slider#heroSlider {
    height: 250px;
  }

  .slide-title {
    font-size: 1.5rem;
  }

  .product-main-image {
    aspect-ratio: 1;
    margin-bottom: 1rem;
  }

  .product-info {
    padding-left: 0;
  }

  .checkout-section {
    padding: 1rem;
  }

  .main-content {
    padding-top: 70px; /* no categories bar on mobile */
  }
}

/* Tablet (768px-991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .slide-title {
    font-size: 2rem;
  }

  .category-card {
    height: 160px;
  }
}

/* Desktop (992px+) */
@media (min-width: 992px) {
  .nav-search {
    max-width: 450px;
  }

  .slide-content .container {
    padding-left: 3rem;
  }

  .main-content {
    padding-top: 120px;
  }
}

/* Large desktop (1200px+) */
@media (min-width: 1200px) {
  .slide-title {
    font-size: 3rem;
  }

  .slide-description {
    font-size: 1.2rem;
  }
}


/* ===========================================
   27. ACCESSIBILITY / REDUCED MOTION
   =========================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .product-card:hover {
    transform: none;
  }

  .category-card:hover {
    transform: none;
  }

  .card.card-hover:hover {
    transform: none;
  }

  .slider-wrapper {
    transition-duration: 0.01ms !important;
  }

  .slide {
    transition-duration: 0.01ms !important;
  }

  .mobile-menu {
    transition-duration: 0.01ms !important;
  }

  .scroll-top-btn,
  .scroll-top-btn#scrollTopBtn {
    transition-duration: 0.01ms !important;
  }

  main {
    animation: none;
  }

  .toast-notification {
    animation: none;
  }

  .toast-notification.removing {
    animation: none;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--primary-light);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
  color: #fff;
}


/* ===========================================
   28. PRINT STYLES
   =========================================== */
@media print {
  .site-header,
  .categories-bar,
  .site-footer,
  .mobile-menu,
  .mobile-menu-overlay,
  .toast-container,
  .scroll-top-btn,
  .hero-slider {
    display: none !important;
  }

  .main-content {
    padding-top: 0 !important;
  }

  body {
    background: #fff;
    color: #000;
  }
}

/* Flag images */
.flag-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  vertical-align: middle;
  margin-right: 4px;
}

.flag-img-sm {
  width: 16px;
  height: 11px;
  object-fit: cover;
  border-radius: 1px;
  vertical-align: middle;
  margin-right: 2px;
}
