

/* ============================================
   PRODUCT CATEGORIES NAVIGATION
   ============================================ */
.product-categories-section {
  background: var(--white);
  padding: var(--spacing-2xl) 0;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header.scrolled + main .product-categories-section {
  top: var(--header-height-scrolled);
}

.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  justify-content: center;
  align-items: center;
}

.category-nav-btn {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.category-nav-btn i {
  font-size: var(--fs-base);
  color: var(--primary-color);
  transition: var(--transition-normal);
}

.category-nav-btn:hover {
  background: var(--gray-100);
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.category-nav-btn.active i {
  color: var(--white);
}

@media (max-width: 768px) {
  .product-categories-section {
    position: relative;
    top: auto;
  }

  .categories-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) 0;
    -webkit-overflow-scrolling: touch;
  }

  .category-nav-btn {
    flex-shrink: 0;
    font-size: var(--fs-xs);
    padding: var(--spacing-xs) var(--spacing-md);
  }
}

/* ============================================
   PRODUCTS CATEGORY SECTIONS
   ============================================ */
.products-category-section {
  padding: var(--spacing-3xl) 0;
  display: block;
}

.products-category-section.hidden {
  display: none;
}

.products-category-section .section-header {
  margin-bottom: var(--spacing-2xl);
}

/* ============================================
   PRODUCTS GRID
   ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }
}

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

/* ============================================
   PRODUCT ITEM CARD
   ============================================ */
.product-item {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

/* Product Image */
.product-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  background: var(--gray-100);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

/* Product Badges */
.product-badges {
  position: absolute;
  top: var(--spacing-md);
  left: var(--spacing-md);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
  z-index: 2;
}

.badge {
  display: inline-block;
  padding: var(--spacing-xs) var(--spacing-md);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  color: var(--white);
}

.badge-popular {
  background: var(--primary-color);
}

.badge-bestseller {
  background: var(--accent-color); /* Green */
}

.badge-new {
  background: var(--accent-light); /* Yellow */
}

.badge-premium {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Product Overlay */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(29, 53, 87, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
}

.product-item:hover .product-overlay {
  opacity: 1;
  visibility: visible;
}

.btn-quick-view {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  background: var(--white);
  color: var(--primary-color);
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
  transform: translateY(20px);
  transition: var(--transition-normal);
}

.product-item:hover .btn-quick-view {
  transform: translateY(0);
}

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

/* Product Info */
.product-info {
  padding: var(--spacing-lg);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Features */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-lg);
  flex: 1;
}

.feature-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Product Actions */
.product-actions {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
  justify-content: center;
}

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

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

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

/* ============================================
   PRODUCT QUICK VIEW MODAL
   ============================================ */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  padding: var(--spacing-lg);
}

.product-modal.active {
  opacity: 1;
  visibility: visible;
}

.product-modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: var(--spacing-md);
  right: var(--spacing-md);
  width: 40px;
  height: 40px;
  background: var(--gray-100);
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xl);
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 10;
}

.modal-close:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-2xl);
}

@media (min-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr 1fr;
  }
}

.modal-image {
  width: 100%;
  height: 400px;
  background: var(--gray-100);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
  overflow: hidden;
}

@media (max-width: 767px) {
  .modal-image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    height: 300px;
  }
}

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

.modal-info {
  padding: var(--spacing-2xl);
}

.modal-info h2 {
  font-size: var(--fs-2xl);
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
}

.modal-info > p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
}

.modal-features,
.modal-specs {
  margin-bottom: var(--spacing-xl);
}

.modal-features h4,
.modal-specs h4 {
  font-size: var(--fs-sm);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 2px solid var(--primary-color);
}

.modal-features ul {
  list-style: none;
}

.modal-features li {
  position: relative;
  padding-left: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.modal-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.modal-specs table {
  width: 100%;
  font-size: var(--fs-sm);
}

.modal-specs tr {
  border-bottom: 1px solid var(--gray-200);
}

.modal-specs td {
  padding: var(--spacing-sm);
}

.modal-specs td:first-child {
  font-weight: 600;
  color: var(--secondary-color);
  width: 40%;
}

.modal-specs td:last-child {
  color: var(--text-secondary);
}

.modal-actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 150px;
  justify-content: center;
}

/* ============================================
   PRODUCT FILTERS (Additional)
   ============================================ */
.product-filters {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--spacing-2xl);
}

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

.filters-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--secondary-color);
}

.clear-filters {
  font-size: var(--fs-sm);
  color: var(--primary-color);
  cursor: pointer;
  text-decoration: underline;
}

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

.filter-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
  display: block;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.filter-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  cursor: pointer;
}

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

.filter-option label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
}

/* ============================================
   PRODUCT LOADING STATE
   ============================================ */
.products-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--gray-300);
  border-top-color: var(--primary-color);
  border-radius: var(--radius-full);
  animation: spin 1s linear infinite;
}

/* ============================================
   PRODUCT SORTING
   ============================================ */
.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-2xl);
  padding: var(--spacing-md);
  background: var(--white);
  border-radius: var(--radius-lg);
}

.results-count {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.sort-dropdown {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.sort-dropdown label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

.sort-dropdown select {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  background: var(--white);
  cursor: pointer;
}

/* ============================================
   NO PRODUCTS MESSAGE
   ============================================ */
.no-products {
  text-align: center;
  padding: var(--spacing-4xl) var(--spacing-xl);
}

.no-products-icon {
  font-size: var(--fs-6xl);
  color: var(--gray-400);
  margin-bottom: var(--spacing-lg);
}

.no-products h3 {
  font-size: var(--fs-xl);
  color: var(--secondary-color);
  margin-bottom: var(--spacing-sm);
}

.no-products p {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   PRODUCT COMPARISON
   ============================================ */
.compare-bar {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background: var(--secondary-dark);
  padding: var(--spacing-md);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  transition: var(--transition-normal);
  z-index: 200;
}

.compare-bar.active {
  bottom: 0;
}

.compare-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--container-max);
  margin: 0 auto;
}

.compare-items {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: var(--fs-sm);
}

.compare-item button {
  background: transparent;
  border: none;
  color: var(--white);
  cursor: pointer;
  margin-left: var(--spacing-xs);
}

.compare-actions {
  display: flex;
  gap: var(--spacing-sm);
}

/* ============================================
   PRODUCT TAGS CLOUD
   ============================================ */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  margin-bottom: var(--spacing-2xl);
}

.tag-item {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

.tag-item:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.tag-item.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

/* ============================================
   PRODUCT LAYOUT OPTIONS
   ============================================ */
.layout-options {
  display: flex;
  gap: var(--spacing-sm);
}

.layout-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-normal);
}

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

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

/* Grid Layout Variations */
.products-grid.list-view {
  grid-template-columns: 1fr;
}

.products-grid.list-view .product-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  height: auto;
}

.products-grid.list-view .product-image {
  height: 100%;
  min-height: 200px;
}

.products-grid.list-view .product-info {
  padding: var(--spacing-xl);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 575px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: 200px;
  }

  .product-modal-content {
    margin: var(--spacing-md);
  }

  .modal-info {
    padding: var(--spacing-lg);
  }

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

  .products-header {
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: stretch;
  }

  .sort-dropdown {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .products-grid {
    gap: var(--spacing-md);
  }

  .product-info {
    padding: var(--spacing-md);
  }

  .products-grid.list-view .product-item {
    grid-template-columns: 1fr;
  }

  .products-grid.list-view .product-image {
    height: 200px;
  }
}

/* ============================================
   PRODUCT ANIMATIONS
   ============================================ */
.product-item {
  animation: fadeInUp 0.5s ease;
}

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

.product-item:nth-child(2) {
  animation-delay: 0.1s;
}
.product-item:nth-child(3) {
  animation-delay: 0.2s;
}
.product-item:nth-child(4) {
  animation-delay: 0.3s;
}
.product-item:nth-child(5) {
  animation-delay: 0.4s;
}
.product-item:nth-child(6) {
  animation-delay: 0.5s;
}
.product-item:nth-child(7) {
  animation-delay: 0.6s;
}
.product-item:nth-child(8) {
  animation-delay: 0.7s;
}

/* Product Hover Effects */
.product-item {
  position: relative;
  overflow: hidden;
}

.product-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(230, 57, 70, 0.1) 100%
  );
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
  z-index: 1;
}

.product-item:hover::before {
  opacity: 1;
}

/* ============================================
   PRODUCT RIBBONS
   ============================================ */
.product-ribbon {
  position: absolute;
  top: 20px;
  right: -35px;
  padding: var(--spacing-xs) var(--spacing-3xl);
  background: var(--primary-color);
  color: var(--white);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: var(--shadow-md);
  z-index: 2;
}

/* ============================================
   PRODUCT SKELETON LOADING
   ============================================ */
.skeleton-product {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-image {
  height: 250px;
  background: var(--gray-200);
}

.skeleton-content {
  padding: var(--spacing-lg);
}

.skeleton-title {
  height: 24px;
  width: 80%;
  margin-bottom: var(--spacing-sm);
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: var(--spacing-xs);
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-buttons {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-lg);
}

.skeleton-button {
  height: 36px;
  flex: 1;
  border-radius: var(--radius-md);
}

/* Modal Active State */
.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
}

.product-modal.active {
  display: flex;
}

.product-modal-content {
  background: white;
  border-radius: 12px;
  max-width: 1000px;
  width: 100%;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e74c3c;
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.modal-close:hover {
  background: #c0392b;
  transform: rotate(90deg);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 30px;
}

.modal-image {
  width: 100%;
  height: 400px;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
}

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

.modal-info h2 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #2c3e50;
}

.modal-info p {
  font-size: 16px;
  line-height: 1.6;
  color: #7f8c8d;
  margin-bottom: 20px;
}

.modal-features,
.modal-specs {
  margin-bottom: 20px;
}

.modal-features h4,
.modal-specs h4 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #34495e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features ul {
  list-style: none;
  padding: 0;
}

.modal-features li {
  padding: 8px 0;
  color: #555;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-features li i {
  color: #27ae60;
}

.modal-specs table {
  width: 100%;
  border-collapse: collapse;
}

.modal-specs table tr {
  border-bottom: 1px solid #ecf0f1;
}

.modal-specs table td {
  padding: 10px;
  font-size: 14px;
}

.modal-specs table td:first-child {
  color: #7f8c8d;
  width: 40%;
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

@media (max-width: 768px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-image {
    height: 300px;
  }

  .modal-actions {
    flex-direction: column;
  }

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

/* ============================================
   PRODUCT CATEGORIES HORIZONTAL NAVIGATION
   ============================================ */

/* Section Container */
.product-categories-section {
  background: var(--white);
  padding: 0;
  position: sticky;
  top: var(--header-height);
  z-index: 100;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--spacing-2xl);
}

/* Adjust for scrolled header */
.header.scrolled ~ main .product-categories-section,
.header.scrolled ~ .product-categories-section {
  top: var(--header-height-scrolled);
}

/* Navigation Wrapper */
.categories-nav-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  padding: 15px 0;
}

/* Main Navigation Container */
.categories-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 40px;
  width: 100%;

  /* Hide scrollbar but keep functionality */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

/* Category Button */
.category-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  padding: 12px 16px;
  background: var(--gray-100);
  border: 2px solid transparent;
  border-radius: var(--radius-lg);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

/* Button Icon */
.category-nav-btn i {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 6px;
  transition: all var(--transition-normal);
}

/* Button Text */
.category-nav-btn span {
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

/* Product Count */
.category-nav-btn small {
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 2px;
  font-weight: 500;
}

/* Hover State */
.category-nav-btn:hover {
  background: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(244, 166, 29, 0.2);
}

.category-nav-btn:hover i,
.category-nav-btn:hover span,
.category-nav-btn:hover small {
  color: var(--white);
}

/* Active State */
.category-nav-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(244, 166, 29, 0.3);
}

.category-nav-btn.active i,
.category-nav-btn.active span,
.category-nav-btn.active small {
  color: var(--white);
}

/* Active indicator */
.category-nav-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--secondary-color);
}

/* Scroll Buttons */
.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 35px;
  height: 35px;
  background: var(--white);
  border: 2px solid var(--primary-color);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.scroll-btn:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
}

.scroll-btn i {
  font-size: 14px;
  color: var(--primary-color);
}

.scroll-btn:hover i {
  color: var(--white);
}

.scroll-btn-left {
  left: 10px;
}

.scroll-btn-right {
  right: 10px;
}

/* Hide scroll buttons on mobile */
@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }

  .categories-nav {
    padding: 10px 15px;
  }
}

/* Mobile Dropdown (Hidden by default) */
.categories-dropdown-wrapper {
  display: none;
  padding: 15px;
  background: var(--gray-100);
}

.categories-dropdown {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary-color);
  background: var(--white);
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
}

.categories-dropdown:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(244, 166, 29, 0.1);
}

/* Mobile View */
@media (max-width: 576px) {
  .categories-nav-wrapper {
    display: none;
  }

  .categories-dropdown-wrapper {
    display: block;
  }

  .product-categories-section {
    position: relative;
    top: auto;
  }
}

/* Desktop adjustments */
@media (min-width: 1200px) {
  .category-nav-btn {
    min-width: 140px;
    padding: 15px 20px;
  }

  .category-nav-btn i {
    font-size: 28px;
    margin-bottom: 8px;
  }

  .category-nav-btn span {
    font-size: 14px;
  }

  .category-nav-btn small {
    font-size: 11px;
    margin-top: 4px;
  }
}

/* Sticky behavior for desktop */
@media (min-width: 769px) {
  .product-categories-section {
    top: var(--header-height);
  }

  .header.scrolled ~ main .product-categories-section {
    top: 70px;
  }
}

/* Category Colors (Optional - Different colors for each category) */
.category-nav-btn[data-target="school-bench"] i {
  color: #2196f3;
}
.category-nav-btn[data-target="playground"] i {
  color: #4caf50;
}
.category-nav-btn[data-target="garden"] i {
  color: #8bc34a;
}
.category-nav-btn[data-target="fitness"] i {
  color: #ff5722;
}
.category-nav-btn[data-target="playschool"] i {
  color: #e91e63;
}
.category-nav-btn[data-target="fiber"] i {
  color: #9c27b0;
}
.category-nav-btn[data-target="utility"] i {
  color: #607d8b;
}
.category-nav-btn[data-target="hostel"] i {
  color: #795548;
}
.category-nav-btn[data-target="indoor-play"] i {
  color: #ff9800;
}

.category-nav-btn:hover i,
.category-nav-btn.active i {
  color: var(--white) !important;
}

/* Loading animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.categories-nav.loading .category-nav-btn {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* ============================================
   ENHANCED PRODUCT MODAL STYLES
   ============================================ */

.product-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  overflow-y: auto;
  backdrop-filter: blur(5px);
}

.product-modal.active {
  display: flex;
}

.product-modal-content {
  background: var(--white);
  border-radius: 16px;
  max-width: 1100px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: modalSlideIn 0.4s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
}

.modal-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

/* Modal Images Section */
.modal-images-section {
  background: var(--gray-100);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.modal-main-image {
  flex: 1;
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 350px;
}

.modal-main-image img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.modal-main-image:hover img {
  transform: scale(1.05);
}

.modal-thumbnails {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.modal-thumbnails img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.7;
}

.modal-thumbnails img:hover,
.modal-thumbnails img.active {
  border-color: var(--primary-color);
  opacity: 1;
  transform: scale(1.05);
}

/* Modal Info Section */
.modal-info-section {
  padding: 30px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.modal-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.modal-badges .badge {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 20px;
  color: var(--white);
}

.modal-badges .badge-popular {
  background: linear-gradient(135deg, #e63946 0%, #f25c69 100%);
}

.modal-badges .badge-bestseller {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.modal-badges .badge-new {
  background: linear-gradient(135deg, #3498db 0%, #5dade2 100%);
}

.modal-badges .badge-premium {
  background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.modal-price {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 2px solid var(--gray-200);
}

.modal-price .price-request {
  color: var(--secondary-color);
  font-size: 18px;
}

.modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

.modal-features {
  margin-bottom: 25px;
}

.modal-features h4,
.modal-specs h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features h4 i,
.modal-specs h4 i {
  color: var(--primary-color);
}

.modal-features ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-features li {
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.modal-features li i {
  color: #27ae60;
  font-size: 12px;
}

.modal-specs {
  margin-bottom: 25px;
}

.modal-specs table {
  width: 100%;
  border-collapse: collapse;
}

.modal-specs tr {
  border-bottom: 1px solid var(--gray-200);
}

.modal-specs tr:last-child {
  border-bottom: none;
}

.modal-specs td {
  padding: 10px 5px;
  font-size: 14px;
}

.modal-specs td:first-child {
  color: var(--text-secondary);
  font-weight: 500;
  width: 45%;
}

.modal-specs td:last-child {
  color: var(--secondary-color);
  font-weight: 600;
}

.modal-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 140px;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  border-radius: 8px;
}

.modal-actions .btn i {
  margin-right: 8px;
}

#modalWhatsAppBtn {
  background: #25d366;
  border-color: #25d366;
  color: var(--white);
}

#modalWhatsAppBtn:hover {
  background: #128c7e;
  border-color: #128c7e;
}

.modal-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--gray-200);
}

.modal-share span {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 500;
}

.share-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

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

#shareWhatsApp:hover {
  background: #25d366;
  border-color: #25d366;
}

#shareFacebook:hover {
  background: #1877f2;
  border-color: #1877f2;
}

#shareTwitter:hover {
  background: #1da1f2;
  border-color: #1da1f2;
}

/* Responsive Modal */
@media (max-width: 900px) {
  .modal-body {
    grid-template-columns: 1fr;
  }

  .modal-images-section {
    order: 1;
    padding: 20px;
  }

  .modal-info-section {
    order: 2;
    padding: 20px;
  }

  .modal-main-image {
    min-height: 250px;
  }

  .modal-main-image img {
    max-height: 280px;
  }
}

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

  .product-modal-content {
    max-height: 95vh;
    border-radius: 12px;
  }

  .modal-close {
    width: 38px;
    height: 38px;
    top: 10px;
    right: 10px;
  }

  .modal-images-section,
  .modal-info-section {
    padding: 15px;
  }

  .modal-title {
    font-size: 22px;
  }

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

  .modal-features ul {
    grid-template-columns: 1fr;
  }

  .modal-actions {
    flex-direction: column;
  }

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

  .modal-thumbnails img {
    width: 55px;
    height: 55px;
  }
}

/* Product Price Styles */
.product-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.price-amount {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-color);
}

.price-unit {
  font-size: 12px;
  color: var(--text-secondary);
}

.price-request-badge {
  background: var(--gray-200);
  color: var(--secondary-color);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

/* Specifications Tags */
.product-specs-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.spec-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.spec-tag i {
  color: var(--primary-color);
  font-size: 10px;
}

/* Loading Placeholder */
.image-placeholder {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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



