/* Ürün Kartı Stilleri */
.product-card {
    position: relative;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    background-color: #fff;
}

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

.product-image {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    height: 200px;
}

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

/* Lazy Load Stilleri */
.lazy-load {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-load[src] {
    opacity: 1;
}

/* Hover Resim Değişimi */
.product-image .main-image {
    display: block;
}

.product-image .hover-image {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

.product-image:hover .main-image {
    opacity: 0;
}

.product-image:hover .hover-image {
    opacity: 1;
}

/* Hızlı Bakış Butonu */
.quick-view-btn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    border-radius: 3px;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
}

.product-image:hover .quick-view-btn {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.quick-view-btn:hover {
    background-color: #333;
    color: #fff;
}

/* Ürün Varyantları */
.product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.variant-item {
    font-size: 12px;
    padding: 3px 8px;
    background-color: #f5f5f5;
    border-radius: 3px;
    color: #666;
}

/* Hızlı Bakış Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    overflow: auto;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    width: 80%;
    max-width: 900px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.close-modal:hover {
    color: #333;
}

.quick-view-container {
    display: flex;
    flex-wrap: wrap;
}

.product-image-container {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.quick-view-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
}

.product-details-container {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.product-price {
    margin-bottom: 15px;
}

.current-price {
    font-size: 22px;
    font-weight: bold;
    color: #e63946;
}

.old-price {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
    margin-left: 10px;
}

.product-description {
    margin-bottom: 20px;
    color: #666;
    line-height: 1.6;
}

.variant-group {
    margin-bottom: 15px;
}

.variant-group h4 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #333;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.variant-option:hover {
    border-color: #999;
}

.variant-option.selected {
    background-color: #333;
    color: #fff;
    border-color: #333;
}

.product-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
    gap: 15px;
}

.quantity-selector {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    background-color: #f5f5f5;
    border: none;
    font-size: 16px;
    cursor: pointer;
}

.quantity-input {
    width: 50px;
    height: 30px;
    border: none;
    text-align: center;
    font-size: 14px;
}

.add-to-cart-btn {
    padding: 8px 20px;
    background-color: #e63946;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-to-cart-btn:hover {
    background-color: #d62b39;
}

.view-full-details {
    display: inline-block;
    margin-top: 20px;
    color: #666;
    text-decoration: underline;
}

/* Dinamik Ürün Yükleme */
.loading-indicator {
    text-align: center;
    padding: 20px;
    color: #666;
}

.no-more-products {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}

/* Ürün Konteyneri */
.product-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Responsive Ayarlar */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .quick-view-container {
        flex-direction: column;
    }
    
    .product-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}