/* Products Page Specific Styles */

.products-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 100px 0 60px;
    text-align: center;
    color: #fff;
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 15px;
    animation: fadeInUp 0.8s ease;
}

.page-subtitle {
    font-size: 18px;
    font-weight: 300;
    opacity: 0.95;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.products-section {
    padding: 60px 0;
    background: var(--light-color);
}

.products-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    position: relative;
    height: 350px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.quick-view {
    padding: 12px 30px;
    background: #fff;
    color: var(--dark-color);
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quick-view:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
}

.product-info {
    padding: 25px;
}

.product-brand {
    display: inline-block;
    color: var(--gray-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.product-name {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
}

.product-rating i {
    color: #ffc107;
    font-size: 14px;
}

.product-rating span {
    color: var(--gray-color);
    font-size: 14px;
    margin-left: 5px;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.product-description {
    color: var(--gray-color);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.btn-product {
    display: inline-block;
    padding: 10px 25px;
    background: var(--gradient-primary);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Product Modal */
.product-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.product-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: #fff;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 20px;
    position: relative;
    animation: slideUp 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 30px;
    color: var(--gray-color);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 40px;
}

.modal-image img {
    width: 100%;
    border-radius: 15px;
}

.modal-info {
    display: flex;
    flex-direction: column;
}

.modal-brand {
    color: var(--gray-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.modal-name {
    font-family: 'Playfair Display', serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 20px;
}

.modal-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.modal-description {
    color: var(--gray-color);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-features {
    margin-bottom: 30px;
}

.modal-features h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.modal-features ul {
    list-style: none;
}

.modal-features li {
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    color: var(--gray-color);
}

.modal-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

.modal-actions {
    display: flex;
    gap: 15px;
}

.btn-add-cart,
.btn-shop-now {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-cart {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-add-cart:hover {
    background: var(--primary-color);
    color: #fff;
}

.btn-shop-now {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-shop-now:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Animation for modal */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    
    .modal-name {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-filter {
        flex-direction: column;
    }
    
    .filter-btn {
        width: 100%;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-actions {
        flex-direction: column;
    }
}