:root {
    --primary-bordo: #800000;
    --primary-lacivert: #1e3a8a;
    --bordo-light: #a00000;
    --bordo-dark: #600000;
    --lacivert-light: #3b82f6;
    --lacivert-dark: #1e40af;
    --bordo-gradient: linear-gradient(135deg, #800000 0%, #a00000 100%);
    --lacivert-gradient: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(to bottom, #f8f9fa 0%, #f5f5f5 100%);
    min-height: 100vh;
}

/* Top Bar */
.top-bar {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    backdrop-filter: blur(5px);
}

.top-bar a {
    transition: color 0.2s ease;
}

.top-bar a:hover {
    color: var(--primary-bordo) !important;
}

/* Header Styles */
.navbar-brand {
    font-weight: 700;
    color: var(--primary-bordo) !important;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.05) 0%, rgba(128, 0, 0, 0.02) 100%);
}

.navbar-brand:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, rgba(128, 0, 0, 0.05) 100%);
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.15);
}

.navbar-brand img {
    height: 40px;
    width: auto;
    object-fit: contain;
}

/* Navbar Cart Badge */
.navbar .nav-link .badge {
    animation: pulse-badge 2s infinite;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    font-weight: 700;
    border: 2px solid white;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        box-shadow: 0 4px 12px rgba(220, 53, 69, 0.6);
    }
}

/* Toast Notifications */
.toast-container {
    min-width: 300px;
    max-width: 400px;
}

.toast {
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.toast-body {
    font-size: 0.95rem;
    font-weight: 500;
}

@media (max-width: 576px) {
    .toast-container {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: 100%;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
    }
}

.navbar {
    background: linear-gradient(to bottom, #ffffff 0%, #fafafa 100%) !important;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* Button Styles */
.btn-primary {
    background: var(--bordo-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(128, 0, 0, 0.2);
}

.btn-primary:hover {
    background: var(--primary-bordo);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.3);
    color: white;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: var(--lacivert-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.btn-success:hover {
    background: var(--primary-lacivert);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    color: white;
}

.btn-success:active {
    transform: translateY(0);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border-radius: 6px;
}

/* Product Card */
.product-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--bordo-gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.product-price {
    color: var(--primary-bordo);
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(135deg, #800000 0%, #a00000 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Sticky Cart Footer */
.cart-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, white 0%, #f8f9fa 100%);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    padding: 1rem 1.25rem;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--primary-bordo);
}

.cart-footer .container {
    padding: 0;
    max-width: 100%;
}

.cart-footer-content {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.cart-footer-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.cart-complete-btn {
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    font-weight: 600;
    white-space: nowrap;
    min-height: 44px;
    flex-shrink: 0;
    max-width: 100%;
}

@media (max-width: 576px) {
    .cart-complete-btn {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* Sepet footer olduğunda içerik için padding */
body:has(.cart-footer:not([x-cloak])) {
    padding-bottom: 100px;
}

/* Alternatif: Ana içerik için padding */
main.container {
    padding-bottom: 120px;
}

.cart-total {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--bordo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Bar */
.search-container {
    width: 100% !important;
    display: flex !important;
    margin: 0;
}

.input-group.search-container {
    width: 100% !important;
    display: flex !important;
}

.search-bar {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
    margin-right: 0.5rem;
}

.search-btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}

.search-btn i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .search-btn,
    .input-group .search-btn,
    .input-group .btn-primary.search-btn,
    .input-group.search-container .btn-primary {
        min-height: 38px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        min-width: 45px !important;
        border-radius: 8px !important;
    }
    
    .search-btn i,
    .input-group .search-btn i {
        font-size: 0.95rem !important;
    }
    
    /* Sepete Ekle Butonu Mobil */
    .btn-primary.btn-sm.mt-auto {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
}

/* Sort Select */
.sort-select {
    border: 2px solid #ced4da;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-select:focus {
    border-color: var(--primary-bordo);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
    outline: none;
}

.sort-select:hover {
    border-color: var(--primary-bordo);
}

@media (max-width: 768px) {
    .search-bar {
        font-size: 16px !important; /* iOS zoom önleme */
        padding: 0.75rem 1rem !important;
        min-height: 44px; /* Touch-friendly */
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
        margin-right: 0.5rem !important;
        border-radius: 8px !important;
    }
    
    .search-container {
        display: flex !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .input-group.search-container {
        display: flex !important;
        width: 100% !important;
    }
    
    .input-group.search-container .form-control {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        width: auto !important;
    }
    
    .input-group.search-container .btn {
        flex: 0 0 auto !important;
        white-space: nowrap;
    }
    
    .search-btn,
    .input-group.search-container .search-btn,
    .input-group.search-container .btn-primary {
        min-width: 45px !important;
        min-height: 38px !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.85rem !important;
        border-radius: 8px !important;
    }
    
    .search-btn i,
    .input-group.search-container .search-btn i {
        font-size: 0.95rem !important;
    }
    
    /* Sepete Ekle Butonu Mobil */
    .btn-primary.btn-sm.mt-auto {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
    }
    
    /* Cart Footer Mobil */
    .cart-footer {
        padding: 0.75rem 1rem;
    }
    
    .cart-footer-content {
        flex-wrap: nowrap;
        gap: 0.5rem;
    }
    
    .cart-footer .cart-total {
        font-size: 1.1rem;
    }
    
    .cart-complete-btn {
        font-size: 0.85rem !important;
        padding: 0.5rem 0.75rem !important;
        min-height: 40px;
    }
}

@media (min-width: 769px) {
    .cart-footer .container {
        max-width: 1140px;
        margin: 0 auto;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .cart-footer-content {
        max-width: 100%;
    }
}

/* Extra Small Buttons */
.btn-xs {
    padding: 0.2rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    border-radius: 4px;
}

/* Modal Form Improvements */
.modal-body .form-label {
    color: #333 !important;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
}

.modal-body .form-control,
.modal-body .form-select,
.modal-body textarea {
    color: #000 !important;
    font-weight: 500 !important;
    background-color: #fff !important;
    border: 2px solid #ced4da !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    border-radius: 8px;
    width: 100%;
    display: block;
}

.modal-body .form-control:focus,
.modal-body .form-select:focus,
.modal-body textarea:focus {
    color: #000 !important;
    background-color: #fff !important;
    border-color: var(--primary-bordo) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25) !important;
    outline: none;
}

.modal-body .form-control::placeholder,
.modal-body textarea::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

.modal-body input[type="text"],
.modal-body input[type="tel"],
.modal-body textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.modal-input {
    color: #000 !important;
    background-color: #fff !important;
    border: 2px solid #ced4da !important;
    padding: 0.75rem 1rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    width: 100% !important;
    display: block !important;
}

.modal-input:focus {
    color: #000 !important;
    background-color: #fff !important;
    border-color: var(--primary-bordo) !important;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25) !important;
    outline: none !important;
}

.modal-input::placeholder {
    color: #6c757d !important;
    opacity: 0.7;
}

.modal-footer .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.modal-footer .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

@media (max-width: 768px) {
    .modal-input {
        font-size: 16px !important; /* iOS zoom önleme */
        padding: 0.75rem 1rem !important;
        min-height: 44px; /* Touch-friendly */
    }
    
    .modal-body textarea.modal-input {
        min-height: auto;
    }
}

/* Modal Footer Button Improvements */
.modal-footer-btn {
    font-size: 1rem !important;
    padding: 0.75rem 1.5rem !important;
    min-height: 44px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    flex: 1;
}

.modal-footer .btn-secondary {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

.modal-footer .btn-secondary:hover {
    background-color: #5a6268 !important;
    border-color: #545b62 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-success {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.modal-footer .btn-success:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
    transform: translateY(-1px);
}

.modal-footer .btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.modal-footer .btn-success i {
    font-size: 1.1rem;
    margin-right: 0.5rem;
}

/* Cart Item Styles */
.cart-item {
    padding: 0.875rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-name {
    display: block;
    font-size: 1rem;
    color: #000;
    margin-bottom: 0.25rem;
}

.cart-item-price {
    display: block;
    color: #666;
    font-size: 0.875rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cart-quantity-controls {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cart-qty-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    min-width: 26px;
    line-height: 1;
}

.cart-quantity {
    min-width: 25px;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    color: #000;
}

.cart-total-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-bordo);
    min-width: 85px;
    text-align: right;
    white-space: nowrap;
}

.cart-delete-btn {
    width: 26px;
    height: 26px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    font-size: 0.75rem;
    min-width: 26px;
    line-height: 1;
}

/* Mobile Cart Item Buttons */
@media (max-width: 768px) {
    .cart-item {
        padding: 0.875rem;
    }
    
    .cart-item-content {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .cart-item-info {
        width: 100%;
    }
    
    .cart-item-name {
        font-size: 0.95rem;
    }
    
    .cart-item-price {
        font-size: 0.8rem;
    }
    
    .cart-item-controls {
        width: 100%;
        justify-content: space-between;
        gap: 0.5rem;
    }
    
    .cart-qty-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.7rem;
    }
    
    .cart-quantity {
        font-size: 0.85rem;
        min-width: 22px;
    }
    
    .cart-total-price {
        font-size: 1rem;
        min-width: 75px;
        color: var(--primary-bordo);
    }
    
    .cart-delete-btn {
        width: 24px;
        height: 24px;
        min-width: 24px;
        font-size: 0.7rem;
    }
}

.search-bar:focus {
    border-color: var(--primary-bordo);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
    outline: none;
}

.search-bar::placeholder {
    color: #999;
    font-style: italic;
}

/* Category Badge */
.category-badge {
    background: var(--lacivert-gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 4px rgba(30, 58, 138, 0.2);
}

.category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(30, 58, 138, 0.3);
    color: white;
}

.category-badge.active {
    background: var(--bordo-gradient);
    box-shadow: 0 4px 8px rgba(128, 0, 0, 0.3);
}

/* Modal Styles */
.modal-header {
    background: var(--bordo-gradient);
    color: white;
    border-radius: 8px 8px 0 0;
    padding: 1.25rem 1.5rem;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    background-color: #fff !important;
}

.modal-body {
    padding: 1.5rem;
    background-color: #fff !important;
}

.modal-header {
    background-color: #fff !important;
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    background-color: #fff !important;
    border-top: 1px solid #dee2e6;
}

.form-control:focus {
    border-color: var(--primary-bordo);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Admin Styles */
.admin-sidebar {
    background-color: #2c3e50;
    min-height: 100vh;
    color: white;
}

.admin-sidebar a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 4px;
    margin: 0.25rem 0;
}

.admin-sidebar a:hover {
    background-color: rgba(255,255,255,0.1);
    color: white;
}

/* Table Improvements */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: var(--lacivert-gradient);
    color: white;
}

.table thead th {
    border: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    padding: 1rem;
}

.table tbody tr {
    transition: all 0.2s ease;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
}

.table tbody td {
    padding: 1rem;
    vertical-align: middle;
}

/* Badge Improvements */
.badge {
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    border-radius: 6px;
    font-size: 0.75rem;
}

.badge.bg-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%) !important;
    color: #000;
}

.badge.bg-success {
    background: var(--lacivert-gradient) !important;
    color: white;
}

.badge.bg-danger {
    background: var(--bordo-gradient) !important;
    color: white;
}

/* Mobile First - Responsive Improvements */
@media (max-width: 576px) {
    /* Extra Small Devices */
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 30px;
    }
    
    .product-image {
        height: 120px;
    }
    
    .product-card {
        margin-bottom: 1rem;
    }
    
    .cart-footer {
        padding: 0.75rem;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .cart-footer .row > div {
        width: 100% !important;
        text-align: center !important;
    }
    
    .cart-total {
        font-size: 1.1rem;
    }
    
    .category-badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .search-bar {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1.25rem;
    }
    
    .modal-dialog {
        margin: 0.5rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table thead {
        display: none;
    }
    
    .table tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.75rem;
        background: white;
    }
    
    .table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table tbody td:last-child {
        border-bottom: none;
    }
    
    .table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--primary-bordo);
        margin-right: 1rem;
    }
    
    .notification-toast {
        left: 10px;
        right: 10px;
        min-width: auto;
        max-width: 100%;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    .category-title {
        font-size: 1.25rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    /* Small Devices */
    .product-image {
        height: 150px;
    }
    
    .cart-footer {
        padding: 0.75rem;
    }
    
    .cart-total {
        font-size: 1.25rem;
    }
    
    .table thead th {
        font-size: 0.75rem;
        padding: 0.75rem 0.5rem;
    }
    
    .table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    .d-flex.gap-2 {
        flex-wrap: wrap;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .dropdown-menu {
        width: 100%;
        text-align: center;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .list-group-item {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .form-control,
    .form-select {
        font-size: 0.875rem;
    }
}

@media (max-width: 992px) {
    /* Medium Devices */
    .product-card {
        margin-bottom: 1rem;
    }
    
    .table-responsive {
        border-radius: 8px;
    }
    
    .modal-dialog-centered {
        min-height: calc(100% - 2rem);
    }
}

@media (min-width: 1200px) {
    /* Large Devices */
    .container {
        max-width: 1140px;
    }
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .d-md-none-mobile {
        display: none !important;
    }
    
    .text-md-center-mobile {
        text-align: center !important;
    }
    
    .w-md-100-mobile {
        width: 100% !important;
    }
}

/* Mobile Cart Footer Improvements */
@media (max-width: 576px) {
    .cart-footer .row {
        margin: 0;
    }
    
    .cart-footer .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cart-footer .btn-lg {
        width: 100%;
    }
}

/* Responsive Table for Admin */
@media (max-width: 768px) {
    .table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Stack table columns on mobile */
    .table-mobile-stack thead {
        display: none;
    }
    
    .table-mobile-stack tbody tr {
        display: block;
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
        padding: 0.75rem;
    }
    
    .table-mobile-stack tbody td {
        display: block;
        text-align: right;
        padding: 0.5rem 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .table-mobile-stack tbody td:last-child {
        border-bottom: none;
    }
    
    .table-mobile-stack tbody td::before {
        content: attr(data-label);
        float: left;
        font-weight: 600;
        color: var(--primary-bordo);
    }
}

/* Responsive Form Improvements */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .form-row .col {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control,
    .input-group .btn {
        border-radius: 8px !important;
        margin-bottom: 0.5rem;
    }
}

/* Responsive Modal Improvements */
@media (max-width: 576px) {
    .modal-dialog {
        max-width: 95%;
        margin: 1rem auto;
    }
    
    .modal-dialog-centered {
        margin: 1rem auto !important;
    }
    
    .modal-content {
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        background-color: #fff !important;
        max-height: 90vh;
    }
    
    .modal-header {
        padding: 1rem !important;
        flex-shrink: 0;
        background-color: #fff !important;
        border-bottom: 1px solid #dee2e6;
    }
    
    .modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1rem !important;
        background-color: #fff !important;
    }
    
    .modal-footer {
        border-top: 1px solid #dee2e6;
        padding: 0.75rem 1rem !important;
        flex-shrink: 0;
        background-color: #fff !important;
    }
    
    .modal-footer-btn {
        font-size: 0.9rem !important;
        padding: 0.6rem 1rem !important;
        min-height: 44px;
    }
    
    .modal-footer .btn {
        flex: 1;
        margin: 0 0.25rem;
    }
}

/* Responsive Product Cards */
@media (max-width: 576px) {
    .col-6.col-md-4.col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 400px) {
    .col-6.col-md-4.col-lg-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Responsive Admin Panel */
@media (max-width: 768px) {
    .admin-actions {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-actions .btn {
        width: 100%;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
        gap: 1rem;
    }
    
    .d-flex.justify-content-between > * {
        width: 100%;
    }
}

/* Responsive Checkout Modal */
@media (max-width: 576px) {
    .list-group-item {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .list-group-item > div {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .list-group-item .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .list-group-item .btn-sm {
        width: 100%;
    }
    
    .list-group-item .gap-2 {
        width: 100%;
    }
    
    .list-group-item .gap-2 > * {
        flex: 1;
    }
}

/* Responsive Table with Data Labels */
@media (max-width: 768px) {
    .table tbody td[data-label]::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--primary-bordo);
        display: inline-block;
        min-width: 100px;
    }
    
    .table tbody td {
        display: block;
        text-align: left;
        padding-left: 50%;
        position: relative;
    }
    
    .table tbody td::before {
        position: absolute;
        left: 0;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
    }
}

/* Responsive Navbar */
@media (max-width: 991px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.5);
        border-radius: 12px;
        padding: 1rem;
        backdrop-filter: blur(10px);
    }
    
    .navbar-nav {
        gap: 0.5rem;
    }
    
    .nav-link {
        margin: 0.25rem 0;
        padding: 0.75rem 1rem !important;
    }
    
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        background: rgba(255,255,255,0.95);
    }
}

/* Responsive Search Bar */
@media (max-width: 576px) {
    .input-group {
        flex-direction: column;
    }
    
    .input-group .form-control {
        border-radius: 8px 8px 0 0 !important;
        margin-bottom: 0;
    }
    
    .input-group .btn {
        border-radius: 0 0 8px 8px !important;
        width: 100%;
    }
}

/* Responsive Category Filters */
@media (max-width: 576px) {
    .d-flex.flex-wrap.gap-2 {
        justify-content: center;
    }
    
    .category-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }
}

/* Responsive Product Grid */
@media (max-width: 576px) {
    .row.g-3 {
        margin: 0 -0.5rem;
    }
    
    .row.g-3 > [class*="col-"] {
        padding: 0 0.5rem;
    }
}

/* Responsive Admin Forms */
@media (max-width: 768px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header h4 {
        font-size: 1.1rem;
    }
    
    .form-label {
        font-size: 0.875rem;
    }
}

/* Touch-friendly buttons on mobile */
@media (max-width: 768px) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-sm {
        min-height: 36px;
    }
}

/* Responsive spacing */
@media (max-width: 576px) {
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-3 {
        margin-bottom: 1rem !important;
    }
    
    .gap-2 {
        gap: 0.5rem !important;
    }
    
    .gap-3 {
        gap: 0.75rem !important;
    }
}

/* Modern Kategori Barı */
.category-nav-wrapper {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 999;
    top: 76px !important; /* Navbar'ın altında durması için */
}

.category-nav-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
    padding: 10px 0;
}

.category-nav-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.category-nav-item {
    flex: 0 0 auto;
    margin-right: 10px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
}

.category-nav-item:hover {
    background: rgba(128, 0, 0, 0.05);
    color: var(--primary-bordo);
}

.category-nav-item.active {
    background: var(--bordo-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

/* Modern Ürün Kartı */
.product-card {
    border-radius: 16px !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1) !important;
}

.product-image-container {
    padding: 15px;
    position: relative;
    background: #fdfdfd;
}

.product-image {
    height: 160px;
    object-fit: contain;
    width: 100%;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Miktar Seçici (Getir Tarzı) */
.qty-selector {
    display: flex;
    align-items: center;
    background: var(--bordo-gradient);
    border-radius: 50px;
    padding: 2px;
    color: white;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
    overflow: hidden;
}

.qty-selector .btn-qty {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: white;
    font-size: 1.2rem;
    transition: background 0.2s;
}

.qty-selector .btn-qty:hover {
    background: rgba(255,255,255,0.1);
}

.qty-selector .qty-text {
    min-width: 30px;
    text-align: center;
    font-weight: 700;
}

.btn-add-circle {
    width: 36px;
    height: 36px;
    border-radius: 50% !important;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.2);
}

/* Yüzer Sepet Çubuğu (Mobil) */
.floating-cart-bar {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--lacivert-gradient);
    color: white;
    padding: 12px 20px;
    border-radius: 16px;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 8px 32px rgba(30, 58, 138, 0.4);
    backdrop-filter: blur(10px);
}

.floating-cart-bar .cart-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-cart-bar .cart-price {
    font-weight: 800;
    font-size: 1.1rem;
}

.floating-cart-bar .cart-btn {
    background: white;
    color: var(--primary-lacivert);
    border: none;
    padding: 6px 15px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.9rem;
}

/* Category Section Titles */
.category-title {
    font-size: 1.5rem !important;
    border-bottom: none !important;
    padding-left: 15px;
    position: relative;
    margin-top: 2rem;
}

.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 5px;
    background: var(--bordo-gradient);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .product-image {
        height: 120px;
    }
    .product-card .card-body {
        padding: 10px;
    }
    .product-card .card-title {
        font-size: 0.9rem;
    }
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
@keyframes success-check {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.success-icon {
    animation: success-check 0.5s ease-out;
}

/* Smooth Transitions */
* {
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Card Hover Effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Alert Improvements */
.alert {
    border-radius: 8px;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
    border-color: var(--primary-bordo);
    border-right-color: transparent;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    opacity: 0.3;
    margin-bottom: 1rem;
}

/* Input Improvements */
input[type="text"],
input[type="tel"],
input[type="number"],
input[type="email"],
textarea,
select {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-bordo);
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.15);
    outline: none;
}

/* Card Improvements */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.card-header {
    background: var(--lacivert-gradient);
    color: white;
    border-radius: 12px 12px 0 0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

/* Navbar Improvements */
.nav-link {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    padding: 0.6rem 1.2rem !important;
    margin: 0 0.25rem;
    font-weight: 500;
    color: #333 !important;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0.3rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-bordo) 0%, var(--bordo-light) 100%);
    border-radius: 2px;
    transition: transform 0.3s ease;
}

.nav-link:hover {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.08) 0%, rgba(128, 0, 0, 0.04) 100%);
    color: var(--primary-bordo) !important;
    transform: translateY(-1px);
}

.nav-link:hover::before {
    transform: translateX(-50%) scaleX(1);
}

.nav-link.active {
    color: var(--primary-bordo) !important;
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, rgba(128, 0, 0, 0.05) 100%);
}

.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* Navbar Toggler */
.navbar-toggler {
    border: 2px solid rgba(128, 0, 0, 0.2);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:hover {
    border-color: var(--primary-bordo);
    background: rgba(128, 0, 0, 0.05);
    transform: scale(1.05);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.25);
    border-color: var(--primary-bordo);
}

/* Dropdown Menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.5rem;
    background: white;
    backdrop-filter: blur(10px);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.25rem 0;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #333;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.1) 0%, rgba(128, 0, 0, 0.05) 100%);
    color: var(--primary-bordo);
    transform: translateX(4px);
}

.dropdown-item:active {
    background: linear-gradient(135deg, rgba(128, 0, 0, 0.15) 0%, rgba(128, 0, 0, 0.1) 100%);
    color: var(--primary-bordo);
}

.dropdown-item i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: rgba(0,0,0,0.08);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--primary-bordo);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .cart-footer,
    .navbar,
    .btn {
        display: none !important;
    }
}

/* Footer */
.footer {
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.footer-title {
    color: var(--primary-lacivert);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--primary-bordo);
}

.footer-contact {
    color: #6c757d;
}

.footer-contact i {
    color: var(--primary-bordo);
    width: 20px;
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.05);
    margin-top: 3rem;
    padding-top: 1.5rem;
    text-align: center;
    color: #adb5bd;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer {
        padding-bottom: 100px; /* Floating cart bar için yer bırak */
    }
}