.card_section{
  max-width: 1400px;
  margin:25px;
  padding: 2rem 1.5rem;
  background: #ececec;
   border: 0.5pt solid #dbd9d9;
}
    /* Main Container */
    .product-showcase-container {
      max-width: 1400px;
      margin:25px;
      padding: 2rem 1.5rem;
    }

    /* Section Header */
    .section-header {
      text-align: center;
      margin-bottom: 2rem;
    }

    .section-header h1 {
      font-size: 2rem;
      color: #2c3e50;
      /* margin-bottom: 0.2rem; */
      font-weight: 700;
      display: flex;
      justify-content: start;
      align-items: start;
    }
 

 

 

    /* Product Grid */
    .product-grid {
      background: #ececec;
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.8rem;
      /* padding: 30px 30px 30px 30px; */
      /* border: 0.5pt solid #dbd9d9; */
      margin-left: 25px;
      margin-right: 25px;
      margin-bottom: 25px;
    }

    /* Product Card */
    .product-card {
      background: white;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
      transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
      cursor: pointer;
      position: relative;
      border: 0.5pt solid #dbd9d9;
    }

    .product-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    .product-image-container {
      position: relative;
      height: 220px;
      overflow: hidden;
      padding: 10px;
    }

    .product-image {
      width: 100%;
      height: 100%;
      object-fit:contain;
      transition: transform 0.5s ease;
    }

    .product-card:hover .product-image {
      transform: scale(1.05);
    }

    .offer-tag {
      position: absolute;
      top: 15px;
      left: 15px;
      background-color: #f95700;
      color: white;
      padding: 0.3rem 0.8rem;
      border-radius: 4px;
      font-size: 0.8rem;
      font-weight: 600;
      z-index: 2;
    }

    .product-content {
      padding: 1.5rem;
    }

 

    .product-title {
      font-size: 1.1rem;
      font-weight: 600;
      color: #2c3e50;
      margin-bottom: 0.8rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .product-description {
      color: #7f8c8d;
      font-size: 0.9rem;
      margin-bottom: 1.2rem;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
      line-height: 1.5;
    }

    .product-price {
      display: flex;
      align-items: center;
      gap: 0.8rem;
      margin-top: 1rem;
    }

    .current-price {
      font-size: 1.3rem;
      font-weight: 700;
      color: #2c3e50;
    }

    .original-price {
      font-size: 1rem;
      color: #95a5a6;
      text-decoration: line-through;
    }

    .discount-percent {
      font-size: 0.8rem;
      color: #f95700;
      background-color: #ffefe8;
      padding: 0.2rem 0.5rem;
      border-radius: 4px;
      font-weight: 600;
    }

    /* Load More Button */
    .load-more-container {
      text-align: center;
      margin-top: 2rem;
    }

    .load-more-btn {
      padding: 0.8rem 2rem;
      background-color: #f95700;
      color: white;
      border: none;
      border-radius: 30px;
      font-size: 1rem;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s ease;
      box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
    }

    .load-more-btn:hover {
      background-color: #2980b9;
      transform: translateY(-2px);
      box-shadow: 0 6px 16px rgba(52, 152, 219, 0.4);
    }

    /* Product Modal */
    .product-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.7);
      z-index: 1000;
      overflow-y: auto;
    }

    .modal-content {
      background-color: white;
      margin: 3rem auto;
      max-width: 900px;
      width: 90%;
      border-radius: 12px;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      right: 7rem;
      font-size: 4rem;
      color: #95a5a6;
      cursor: pointer;
      transition: color 0.3s ease;
      z-index: 10;
    }

    .modal-close:hover {
      color: #e74c3c;
    }

    .modal-body {
      display: flex;
      flex-direction: column;
    }

    .modal-image-container {
      height: 350px;
      overflow: hidden;
    }

    .modal-image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      padding: 20px;
    }

    .modal-details {
      padding: 2rem;
    }

    .modal-category {
      display: inline-block;
      font-size: 0.8rem;
      color: #f95700;
      background-color: #e8f4fc;
      padding: 0.3rem 0.8rem;
      border-radius: 4px;
      margin-bottom: 1rem;
      font-weight: 600;
    }

    .modal-title {
      font-size: 1.5rem;
      font-weight: 700;
      color: #2c3e50;
      margin-bottom: 1rem;
    }

    .modal-price-container {
      display: flex;
      align-items: center;
      gap: 1rem;
      margin-bottom: 1.5rem;
    }

    .modal-current-price {
      font-size: 1.8rem;
      font-weight: 700;
      color: #2c3e50;
    }

    .modal-original-price {
      font-size: 1.2rem;
      color: #95a5a6;
      text-decoration: line-through;
    }

    .modal-discount {
      font-size: 0.9rem;
      color: #f95700;
      background-color: #ffefe8;
      padding: 0.3rem 0.7rem;
      border-radius: 4px;
      font-weight: 600;
    }

    .modal-description {
      color: #34495e;
      line-height: 1.6;
      margin-bottom: 2rem;
    }

    .modal-action {
      display: inline-block;
      padding: 0.8rem 2rem;
      background-color: #f95700;
      color: white;
      text-decoration: none;
      border-radius: 30px;
      font-weight: 600;
      transition: all 0.3s ease;
      text-align: center;
    }

    .modal-action:hover {
      background-color: #e04b00;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(249, 87, 0, 0.3);
    }

    /* Loading Animation */
    .loading-container {
      display: flex;
      justify-content: center;
      padding: 3rem;
    }

    .loading-spinner {
      width: 50px;
      height: 50px;
      border: 5px solid #f3f3f3;
      border-top: 5px solid #3498db;
      border-radius: 50%;
      animation: spin 1s linear infinite;
    }

    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    /* Responsive Styles */
/* Product Grid Base */
.product-grid {
  background: #ececec;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 0 25px 25px 25px;
  padding: 10px;
  justify-content: center;
}

/* Product Card - Default */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  border: 0.5pt solid #dbd9d9;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Image Section */
.product-image-container {
  position: relative;
  height: 200px;
  overflow: hidden;
  padding: 8px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

/* Text Section */
.product-content {
  padding: 1rem;
  flex-grow: 1; /* Fill remaining space */
}

 
/* Category tag as top-right badge */
.product-image-container {
  position: relative;
}

.product-category {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #f95700;
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  z-index: 2;
}

 
/* For Mobile (2 cards per row, compact layout) */
@media (max-width: 600px) {
  .product-description {
    display: none;
  }
  .product-category {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    top: 6px;
    right: 6px;
  }

  .product-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 8px 15px;
    padding: 5px;
  }

  .product-card {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    height: auto;
   width: 140px;
  }

  /* Image smaller */
  .product-image-container {
    height: 120px;  /* kam height */
    padding: 5px;
  }

  /* Text smaller */
  .product-content {
    padding: 0.6rem;
  }

  .product-title {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .product-description {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .current-price {
    font-size: 0.9rem;
  }

  .original-price {
    font-size: 0.7rem;
  }

  .discount-percent {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
}


  .product-content {
    padding: 0.8rem;
  }

  .product-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .product-description {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .current-price {
    font-size: 1rem;
  }

  .original-price {
    font-size: 0.8rem;
  }

  .discount-percent {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }

/* Tablet (3 per row) */
@media (min-width: 601px) and (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(auto, 1fr);
    gap: 10px;
    margin: 0 10px 20px 10px;
  }
 
  .product-category {
    font-size: 0.6rem;
    padding: 0.15rem 0.4rem;
    top: 6px;
    right: 6px;
  }

  .product-card {
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 0 8px 15px;
    padding: 5px;
  }

  .product-card {
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    height: auto;
    width: 100%;
  }

  /* Image smaller */
  .product-image-container {
    height: 120px;  /* kam height */
    padding: 5px;
  }

  /* Text smaller */
  .product-content {
    padding: 0.6rem;
  }

  .product-title {
    font-size: 0.8rem;
    line-height: 1.2;
    margin-bottom: 0.4rem;
  }

  .product-description {
    font-size: 0.7rem;
    line-height: 1.2;
    margin-bottom: 0.6rem;
  }

  .current-price {
    font-size: 0.9rem;
  }

  .original-price {
    font-size: 0.7rem;
  }

  .discount-percent {
    font-size: 0.65rem;
    padding: 0.1rem 0.3rem;
  }
}


  .product-content {
    padding: 0.8rem;
  }

  .product-title {
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .product-description {
    font-size: 0.75rem;
    line-height: 1.3;
  }

  .current-price {
    font-size: 1rem;
  }

  .original-price {
    font-size: 0.8rem;
  }

  .discount-percent {
    font-size: 0.7rem;
    padding: 0.1rem 0.3rem;
  }

/* Desktop (auto adjust, bigger cards) */
@media (min-width: 1025px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .product-image-container {
    height: 220px;
  }
}
