/* Category carousel - Continuous Sliding Version */
.category-scroll-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  background: #f8f9fa;
  border-radius: 12px;
}

.category-scroll-wrapper {
  display: flex;
  width: 100%;
  gap: 20px;
  padding: 0 20px;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

/* Category Navigation Buttons */
.category-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #53092e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 157, 35, 0.3);
  z-index: 10;
}

.category-nav-btn:hover {
  background: #53092e;
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(98, 157, 35, 0.4);
}

.category-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.category-nav-prev {
  left: 10px;
}

.category-nav-next {
  right: 10px;
}

.category-nav-btn i {
  font-size: 16px;
  font-weight: 600;
}

.category-item {
  flex: 0 0 auto;
  min-width: auto;
}

.category-item .single-category-one {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  text-align: center;
}

.category-item .single-category-one img {
  max-width: 60px;
  height: auto;
  margin-bottom: 10px;
}

.category-item .single-category-one p {
  margin: 0;
  font-weight: 600;
  color: #333;
}

/* Responsive */
@media (max-width: 768px) {
  .category-item {
    min-width: 150px;
  }
  
  .category-nav-btn {
    width: 38px;
    height: 38px;
  }
  
  .category-nav-btn i {
    font-size: 14px;
  }
  
  .category-nav-prev {
    left: 5px;
  }
  
  .category-nav-next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .category-item {
    min-width: 120px;
  }
  
  .category-nav-btn {
    width: 32px;
    height: 32px;
  }
  
  .category-nav-btn i {
    font-size: 12px;
  }
  
  .category-nav-prev {
    left: 2px;
  }
  
  .category-nav-next {
    right: 2px;
  }
}

/* Featured Grocery Carousel Styles */
.featured-grocery-header {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 60px;
  width: 100%;
  gap: 12px;
}

.featured-grocery-header .section-heading {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.featured-grocery-header .section-title {
  margin: 0;
}

.featured-grocery-header .description {
  margin: 0;
  color: #6B7280;
  font-size: 16px;
  line-height: 1.5;
}

.featured-grocery-header .grocery-navigation {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 15px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #53092e;
  margin: 0;
  line-height: 60px;
}

.grocery-navigation {
  display: flex;
  gap: 15px;
}

.grocery-nav-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #53092e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(98, 157, 35, 0.3);
}

.grocery-nav-btn:hover {
  background: #53092e;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(98, 157, 35, 0.4);
}

.grocery-nav-btn:active {
  transform: scale(0.95);
}

.grocery-nav-btn i {
  font-size: 16px;
  font-weight: 600;
}

.grocery-scroll-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.grocery-scroll-wrapper {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  transition: transform 0.3s ease;
}

.grocery-item {
  flex: 0 0 auto;
  min-width: 250px;
  max-width: 250px;
}

.single-shopping-card-one {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  height: 100%;
}

.single-shopping-card-one:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.grocery-item .image-and-action-area-wrapper {
  position: relative;
}

.grocery-item .badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #FFD700;
  color: #333;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.grocery-item .badge span {
  line-height: 1.2;
}

.grocery-item .badge i {
  position: absolute;
  top: 20px;
  right: -5px;
  background: #FF6B6B;
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.grocery-item .thumbnail-preview img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grocery-item .single-shopping-card-one:hover .thumbnail-preview img {
  transform: scale(1.05);
}

.grocery-item .body-content {
  padding: 2px;
}

.grocery-item .title {
  font-size: 16px;
  font-weight: 600;
  color: #53092e;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.grocery-item .availability {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
  display: block;
}

.grocery-item .price-area {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.grocery-item .current {
  color: #FF6B6B;
  font-size: 18px;
  font-weight: 700;
}

.grocery-item .previous {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
}

.grocery-item .cart-counter-action {
  display: flex;
  align-items: center;
  gap: 15px;
}

.grocery-item .quantity-edit {
  display: flex;
  align-items: center;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
}

.grocery-item .quantity-edit .input {
  width: 40px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  outline: none;
}

.grocery-item .button-wrapper-action {
  display: flex;
  flex-direction: column;
}

.grocery-item .button {
  width: 18px;
  height: 18px;
  border: none;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  transition: background 0.2s ease;
}

.grocery-item .button:hover {
  background: #e9ecef;
}

.grocery-item .rts-btn {
  background: #53092e;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  flex: 1;
  justify-content: center;
}

.grocery-item .rts-btn:hover {
  background: #53092e;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(98, 157, 35, 0.3);
}

.grocery-item .btn-text {
  font-size: 14px;
}

.grocery-item .arrow-icon {
  font-size: 14px;
}

/* Responsive adjustments for grocery carousel */
@media (max-width: 768px) {
  .featured-grocery-header {
    padding: 0;
  }

  .featured-grocery-header .grocery-navigation {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
  }

  .section-title {
    font-size: 24px;
  }
  
  .grocery-item {
    min-width: 240px;
    max-width: 240px;
  }
  
  .grocery-scroll-wrapper {
    gap: 20px;
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }
  
  .grocery-item {
    min-width: 200px;
    max-width: 200px;
  }
  
  .grocery-scroll-wrapper {
    gap: 15px;
    padding: 0 10px;
  }
  
  .grocery-nav-btn {
    width: 38px;
    height: 38px;
  }
  
  .grocery-nav-btn i {
    font-size: 14px;
  }
}
