/* ===== top_modular.css ===== */
/* ===== TOP MODULARS SECTION ===== */
.top-modular-cabinets {
  padding: 80px 0;
  background: #fafafa;
  width: 100%;
  position: relative;
}

.top-modular-cabinets .box {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}

/* Section Header */
.top-modular-cabinets .section-header {
  text-align: center;
  margin-bottom: 50px;
}

.top-modular-cabinets .section-title {
  font-size: 36px;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: #2F1200;
  margin-bottom: 12px;
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
}

.top-modular-cabinets .section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c27a1e, transparent);
}

.top-modular-cabinets .section-subtitle {
  font-size: 16px;
  font-family: 'Montserrat', sans-serif;
  color: #666;
  margin-top: 20px;
}

/* Carousel Wrapper */
.carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 20px 0;
}

/* Products Carousel */
.products-carousel {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 5px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y pinch-zoom;
}

.products-carousel::-webkit-scrollbar {
  display: none;
}

/* Navigation Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #2F1200;
  border-radius: 50%;
  color: #2F1200;
  font-size: 28px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.carousel-arrow:hover {
  background: #2F1200;
  color: white;
  border-color: #2F1200;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 4px 12px rgba(47, 18, 0, 0.2);
}

.carousel-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.left {
  left: 20px;
}

.carousel-arrow.right {
  right: 20px;
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: #f5f5f5;
}

.carousel-arrow:disabled:hover {
  transform: translateY(-50%);
  background: #f5f5f5;
  color: #999;
  border-color: #e0e0e0;
}

/* Product Card */
.products-carousel .product-card {
  flex: 0 0 360px;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
}

.products-carousel .product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Product Image */
.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background: #f5f5f5;
}

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

.products-carousel .product-card:hover .product-image {
  transform: scale(1.08);
}

.product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(47, 18, 0, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

/* Product Info */
.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-code {
  font-size: 11px;
  color: #c27a1e;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.product-name {
  font-size: 18px;
  font-weight: 600;
  color: #2F1200;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
  min-height: 50px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #666;
  font-family: 'Montserrat', sans-serif;
}

.detail-item i {
  color: #c27a1e;
  font-size: 16px;
}

/* View Details Button */
.view-details-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 24px;
  background: #2F1200;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  margin-top: auto;
}

.view-details-btn:hover {
  background: #c27a1e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 122, 30, 0.3);
}

.view-details-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.view-details-btn:hover i {
  transform: translateX(4px);
}

/* View All Button */
.view-all-wrapper {
  text-align: center;
  margin-top: 50px;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: white;
  color: #2F1200;
  text-decoration: none;
  border: 2px solid #2F1200;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #2F1200;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 18, 0, 0.2);
}

.view-all-btn i {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.view-all-btn:hover i {
  transform: translateX(4px);
}

/* No Products Message */
.no-products-message {
  text-align: center;
  padding: 60px 20px;
}

.no-products-message i {
  font-size: 64px;
  color: #ccc;
  margin-bottom: 20px;
}

.no-products-message p {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
}

.browse-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #2F1200;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.browse-btn:hover {
  background: #c27a1e;
  transform: translateY(-2px);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 1024px) {
  .top-modular-cabinets {
    padding: 60px 0;
  }

  .top-modular-cabinets .box {
    padding: 0 60px;
  }

  .top-modular-cabinets .section-title {
    font-size: 32px;
  }

  .products-carousel .product-card {
    flex: 0 0 340px;
  }

  .product-image-wrapper {
    height: 300px;
  }

  .carousel-arrow {
    width: 52px;
    height: 52px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .top-modular-cabinets {
    padding: 50px 0;
  }

  .top-modular-cabinets .box {
    padding: 0 20px;
  }

  .top-modular-cabinets .section-title {
    font-size: 28px;
  }

  .top-modular-cabinets .section-subtitle {
    font-size: 14px;
  }

  /* Hide arrows on mobile */
  .carousel-arrow {
    display: none;
  }

  .products-carousel {
    gap: 20px;
    padding: 10px;
  }

  .products-carousel .product-card {
    flex: 0 0 280px;
  }

  .product-image-wrapper {
    height: 240px;
  }

  .view-all-wrapper {
    margin-top: 40px;
  }
}

/* Small Mobile */
@media (max-width: 480px) {
  .top-modular-cabinets .section-title {
    font-size: 24px;
  }

  .products-carousel .product-card {
    flex: 0 0 260px;
  }

  .product-image-wrapper {
    height: 220px;
  }

  .product-info {
    padding: 16px;
  }

  .product-name {
    font-size: 16px;
  }
}