/* dfcategorysections - scoped styles */

.dfcatsec-section {
  padding: 40px 0;
  background: #f5f0e1;
  border-bottom: 1px solid #e8e0cc;
}

.dfcatsec-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Banner */
.dfcatsec-banner {
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
}

.dfcatsec-banner-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  transition: transform 0.3s ease;
}

.dfcatsec-banner:hover .dfcatsec-banner-img {
  transform: scale(1.01);
}

/* Category title */
.dfcatsec-category-name {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 20px;
}

/* Carousel container */
.dfcatsec-carousel-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dfcatsec-carousel {
  overflow: hidden;
  flex: 1;
}

.dfcatsec-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s ease;
}

/* Product item */
.dfcatsec-product-item {
  flex: 0 0 calc(25% - 15px);
  min-width: 0;
}

.dfcatsec-product-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
  height: 100%;
}

.dfcatsec-product-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.dfcatsec-product-img-wrap {
  display: block;
  overflow: hidden;
}

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

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

.dfcatsec-product-info {
  padding: 12px;
}

.dfcatsec-product-name {
  display: block;
  font-size: 14px;
  color: #333;
  text-decoration: none;
  margin-bottom: 8px;
  line-height: 1.4;
  min-height: 40px;
}

.dfcatsec-product-name:hover {
  color: #c9a84c;
}

.dfcatsec-product-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.dfcatsec-price {
  font-size: 16px;
  font-weight: 700;
  color: #333;
}

.dfcatsec-price-regular {
  font-size: 13px;
  color: #999;
  text-decoration: line-through;
}

.dfcatsec-price-discount {
  font-size: 16px;
  font-weight: 700;
  color: #e44;
}

/* Arrows */
.dfcatsec-arrow {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  color: #333;
  z-index: 2;
}

.dfcatsec-arrow:hover {
  background: #c9a84c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(201,168,76,0.4);
}

.dfcatsec-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Shop all */
.dfcatsec-shopall {
  text-align: center;
  margin-top: 25px;
}

.dfcatsec-shopall-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1a3a2a;
  color: #fff;
  padding: 12px 35px;
  border-radius: 30px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.3s ease;
}

.dfcatsec-shopall-btn:hover {
  background: #c9a84c;
  color: #fff;
}

/* Responsive */
@media (max-width: 992px) {
  .dfcatsec-product-item {
    flex: 0 0 calc(33.33% - 14px);
  }
}

@media (max-width: 768px) {
  .dfcatsec-product-item {
    flex: 0 0 calc(50% - 10px);
  }
  .dfcatsec-product-img {
    height: 150px;
  }
}

@media (max-width: 480px) {
  .dfcatsec-product-item {
    flex: 0 0 calc(100% - 0px);
  }
}
