/* Custom Styles - Yedek Parça E-Ticaret - Kurumsal Mavi Tema */
:root {
    --primary-color: #0056b3;
    --secondary-color: #007bff;
    --accent-color: #17a2b8;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --light-blue: #e7f3ff;
    --light-gray: #f8f9fa;
    --medium-gray: #6c757d;
    --dark-color: #2c3e50;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    color: #2c3e50;
    line-height: 1.6;
}

main {
    flex: 1;
}

/* Navbar - Kurumsal Mavi Tasarım */
.navbar {
    background: var(--white) !important;
    padding: 1rem 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    border-bottom: 3px solid var(--primary-color);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar-brand img {
    border-radius: 6px;
    filter: brightness(1.1);
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    color: var(--dark-color) !important;
}

.navbar-nav .nav-link:hover {
    background: var(--light-blue);
    color: var(--primary-color) !important;
    transform: translateY(-1px);
}

.navbar .badge {
    position: absolute;
    top: 0;
    right: -5px;
    font-size: 0.65rem;
    padding: 0.25em 0.5em;
}

/* Product Cards - Premium Kurumsal Tasarım */
.product-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    height: 100%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.15);
}

.product-card:hover::after {
    opacity: 1;
}

.product-card .card-img-top {
    position: relative;
    overflow: hidden;
    z-index: 0;
}

.product-image {
    height: 280px;
    object-fit: cover;
    width: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.98);
}

.product-card:hover .product-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.product-price {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
    position: relative;
    z-index: 3;
}

.product-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark-color);
    min-height: 48px;
    line-height: 1.5;
    letter-spacing: -0.2px;
    margin-bottom: 0.75rem;
}

.product-card .card-body {
    padding: 1.75rem 1.5rem;
    position: relative;
    z-index: 2;
}

/* Badge Styles */
.badge {
    font-weight: 600;
    padding: 0.5em 1em;
    border-radius: 6px;
    letter-spacing: 0.3px;
}

.bg-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

.bg-danger {
    background: linear-gradient(135deg, #dc3545 0%, #e83e8c 100%) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000 !important;
}

.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%) !important;
}

/* Hero Section - Kurumsal Mavi */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 5rem 0;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="2"/></svg>');
    background-size: 50px 50px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    margin-bottom: 2.5rem;
}

.search-box {
    max-width: 650px;
    margin: 0 auto;
    position: relative;
}

.search-box .input-group {
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
    border-radius: 50px;
    overflow: hidden;
}

.search-box .form-control {
    border: none;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px 0 0 50px;
}

.search-box .btn {
    padding: 1.2rem 2.5rem;
    border: none;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 0 50px 50px 0;
    transition: all 0.3s ease;
}

.search-box .btn:hover {
    background: var(--light-blue);
    color: var(--primary-color);
    transform: scale(1.02);
}

/* Category Cards - Premium Kurumsal Tasarım */
.category-card {
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.category-card .card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
    position: relative;
    height: 100%;
}

.category-card:hover .card {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 86, 179, 0.12);
    border-color: var(--primary-color);
    color: inherit;
}

.category-card .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.category-card:hover .card::before {
    transform: scaleX(1);
}

.category-card .card-body {
    padding: 2.5rem 2rem;
    background: white;
}

.category-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}

.category-card:hover .category-image {
    transform: scale(1.15);
    filter: brightness(1);
}

.category-icon {
    font-size: 3rem;
    color: var(--primary-color);
    transition: all 0.4s ease;
}

.category-card:hover .category-icon {
    transform: scale(1.1) rotate(-5deg);
    color: var(--secondary-color);
}

.category-card .card-title {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.15rem;
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    letter-spacing: -0.3px;
}

/* Cart - Enhanced Design */
.cart-item {
    border-bottom: 1px solid #ecf0f1;
    padding: 1.5rem 0;
    transition: background 0.3s ease;
}

.cart-item:hover {
    background: #f8f9fa;
    border-radius: 8px;
    padding-left: 1rem;
    padding-right: 1rem;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-summary {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.cart-summary .fs-5 {
    font-weight: 700;
    color: var(--dark-color);
}

.cart-summary .text-success {
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

/* Checkout Form */
.checkout-form {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Admin Panel */
.sidebar {
    min-height: 100vh;
    background: var(--dark-color);
    padding: 0;
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 1rem;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    border-left-color: var(--primary-color);
    color: white;
}

.admin-content {
    padding: 2rem;
}

/* Image Upload Preview */
.image-preview {
    max-width: 200px;
    max-height: 200px;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Badge - Modern */
.badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.4em 0.7em;
}

.badge.bg-success {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
}

.badge.bg-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: white !important;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .product-image {
        height: 200px;
    }
    
    .search-container {
        padding: 2rem 0;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* Button Styles - Premium Kurumsal */
.btn {
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.8rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    pointer-events: none;
    z-index: 0;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn * {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.35);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.25);
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn i {
    margin-right: 0.5rem;
}

/* Breadcrumb Styles */
.breadcrumb {
    background: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: "›";
    font-size: 1.2rem;
    color: var(--medium-gray);
}

.breadcrumb-item a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.breadcrumb-item a:hover {
    color: var(--secondary-color) !important;
}

/* Alert Styles */
.alert {
    border-radius: 8px;
    border: none;
}

/* Table Styles */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--light-color);
}

/* Form Styles */
.form-control,
.form-select {
    border-radius: 6px;
    border: 1px solid #ced4da;
    padding: 0.6rem 1rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 86, 179, 0.15);
}

/* Select Option Disabled Style */
.form-select option:disabled {
    font-weight: 700;
    color: #6c757d !important;
    background-color: #f8f9fa;
}

/* Card Styles - Kurumsal */
.card {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    background: white;
}

.card-header {
    background: white;
    border-bottom: 2px solid #e9ecef;
    font-weight: 700;
    color: var(--dark-color);
    padding: 1.25rem 1.5rem;
    border-radius: 8px 8px 0 0 !important;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 3px;
}

