/* boutique.css */

/* Grid layout for products */
main.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
  }
  
  /* Product card styling */
  .product-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  .product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  }
  
  .product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }
  
  .product-card .info {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }
  .product-card h2 {
    font-size: 1.25rem;
    color: #333333;
    margin-bottom: 0.5rem;
  }
  .product-card p.description {
    font-size: 0.9rem;
    color: #666666;
    flex-grow: 1;
  }
  .product-card p.price {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin: 0.75rem 0;
  }
  
  /* Button styling */
  .product-card button {
    background-color: #ff0077;
    color: #ffffff;
    padding: 0.6rem 1rem;
    border: none;
    border-radius: 999px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  .product-card button:hover {
    background-color: #e6006f;
  }
  
  /* Cart modal overlay */
  #cartModal {
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
  }
  #cartModal .modal-content {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.5rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15);
  }
  #cartModal h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: #333333;
  }
  #cartItems div {
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e5e5;
    font-size: 0.95rem;
    color: #444444;
  }
  #cartTotal {
    color: #000000;
  }
  #cartModal button,
  #cartModal form button {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }
  
  /* Responsive adjustments */
  @media (max-width: 600px) {
    .product-card img {
      height: 160px;
    }
  }
  