/* Featured Products Styles */
.product-card {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
}

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

/* Quick View Button */
.quick-view-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.product-card:hover .quick-view-btn {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.quick-view-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Wishlist Button */
.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--white);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.wishlist-btn:hover,
.wishlist-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Product Info */
.product-info {
    padding: 1.5rem;
}

.product-title {
    font-size: 1.1rem;
    margin: 0 0 0.5rem;
    color: var(--text-primary);
}

.product-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
}

.price {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
}

/* Stock Status */
.stock-status {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--light-bg);
}

.stock-status.out-of-stock {
    color: var(--white);
    background: var(--danger);
}

.stock-status.low-stock {
    color: var(--white);
    background: var(--warning);
}

/* Quick View Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 12px;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1;
}

.quick-view-container {
    padding: 2rem;
}

.quick-view-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.quick-view-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.quick-view-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.qty-btn {
    background: var(--light-bg);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.qty-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quantity-selector input {
    width: 50px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.25rem;
}

/* Add to Cart Button */
.add-to-cart-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background: var(--secondary);
}

.add-to-cart-btn.added {
    background: var(--success);
}

.add-to-cart-btn.out-of-stock {
    background: var(--danger);
    cursor: not-allowed;
}

/* Out of Stock Overlay */
.product-card[data-stock="0"] .product-image::after {
    content: 'Out of Stock';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
}

.product-card[data-stock="0"] .add-to-cart-btn {
    background: var(--text-muted);
    cursor: not-allowed;
}

.product-card[data-stock="0"] .quick-view-btn {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Quick View Modal Improvements */
.quick-view-container .add-to-cart-btn,
.quick-view-container .add-to-wishlist-btn {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    justify-content: center;
}

.quick-view-container .add-to-wishlist-btn {
    background: var(--light-bg);
    color: var(--text-primary);
}

.quick-view-container .add-to-wishlist-btn:hover {
    background: var(--primary);
    color: var(--white);
}

/* Floating Cart Animation */
.floating-cart-item {
    position: fixed;
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

@keyframes floatToCart {
    0% {
        transform: scale(1) translate(0, 0);
        opacity: 1;
    }
    100% {
        transform: scale(0.1) translate(var(--float-x), var(--float-y));
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .quick-view-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .quick-view-container {
        padding: 1rem;
    }
} 