/* ========================================
   EDUKIDO BD - TOY SHOP DESIGN SYSTEM
   Colorful, Playful & Kid-Friendly
   ======================================== */

/* === ROOT VARIABLES === */
:root {
  /* Primary Colors - Vibrant & Playful */
  --primary-color: #FF6B6B;
  --primary-dark: #E85555;
  --primary-light: #FFD93D;
  --secondary-color: #6BCF7F;
  --accent-blue: #4ECDC4;
  --accent-purple: #9B59B6;
  --accent-orange: #FF9F43;

  /* Neutral Colors */
  --text-dark: #2C3E50;
  --text-light: #7F8C8D;
  --bg-light: #F8F9FA;
  --bg-white: #FFFFFF;
  --border-color: #E1E8ED;

  /* Semantic Colors */
  --success-color: #6BCF7F;
  --warning-color: #FFD93D;
  --danger-color: #FF6B6B;
  --info-color: #4ECDC4;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 50px;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-hover: 0 12px 32px rgba(0,0,0,0.15);
}

/* === BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* === MOBILE TOUCH OPTIMIZATION === */
a, button, input[type="button"], input[type="submit"], select, textarea,
.btn, .page-btn, .nav-link, .clickable, .filter-checkbox label {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  touch-action: manipulation;
  cursor: pointer;
}

button, .btn, .page-btn, input[type="button"], input[type="submit"] {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Prevent 300ms delay on mobile */
a, button, input, select, textarea {
  touch-action: manipulation;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-light);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

/* === HEADER === */
.site-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.top-bar {
  background: rgba(0,0,0,0.1);
  padding: 0.25rem 0;
  font-size: 0.75rem;
  color: white;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar a {
  color: white;
  margin-left: var(--spacing-md);
}

.main-header {
  padding: 0.75rem 0;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-lg);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: white;
  font-size: 1.25rem;
  font-weight: 800;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

/* === SEARCH BAR === */
.search-bar {
  flex: 1;
  max-width: 600px;
}

.search-form {
  position: relative;
  display: flex;
  width: 100%;
}

.search-wrapper {
  position: relative;
  flex: 1;
  display: flex;
}

.search-input {
  flex: 1;
  width: 100%;
  padding: 0.5rem 2.5rem 0.5rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  outline: none;
  box-shadow: var(--shadow-md);
}

.search-input:focus {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.search-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary-color);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #5AB86F;
  transform: translateY(-50%) scale(1.05);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-suggestion-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid var(--bg-light);
}

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

.search-suggestion-item:hover,
.search-suggestion-item.active {
  background: var(--bg-light);
}

.suggestion-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  border: 1px solid var(--bg-light);
  background: var(--bg-light);
}

.suggestion-info {
  flex: 1;
  min-width: 0;
}

.suggestion-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.suggestion-price {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* === HEADER ACTIONS === */
.header-actions {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: white;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  position: relative;
}

.header-btn:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.header-btn i {
  font-size: 1.25rem;
}

.header-btn span {
  font-size: 0.7rem;
  font-weight: 600;
}

.cart-badge {
  position: absolute;
  top: 0;
  right: 0.5rem;
  background: var(--primary-light);
  color: var(--text-dark);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

/* === NAVIGATION === */
.main-nav {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  border-bottom: 3px solid var(--primary-dark);
  box-shadow: var(--shadow-lg);
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-sm);
  padding: 0;
  margin: 0;
  overflow: visible;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-2px);
}

.nav-link i {
  font-size: 1.1rem;
}

/* === CATEGORY DROPDOWN === */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm);
  min-width: 250px;
  display: none;
  z-index: 1000;
  margin-top: 0.25rem;
}

.nav-item:hover .dropdown-menu,
.nav-item.active .dropdown-menu {
  display: block;
  animation: slideDown 0.3s ease;
}

.dropdown-menu a,
.dropdown-menu .dropdown-item {
  display: block;
  padding: 0.5rem 0.75rem;
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  font-weight: 500;
  text-decoration: none;
}

.dropdown-menu a:hover,
.dropdown-menu .dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  transform: translateX(3px);
}

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

.dropdown-item {
  display: block;
  padding: 0.75rem var(--spacing-md);
  color: var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg-light);
  color: var(--primary-color);
  padding-left: 1.25rem;
}

/* === HERO SECTION === */
.hero-section {
  background: linear-gradient(135deg, rgba(78, 205, 196, 0.9) 0%, rgba(107, 207, 127, 0.9) 100%),
              url('/images/hero-bg.png') center/cover no-repeat;
  padding: 2.5rem 0;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: var(--spacing-lg);
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.hero-title {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-subtitle {
  font-size: 1rem;
  margin-bottom: var(--spacing-md);
  color: rgba(255,255,255,0.95);
}

.hero-cta {
  display: inline-flex;
  gap: var(--spacing-md);
}

.btn {
  padding: 0.625rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.btn-success {
  background: var(--success-color);
  color: white;
}

.btn-success:hover {
  background: #5AB86F;
}

/* === SECTION STYLES === */
.section {
  padding: 2rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  border-radius: var(--radius-pill);
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

/* === PRODUCT GRID === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

/* === PRODUCT CARD === */
.product-card {
  background: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
}

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

.product-image {
  position: relative;
  overflow: hidden;
  background: var(--bg-light);
  aspect-ratio: 1;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.product-badges {
  position: absolute;
  top: var(--spacing-sm);
  left: var(--spacing-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 10;
}

.badge {
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  box-shadow: var(--shadow-sm);
}

.badge-new {
  background: var(--success-color);
}

.badge-sale {
  background: var(--danger-color);
}

.badge-featured {
  background: var(--accent-purple);
}

.badge-discount {
  background: var(--accent-orange);
}

.product-wishlist {
  position: absolute;
  top: var(--spacing-sm);
  right: var(--spacing-sm);
  width: 40px;
  height: 40px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  z-index: 10;
}

.product-wishlist:hover {
  background: var(--danger-color);
  color: white;
  transform: scale(1.1);
}

.product-wishlist.active {
  background: var(--danger-color);
  color: white;
}

.product-info {
  padding: 0.75rem;
}

.product-category {
  font-size: 0.75rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.3;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--spacing-sm);
}

.stars {
  color: var(--primary-light);
  font-size: 0.875rem;
}

.rating-count {
  font-size: 0.875rem;
  color: var(--text-light);
}

.product-price {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

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

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

.discount-percent {
  background: var(--danger-color);
  color: white;
  padding: 0.2rem 0.4rem;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.btn-add-cart {
  width: 100%;
  background: var(--primary-color);
  color: white !important;
  padding: 0.5rem 0.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-add-cart:hover {
  background: var(--primary-dark);
  color: white !important;
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-buy-now {
  width: 100%;
  background: var(--accent-orange);
  color: white !important;
  padding: 0.5rem 0.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-buy-now:hover {
  background: #FF8C1A;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 159, 67, 0.4);
  text-decoration: none;
}

.btn-quick-view {
  width: 38px;
  height: 38px;
  background: var(--bg-light);
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-quick-view:hover {
  background: var(--accent-blue);
  color: white;
}

/* === CATEGORY CARDS === */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--spacing-md);
}

.category-card {
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-color));
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  color: white;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

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

.category-card:nth-child(2) {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
}

.category-card:nth-child(3) {
  background: linear-gradient(135deg, var(--accent-purple), var(--primary-color));
}

.category-card:nth-child(4) {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-orange));
}

.category-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.category-name {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.category-count {
  font-size: 0.75rem;
  opacity: 0.9;
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
  animation: slideInRight 0.3s ease-out;
  position: relative;
  overflow: hidden;
}

.toast.hiding {
  animation: slideOutRight 0.3s ease-out forwards;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(400px);
    opacity: 0;
  }
}

.toast::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
}

.toast.success::before {
  background: var(--secondary-color);
}

.toast.error::before {
  background: var(--danger-color);
}

.toast.info::before {
  background: var(--accent-blue);
}

.toast.warning::before {
  background: var(--accent-orange);
}

.toast-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.toast.success .toast-icon {
  color: var(--secondary-color);
}

.toast.error .toast-icon {
  color: var(--danger-color);
}

.toast.info .toast-icon {
  color: var(--accent-blue);
}

.toast.warning .toast-icon {
  color: var(--accent-orange);
}

.toast-message {
  flex: 1;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-light);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.toast-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* === FOOTER === */
.site-footer {
  background: linear-gradient(135deg, var(--text-dark) 0%, #1a252f 100%);
  color: white;
  margin-top: var(--spacing-xl);
}

.footer-top {
  padding: var(--spacing-xl) 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.footer-section h4 {
  color: white;
  margin-bottom: var(--spacing-md);
  font-size: 1.25rem;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 0.5rem;
}

.footer-bottom {
  padding: var(--spacing-md) 0;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: var(--spacing-md);
  }

  .search-bar {
    width: 100%;
    max-width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--spacing-sm);
  }

  .nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
  }
}

/* === UTILITIES === */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

/* ========================================
   PRODUCTS LISTING PAGE & CATEGORY PAGE
   ======================================== */

.products-page,
.category-page {
  padding: var(--spacing-lg) 0;
}

.category-header {
  background: linear-gradient(135deg, var(--accent-blue), var(--secondary-color));
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.category-header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
}

.category-banner {
  max-width: 200px;
  height: auto;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-lg);
}

.category-header h1 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-sm);
  color: white;
  position: relative;
  z-index: 1;
}

.category-description {
  font-size: 1.125rem;
  max-width: 700px;
  margin: 0 auto;
  color: rgba(255,255,255,0.95);
  position: relative;
  z-index: 1;
}

.filter-group ul {
  list-style: none;
  padding: 0;
}

.filter-group ul li {
  margin-bottom: var(--spacing-sm);
}

.filter-group ul li a {
  display: block;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.filter-group ul li a:hover {
  background: var(--primary-color);
  color: white;
  padding-left: 1.25rem;
}

.filters-sidebar {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.filters-sidebar h3 {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.filter-group {
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 2px solid var(--bg-light);
}

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

.filter-group h4 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.filter-group input[type="number"],
.filter-group input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.filter-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.filter-group button {
  width: 100%;
  padding: 0.75rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-group button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
}

.filter-checkbox input[type="checkbox"],
.filter-checkbox input[type="radio"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.filter-checkbox label {
  cursor: pointer;
  font-size: 1rem;
  color: var(--text-dark);
}

.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.results-count {
  font-weight: 600;
  color: var(--text-dark);
}

.sort-options select {
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: white;
}

.sort-options select:focus {
  border-color: var(--primary-color);
  outline: none;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xl);
  flex-wrap: wrap;
}

.page-btn {
  min-width: 45px;
  height: 45px;
  padding: 0 var(--spacing-md);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.page-btn:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.page-btn.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* ========================================
   PRODUCT DETAILS PAGE
   ======================================== */

.product-details-page {
  padding: var(--spacing-lg) 0;
}

.product-images {
  position: sticky;
  top: 100px;
}

.main-image {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-md);
  aspect-ratio: 1;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbnail-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

@media (max-width: 768px) {
  .thumbnail-images {
    grid-template-columns: repeat(3, 1fr);
  }
}

.thumbnail {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid #e0e0e0;
  transition: all 0.3s ease;
  object-fit: cover;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.thumbnail:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.thumbnail.active {
  border-color: var(--primary-color);
  border-width: 3px;
  box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
}

.product-info {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
}

.product-info h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.sku {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: var(--spacing-md);
}

.price-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

.discount-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
}

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

.discount-badge {
  background: var(--accent-orange);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.stock-status {
  margin: var(--spacing-md) 0;
}

.in-stock {
  color: var(--success-color);
  font-weight: 600;
  font-size: 1.125rem;
}

.out-of-stock {
  color: var(--danger-color);
  font-weight: 600;
  font-size: 1.125rem;
}

.short-description {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--radius-md);
}

.add-to-cart-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.quantity-selector button {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quantity-selector button:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.quantity-selector input {
  width: 80px;
  height: 45px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 600;
}

.btn-add-to-cart {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-sm);
}

.btn-add-to-cart:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-add-to-cart:disabled {
  background: var(--text-light);
  cursor: not-allowed;
}

.btn-buy-now-details {
  width: 100%;
  padding: 1rem;
  background: var(--accent-orange);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-buy-now-details:hover {
  background: #FF8C1A;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 159, 67, 0.4);
}

.btn-add-to-favorites {
  width: 100%;
  padding: 1rem;
  background: white;
  color: var(--danger-color);
  border: 2px solid var(--danger-color);
  border-radius: var(--radius-md);
  font-size: 1.125rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-add-to-favorites:hover {
  background: var(--danger-color);
  color: white;
}

.product-meta {
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--bg-light);
}

.product-meta p {
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
  font-weight: 500;
}

.product-description-section {
  margin-top: var(--spacing-xl);
}

.nav-tabs {
  display: flex;
  gap: var(--spacing-sm);
  border-bottom: 3px solid var(--bg-light);
  margin-bottom: var(--spacing-lg);
  list-style: none;
}

.nav-tabs .nav-link {
  padding: var(--spacing-md) var(--spacing-lg);
  background: white;
  border: none;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-tabs .nav-link.active {
  background: var(--primary-color);
  color: white;
}

.tab-content {
  background: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.related-products-section {
  margin-top: var(--spacing-xl);
}

.related-products-section h2 {
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   CART PAGE
   ======================================== */

.cart-page {
  padding: var(--spacing-lg) 0;
  min-height: 60vh;
}

.cart-page h1 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xl);
  color: var(--text-dark);
  text-align: center;
}

.empty-cart {
  text-align: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.empty-cart p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

.btn-continue-shopping {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-continue-shopping:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.cart-items {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.cart-item {
  display: grid;
  grid-template-columns: 100px 1fr auto auto auto;
  gap: var(--spacing-md);
  align-items: center;
  padding: var(--spacing-lg);
  border-bottom: 2px solid var(--bg-light);
  transition: all 0.3s ease;
}

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

.cart-item:hover {
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.item-image img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.item-details h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.item-details .sku {
  color: var(--text-light);
  font-size: 0.875rem;
}

.item-details .price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.item-quantity {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 35px;
  height: 35px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.qty-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.qty-input {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.item-total .total-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
}

.remove-item {
  padding: 0.5rem 1rem;
  background: var(--danger-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.remove-item:hover {
  background: #E85555;
  transform: translateY(-2px);
}

.cart-summary {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 100px;
}

.cart-summary h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: var(--spacing-md) 0;
  border-bottom: 1px solid var(--bg-light);
  font-size: 1.125rem;
}

.summary-row.total {
  border-top: 3px solid var(--primary-color);
  border-bottom: none;
  margin-top: var(--spacing-md);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.summary-row.discount {
  color: var(--success-color);
}

.promo-code-section {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.promo-code-section input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  font-size: 1rem;
}

.promo-code-section button {
  width: 100%;
  padding: 0.75rem;
  background: var(--secondary-color);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.promo-code-section button:hover {
  background: #5AB86F;
}

.applied-promo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm);
  background: var(--success-color);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
}

.applied-promo button {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--danger-color);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-checkout {
  display: block;
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  color: white;
  text-align: center;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  transition: all 0.3s ease;
}

.btn-checkout:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-continue {
  display: block;
  width: 100%;
  padding: 1rem;
  background: white;
  color: var(--primary-color);
  text-align: center;
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

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

/* ========================================
   CHECKOUT PAGE & FORMS
   ======================================== */

.checkout-page,
.account-page {
  padding: var(--spacing-lg) 0;
  min-height: 60vh;
}

.checkout-page h1,
.account-page h1 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  color: var(--text-dark);
}

.saved-addresses {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.saved-addresses h3 {
  font-size: 1.125rem;
  margin-bottom: var(--spacing-md);
  color: var(--text-dark);
}

.address-options {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.address-option {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.address-option:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(255, 107, 107, 0.05);
}

.address-option input[type="radio"] {
  margin-top: 0.25rem;
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.address-option label {
  flex: 1;
  cursor: pointer;
  margin: 0;
  color: var(--text-dark);
}

.address-option label strong {
  color: var(--primary-color);
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.payment-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: white;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
}

.payment-option:has(input:checked) {
  border-color: var(--primary-color);
  background: rgba(255, 107, 107, 0.05);
}

.payment-option input[type="radio"] {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.payment-option label {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  margin: 0;
}

.summary-items {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-md);
}

.summary-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm);
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

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

.summary-item .item-image img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.summary-item .item-details {
  display: flex;
  flex-direction: column;
}

.summary-item .item-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-dark);
  margin: 0;
}

.summary-item .item-qty {
  font-size: 0.75rem;
  color: var(--text-light);
  margin: 0;
}

.summary-item .item-price {
  font-weight: 700;
  color: var(--primary-color);
}

.summary-totals {
  padding-top: var(--spacing-md);
  border-top: 3px solid var(--bg-light);
}

.form-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-lg);
}

.form-section h2 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-lg);
  color: var(--primary-color);
  border-bottom: 3px solid var(--bg-light);
  padding-bottom: var(--spacing-sm);
}

.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-group label {
  display: block;
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.btn-submit {
  width: 100%;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 1.25rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-submit:disabled {
  background: var(--text-light);
  cursor: not-allowed;
  transform: none;
}

/* ========================================
   ACCOUNT PAGES
   ======================================== */

.auth-container {
  max-width: 500px;
  margin: 0 auto;
}

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-lg);
}

.auth-card h1 {
  font-size: 2rem;
  margin-bottom: var(--spacing-lg);
  text-align: center;
  color: var(--primary-color);
}

.auth-links {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--bg-light);
}

.profile-header {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-purple));
  color: white;
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.profile-header h1 {
  color: white;
  margin-bottom: var(--spacing-sm);
}

.profile-stats {
  display: flex;
  justify-content: center;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-lg);
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  opacity: 0.9;
}

/* ========================================
   ORDERS PAGE
   ======================================== */

.orders-list {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

.order-card {
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.order-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 2px solid var(--bg-light);
}

.order-number {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-dark);
}

.order-status {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
}

.order-status.pending {
  background: var(--warning-color);
  color: var(--text-dark);
}

.order-status.processing {
  background: var(--info-color);
  color: white;
}

.order-status.shipped {
  background: var(--accent-purple);
  color: white;
}

.order-status.delivered {
  background: var(--success-color);
  color: white;
}

.order-status.cancelled {
  background: var(--danger-color);
  color: white;
}

.order-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.order-detail-item {
  display: flex;
  flex-direction: column;
}

.order-detail-label {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.order-detail-value {
  font-weight: 600;
  color: var(--text-dark);
}

.order-actions {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: flex-end;
}

.btn-order-action {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

/* ========================================
   FAVORITES/WISHLIST PAGE
   ======================================== */

.favorites-page {
  padding: var(--spacing-lg) 0;
}

.favorites-page h1 {
  font-size: 1.75rem;
  margin-bottom: var(--spacing-xl);
  text-align: center;
  color: var(--text-dark);
}

.empty-favorites {
  text-align: center;
  padding: var(--spacing-xl);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.empty-favorites p {
  font-size: 1.5rem;
  color: var(--text-light);
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   NO IMAGE PLACEHOLDER
   ======================================== */

.no-image {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-light);
  color: var(--text-light);
}

.no-image p {
  margin-top: var(--spacing-sm);
  font-size: 0.875rem;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: var(--spacing-sm);
  }

  .item-quantity,
  .item-total,
  .item-actions {
    grid-column: 2;
  }

  .filters-sidebar {
    position: static;
    margin-bottom: var(--spacing-lg);
  }

  .products-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }
}

/* === SWEETALERT2 MINIMAL CUSTOMIZATION === */
.minimal-swal-toast {
  font-size: 0.875rem !important;
  padding: 0.75rem 1rem !important;
}

.minimal-swal-toast .swal2-icon {
  width: 1.5rem !important;
  height: 1.5rem !important;
  margin: 0 0.5rem 0 0 !important;
}

.minimal-swal-toast .swal2-title {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  margin: 0 !important;
}

.swal2-timer-progress-bar {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* === REMEMBER ME CHECKBOX FIX === */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--spacing-md);
  padding: 0.5rem 0;
}

.form-check-input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 0 !important;
  cursor: pointer;
  border: 2px solid var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  position: relative;
  background: white;
  transition: all 0.2s ease;
}

.form-check-input:hover {
  border-color: var(--primary-color);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  font-weight: bold;
}

.form-check-input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.2);
}

.form-check-label {
  margin: 0 !important;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-dark);
  user-select: none;
  font-weight: 500;
}

/* === BREADCRUMB NAVIGATION === */
.breadcrumb-nav {
  background: white;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  box-shadow: var(--shadow-sm);
}

.breadcrumb {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb-item {
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
}

.breadcrumb-item a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding-right: 0.5rem;
  color: var(--text-light);
  font-weight: 400;
}

/* ========================================
   FLOATING BUTTONS
   ======================================== */

.floating-buttons {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  display: flex !important;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  animation: slideInRight 0.5s ease-out;
}

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

/* Base floating button styles */
.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: white !important;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none !important;
  border: none;
  outline: none;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  }
  50% {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.35), 0 0 0 8px rgba(255, 255, 255, 0.3);
  }
}

.floating-btn:hover {
  transform: translateY(-4px) scale(1.15);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  color: white !important;
  animation: none;
  text-decoration: none !important;
}

.floating-btn:active {
  transform: translateY(-2px) scale(1.05);
}

/* Social media buttons container */
.floating-social {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeInUp 0.6s ease;
}

/* WhatsApp button */
.floating-btn.whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.floating-btn.whatsapp:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
}

/* Facebook button */
.floating-btn.facebook {
  background: linear-gradient(135deg, #1877F2 0%, #0C63D4 100%);
}

.floating-btn.facebook:hover {
  background: linear-gradient(135deg, #0C63D4 0%, #084D9E 100%);
}

/* Instagram button */
.floating-btn.instagram {
  background: linear-gradient(135deg, #E4405F 0%, #C13584 100%, #833AB4 100%);
}

.floating-btn.instagram:hover {
  background: linear-gradient(135deg, #C13584 0%, #833AB4 100%);
}

/* Delivery notification button */
.floating-btn.delivery-notification {
  width: auto;
  min-width: 260px;
  max-width: 320px;
  height: auto;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #00C853 0%, #00B84A 100%);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.4);
  animation: fadeInUp 0.4s ease, pulse 3s infinite;
  cursor: default;
}

.floating-btn.delivery-notification:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 200, 83, 0.5);
}

.delivery-notification-content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.delivery-notification-content i {
  font-size: 2rem;
  flex-shrink: 0;
  animation: truck 2s ease-in-out infinite;
}

@keyframes truck {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(3px);
  }
}

.delivery-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.delivery-text-en {
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.delivery-text-bn {
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.95;
}

.delivery-text-free {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-top: 3px;
  color: #FFD700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  50% {
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.8), 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(255, 159, 67, 0.4);
  }
  50% {
    box-shadow: 0 4px 24px rgba(255, 159, 67, 0.6);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .floating-buttons {
    right: 15px;
    bottom: 15px;
    gap: 10px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
  }

  .floating-btn.delivery-notification {
    min-width: 220px;
    max-width: 260px;
    padding: 12px 14px;
  }

  .delivery-notification-content i {
    font-size: 1.6rem;
  }

  .delivery-text-en {
    font-size: 0.7rem;
  }

  .delivery-text-bn {
    font-size: 0.65rem;
  }

  .delivery-text-free {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .floating-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .floating-btn.delivery-notification {
    min-width: 200px;
    max-width: 220px;
    padding: 10px 12px;
  }

  .delivery-notification-content i {
    font-size: 1.4rem;
  }

  .delivery-notification-content {
    gap: 8px;
  }

  .delivery-text-en {
    font-size: 0.65rem;
  }

  .delivery-text-bn {
    font-size: 0.6rem;
  }

  .delivery-text-free {
    font-size: 0.7rem;
  }
}

/* ========================================
   PRODUCT CAROUSEL / SLIDER
   ======================================== */

.product-carousel-container {
  position: relative;
  padding: 0 50px;
}

.product-carousel {
  overflow: hidden;
  position: relative;
}

.product-carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5rem;
}

.product-carousel-item {
  flex: 0 0 calc(25% - 1.125rem);
  min-width: 0;
}

.carousel-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.carousel-button:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-md);
}

.carousel-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: var(--bg-light);
}

.carousel-button:disabled:hover {
  background: var(--bg-light);
  border-color: var(--border-color);
  color: var(--text-dark);
}

.carousel-button.prev {
  left: 0;
}

.carousel-button.next {
  right: 0;
}

.carousel-button i {
  font-size: 1.25rem;
}

/* Responsive carousel */
@media (max-width: 1200px) {
  .product-carousel-item {
    flex: 0 0 calc(33.333% - 1rem);
  }
}

@media (max-width: 768px) {
  .product-carousel-container {
    padding: 0 40px;
  }
  
  .product-carousel-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
  
  .carousel-button {
    width: 36px;
    height: 36px;
  }
  
  .carousel-button i {
    font-size: 1.1rem;
  }
}

@media (max-width: 576px) {
  .product-carousel-container {
    padding: 0 35px;
  }
  
  .product-carousel-item {
    flex: 0 0 100%;
  }
  
  .carousel-button {
    width: 32px;
    height: 32px;
  }
  
  .carousel-button i {
    font-size: 1rem;
  }
}

/* Carousel dots indicator */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--primary-color);
  width: 24px;
  border-radius: 4px;
}

.carousel-dot:hover {
  background: var(--primary-light);
}

/* === SHRINKING NAVBAR ON SCROLL === */
.site-header {
  transition: padding 0.3s ease, box-shadow 0.3s ease;
}

.site-header * {
  transition: all 0.3s ease;
}

.top-bar {
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  max-height: 50px;
  opacity: 1;
  overflow: hidden;
}

.site-header.scrolled {
  padding: 0 !important;
}

.site-header.scrolled .top-bar {
  max-height: 0 !important;
  opacity: 0 !important;
  padding: 0 !important;
}

.site-header.scrolled .main-header {
  padding: 0.4rem 0 !important;
}

.site-header.scrolled .logo {
  font-size: 1rem !important;
}

.site-header.scrolled .logo img {
  height: 30px !important;
}

.site-header.scrolled .header-search {
  height: 35px !important;
}

.site-header.scrolled .header-search input {
  font-size: 0.85rem !important;
  padding: 0.4rem 2.5rem 0.4rem 1rem !important;
}

.site-header.scrolled .header-icons {
  font-size: 0.95rem !important;
}

.site-header.scrolled .header-icons a {
  padding: 0.4rem !important;
}

.site-header.scrolled .main-nav {
  padding: 0.4rem 0 !important;
}

.site-header.scrolled .nav-link {
  padding: 0.4rem 0.6rem !important;
  font-size: 0.85rem !important;
}

/* === IMPROVED PRODUCT GRID (3-4 ITEMS PER ROW) === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 1rem !important;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
}

/* === IMPROVED PRICE RANGE STYLING === */
.price-inputs input[type="number"] {
  -moz-appearance: textfield;
}

.price-inputs input[type="number"]::-webkit-inner-spin-button,
.price-inputs input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* === SMALLER OVERALL UI === */
body {
  font-size: 14px !important;
}

h1 {
  font-size: 1.8rem !important;
}

h2 {
  font-size: 1.5rem !important;
}

h3 {
  font-size: 1.25rem !important;
}

h4 {
  font-size: 1.1rem !important;
}

.btn {
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem !important;
}

.btn-lg {
  padding: 0.65rem 1.25rem !important;
  font-size: 1rem !important;
}

.btn-sm {
  padding: 0.35rem 0.75rem !important;
  font-size: 0.8rem !important;
}

.product-card {
  padding: 0.75rem !important;
}

.product-title {
  font-size: 0.95rem !important;
}

.product-price .current-price {
  font-size: 1.1rem !important;
}

.section {
  padding: 2rem 0 !important;
}

.section-title {
  font-size: 1.5rem !important;
  margin-bottom: 0.75rem !important;
}

.section-subtitle {
  font-size: 0.9rem !important;
}

/* === FLOATING COD BANNER === */
.cod-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.75rem 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 999;
  animation: slideDown 0.5s ease;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cod-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cod-banner-icon {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.cod-banner-text {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.cod-banner-text strong {
  font-weight: 700;
}

.cod-banner-text span {
  opacity: 0.9;
  font-size: 0.85rem;
}

.cod-banner-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.cod-banner-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .cod-banner-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    font-size: 0.8rem;
  }

  .cod-banner-text span {
    font-size: 0.75rem;
  }

  .cod-banner-icon {
    font-size: 1.2rem;
  }
}

/* ========================================
   MOBILE MENU & RESPONSIVE DESIGN
   ======================================== */

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 100;
  flex-shrink: 0;
}

.mobile-menu-toggle:hover {
  background: rgba(255,255,255,0.3);
}

.mobile-menu-toggle:active {
  background: rgba(255,255,255,0.4);
  transform: scale(0.95);
}

.mobile-menu-toggle i {
  transition: transform 0.3s ease;
  pointer-events: none;
}

.mobile-menu-toggle.active i {
  transform: rotate(90deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* Mobile Navigation Menu */
.mobile-nav-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: white;
  box-shadow: -4px 0 12px rgba(0,0,0,0.1);
  z-index: 9999;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.mobile-nav-menu.active {
  display: block;
  right: 0;
}

.mobile-nav-header {
  padding: 1rem;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-nav-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.mobile-nav-items li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-items a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.mobile-nav-items a:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.mobile-nav-items a i {
  font-size: 1.2rem;
  width: 25px;
  text-align: center;
}

/* Responsive Breakpoints */

/* Tablets and below (992px) */
@media (max-width: 992px) {
  /* Show mobile menu toggle */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  @media screen and (max-width: 992px) {
    .mobile-menu-toggle {
      display: flex !important;
    }
  }

  /* Mobile nav elements are shown via .active class */
  /* Removed display: block rule that was blocking clicks */

  /* Hide desktop navigation */
  .main-nav {
    display: none;
  }

  /* Adjust header */
  .header-content {
    flex-wrap: wrap;
  }

  .search-bar {
    order: 3;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .header-actions {
    gap: 0.5rem;
    position: relative;
    z-index: 10;
  }

  .header-btn span {
    display: none;
  }

  /* Top bar adjustments */
  .top-bar {
    font-size: 0.7rem;
  }

  .top-bar-left span:last-child {
    display: none;
  }

  .top-bar-right a span {
    display: none;
  }

  .top-bar-right a {
    margin-left: 0.5rem;
  }

  /* Products page filters sidebar */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 9999;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 12px rgba(0,0,0,0.1);
    padding: 0;
  }

  .filters-sidebar.active {
    left: 0;
  }

  .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-purple) 100%);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .filters-header h3 {
    margin: 0;
    color: white;
    font-size: 1.25rem;
  }

  .filters-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
  }

  .filters-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
  }

  .filters-sidebar .filter-group {
    padding: 0 1rem;
  }

  .filters-sidebar > h3:first-child {
    padding: 1rem;
    margin: 0;
  }

  .filter-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }

  .filter-toggle-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
  }

  .filters-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
  }

  .filters-overlay.active {
    display: block;
  }

  /* Category header */
  .category-header {
    padding: var(--spacing-lg);
  }

  .category-header h1 {
    font-size: 1.5rem;
  }

  .category-description {
    font-size: 0.95rem;
  }
}

/* Mobile devices (768px and below) */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding: 0 1rem;
  }

  /* Typography */
  h1 { font-size: 1.5rem !important; }
  h2 { font-size: 1.25rem !important; }
  h3 { font-size: 1.1rem !important; }

  /* Header */
  .logo {
    font-size: 1rem !important;
  }

  .logo-img {
    height: 35px !important;
  }

  .header-btn {
    padding: 0.5rem !important;
    font-size: 1.2rem;
  }

  .cart-badge {
    width: 16px;
    height: 16px;
    font-size: 0.65rem;
    top: -4px;
    right: -4px;
  }

  /* Search */
  .search-input {
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
  }

  .search-btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero section */
  .hero-section {
    padding: 2rem 0;
  }

  .hero-title {
    font-size: 1.5rem !important;
  }

  .hero-subtitle {
    font-size: 0.9rem;
  }

  /* Sections */
  .section {
    padding: 1.5rem 0 !important;
  }

  .section-header h2 {
    font-size: 1.25rem !important;
  }

  /* Product cards */
  .product-card {
    border-radius: var(--radius-md);
  }

  .product-title {
    font-size: 0.9rem !important;
  }

  .product-price {
    font-size: 0.95rem;
  }

  /* Buttons */
  .btn {
    padding: 0.6rem 1rem !important;
    font-size: 0.85rem !important;
  }

  .btn-add-cart,
  .btn-buy-now {
    padding: 0.5rem 0.25rem !important;
    font-size: 0.65rem !important;
  }

  /* Products toolbar */
  .products-toolbar {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start !important;
  }

  .sort-options {
    width: 100%;
  }

  .sort-options select {
    width: 100%;
  }

  /* Product details page */
  .product-details {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .product-info h1 {
    font-size: 1.25rem !important;
  }

  .variant-options {
    flex-direction: column;
  }

  .quantity-selector {
    width: 100%;
  }

  .product-actions {
    flex-direction: column;
    gap: 0.5rem;
  }

  .product-actions .btn {
    width: 100%;
  }

  /* Cart page */
  .cart-page {
    padding: 1rem 0;
  }

  .cart-content {
    flex-direction: column;
  }

  .cart-items {
    width: 100%;
  }

  .cart-summary {
    width: 100%;
    position: static;
  }

  .cart-item {
    grid-template-columns: 80px 1fr;
    gap: 0.75rem;
  }

  .cart-item-image {
    width: 80px;
    height: 80px;
  }

  .cart-item-title {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 0.85rem;
  }

  /* Checkout page */
  .checkout-page {
    padding: 1rem 0;
  }

  .checkout-content {
    flex-direction: column;
  }

  .checkout-form {
    width: 100%;
  }

  .order-summary {
    width: 100%;
    position: static;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Account pages */
  .account-page {
    padding: 1rem 0;
  }

  .account-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 1rem;
  }

  .account-content {
    padding: 1rem;
  }

  /* Orders table */
  .table-responsive {
    overflow-x: auto;
  }

  table {
    font-size: 0.85rem;
  }

  /* Footer */
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-column h4 {
    font-size: 1rem;
  }

  /* Pagination */
  .pagination {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .page-btn {
    padding: 0.4rem 0.6rem;
    font-size: 0.8rem;
  }

  /* Breadcrumb */
  .breadcrumb {
    font-size: 0.8rem;
    padding: 0.5rem 0;
  }

  /* Modals */
  .modal-content {
    margin: 1rem;
    max-width: calc(100% - 2rem);
  }
}

/* Small mobile devices (480px and below) */
@media (max-width: 480px) {
  /* Reduce all spacing */
  .container {
    padding: 0 0.75rem;
  }

  /* Header even more compact */
  .header-actions {
    gap: 0.25rem;
  }

  .header-btn {
    padding: 0.4rem !important;
    font-size: 1.1rem;
  }

  /* Product grid single column */
  .product-grid {
    grid-template-columns: 1fr !important;
  }

  /* Category grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Cart and checkout */
  .cart-item {
    grid-template-columns: 60px 1fr;
  }

  .cart-item-image {
    width: 60px;
    height: 60px;
  }

  /* Forms */
  .form-group label {
    font-size: 0.85rem;
  }

  .form-control {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  /* Buttons */
  .btn {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.8rem !important;
  }

  /* Typography */
  body {
    font-size: 13px !important;
  }

  h1 { font-size: 1.25rem !important; }
  h2 { font-size: 1.1rem !important; }
  h3 { font-size: 1rem !important; }

  /* Top bar - hide completely on very small screens */
  .top-bar-left {
    flex: 1;
  }

  .top-bar-left span {
    font-size: 0.65rem;
  }

  .top-bar-right {
    gap: 0.25rem;
  }
}

/* Landscape phones */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    padding: 1.5rem 0;
  }

  .mobile-nav-menu {
    width: 250px;
  }
}

/* ========================================
   DETAILED RESPONSIVE FIXES FOR ALL PAGES
   ======================================== */

/* Authentication Pages (Login/Register) */
@media (max-width: 768px) {
  .auth-container {
    max-width: 100%;
    padding: 0;
  }

  .auth-card {
    padding: 1.5rem;
    margin: 0.5rem;
  }

  .auth-card h1 {
    font-size: 1.5rem !important;
  }

  .btn-submit,
  .btn-secondary {
    width: 100%;
    padding: 0.75rem !important;
    font-size: 0.9rem !important;
  }
}

/* Cart Page Responsive */
@media (max-width: 992px) {
  .cart-page .row {
    flex-direction: column;
  }

  .cart-items,
  .cart-summary {
    width: 100%;
  }

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

@media (max-width: 768px) {
  .cart-item {
    grid-template-columns: 80px 1fr;
    grid-template-areas:
      "image details"
      "image quantity"
      "image total"
      "actions actions";
    gap: 0.75rem;
    padding: 1rem;
  }

  .cart-item .item-image {
    grid-area: image;
    width: 80px;
    height: 80px;
  }

  .cart-item .item-details {
    grid-area: details;
  }

  .cart-item .item-quantity {
    grid-area: quantity;
  }

  .cart-item .item-total {
    grid-area: total;
  }

  .cart-item .item-actions {
    grid-area: actions;
    justify-content: flex-end;
  }

  .item-details h3 {
    font-size: 0.9rem !important;
  }

  .item-details .price {
    font-size: 0.85rem;
  }

  .qty-btn {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .qty-input {
    width: 50px;
    height: 30px;
    font-size: 0.9rem;
  }

  .promo-code-section {
    flex-direction: column;
  }

  .promo-code-section input {
    width: 100%;
    margin-bottom: 0.5rem;
  }

  .promo-code-section button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
  }

  .cart-item .item-image {
    width: 60px;
    height: 60px;
  }
}

/* Checkout Page Responsive */
@media (max-width: 992px) {
  .checkout-page .row {
    flex-direction: column;
  }

  .checkout-page .col-md-8,
  .checkout-page .col-md-4 {
    width: 100%;
    max-width: 100%;
  }

  .order-summary {
    position: static;
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .form-section {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .form-section h2 {
    font-size: 1.1rem !important;
  }

  .form-row {
    grid-template-columns: 1fr !important;
  }

  .form-row .col-md-6 {
    width: 100%;
  }

  .address-options {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .address-option {
    padding: 0.75rem;
  }

  .address-option label {
    font-size: 0.85rem;
  }

  .payment-option {
    padding: 0.75rem;
  }

  .payment-option label {
    font-size: 0.9rem;
  }

  .summary-items {
    max-height: none;
  }

  .summary-item {
    padding: 0.75rem;
  }

  .summary-item .item-image {
    width: 50px;
    height: 50px;
  }

  .checkout-btn {
    width: 100%;
    padding: 1rem !important;
    font-size: 1rem !important;
  }
}

/* Product Details Page Responsive */
@media (max-width: 992px) {
  .product-details-page .row {
    flex-direction: column;
  }

  .product-images,
  .product-info {
    width: 100%;
  }

  .product-info {
    margin-top: 1.5rem;
  }
}

@media (max-width: 768px) {
  .main-image {
    height: 300px;
  }

  .thumbnail-images {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }

  .product-info h1 {
    font-size: 1.25rem !important;
  }

  .price-section {
    flex-wrap: wrap;
  }

  .price-section .price,
  .price-section .discount-price {
    font-size: 1.25rem;
  }

  .product-variants {
    margin: 1rem 0;
  }

  .variant-group {
    margin-bottom: 1rem;
  }

  .variant-options {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .variant-option {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .quantity-selector {
    width: 100%;
  }

  .product-actions {
    flex-direction: column;
    gap: 0.75rem;
  }

  .product-actions .btn {
    width: 100%;
    padding: 0.75rem !important;
  }

  .product-tabs {
    margin-top: 1.5rem;
  }

  .tab-buttons {
    flex-wrap: wrap;
    gap: 0.25rem;
  }

  .tab-btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 0.65rem;
    font-size: 0.85rem;
  }

  .related-products {
    margin-top: 1.5rem;
  }
}

@media (max-width: 480px) {
  .main-image {
    height: 250px;
  }

  .thumbnail-images {
    grid-template-columns: repeat(3, 1fr);
  }

  .variant-option {
    min-width: 80px;
  }

  .tab-btn {
    min-width: 100px;
    font-size: 0.8rem;
  }
}

/* Forms, Inputs, Checkboxes - Universal Responsive */
@media (max-width: 768px) {
  .form-group {
    margin-bottom: 1rem;
  }

  .form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
  }

  .form-control,
  input.form-control,
  select.form-control,
  textarea.form-control {
    padding: 0.65rem;
    font-size: 0.9rem;
    border-radius: 8px;
  }

  textarea.form-control {
    min-height: 80px;
  }

  .form-check {
    padding: 0.75rem;
  }

  .form-check-input {
    width: 18px;
    height: 18px;
  }

  .form-check-label {
    font-size: 0.85rem;
  }

  /* Radio buttons */
  input[type="radio"] {
    width: 18px;
    height: 18px;
  }

  /* Select dropdowns */
  select.form-control {
    background-size: 12px;
    padding-right: 2rem;
  }
}

@media (max-width: 480px) {
  .form-control {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .form-check-input {
    width: 16px;
    height: 16px;
  }

  .form-check-label {
    font-size: 0.8rem;
  }
}

/* Tables Responsive - Universal */
@media (max-width: 992px) {
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  table th,
  table td {
    padding: 0.5rem;
    white-space: nowrap;
  }
}

@media (max-width: 768px) {
  table {
    font-size: 0.8rem;
  }

  table th,
  table td {
    padding: 0.4rem;
  }

  /* Stack table on very small screens */
  .table-stack {
    display: block;
  }

  .table-stack thead {
    display: none;
  }

  .table-stack tbody {
    display: block;
  }

  .table-stack tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
  }

  .table-stack td {
    display: block;
    text-align: right;
    padding: 0.5rem;
    border: none;
  }

  .table-stack td:before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    color: var(--text-dark);
  }
}

/* Account/Profile Pages */
@media (max-width: 992px) {
  .account-sidebar {
    position: static;
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .account-sidebar .nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .account-sidebar .nav-link {
    flex: 1 1 auto;
    min-width: 150px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .account-page {
    padding: 1rem 0;
  }

  .account-content {
    padding: 1rem;
  }

  .account-header h1 {
    font-size: 1.25rem !important;
  }

  .profile-info {
    padding: 1rem;
  }

  .profile-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .profile-field label {
    font-size: 0.85rem;
  }

  .profile-field span {
    font-size: 0.9rem;
  }
}

/* Orders Page */
@media (max-width: 768px) {
  .orders-page {
    padding: 1rem 0;
  }

  .order-card {
    padding: 1rem;
    margin-bottom: 1rem;
  }

  .order-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .order-number {
    font-size: 0.9rem;
  }

  .order-status {
    font-size: 0.8rem;
    padding: 0.35rem 0.65rem;
  }

  .order-items {
    gap: 0.75rem;
  }

  .order-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .order-item img {
    width: 60px;
    height: 60px;
  }

  .order-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .order-total {
    font-size: 1rem;
  }
}

/* Favorites/Wishlist Page */
@media (max-width: 768px) {
  .favorites-page {
    padding: 1rem 0;
  }

  .favorites-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .favorites-page .product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.75rem;
  }

  .favorites-page .product-card .btn-add-cart {
    font-size: 0.75rem !important;
    padding: 0.6rem 0.5rem !important;
  }
}

@media (max-width: 480px) {
  .favorites-grid {
    grid-template-columns: 1fr !important;
  }

  .favorites-page .product-grid {
    grid-template-columns: 1fr !important;
  }

  .favorites-page .product-card .btn-add-cart {
    font-size: 0.875rem !important;
    padding: 0.75rem 1rem !important;
  }
}

/* Combo Products Page */
@media (max-width: 768px) {
  .combo-products-page {
    padding: 1rem 0;
  }

  .combo-card {
    margin-bottom: 1rem;
  }

  .combo-header {
    padding: 1rem;
  }

  .combo-title {
    font-size: 1.1rem !important;
  }

  .combo-items {
    padding: 1rem;
  }

  .combo-item {
    padding: 0.75rem;
  }

  .combo-footer {
    flex-direction: column;
    gap: 0.75rem;
  }

  .combo-price {
    font-size: 1.25rem;
  }
}

/* Category/Brand Pages */
@media (max-width: 768px) {
  .category-page,
  .brand-page {
    padding: 1rem 0;
  }

  .category-header,
  .brand-header {
    padding: 1.5rem 1rem;
    margin-bottom: 1.5rem;
  }

  .category-banner,
  .brand-logo {
    max-width: 120px;
  }

  .category-header h1,
  .brand-header h1 {
    font-size: 1.25rem !important;
  }

  .category-description,
  .brand-description {
    font-size: 0.85rem;
  }

  .category-stats,
  .brand-stats {
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .stat-item {
    font-size: 0.85rem;
  }
}

/* Modals and Popups */
@media (max-width: 768px) {
  .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .modal-content {
    border-radius: 12px;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-title {
    font-size: 1.1rem !important;
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .modal-footer .btn {
    width: 100%;
  }

  /* SweetAlert2 responsive */
  .swal2-popup {
    width: calc(100% - 2rem) !important;
    padding: 1.5rem !important;
  }

  .swal2-title {
    font-size: 1.25rem !important;
  }

  .swal2-html-container {
    font-size: 0.9rem !important;
  }

  .swal2-actions {
    flex-direction: column-reverse;
    gap: 0.5rem;
  }

  .swal2-confirm,
  .swal2-cancel {
    width: 100%;
    margin: 0 !important;
  }
}

/* Empty States */
@media (max-width: 768px) {
  .empty-cart,
  .empty-state {
    padding: 2rem 1rem;
  }

  .empty-cart i,
  .empty-state i {
    font-size: 3rem !important;
  }

  .empty-cart p,
  .empty-state p {
    font-size: 0.9rem;
  }
}

/* Badges and Labels */
@media (max-width: 768px) {
  .badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .product-badges {
    gap: 0.25rem;
  }

  .product-badges .badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
  }
}

/* Search Results */
@media (max-width: 768px) {
  .search-results-page {
    padding: 1rem 0;
  }

  .search-header {
    padding: 1rem;
  }

  .search-query {
    font-size: 1.1rem;
  }

  .search-count {
    font-size: 0.85rem;
  }
}

/* Floating Action Buttons */
@media (max-width: 768px) {
  .floating-buttons {
    right: 15px;
    bottom: 15px;
    gap: 10px;
  }

  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .floating-btn-text {
    display: none;
  }
}

@media (max-width: 480px) {
  .floating-buttons {
    right: 10px;
    bottom: 10px;
    gap: 8px;
  }

  .floating-btn {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
}

/* Loading States */
@media (max-width: 768px) {
  .loading-spinner {
    width: 40px;
    height: 40px;
  }

  .loading-text {
    font-size: 0.9rem;
  }
}

/* Alerts and Notifications */
@media (max-width: 768px) {
  .alert {
    padding: 0.75rem;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .alert-heading {
    font-size: 1rem !important;
  }

  .notification-toast {
    width: calc(100% - 2rem);
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
  }
}

/* Video Players */
@media (max-width: 768px) {
  .video-container {
    border-radius: 8px;
    overflow: hidden;
  }

  .video-player {
    max-height: 250px;
  }
}

/* Image Galleries */
@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .gallery-item {
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
}

/* Star Ratings */
@media (max-width: 768px) {
  .rating-stars {
    font-size: 0.9rem;
  }

  .rating-text {
    font-size: 0.8rem;
  }
}

/* Progress Bars */
@media (max-width: 768px) {
  .progress {
    height: 8px;
  }

  .progress-label {
    font-size: 0.8rem;
  }
}

/* Tooltips */
@media (max-width: 768px) {
  .tooltip {
    font-size: 0.8rem;
  }
}

/* Dropdowns */
@media (max-width: 768px) {
  .dropdown-menu {
    max-width: calc(100vw - 2rem);
    font-size: 0.85rem;
  }

  .dropdown-item {
    padding: 0.5rem 1rem;
  }
}

/* Admin Dashboard (if accessible on mobile) */
@media (max-width: 992px) {
  .admin-sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    width: 280px;
    height: 100vh;
    z-index: 9999;
    transition: left 0.3s ease;
  }

  .admin-sidebar.active {
    left: 0;
  }

  .admin-content {
    margin-left: 0 !important;
  }

  .admin-toggle-btn {
    display: block;
  }
}

@media (max-width: 768px) {
  .admin-stats {
    grid-template-columns: 1fr !important;
  }

  .stat-card {
    padding: 1rem;
  }

  .chart-container {
    height: 250px;
  }
}

/* Fix Bootstrap column stacking */
@media (max-width: 768px) {
  .row {
    margin-left: 0;
    margin-right: 0;
  }

  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
  .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12 {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

/* Ensure text doesn't overflow */
@media (max-width: 768px) {
  * {
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

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

  iframe {
    max-width: 100%;
  }
}
