/* This CSS file ensures the product cards on the home page match the shop page styling */

/* Make sure the product cards on the home page have the same styling as the shop page */
.product-section .product-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    height: 100%;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .product-section .product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  .product-section .wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 2;
  }
  
  .product-section .wishlist-icon:hover {
    color: #ff416c;
  }
  
  .product-section .wishlist-icon .fas.text-danger {
    color: #ff416c !important;
  }
  
  /* Fix for product image display */
  .product-section .product-img {
    text-align: center;
    margin-bottom: 1.5rem;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  
  .product-section .product-img img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
  }
  
  .product-section .product-img img:hover {
    transform: scale(1.05);
  }
  
  .product-section .product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    min-height: 2.5rem;
    max-height: 2.5rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-top: 0.5rem; /* Add space between image and name */
  }
  
  .product-section .product-brand {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .product-section .product-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
  }
  
  .product-section .price {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .product-section .current-price {
    font-weight: 700;
    font-size: 1.1rem;
    margin-right: 0.5rem;
  }
  
  .product-section .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
    margin-right: 0.5rem;
  }
  
  .product-section .discount {
    background-color: #4caf50;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8rem;
  }
  
  .product-section .view-details {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
  }
  
  .product-section .view-details:hover {
    background-color: #ff416c;
    color: white;
  }
  
  .product-section .product-rating {
    color: #ffc107;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .product-section .rating-count {
    color: #777;
    font-size: 0.8rem;
    margin-left: 5px;
  }
  
  .product-section .delivery-info {
    color: #4caf50;
    font-size: 0.85rem;
    margin-bottom: 0;
  }
  
  /* Responsive adjustments */
  @media (max-width: 992px) {
    .product-section .product-img {
      height: 180px;
    }
  }
  
  @media (max-width: 768px) {
    .product-section .product-img {
      height: 160px;
    }
  
    .product-section .product-name {
      font-size: 1rem;
    }
  
    /* Make product grid 2 columns on tablets */
    .product-section .col-lg-4.col-md-6 {
      width: 50%;
    }
  }
  
  @media (max-width: 576px) {
    /* Make product grid 2 columns on mobile */
    .product-section .col-lg-4.col-md-6 {
      width: 50%;
      padding-left: 8px;
      padding-right: 8px;
    }
  
    .product-section .row {
      margin-left: -8px;
      margin-right: -8px;
    }
  
    .product-section .product-card {
      padding: 0.75rem;
      margin-bottom: 16px;
    }
  
    .product-section .product-img {
      height: 120px;
      margin-bottom: 0.75rem;
    }
  
    .product-section .product-name {
      font-size: 0.85rem;
      min-height: auto;
      max-height: 2.5rem;
      margin-bottom: 0.2rem;
    }
  
    .product-section .product-brand {
      font-size: 0.75rem;
      margin-bottom: 0.3rem;
    }
  
    .product-section .current-price {
      font-size: 0.85rem;
      margin-right: 0.3rem;
    }
  
    .product-section .original-price {
      font-size: 0.7rem;
      margin-right: 0.3rem;
    }
  
    .product-section .discount {
      font-size: 0.65rem;
      padding: 1px 4px;
    }
  
    .product-section .view-details {
      width: 24px;
      height: 24px;
      font-size: 0.8rem;
    }
  
    .product-section .wishlist-icon {
      top: 8px;
      right: 8px;
      font-size: 1rem;
    }
  }
  