/* Ürün Kartı Temel Stilleri */
.product-card {
    display: flex;
    flex-direction: column;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 440px;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.product-card .img-container {
    width: 250px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px auto;
    background-color: #fff;
    position: relative;
}

.product-card img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: scale-down;
}

.product-card .product-code {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 8px;
    text-align: center;
}

.product-card .product-title {
    font-size: 14px;
    color: #333;
    margin: 10px 0;
    line-height: 1.4;
    height: 80px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
    text-align: center;
}

/* Ürün Grid Stilleri */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* Ürün Butonları */
.button-container {
    display: flex;
    gap: 6px;
    justify-content: center;
    width: 100%;
}

.btn-add-cart {
    flex: 2;
    background-color: #E0E0E0;
    border: none;
    color: #999;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
    opacity: 0.7;
}

.btn-add-cart:not(:disabled) {
    background-color: #FF4E50;
    color: white;
    opacity: 1;
    cursor: pointer;
}

.btn-add-cart:not(:disabled):hover {
    background-color: #E31E24;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(255, 78, 80, 0.3);
}

.btn-detail {
    flex: 1;
    background-color: #00B4DB;
    border: none;
    color: white;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-detail:hover {
    background-color: #0083B0;
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 180, 219, 0.3);
}
@media (max-width: 767px) {
    .product-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .product-card {
        width: 100% !important;
        margin: 0 !important;
    }

    .product-title {
        font-size: 13px !important;
        height: auto !important;
        min-height: 40px !important;
        margin-bottom: 8px !important;
    }

    .button-container {
        display: flex !important;
        gap: 5px !important;
        margin-top: 8px !important;
    }

    .btn-add-cart {
        flex: 1 !important;
        font-size: 12px !important;
        padding: 6px 8px !important;
        white-space: nowrap !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 32px !important;
    }

    .btn-add-cart i {
        margin-right: 4px !important;
        font-size: 12px !important;
    }

    .btn-detail {
        width: 32px !important;
        height: 32px !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 0 0 auto !important;
    }

    .btn-detail i {
        font-size: 12px !important;
    }

    .price-container {
        padding: 8px !important;
    }

    .price-info {
        font-size: 13px !important;
    }

    .price {
        font-size: 14px !important;
    }

    .original-price {
        font-size: 12px !important;
    }

    .tax {
        font-size: 11px !important;
    }

    .discount-badge {
        font-size: 11px !important;
        padding: 2px 4px !important;
    }

    .stock-badge {
        font-size: 11px !important;
        padding: 2px 6px !important;
    }

    .img-container {
        height: 160px !important;
    }

    .img-container img {
        max-height: 150px !important;
        object-fit: contain !important;
    }

    /* SweetAlert Popup Stilleri */
    .swal2-popup {
        width: 90% !important;
        max-width: 320px !important;
        padding: 1.5rem !important;
        margin: 0 auto !important;
    }

    .swal2-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }

    .swal2-content {
        font-size: 0.9rem !important;
        padding: 0.5rem !important;
    }

    .swal2-html-container {
        font-size: 0.9rem !important;
        margin: 0.5rem 0 !important;
    }

    .swal2-actions {
        margin-top: 1rem !important;
        gap: 0.5rem !important;
    }

    .swal2-confirm,
    .swal2-cancel,
    .swal2-deny {
        padding: 0.5rem 1rem !important;
        font-size: 0.9rem !important;
        min-width: 100px !important;
    }

    .swal2-icon {
        width: 4rem !important;
        height: 4rem !important;
        margin: 0 auto 1rem !important;
    }

    .swal2-icon.swal2-icon-show {
        font-size: 2rem !important;
    }

    .swal2-close {
        top: 0.5rem !important;
        right: 0.5rem !important;
        font-size: 1.5rem !important;
    }

    .swal2-timer-progress-bar {
        height: 0.25rem !important;
    }

    .swal2-input,
    .swal2-textarea {
        font-size: 0.9rem !important;
        padding: 0.5rem !important;
        margin: 0.5rem 0 !important;
    }

    .swal2-validation-message {
        font-size: 0.8rem !important;
        padding: 0.5rem !important;
    }

    .swal2-footer {
        font-size: 0.8rem !important;
        margin-top: 0.5rem !important;
    }

    /* SweetAlert2 Animasyonları */
    .swal2-popup {
        animation: swal2-show 0.3s !important;
    }

    .swal2-icon {
        animation: swal2-icon-show 0.5s !important;
    }

    @keyframes swal2-show {
        0% {
            transform: scale(0.7);
            opacity: 0;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }

    @keyframes swal2-icon-show {
        0% {
            transform: scale(0.7);
            opacity: 0;
        }
        100% {
            transform: scale(1);
            opacity: 1;
        }
    }
} 
/* Responsive Media Queries */
@media (min-width: 768px) and (max-width: 1023px) {
    .product-card {
        height: 400px;
    }

    .product-card .img-container {
        width: 220px;
        height: 220px;
    }

    .product-card .product-title {
        font-size: 13px;
        height: 70px;
    }

    .button-container button {
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) and (max-width: 1366px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .product-card {
        height: 420px;
    }

    .product-card .img-container {
        width: 230px;
        height: 230px;
    }
}

@media (min-width: 1367px) and (max-width: 1919px) {
    .product-card {
        height: 440px;
    }

    .product-card .img-container {
        width: 250px;
        height: 250px;
    }
}

@media (min-width: 1920px) {
    .product-card {
        height: 460px;
    }

    .product-card .img-container {
        width: 280px;
        height: 280px;
    }

    .product-card .product-title {
        font-size: 16px;
        height: 90px;
    }

    .button-container button {
        font-size: 1rem;
        padding: 10px;
    }
}

