/* 
 * Dropshipping Ayakkabi Satis Sistemi
 * Modern Premium Responsive CSS
 * Tema Rengi: Koyu Kırmızı #7a0000
 */

:root {
    --primary-color: #7a0000;
    --primary-light: #8b0000;
    --primary-dark: #5a0000;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --danger-color: #e74c3c;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --dark-color: #7a0000;
    --light-color: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(122, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(122, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Navbar Styles - Modern Premium */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow-lg);
    padding: 0.5rem 0;
    backdrop-filter: blur(10px);
}

.navbar-collapse {
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255,255,255,0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white) !important;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.navbar-brand:hover {
    transform: scale(1.05);
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.navbar-dark .navbar-nav .nav-link:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Admin & Müşteri Panel Buttons */
.nav-link.admin-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    padding: 8px 20px;
    border-radius: 25px;
    margin-left: 10px;
    font-weight: 700;
    color: var(--white) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.nav-link.admin-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.5);
}

.nav-link.customer-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    padding: 8px 20px;
    border-radius: 25px;
    margin-left: 10px;
    font-weight: 700;
    color: var(--white) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.nav-link.customer-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Ürünler Paneli (Shop) Button - Yeşil */
.nav-link.shop-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    padding: 8px 20px;
    border-radius: 25px;
    margin-left: 10px;
    font-weight: 700;
    color: var(--white) !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.nav-link.shop-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.5);
}

.nav-link.shop-btn i {
    margin-right: 5px;
}

/* Sidebar - Modern Premium */
.sidebar {
    min-height: 100vh;
    background: var(--primary-color);
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    padding-top: 80px;
    z-index: 1000;
    overflow-y: auto;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 10px;
}

.sidebar .nav-link {
    color: var(--white);
    font-weight: 600;
    padding: 15px 25px;
    margin: 8px 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: var(--white);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.sidebar .nav-link:hover {
    background: rgba(255,255,255,0.15);
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.sidebar .nav-link:hover::before {
    transform: scaleY(1);
}

.sidebar .nav-link.active {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255,255,255,0.2);
    font-weight: 700;
}

.sidebar .nav-link i {
    margin-right: 15px;
    width: 24px;
    font-size: 1.2rem;
}

.main-content {
    margin-left: 280px;
    padding: 30px;
    padding-top: 160px;
    min-height: 100vh;
}

/* Card Styles - Modern Premium */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 25px;
    background: var(--white);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.card-header {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 700;
    border-radius: 16px 16px 0 0 !important;
    padding: 20px 25px;
    font-size: 1.1rem;
    letter-spacing: 0.3px;
    border-bottom: none;
}

/* Stat Cards - Ultra Modern */
.stat-card {
    padding: 30px;
    border-radius: 20px;
    color: var(--white);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: var(--shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    transition: all 0.5s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(12, 36, 97, 0.25);
}

.stat-card:hover::before {
    transform: scale(1.2);
}

.stat-card .stat-icon {
    font-size: 4rem;
    opacity: 0.25;
    position: absolute;
    right: 25px;
    bottom: 25px;
    transition: all 0.4s ease;
}

.stat-card:hover .stat-icon {
    opacity: 0.4;
    transform: scale(1.1);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.stat-card p {
    font-size: 1rem;
    font-weight: 600;
    opacity: 0.95;
    letter-spacing: 0.5px;
}

.stat-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
}

.stat-success {
    background: linear-gradient(135deg, var(--success-color) 0%, #2ecc71 100%);
}

.stat-warning {
    background: linear-gradient(135deg, var(--warning-color) 0%, #f1c40f 100%);
}

.stat-danger {
    background: linear-gradient(135deg, var(--danger-color) 0%, #c0392b 100%);
}

.stat-info {
    background: linear-gradient(135deg, var(--info-color) 0%, #2980b9 100%);
}

/* Product Card - Modern & Kompakt */
.product-card {
    height: 100%;
    transition: all 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.product-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px 12px 0 0;
    background: #f8f9fa;
}

.product-card .product-info {
    padding: 12px 12px 8px 12px;
}

.product-card .product-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--dark-color);
    line-height: 1.3;
}

.product-card .product-brand {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-color);
    white-space: nowrap;
}

.product-card .product-brand i {
    font-size: 0.85rem;
    margin-right: 4px;
}

.product-card .product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-card .product-color {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.product-card .product-color i {
    font-size: 0.95rem;
    margin-right: 4px;
}

.stock-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.out-of-stock {
    background-color: var(--danger-color);
    color: white;
}

.low-stock {
    background-color: var(--warning-color);
    color: white;
}

.in-stock {
    background-color: var(--success-color);
    color: white;
}

/* Buttons - Ultra Modern with Bold White Text */
.btn {
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    color: var(--white) !important;
}

.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;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(12, 36, 97, 0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    box-shadow: 0 4px 15px rgba(12, 36, 97, 0.2);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success-color);
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.2);
}

.btn-success:hover {
    background: #229954;
}

.btn-danger {
    background: var(--danger-color);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-warning {
    background: var(--warning-color);
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.btn-warning:hover {
    background: #d68910;
}

.btn-info {
    background: var(--info-color);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.btn-info:hover {
    background: #2980b9;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* Table Styles */
.table {
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
}

.table thead {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.table thead th {
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 15px;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f9fafb;
    transform: scale(1.01);
}

.table td {
    vertical-align: middle;
    padding: 12px 15px;
}

/* Form Controls */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
}

/* Badge Styles */
.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

/* Renk Badge - Koyu Sarı */
.badge.bg-info.color-badge,
.badge.bg-info:has(i.bi-palette) {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #000 !important;
    font-weight: 700 !important;
}

.badge.bg-info.color-badge i,
.badge.bg-info:has(i.bi-palette) i {
    color: #000 !important;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
    padding: 15px 20px;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
}

.alert-danger {
    background-color: #fee2e2;
    color: #991b1b;
}

.alert-warning {
    background-color: #fef3c7;
    color: #92400e;
}

.alert-info {
    background-color: #dbeafe;
    color: #1e40af;
}

/* Modal */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

/* Login Page - Ultra Modern */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 50%, var(--primary-light) 100%);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -300px;
    right: -200px;
    animation: float 8s ease-in-out infinite;
}

.login-container::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    bottom: -150px;
    left: -100px;
    animation: float 6s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.login-card {
    max-width: 480px;
    width: 100%;
    background: var(--white);
    padding: 50px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-card .logo h2 {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 2rem;
    margin-top: 15px;
    letter-spacing: -0.5px;
}

.login-card .logo i {
    font-size: 4rem;
    color: var(--primary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Loading Spinner */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

/* Responsive - Ultra Modern Mobile First */
@media (max-width: 1200px) {
    .sidebar {
        width: 240px;
    }
    
    .main-content {
        margin-left: 240px;
    }
}

@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        width: 280px;
        z-index: 9999;
    }
    
    .sidebar.show {
        transform: translateX(0);
        box-shadow: 0 0 100px rgba(0,0,0,0.5);
    }
    
    .main-content {
        margin-left: 0;
        padding: 20px;
        padding-top: 90px;
    }
    
    .stat-card {
        padding: 25px;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    /* Navbar-toggler'ı gizle */
    .navbar-toggler {
        display: none !important;
    }
    
    /* Mobile Header - Menü her zaman açık */
    .navbar-collapse {
        display: flex !important;
        background: transparent !important;
        padding: 0 !important;
        margin-top: 10px !important;
    }
    
    .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        width: 100% !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .navbar-nav .nav-item {
        flex: 0 0 auto !important;
        margin: 0 2px !important;
    }
    
    .navbar-nav .nav-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 4px 6px !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: rgba(255,255,255,0.1) !important;
        min-width: 55px !important;
        text-align: center !important;
        font-size: 0.65rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }
    
    .navbar-nav .nav-link i {
        font-size: 1.2rem !important;
        margin: 0 0 2px 0 !important;
        display: block !important;
    }
    
    /* Özel butonlar mobilde */
    .nav-link.admin-btn,
    .nav-link.customer-btn,
    .nav-link.shop-btn {
        padding: 4px 6px !important;
        margin: 0 2px !important;
        font-size: 0.65rem !important;
        min-width: 55px !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }
    
    .nav-link.admin-btn i,
    .nav-link.customer-btn i,
    .nav-link.shop-btn i {
        font-size: 1.2rem !important;
        margin: 0 0 2px 0 !important;
    }
    
    /* Sepet badge mobilde */
    .cart-link {
        position: relative !important;
    }
    
    .cart-badge {
        position: absolute !important;
        top: 0 !important;
        right: 0 !important;
        min-width: 16px !important;
        height: 16px !important;
        font-size: 0.6rem !important;
        padding: 0 4px !important;
    }
    
    /* Divider gizle */
    .navbar-text {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .main-content {
        padding: 15px;
        padding-top: 80px;
    }
    
    .product-card img {
        height: 180px;
    }
    
    .stat-card {
        padding: 20px;
        margin-bottom: 15px;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
    
    .stat-card .stat-icon {
        font-size: 3rem;
        right: 15px;
        bottom: 15px;
    }
    
    .card-header {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .table {
        font-size: 0.9rem;
    }
    
    .login-card {
        margin: 20px;
        padding: 35px 25px;
    }
    
    /* Mobile Header Optimization */
    .navbar-brand {
        font-size: 1rem;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px;
        margin: 3px 0;
        border-radius: 8px;
        text-align: center;
    }
    
    .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.15);
    }
    
    .nav-link.admin-btn,
    .nav-link.customer-btn,
    .nav-link.shop-btn {
        display: block;
        width: 100%;
        margin: 8px 0;
        text-align: center;
    }
    
    .navbar-text {
        display: none !important;
    }
    
    .cart-badge {
        position: absolute;
        top: 5px;
        right: 5px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9rem;
    }
    
    .navbar-brand i {
        font-size: 1rem;
    }
    
    .stat-card {
        padding: 18px;
    }
    
    .stat-card h3 {
        font-size: 1.5rem;
    }
    
    .stat-card p {
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
        width: 100%;
        margin-bottom: 10px;
    }
    
    .login-card {
        padding: 30px 20px;
    }
    
    .login-card .logo h2 {
        font-size: 1.5rem;
    }
    
    .product-card img {
        height: 150px;
    }
    
    /* Ultra Small Mobile - Header Fix */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-toggler {
        padding: 0.4rem 0.6rem;
        font-size: 1rem;
    }
    
    .nav-link.admin-btn,
    .nav-link.customer-btn,
    .nav-link.shop-btn {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .dropdown-menu {
        width: 100%;
        border-radius: 12px;
    }
    
    .dropdown-item {
        padding: 12px 20px;
    }
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    backdrop-filter: blur(5px);
}

.sidebar-overlay.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .sidebar, .navbar {
        display: none !important;
    }
    
    .main-content {
        margin: 0;
        padding: 0;
    }
}

/* Cart Badge - Enhanced */
.cart-link {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0 6px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
    animation: cartPulse 2s infinite;
}

@keyframes cartPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Hızlı Sipariş Butonu - Kompakt */
.btn-order-direct {
    background: white;
    color: #7a0000 !important;
    border: 2px solid #7a0000;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(12, 36, 97, 0.15);
}

.btn-order-direct:hover {
    background: #f8f9fa;
    border-color: #7a0000;
    color: #7a0000 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(122, 0, 0, 0.25);
}

.btn-order-direct i {
    font-size: 0.85rem;
    margin-right: 4px;
    color: #7a0000 !important;
}

/* Telegram Soru Sor Butonu - Kompakt */
.btn-telegram {
    background: #0088cc;
    color: white !important;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 136, 204, 0.2);
    border: none;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-telegram:hover {
    background: #0077b5;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 136, 204, 0.4);
    text-decoration: none;
}

.btn-telegram i {
    font-size: 0.85rem;
    margin-right: 4px;
    color: white !important;
}

/* Sepete Ekle Butonu - Kompakt */
.btn-size-select {
    background: var(--primary-color);
    color: white !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(12, 36, 97, 0.2);
    border: none;
}

.btn-size-select:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.3);
}

.btn-size-select i {
    font-size: 0.85rem;
    margin-right: 4px;
}

/* Image Upload Preview */
.image-preview {
    max-width: 200px;
    margin-top: 10px;
    border-radius: 8px;
    border: 2px solid var(--border-color);
}

/* ===================
   Sepet Sayfası Stilleri - Modern & Responsive
   =================== */

/* Sepet Ürün Kartı */
.cart-item-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
}

.cart-item-card:hover {
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.1);
    transform: translateY(-2px);
}

/* Ürün Resmi */
.cart-item-image {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.cart-item-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1;
    transition: transform 0.3s ease;
}

.cart-item-card:hover .cart-item-image img {
    transform: scale(1.05);
}

/* Ürün Başlığı */
.cart-item-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.3;
}

/* Ürün Detayları */
.cart-item-details {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.25rem;
    align-items: center;
}

.cart-item-details .badge {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
    margin-right: 0;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Fiyat Bilgileri */
.cart-item-price,
.cart-item-quantity,
.cart-item-total {
    text-align: center;
}

.cart-item-price strong,
.cart-item-total h5 {
    font-weight: 700;
}

/* Sipariş Özeti Kartı */
.cart-summary-card {
    border: none;
    box-shadow: 0 4px 12px rgba(12, 36, 97, 0.15);
}

.cart-summary-card .card-header {
    border-radius: 16px 16px 0 0 !important;
    padding: 1.25rem;
}

.cart-summary-card .card-body {
    padding: 1.5rem;
}

/* Özet Satırları */
.cart-summary-item {
    font-size: 0.95rem;
    padding: 0.5rem 0;
}

.cart-summary-item i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

/* Toplam Tutar */
.cart-summary-total {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1rem;
    border-radius: 8px;
}

/* Mobil Responsive */
@media (max-width: 767.98px) {
    /* Kart padding azalt */
    .cart-item-card .card-body {
        padding: 0.75rem !important;
    }
    
    /* Mobilde fiyat tek satırda */
    .cart-item-card .text-success {
        white-space: nowrap;
        font-size: 1rem !important;
    }
    
    .cart-summary-total .text-success {
        white-space: nowrap;
    }
    
    /* Resim boyutu */
    .cart-item-image {
        max-width: 80px;
    }
    
    /* Başlık küçült */
    .cart-item-title {
        font-size: 0.9rem;
    }
    
    /* Badge'ler küçült */
    .cart-item-details .badge {
        font-size: 0.65rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobil fiyat bölümü */
    .cart-item-card .border-top {
        border-color: #e9ecef !important;
        margin-top: 0.5rem;
        padding-top: 0.75rem !important;
    }
    
    /* Butonlar */
    .cart-item-card .btn-sm {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    /* Özet kartı mobilde sticky olmasın */
    .cart-summary-card {
        position: static !important;
        margin-top: 1rem;
    }
    
    /* Toplam tutar boyutu */
    .cart-summary-total .fs-3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    /* Çok küçük ekranlar */
    .cart-item-image {
        max-width: 70px;
    }
    
    .cart-item-title {
        font-size: 0.85rem;
    }
    
    .cart-summary-card .card-body {
        padding: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
    }
}

/* Tablet görünümü */
@media (min-width: 768px) and (max-width: 991.98px) {
    .cart-item-image {
        max-width: 100px;
    }
    
    .col-md-3.text-center {
        font-size: 0.9rem;
    }
}

/* Desktop hover efektleri */
@media (min-width: 992px) {
    .cart-summary-card {
        position: sticky;
        top: 20px;
    }
    
    .btn-danger:hover {
        transform: scale(1.05);
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4338ca;
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

.notification-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 15px 20px;
    font-weight: 600;
}

/* ===================
   Mevcut Bedenler Görünümü - Kutucuk Sistemi (Modern & Kompakt)
   =================== */

.available-sizes-boxes {
    background: #f8f9fa;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.size-boxes-compact {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
}

.size-box-compact {
    border: 1.5px solid var(--primary-color);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.2s ease;
}

.size-box-compact:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(12, 36, 97, 0.2);
}

.size-box-compact .size-num {
    background: #fff;
    color: #333;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 6px 2px;
    text-align: center;
    border-bottom: 1.5px solid var(--primary-color);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* S.Beden kutucuğu için özel genişlik */
.size-box-compact.size-standart {
    grid-column: span 2;
}

.size-box-compact .size-qty {
    background: var(--primary-color);
    color: white;
    font-weight: 700;
    font-size: 0.7rem;
    padding: 5px 2px;
    text-align: center;
    line-height: 1.2;
}

/* Tıklanabilir kutucuk stili */
.size-box-compact.clickable {
    cursor: pointer;
}

.size-box-compact.clickable:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(12, 36, 97, 0.25);
}

/* Seçili kutucuk stili */
.size-box-compact.selected {
    border-color: #ffc107;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.2);
}

.size-box-compact.selected .size-num {
    background: #ffc107;
    color: #000;
    font-weight: 800;
}

.size-box-compact.selected .size-qty {
    background: #ffc107;
    color: #000;
    font-weight: 800;
}

.available-sizes-boxes small {
    font-size: 0.65rem;
    font-weight: 600;
    color: #6c757d;
    display: block;
    margin-bottom: 4px;
}

.available-sizes-boxes i {
    font-size: 0.75rem;
    margin-right: 3px;
}

/* ===================
   Mobil Kart Görünümü (Ürün Listesi)
   =================== */

@media (max-width: 991.98px) {
    /* Kart stil düzenlemeleri */
    .card {
        border-radius: 12px;
        border: 1px solid var(--border-color);
        overflow: hidden;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Mobilde küçük badge'ler */
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    /* Mobilde buton boyutları */
    .btn-sm {
        padding: 0.375rem 0.75rem;
        font-size: 0.8rem;
    }
    
    /* Flex gap desteği olmayan tarayıcılar için */
    .d-flex.gap-2 > * {
        margin-right: 0.5rem;
    }
    
    .d-flex.gap-2 > *:last-child {
        margin-right: 0;
    }
    
    /* Mobilde daha iyi okunabilirlik */
    .text-muted {
        font-size: 0.75rem;
    }
    
    /* Kart içindeki başlıklar */
    .card h6 {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    /* Mobilde beden tag'leri daha küçük */
    .size-tag {
        padding: 3px 8px;
        font-size: 0.7rem;
        min-width: 30px;
    }
    
    .available-sizes-display {
        padding: 8px;
    }
    
    /* Mobilde beden grid düzeni */
    .size-boxes-compact {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 576px) {
    /* Küçük ekranlarda 4 sütun */
    .size-boxes-compact {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Mobil Logo Stilleri - Ortala ve Büyüt */
@media (max-width: 992px) {
    .navbar-brand {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.4rem !important;
        top: 2px;
        z-index: 1050;
        padding: 0;
        margin: 0;
        line-height: 1;
    }
    
    .navbar-brand i {
        font-size: 1.3rem;
    }
    
    /* Navbar padding düzenle */
    .navbar {
        padding-top: 0.3rem !important;
        padding-bottom: 0.3rem !important;
    }
    
    /* Menü items için margin top ekle */
    .navbar-collapse {
        margin-top: 30px !important;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.3rem !important;
        top: 2px;
        padding: 0;
        margin: 0;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem !important;
        top: 2px;
        padding: 0;
        margin: 0;
    }
}

/* ===================
   Navbar Styles - Desktop & Mobile
   =================== */

/* Desktop görünümü (992px ve üzeri) - Kompakt yan yana */
@media (min-width: 992px) {
    .navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }
    
    .navbar .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.3rem;
    }
    
    .navbar .navbar-nav .nav-link {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        padding: 0.4rem 0.7rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .navbar .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.1);
        transform: translateY(-2px);
    }
    
    .navbar .navbar-nav .nav-link i {
        font-size: 1rem;
        margin-right: 0.4rem !important;
        margin-bottom: 0 !important;
    }
    
    .navbar .navbar-nav .nav-link span {
        font-size: 0.9rem;
    }
}

/* Mobil görünüm (992px altı) - Icon üstte, text altta, TEK SATIRDA */
@media (max-width: 991.98px) {
    .navbar .navbar-collapse {
        display: flex !important;
    }
    
    .navbar .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-around;
        gap: 0.15rem;
        overflow-x: auto;
        width: 100%;
    }
    
    .navbar .navbar-nav .nav-item {
        margin: 0;
        flex-shrink: 0;
    }
    
    .navbar .navbar-nav .nav-link {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0.35rem 0.25rem !important;
        min-width: 50px;
        max-width: 55px;
        text-align: center;
        border-radius: 6px;
        transition: all 0.3s ease;
        background: rgba(255,255,255,0.1);
    }
    
    .navbar .navbar-nav .nav-link:hover {
        background: rgba(255,255,255,0.2);
    }
    
    .navbar .navbar-nav .nav-link i {
        font-size: 1.1rem !important;
        margin: 0 0 0.1rem 0 !important;
        display: block;
    }
    
    .navbar .navbar-nav .nav-link span {
        font-size: 0.6rem;
        font-weight: 600;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .navbar .navbar-nav {
        gap: 0.1rem;
    }
    
    .navbar .navbar-nav .nav-link {
        min-width: 48px;
        max-width: 52px;
        padding: 0.3rem 0.2rem !important;
    }
    
    .navbar .navbar-nav .nav-link i {
        font-size: 1rem !important;
    }
    
    .navbar .navbar-nav .nav-link span {
        font-size: 0.55rem;
    }
}

/* ===================
   Onay Modal Stilleri (Confirm Modal)
   =================== */

.confirm-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.confirm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.confirm-modal-content {
    position: relative;
    background: white;
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.confirm-modal-header {
    background: linear-gradient(135deg, #7a0000 0%, #5a0000 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border-bottom: none;
}

.confirm-modal-header h5 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.confirm-modal-header h5 i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.confirm-modal-body {
    padding: 2rem 1.5rem;
}

.confirm-modal-body p {
    margin: 0;
    font-size: 1rem;
    color: var(--text-color);
    line-height: 1.6;
}

.confirm-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8f9fa;
}

.confirm-modal-footer .btn {
    padding: 0.625rem 1.25rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 100px;
}

.confirm-modal-footer .btn-secondary {
    background: #6c757d;
    border: none;
}

.confirm-modal-footer .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.confirm-modal-footer .btn-danger {
    background: linear-gradient(135deg, #7a0000 0%, #5a0000 100%);
    border: none;
}

.confirm-modal-footer .btn-danger:hover {
    background: linear-gradient(135deg, #5a0000 0%, #3a0000 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(122, 0, 0, 0.4);
}

/* Mobil Responsive */
@media (max-width: 576px) {
    .confirm-modal-content {
        width: 95%;
        max-width: none;
    }
    
    .confirm-modal-header {
        padding: 1rem 1.25rem;
    }
    
    .confirm-modal-header h5 {
        font-size: 1.1rem;
    }
    
    .confirm-modal-body {
        padding: 1.5rem 1.25rem;
    }
    
    .confirm-modal-body p {
        font-size: 0.95rem;
    }
    
    .confirm-modal-footer {
        padding: 0.75rem 1.25rem;
        flex-direction: column;
    }
    
    .confirm-modal-footer .btn {
        width: 100%;
        min-width: auto;
    }
}

/* ===================
   Resim Galerisi Modal Stilleri (Image Gallery Modal)
   =================== */

.image-gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.image-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.image-gallery-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#galleryMainImage {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-close-btn:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.gallery-nav-btn:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.gallery-thumbnail:hover {
    opacity: 1;
    transform: scale(1.1);
}

.gallery-thumbnail.active {
    opacity: 1;
    border-color: #ffc107;
    box-shadow: 0 0 20px rgba(255, 193, 7, 0.5);
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Mobil Responsive */
@media (max-width: 768px) {
    #galleryMainImage {
        max-height: 60vh;
    }
    
    .gallery-close-btn,
    .gallery-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .gallery-close-btn {
        top: 10px;
        right: 10px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-thumbnails {
        gap: 5px;
        margin-top: 15px;
    }
    
    .gallery-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .gallery-counter {
        bottom: 10px;
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}

/* Ürün resmi tıklanabilir cursor */
.product-image-clickable {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.product-image-clickable:hover {
    transform: scale(1.02);
}
