.products-hero {
    background: linear-gradient(135deg, #1f1c2c, #928DAB);
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    text-align: center;
}

.products-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.products-hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 30px;
}


.product-filter {
    background-color: #f8f9fa;
    padding: 30px 0;
    margin-bottom: 40px;
}

.filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 180px;
}

.filter-group label {
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.filter-group select, .filter-group input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-card {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    background: white;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}


.product-image {
    height: 220px; 
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    padding: 15px; 
}

.product-image img {
    width: auto;
    height: auto;
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05); 
}


.product-image img {
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.product-details {
    padding: 20px;
}

.product-details h3 {
    margin-bottom: 10px;
    color: #2c3e50;
    font-size: 1.2rem;
}

.product-specs {
    margin-bottom: 15px;
    color: #666;
    list-style: none;
    padding-left: 0;
}

.product-specs li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.product-specs i {
    margin-right: 8px;
    color: #3498db;
    width: 16px;
    text-align: center;
}

.product-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    justify-content: space-between;
}

.compare-btn {
    background: none;
    border: 1px solid #3498db;
    color: #3498db;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.compare-btn:hover {
    background-color: #3498db;
    color: white;
}


.pagination {
    display: flex;
    justify-content: center;
    margin: 40px 0;
}

.pagination a {
    color: #2c3e50;
    padding: 8px 16px;
    text-decoration: none;
    border: 1px solid #ddd;
    margin: 0 4px;
}

.pagination a.active {
    background-color: #2c3e50;
    color: white;
    border: 1px solid #2c3e50;
}

.pagination a:hover:not(.active) {
    background-color: #ddd;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.7);
  overflow: auto;  
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 30px;
  border-radius: 8px;
  width: 90%;  
  max-width: 500px;
  position: relative;
  animation: modalopen 0.3s;  
}

@keyframes modalopen {
  from {opacity: 0; transform: translateY(-50px);}
  to {opacity: 1; transform: translateY(0);}
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
  transition: 0.3s;  
}

.close-modal:hover {
  color: #333;
}

.modal-content h3 {
  margin-top: 0;  
  color: #2c3e50;
  text-align: center;   
}

.modal-content .form-group {
  margin-bottom: 20px;
}

.modal-content label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;  
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  box-sizing: border-box;
}

.modal-content textarea {
  height: 100px;
  resize: vertical;
}

.modal-content input:focus,
.modal-content textarea:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.confirmation-message {
  display: none;
  text-align: center;
  padding: 20px;
}

.confirmation-message i {
  font-size: 50px;
  color: #4CAF50;
  margin-bottom: 15px;
}

.confirmation-message p {
  font-size: 18px;
  color: #333;
  margin: 0;  
}


.buy-now-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: transform 0.2s;
    margin-top: 10px;
    width: 100%;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 95%;
        padding: 20px;
    }

    .confirmation-message i,
    .error-message i {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .confirmation-message p,
    .error-message p {
        font-size: 14px;
    }

    .filter-container {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-group {
        width: 80%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .product-actions .btn,
    .product-actions .compare-btn {
        width: 100%;
        text-align: center;
    }
}


























