:root {
  --primary-light: #2196F3;
  --primary-dark:  #0D47A1;

  --accent-light: #64B5F6;
  --accent-dark:  #1976D2;
}

/* Whitelabel Store Specific Styles */
.whitelabel-store .store-background {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 320px;
  width: 100%;
  position: relative;
  overflow: visible;
  margin-bottom: 100px;
}

.whitelabel-store .store-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.2) 0%, 
    rgba(0, 0, 0, 0.4) 50%, 
    rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.whitelabel-store .store-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
    rgba(102, 126, 234, 0.15) 0%,
    transparent 100%);
  z-index: 2;
}

.whitelabel-store .store-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 0 20px;
}

.whitelabel-store .store-hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 0;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
  letter-spacing: -2px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.9) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.whitelabel-store .hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.whitelabel-store .hero-btn-primary {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: white;
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.whitelabel-store .hero-btn-primary:hover {
  background: linear-gradient(135deg, #218838 0%, #1e7e34 100%);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  color: white;
  text-decoration: none;
}

.whitelabel-store .hero-btn-secondary {
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #333;
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

.whitelabel-store .hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 1);
  color: #333;
  text-decoration: none;
}

.whitelabel-store .store-background .btn {
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: #333;
  backdrop-filter: blur(15px);
  border-radius: 50px;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.whitelabel-store .store-background .btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 1);
}

.whitelabel-store .store-logo-container {
  position: absolute;
  bottom: -75px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
}

.whitelabel-store .avatar {
  background: #ffffff;
  height: 150px;
  width: 150px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  border: 8px solid white;
  position: relative;
  overflow: hidden;
  border-radius: 30px;
}

.whitelabel-store .avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
}

.whitelabel-store .avatar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
  pointer-events: none;
}

.whitelabel-store .avatar > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.whitelabel-store .avatar:hover > img {
  transform: scale(1.1);
}

.whitelabel-store .store-name-floating {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(15px);
  padding: 12px 24px;
  border-radius: 25px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  z-index: 5;
  white-space: nowrap;
}

.whitelabel-store .store-name-floating h5 {
  margin: 0;
  font-weight: 700;
  color: #333;
  font-size: 18px;
  text-shadow: none;
}

/* Products Section Styling */
.whitelabel-store .products-section {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 40px 0;
  margin-top: 80px;
}

/* Enhanced Filters Container */
.whitelabel-store .filters-container {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #e9ecef;
  overflow: hidden;
  position: sticky;
  top: 20px;
}

.whitelabel-store .filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
}

.whitelabel-store .filters-header h4 {
  margin: 0;
  font-weight: 700;
  font-size: 18px;
}

.whitelabel-store .clear-filters {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.whitelabel-store .clear-filters:hover {
  color: white;
  text-decoration: underline;
}

.whitelabel-store .filter-section {
  padding: 20px 24px;
  border-bottom: 1px solid #f0f0f0;
}

.whitelabel-store .filter-section:last-child {
  border-bottom: none;
}

.whitelabel-store .filter-section h6 {
  font-weight: 600;
  color: #2d3436;
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Quick Filters */
.whitelabel-store .quick-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.whitelabel-store .quick-filter-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: left;
  font-size: 14px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whitelabel-store .quick-filter-btn:hover {
  background: #e9ecef;
  border-color: #667eea;
  transform: translateX(4px);
}

.whitelabel-store .quick-filter-btn.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: #667eea;
}

/* Enhanced Form Controls */
.whitelabel-store .filter-form .form-group {
  margin-bottom: 16px;
}

.whitelabel-store .filter-form .form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 12px 16px;
  font-size: 14px;
  transition: all 0.3s ease;
  background: #fafafa;
}

.whitelabel-store .filter-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
  background: white;
}

.whitelabel-store .filter-apply-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.whitelabel-store .filter-apply-btn:hover {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

/* Categories List */
.whitelabel-store .categories-list {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  word-wrap: break-word;
}

.whitelabel-store .category-filter-item {
  margin-bottom: 8px;
}

.whitelabel-store .category-filter-item a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  text-decoration: none;
  color: #495057;
  font-size: 14px;
  transition: all 0.3s ease;
  white-space: normal;
  word-break: break-word;
}

.whitelabel-store .category-filter-item a:hover {
  background: #e9ecef;
  color: #667eea;
  transform: translateX(4px);
}

.whitelabel-store .category-filter-item.active a {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
}

.whitelabel-store .category-filter-item .count {
  font-size: 12px;
  opacity: 0.8;
}

/* Products Header */
.whitelabel-store .products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding: 0 16px;
}

.whitelabel-store .products-count {
  font-size: 16px;
  color: #6c757d;
  font-weight: 500;
}

.whitelabel-store .current-category {
  font-size: 18px;
  font-weight: 600;
  color: #2d3436;
}

/* Products Grid */
.whitelabel-store .products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 16px;
}

@media (max-width: 1200px) {
  .whitelabel-store .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .whitelabel-store .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .whitelabel-store .products-grid {
    grid-template-columns: 1fr;
  }
}

.whitelabel-store .product-link {
  text-decoration: none;
  color: inherit;
}

/* Enhanced Product Cards for Whitelabel */
.whitelabel-store .product-card {
  width: 100%;
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.whitelabel-store .product-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12);
  border-color: rgba(102, 126, 234, 0.2);
}

.whitelabel-store .product-tumb {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.whitelabel-store .product-tumb::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.whitelabel-store .product-tumb img {
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  padding: 20px;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.whitelabel-store .product-card:hover .product-tumb img {
  transform: scale(1.08) rotate(2deg);
}

.whitelabel-store .product-details {
  padding: 24px;
  background: linear-gradient(to bottom, #ffffff 0%, #fafbfc 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.whitelabel-store .product-details::before {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e0e0e0 50%, transparent 100%);
}

.whitelabel-store .product-catagory {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.whitelabel-store .product-details h4 {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(135deg, #2d3436 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  line-height: 1;
  transition: all 0.3s ease;
}

.whitelabel-store .product-card:hover .product-details h4 {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.whitelabel-store .product-details small {
  font-size: 14px;
  line-height: 1.6;
  color: #6c757d;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 16px;
  font-weight: 500;
}

.whitelabel-store .product-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.whitelabel-store .view-more-btn {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.whitelabel-store .view-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.whitelabel-store .prod-badge {
  position: absolute;
  right: 16px;
  top: 16px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  padding: 8px 16px;
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(255, 107, 107, 0.4);
  z-index: 2;
  animation: badge-pulse 2s ease-in-out infinite;
}

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

.whitelabel-store .product-availability {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
}

.whitelabel-store .product-availability::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #28a745;
  border-radius: 50%;
  display: inline-block;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Empty State */
.whitelabel-store .empty-state {
  text-align: center;
  padding: 80px 20px;
  color: #6c757d;
}

.whitelabel-store .empty-icon {
  margin-bottom: 24px;
  color: #dee2e6;
}

.whitelabel-store .empty-state h4 {
  margin-bottom: 16px;
  color: #495057;
}

.whitelabel-store .empty-state p {
  margin-bottom: 32px;
  font-size: 16px;
}

.whitelabel-store .empty-state .btn {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 32px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .whitelabel-store .store-background {
    height: 250px;
    margin-bottom: 80px;
  }

  .whitelabel-store .store-hero-content h1 {
    font-size: 2.5rem;
  }

  .whitelabel-store .avatar {
    height: 120px;
    width: 120px;
  }

  .whitelabel-store .store-logo-container {
    bottom: -60px;
  }

  .whitelabel-store .store-background .btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .whitelabel-store .products-section {
    padding: 20px 0;
    margin-top: 60px;
  }

  .whitelabel-store .filters-container {
    position: static;
    margin-bottom: 24px;
  }
}

@media (max-width: 576px) {
  .whitelabel-store .store-background {
    height: 200px;
  }

  .whitelabel-store .store-hero-content h1 {
    font-size: 2rem;
  }

  .whitelabel-store .store-hero-content p {
    font-size: 1rem;
  }

  .whitelabel-store .avatar {
    height: 80px;
    width: 80px;
  }

  .whitelabel-store .store-logo-container {
    bottom: -40px;
  }

  .whitelabel-store .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .whitelabel-store .hero-btn-primary,
  .whitelabel-store .hero-btn-secondary {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* Modern Ecommerce Products Section */
.whitelabel-products-section {
  background: #f8f9fa;
  min-height: 100vh;
  padding: 40px 0;
}

/* Modern Breadcrumb */
.ecommerce-breadcrumb {
  margin-bottom: 20px;
}

.breadcrumb-modern {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.breadcrumb-item-modern {
  font-size: 14px;
  color: #6c757d;
}

.breadcrumb-item-modern:not(:last-child)::after {
  content: '>';
  margin: 0 12px;
  color: #dee2e6;
  font-weight: 600;
}

.breadcrumb-item-modern a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.breadcrumb-item-modern a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.breadcrumb-item-modern.active span {
  color: #495057;
  font-weight: 600;
}

/* Modern Search and Filter Bar */
.ecommerce-search-bar {
  background: white;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e9ecef;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}

.search-container {
  display: flex;
  flex: 1;
  min-width: 300px;
  position: relative;
}

.search-input {
  flex: 1;
  padding: 15px 20px;
  border: 2px solid #e9ecef;
  border-radius: 50px;
  font-size: 16px;
  outline: none;
  transition: all 0.3s ease;
  padding-right: 60px;
}

.search-input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  border: none;
  border-radius: 50px;
  padding: 12px 20px;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  transform: translateY(-50%) scale(1.05);
}

.filter-tags {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.filter-tag {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-decoration: none;
  color: #495057;
  display: inline-block;
}

.filter-tag:hover {
  border-color: #667eea;
  background: #f0f2ff;
  color: #667eea;
  text-decoration: none;
}

.filter-tag.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white !important;
  border-color: #667eea;
  text-decoration: none;
}

.sort-dropdown {
  min-width: 150px;
}

.sort-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  background: white;
  font-size: 14px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.sort-select:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.15);
}

/* Modern Products Grid */
.modern-products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 20px;
}

@media (max-width: 1200px) {
  .modern-products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 576px) {
  .modern-products-grid {
    grid-template-columns: 1fr;
  }
}

.modern-product-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modern-product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: #e0e0e0;
}

.product-link-modern {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-image-container {
  position: relative;
  height: 220px;
  background: #ffffff;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
  transition: transform 0.4s ease;
}

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

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.4s ease;
}

.modern-product-card:hover .product-overlay {
  opacity: 0.8;
}

.view-product {
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 25px;
  transition: all 0.3s ease;
}

.product-overlay:hover .view-product {
  background: white;
  color: #667eea;
}

.product-info {
  padding: 20px;
}

.product-price {
  font-size: 24px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 8px;
}

.product-title {
  font-size: 16px;
  font-weight: 600;
  color: #636e72;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-code {
  font-size: 12px;
  color: #b2bec3;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* Responsive Design for Modern Layout */
@media (max-width: 768px) {
  .ecommerce-search-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .search-container {
    min-width: auto;
  }

  .filter-tags {
    justify-content: center;
  }

  .product-image-container {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-info {
    padding: 16px;
  }

  .product-price {
    font-size: 20px;
  }

  .search-input {
    font-size: 16px; /* Prevents zoom on iOS */
  }
}

/* Category Section for Whitelabel */
.whitelabel-categories-section {
  padding: 80px 0;
  background: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 42px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 18px;
  color: #6c757d;
  font-weight: 400;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.category-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border: 2px solid #e9ecef;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: center;
  text-decoration: none;
  color: #2d3436;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.category-card::before {
  content: '';
  position: absolute;
  top: -100%;
  left: -100%;
  width: 300%;
  height: 300%;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  transform: rotate(45deg);
  transition: all 0.6s ease;
}

.category-card:hover::before {
  top: -50%;
  left: -50%;
}

.category-card:hover {
  transform: translateY(-8px);
  border-color: #667eea;
  box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
}

.category-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
}

.category-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.category-icon i {
  color: white;
}

.category-card:hover .category-icon {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.category-name {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.category-arrow {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #667eea;
  position: relative;
  z-index: 1;
}

.category-card:hover .category-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Featured Products Section */
.whitelabel-featured-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.featured-product-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.featured-product-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
  color: #333;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4);
}

.featured-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.featured-image {
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-image img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.featured-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.featured-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 16px;
  line-height: 1.4;
}

.featured-price {
  font-size: 32px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.featured-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
  margin-top: auto;
}

.featured-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
}

/* Contact Section */
.whitelabel-contact-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.contact-info h2 {
  font-size: 36px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 18px;
  color: #6c757d;
  margin-bottom: 40px;
}

.contact-methods {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: white;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: #2d3436;
  font-weight: 600;
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.contact-method.whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
}

.contact-method.whatsapp:hover {
  background: linear-gradient(135deg, #128c7e 0%, #075e54 100%);
  color: white;
}

.contact-method i {
  font-size: 24px;
}

.contact-image {
  text-align: center;
}

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

.featured-stock {
  margin: 12px 0;
}

/* Promotions Section */
.whitelabel-promotions-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #fff5f5 0%, #ffe0e0 100%);
}

.promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.promotion-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.08);
  border: 1px solid rgba(255, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.promotion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(255, 0, 0, 0.15);
}

.discount-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ff4757 0%, #ff6348 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  z-index: 2;
  animation: pulse-badge 2s ease-in-out infinite;
}

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

.promotion-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.promotion-image {
  height: 200px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

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

.promotion-info {
  padding: 20px;
}

.promotion-info h4 {
  font-size: 16px;
  font-weight: 700;
  color: #2d3436;
  margin-bottom: 12px;
  line-height: 1.4;
}

.price-container {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.promotion-price {
  font-size: 28px;
  font-weight: 800;
  color: #ff4757;
}

.promotion-stock {
  font-size: 13px;
  color: #ff6348;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.promotion-stock i {
  color: #ffd700;
}

/* Spacing for sections after whitelabel banner */
.whitelabel-store + section {
  margin-top: 0;
}

/* Beautiful Whitelabel Products Section */
.whitelabel-products-section .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.whitelabel-products-section .section-header h2 {
  font-size: 36px;
  font-weight: 800;
  color: #2d3436;
  margin-bottom: 12px;
}

.whitelabel-products-section .section-header p {
  font-size: 18px;
  color: #6c757d;
}

/* Responsive adjustments for better 4-column layout */
@media (min-width: 1400px) {
  .whitelabel-store .products-grid,
  .modern-products-grid {
    max-width: 1320px;
    margin: 0 auto;
  }
}

/* Price Filter Buttons */
.price-filter-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-filter-btn {
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #495057;
  display: block;
}

.price-filter-btn:hover {
  background: #e9ecef;
  border-color: #667eea;
  color: #667eea;
  text-decoration: none;
  transform: translateX(4px);
}

.price-filter-btn.active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  color: white;
  border-color: #667eea;
}

.price-filter-btn.active:hover {
  color: white;
}

/* Featured Products Carousel */
.featured-carousel-container {
  position: relative; overflow: visible;
}

.featured-prev, .featured-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
}
.featured-prev { left: 0; transform: translate(-50%, -50%); }
.featured-next { right: 0; transform: translate(50%, -50%); }


.featured-products-swiper {
  overflow: hidden;
}

.featured-products-swiper .swiper-slide {
  height: auto;
}

.featured-products-swiper .featured-product-card {
  height: 100%;
  min-width: 0;
}

.featured-products-swiper .swiper-button-next,
.featured-products-swiper .swiper-button-prev {
  background: white;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  z-index: 10;
}

.featured-products-swiper .swiper-button-next:hover,
.featured-products-swiper .swiper-button-prev:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
}

.featured-products-swiper .swiper-button-next::after,
.featured-products-swiper .swiper-button-prev::after {
  font-size: 20px;
  color: #667eea;
  font-weight: bold;
}

.featured-products-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #e9ecef;
  opacity: 1;
  transition: all 0.3s ease;
}

.featured-products-swiper .swiper-pagination-bullet-active {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  width: 30px;
  border-radius: 5px;
}

@media (max-width: 768px) {
  .featured-carousel-container {
    padding: 0 20px;
  }

  .featured-products-swiper .swiper-button-next,
  .featured-products-swiper .swiper-button-prev {
    width: 36px;
    height: 36px;
  }
}

.whitelabel-products-section .btn-primary,
.whitelabel-products-section .btn-primary:hover,
.whitelabel-products-section .btn-primary:focus {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  border-color: #667eea;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  border-radius: 25px;
}


.whitelabel-products-section .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

/* Fix for WhatsApp icon display */
.contact-method img[alt="WhatsApp"] {
  display: inline-block;
  width: 56px;
  height: 56px;
  object-fit: contain;
}

/* ===================================
   MOBILE COLLAPSIBLE FILTERS
   =================================== */

@media (max-width: 991px) {
  /* Keep filters in place but make them collapsible */
  .whitelabel-store .filters-container {
    position: static;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Make filter sections collapsible on mobile */
  .whitelabel-store .filter-section {
    position: relative;
    overflow: hidden;
    max-height: 60px;
    transition: max-height 0.3s ease;
  }
  
  .whitelabel-store .filter-section.expanded {
    max-height: 500px;
  }
  
  .whitelabel-store .filter-section h6 {
    cursor: pointer;
    position: relative;
    padding-right: 30px;
    margin-bottom: 0;
    padding-bottom: 16px;
  }
  
  .whitelabel-store .filter-section h6::after {
    content: '\f078'; /* Font Awesome chevron-down */
    font-family: 'FontAwesome';
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s ease;
  }
  
  .whitelabel-store .filter-section.expanded h6::after {
    transform: rotate(180deg);
  }
  
  .whitelabel-store .filter-section .filter-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    padding-top: 16px;
  }
  
  .whitelabel-store .filter-section.expanded .filter-content {
    opacity: 1;
    visibility: visible;
  }
  
  /* Hide the floating filter button since we're using collapsible filters */
  .mobile-filter-toggle {
    display: none !important;
  }
}