/* Ürün Listesi */
.product-list {
    margin-bottom: 2rem;
}

.product-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.product-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    background-color: #f8f9fa;
}

.product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
}

.product-info {
    padding: 1rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #2c3e50;
}

.product-category {
    font-size: 0.875rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.product-price {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.product-dealer-price {
    font-size: 0.875rem;
    color: #6c757d;
}

.product-stock {
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-actions {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* Ürün Detay */
.product-gallery {
    margin-bottom: 2rem;
}

.main-image {
    position: relative;
    padding-top: 75%;
    overflow: hidden;
    border-radius: 0.5rem;
    background-color: #f8f9fa;
}

.main-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.thumbnails {
    margin-top: 1rem;
}

.thumbnails img {
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnails img:hover {
    opacity: 0.8;
}

.product-features {
    margin-bottom: 2rem;
}

.feature-item {
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.specification-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
    background-color: #f8f9fa;
    border-radius: 0.25rem;
}

.specification-label {
    color: #6c757d;
}

.specification-value {
    font-weight: 600;
    color: #2c3e50;
}

/* Form Elemanları */
.form-label {
    font-weight: 500;
    color: #2c3e50;
}

.form-control:focus {
    border-color: #4e73df;
    box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.input-group-text {
    background-color: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.btn-outline-danger {
    border-color: #e74a3b;
    color: #e74a3b;
}

.btn-outline-danger:hover {
    background-color: #e74a3b;
    border-color: #e74a3b;
    color: #fff;
}

/* DataTables Özelleştirme */
.dataTables_wrapper {
    padding: 1rem;
    background-color: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.dataTables_filter input {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

.dataTables_length select {
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.375rem 2rem 0.375rem 0.75rem;
}

.page-item.active .page-link {
    background-color: #4e73df;
    border-color: #4e73df;
}

.page-link {
    color: #4e73df;
}

.page-link:hover {
    color: #2e59d9;
}

/* Responsive */
@media (max-width: 768px) {
    .product-card {
        margin-bottom: 1rem;
    }

    .product-title {
        font-size: 0.875rem;
    }

    .product-price {
        font-size: 1rem;
    }

    .product-dealer-price {
        font-size: 0.75rem;
    }

    .product-stock {
        font-size: 0.75rem;
    }

    .product-actions {
        padding: 0.5rem;
    }

    .btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
    }
}

/* Animasyonlar */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Yükleme Göstergesi */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 0.25rem solid #f8f9fa;
    border-top-color: #4e73df;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Özel Scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background-color: #f8f9fa;
}

::-webkit-scrollbar-thumb {
    background-color: #4e73df;
    border-radius: 0.25rem;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #2e59d9;
}

/* Tooltip */
.tooltip {
    font-size: 0.875rem;
}

.tooltip-inner {
    background-color: #2c3e50;
}

.bs-tooltip-auto[x-placement^=top] .arrow::before, 
.bs-tooltip-top .arrow::before {
    border-top-color: #2c3e50;
}

/* Badge */
.badge {
    padding: 0.5em 0.75em;
    font-weight: 500;
}

.badge.bg-success {
    background-color: #1cc88a !important;
}

.badge.bg-danger {
    background-color: #e74a3b !important;
}

.badge.bg-warning {
    background-color: #f6c23e !important;
    color: #2c3e50;
}

.badge.bg-info {
    background-color: #36b9cc !important;
}

/* Card */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid #e9ecef;
    padding: 1rem;
}

.card-title {
    margin-bottom: 0;
    color: #2c3e50;
    font-weight: 600;
}

.card-body {
    padding: 1.25rem;
}

/* Breadcrumb */
.breadcrumb {
    background-color: transparent;
    padding: 0;
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: #4e73df;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #2e59d9;
    text-decoration: none;
}

.breadcrumb-item.active {
    color: #6c757d;
}

/* Alert */
.alert {
    border: none;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #e6f4ea;
    color: #1cc88a;
}

.alert-danger {
    background-color: #fdecea;
    color: #e74a3b;
}

.alert-warning {
    background-color: #fff8e6;
    color: #f6c23e;
}

.alert-info {
    background-color: #e8f4f8;
    color: #36b9cc;
} 