/* ============================================
   Modern Product Grid Styles - Home Page
   ============================================ */

/* Products Grid Container */
.cs_products_grid_section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  position: relative;
  overflow: hidden;
  padding: 50px 0;
}

/* Decorative Background Elements */
.cs_bg_decoration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.cs_bg_shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(41, 81, 149, 0.05) 0%, rgba(41, 81, 149, 0.02) 100%);
  filter: blur(80px);
}

.cs_shape_1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
}

.cs_shape_2 {
  width: 500px;
  height: 500px;
  bottom: -150px;
  left: -100px;
}

.cs_bg_pill {
  position: absolute;
  width: 150px;
  height: 150px;
  color: #22c55e;
  animation: float 6s ease-in-out infinite;
}

.cs_pill_1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.cs_pill_2 {
  bottom: 20%;
  right: 8%;
  animation-delay: 3s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

/* Section Heading Decoration */
.cs_title_decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin: 20px 0 30px;
}

.cs_title_decoration .cs_line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #22c55e 50%, transparent 100%);
}

.cs_title_decoration i {
  font-size: 20px;
  color: #22c55e;
  animation: pulse 2s ease-in-out infinite;
}

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

.cs_section_subtitle i {
  margin-right: 8px;
  font-size: 16px;
}

/* Product Filter Tabs */
.cs_product_filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.cs_filter_btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  color: #64748b;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.cs_filter_btn .cs_count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  background: #f1f5f9;
  color: #64748b;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
  transition: all 0.3s ease;
}

.cs_filter_btn:hover {
  border-color: #22c55e;
  color: #22c55e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(41, 81, 149, 0.15);
}

.cs_filter_btn:hover i {
  transform: scale(1.1);
}

.cs_filter_btn.active {
  background: linear-gradient(135deg, #1e40af 0%, #22c55e 100%);
  border-color: #22c55e;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(41, 81, 149, 0.3);
}

.cs_filter_btn.active .cs_count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.cs_products_grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 0 auto;
}

/* Product Grid Item */
.cs_product_grid_item {
  position: relative;
}

/* Modern Product Card */
.cs_product_card_modern {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #f0f0f0;
}

.cs_product_card_modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(41, 81, 149, 0.15);
  border-color: #22c55e;
}

/* Product Image Container */
.cs_product_image_container {
  position: relative;
  overflow: hidden;
  background: #f8f9fa;
  aspect-ratio: 1 / 1;
}

.cs_product_img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs_product_card_modern:hover .cs_product_img {
  transform: scale(1.08);
}

/* Product Overlay */
.cs_product_overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(41, 81, 149, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cs_product_card_modern:hover .cs_product_overlay {
  opacity: 1;
}

.cs_view_icon {
  width: 60px;
  height: 60px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #22c55e;
  font-size: 24px;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.cs_product_card_modern:hover .cs_view_icon {
  transform: scale(1);
}

/* Product Badge */
.cs_product_badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #22c55e;
  color: #ffffff;
  padding: 2px 12px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(41, 81, 149, 0.3);
}

.cs_badge_capsule {
  background: #1e40af;
}

/* Product Info */
.cs_product_info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cs_product_name {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cs_product_name a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 600;
  font-size: 18px;
}

.cs_product_name a:hover {
  color: #22c55e;
}

.cs_product_desc {
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Product Features */
.cs_product_features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.cs_feature_tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cs_feature_tag i {
  font-size: 10px;
  color: #22c55e;
}

.cs_product_card_modern:hover .cs_feature_tag {
  background: #e0e7ff;
  color: #22c55e;
}

/* Product Link Button */
.cs_product_link_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #22c55e;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto;
}

.cs_product_link_btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.cs_product_link_btn:hover {
  color: #1e40af;
  gap: 12px;
}

.cs_product_link_btn:hover i {
  transform: translateX(4px);
}

/* Product Filter Animation */
.cs_product_grid_item {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
  will-change: opacity, transform;
}

.cs_product_grid_item.hidden {
  opacity: 0;
  transform: scale(0.95) translateY(10px);
  pointer-events: none;
  height: 0;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* View All Card */
.cs_product_card_viewall {
  background: linear-gradient(135deg, #1e40af 0%, #22c55e 100%);
  border-radius: 16px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(41, 81, 149, 0.2);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cs_product_card_viewall::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cs_product_card_viewall:hover::before {
  opacity: 1;
}

.cs_product_card_viewall:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(41, 81, 149, 0.3);
}

.cs_viewall_content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cs_viewall_icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
}

.cs_product_card_viewall:hover .cs_viewall_icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.1) rotate(10deg);
}

.cs_viewall_icon i {
  font-size: 36px;
  color: #ffffff;
}

.cs_viewall_title {
  font-size: 24px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.cs_viewall_text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.cs_viewall_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #22c55e;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cs_viewall_btn:hover {
  background: #f8f9fa;
  transform: scale(1.05);
  gap: 14px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.cs_viewall_btn i {
  font-size: 14px;
  transition: transform 0.3s ease;
}

.cs_viewall_btn:hover i {
  transform: translateX(4px);
}

/* Responsive Design */
@media (max-width: 1199px) {
  .cs_products_grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
  }
}

@media (max-width: 991px) {
  .cs_products_grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .cs_product_name {
    font-size: 18px;
  }

  .cs_product_desc {
    font-size: 13px;
  }

  .cs_viewall_title {
    font-size: 20px;
  }

  .cs_viewall_icon {
    width: 70px;
    height: 70px;
  }

  .cs_viewall_icon i {
    font-size: 30px;
  }
}

@media (max-width: 767px) {
  .cs_products_grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cs_product_info {
    padding: 20px;
  }

  .cs_product_card_viewall {
    padding: 30px 20px;
  }

  .cs_product_image_container {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 575px) {
  .cs_product_name {
    font-size: 16px;
  }

  .cs_product_desc {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .cs_product_link_btn {
    font-size: 14px;
  }

  .cs_viewall_title {
    font-size: 18px;
  }

  .cs_viewall_text {
    font-size: 14px;
  }

  .cs_viewall_btn {
    padding: 10px 24px;
    font-size: 14px;
  }

  .cs_feature_tag {
    font-size: 10px;
    padding: 3px 8px;
  }
}

/* Product CTA Section */
.cs_product_cta {
  background: linear-gradient(135deg, #1e40af 0%, #22c55e 100%);
  border-radius: 20px;
  padding: 50px 40px;
  box-shadow: 0 12px 40px rgba(41, 81, 149, 0.25);
  position: relative;
  overflow: hidden;
}

.cs_product_cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.cs_product_cta::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.cs_product_cta_inner {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 2;
}

.cs_cta_icon {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s ease;
}

.cs_cta_icon i {
  font-size: 48px;
  color: #ffffff;
  transition: transform 0.4s ease;
}

.cs_product_cta:hover .cs_cta_icon {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05) rotate(-5deg);
}

.cs_product_cta:hover .cs_cta_icon i {
  transform: scale(1.1);
}

.cs_cta_content {
  flex-grow: 1;
}

.cs_cta_title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.cs_cta_text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

.cs_cta_actions {
  display: flex;
  gap: 15px;
  flex-shrink: 0;
}

.cs_cta_btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cs_cta_btn i {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.cs_cta_btn.cs_primary {
  background: #ffffff;
  color: #22c55e;
}

.cs_cta_btn.cs_primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.cs_cta_btn.cs_primary:hover i {
  transform: translateY(-2px);
}

.cs_cta_btn.cs_secondary {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.cs_cta_btn.cs_secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.cs_cta_btn.cs_secondary:hover i {
  transform: scale(1.1);
}

/* CTA Responsive */
@media (max-width: 991px) {
  .cs_product_cta {
    padding: 40px 30px;
  }

  .cs_product_cta_inner {
    gap: 30px;
  }

  .cs_cta_icon {
    width: 80px;
    height: 80px;
  }

  .cs_cta_icon i {
    font-size: 36px;
  }

  .cs_cta_title {
    font-size: 24px;
  }

  .cs_cta_text {
    font-size: 15px;
  }

  .cs_cta_actions {
    flex-direction: column;
    width: 100%;
  }

  .cs_cta_btn {
    justify-content: center;
  }
}

@media (max-width: 767px) {
  .cs_product_cta_inner {
    flex-direction: column;
    text-align: center;
  }

  .cs_cta_content {
    order: 2;
  }

  .cs_cta_icon {
    order: 1;
  }

  .cs_cta_actions {
    order: 3;
  }

  .cs_cta_text {
    max-width: 100%;
  }
}

@media (max-width: 575px) {
  .cs_product_cta {
    padding: 30px 20px;
  }

  .cs_cta_title {
    font-size: 20px;
  }

  .cs_cta_text {
    font-size: 14px;
  }

  .cs_cta_btn {
    padding: 12px 24px;
    font-size: 14px;
  }

  .cs_filter_btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}

