/* ============================================
   GRANDBERG - MODERN B2B E-COMMERCE STYLES
   Unified Design System v2.0
   ============================================ */

/* ============================================
   1. CSS VARIABLES & ROOT
   ============================================ */
:root {
    /* Primary Colors */
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    
    /* Secondary Colors */
    --secondary-color: #64748b;
    --secondary-dark: #475569;
    --secondary-light: #94a3b8;
    
    /* Status Colors */
    --success-color: #059669;
    --success-light: #d1fae5;
    --warning-color: #d97706;
    --warning-light: #fef3c7;
    --danger-color: #dc2626;
    --danger-light: #fee2e2;
    --info-color: #0891b2;
    --info-light: #cffafe;
    
    /* Neutral Colors */
    --light-color: #f8fafc;
    --dark-color: #1e293b;
    --border-color: #e2e8f0;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --light-gray: #f3f4f6;
    --white: #ffffff;
    
    /* Shadows */
    --shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
    
    /* Admin Panel Colors */
    --admin-primary: #1e40af;
    --admin-secondary: #475569;
    --admin-accent: #3b82f6;
    --admin-success: #10b981;
    --admin-warning: #f59e0b;
    --admin-danger: #ef4444;
    --admin-sidebar-bg: #1e293b;
    --admin-sidebar-hover: #334155;
}

/* ============================================
   2. RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    overflow-y: auto;
    scroll-behavior: smooth;
    height: 100%;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-overflow-scrolling: touch; /* iOS smooth scrolling */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

/* ============================================
   3. CONTAINER & LAYOUT
   ============================================ */
.container,
.container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* Navbar container için overflow visible */
.modern-navbar > .container {
    overflow: visible !important;
    overflow-x: visible !important;
}

    .row {
        margin-left: -12px;
        margin-right: -12px;
    }
    
    .row > * {
        padding-left: 12px;
        padding-right: 12px;
}

@media (min-width: 768px) {
    .row {
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .row > * {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* ============================================
   4. TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   5. NAVIGATION
   ============================================ */
.modern-navbar {
    background: var(--white) !important;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 0;
    transition: all var(--transition-normal);
}

.modern-navbar,
.modern-navbar * {
    overflow: visible !important;
}

.modern-navbar .container {
    position: relative;
}

.modern-navbar .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modern-navbar .nav-link {
    font-weight: 500;
    color: var(--secondary-color) !important;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    white-space: nowrap;
}

.modern-navbar .nav-link:hover,
.modern-navbar .nav-link.active {
    background-color: var(--primary-50);
    color: var(--primary-color) !important;
}

/* Navbar Nav */
.navbar-nav {
    align-items: center;
}

/* Dropdown - SCROLL SORUNU ÇÖZÜMÜ */
.modern-navbar .dropdown {
    position: static !important;
}

.modern-navbar .dropdown-menu {
    position: absolute !important;
    z-index: 9999;
    min-width: 220px;
    margin-top: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: visible !important;
}

.modern-navbar .dropdown-menu-end {
    right: 1rem !important;
    left: auto !important;
}

/* Dropdown items */
.modern-navbar .dropdown-item {
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.modern-navbar .dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--primary-color);
}

.modern-navbar .dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

@media (max-width: 991px) {
    .modern-navbar {
        padding: 0.5rem 0;
    }
    
    .modern-navbar .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-collapse {
        padding: 1rem;
        border-radius: var(--radius-lg);
        margin-top: 0.5rem;
        box-shadow: var(--shadow-md);
        border: 1px solid var(--border-color);
        background: var(--white);
    }
    
    .modern-navbar .nav-link {
        padding: 0.75rem 1rem !important;
        font-size: 0.9375rem;
    }
    
    .modern-navbar .dropdown {
        position: relative !important;
    }
    
    .modern-navbar .dropdown-menu {
        position: static !important;
        border: none;
        box-shadow: none;
        margin-top: 0;
        padding-left: 1rem;
    }
}

/* ============================================
   6. BUTTONS
   ============================================ */
.btn {
    border-radius: var(--radius-md);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    border: none;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.btn-modern,
.btn-modern-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
}

.btn-modern:hover,
.btn-modern-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

.btn-modern-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-modern-secondary:hover {
    background: var(--secondary-dark);
    color: var(--white);
}

.btn-modern-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-modern-outline:hover {
    background: var(--primary-color);
    color: var(--white);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

@media (max-width: 576px) {
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
        min-height: 44px;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
    }
}

/* ============================================
   7. CARDS - UNIFIED SYSTEM
   ============================================ */
.modern-card,
.admin-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    overflow: hidden;
}

.modern-card:hover {
    box-shadow: var(--shadow-md);
}

.modern-card-header,
.card-header-modern {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    border: none;
}

.modern-card-header h5,
.card-header-modern h5 {
    margin: 0;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-card-header {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
    color: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.card-body {
    padding: 1.5rem;
}

@media (max-width: 768px) {
    .modern-card,
    .admin-card {
        border-radius: var(--radius-lg);
    }
    
    .modern-card-header,
    .card-header-modern,
    .admin-card-header {
        padding: 1rem 1.25rem;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .card-body {
        padding: 1rem;
    }
}

/* ============================================
   8. PRODUCT CARDS - UNIFIED DESIGN
   ============================================ */
.product-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: all var(--transition-slow);
    overflow: hidden;
    height: 100%;
        display: flex;
        flex-direction: column;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

/* Product Image Container */
.product-image-container {
    position: relative;
        width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
        justify-content: center;
    overflow: hidden;
}

.product-card .product-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    transition: transform var(--transition-slow);
}

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

    .product-placeholder {
        width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--text-muted));
    display: flex;
    align-items: center;
        justify-content: center;
    color: var(--white);
    font-size: 3rem;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Product Info */
.product-card .card-body {
        padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-description {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary-color);
}

.product-vat {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Product Card Actions */
.product-actions {
    margin-top: auto;
    padding-top: 1rem;
}

/* Mobile Product Card Layout */
@media (max-width: 767px) {
    .product-card {
        flex-direction: row;
        padding: 0.875rem;
        border-radius: var(--radius-lg);
        height: auto;
    }
    
    .product-image-container,
    .product-card .product-image-wrapper {
        flex: 0 0 120px;
        width: 120px;
        height: 120px;
        border-radius: var(--radius-md);
        overflow: hidden;
    }
    
    .product-card .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .product-card .card-body {
        padding: 0 0 0 1rem;
        flex: 1;
        min-width: 0;
    }
    
    .product-title {
        font-size: 0.9375rem;
        margin-bottom: 0.25rem;
    }
    
    .product-description {
        display: none;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    .product-vat {
        font-size: 0.75rem;
    }
    
    .product-badge {
        top: 8px;
        right: 8px;
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .product-actions {
        padding-top: 0.75rem;
    }
    
    .product-actions .btn {
        width: 100%;
    }
}

/* ============================================
   9. LIST ITEMS - UNIFIED MOBILE CARDS
   ============================================ */

/* Mobile Card List Container */
.mobile-card-list {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Universal Mobile Item Card */
.mobile-item-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.mobile-item-card:active {
    transform: scale(0.98);
    box-shadow: var(--shadow-xs);
}

/* Mobile Card Image */
.mobile-card-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mobile-card-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
}

.mobile-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-light);
    font-size: 3rem;
}

.mobile-card-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Mobile Card Content */
.mobile-card-content {
    padding: 1rem;
}

.mobile-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.375rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mobile-card-description {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Mobile Card Categories */
.mobile-card-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.mobile-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: var(--primary-50);
    color: var(--primary-color);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
    border: 1px solid var(--primary-100);
}

/* Mobile Card Footer */
.mobile-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.mobile-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-card-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-card-actions .btn {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    min-width: auto;
}

/* ============================================
   10. USER CARDS (MOBILE)
   ============================================ */
.mobile-user-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1rem;
    transition: all var(--transition-normal);
}

.mobile-user-card.border-warning {
    border-left: 4px solid var(--warning-color);
}

.mobile-user-header {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    margin-bottom: 1rem;
}

.mobile-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
}

.mobile-user-info {
    flex: 1;
    min-width: 0;
}

.mobile-user-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.125rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-user-company {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.mobile-user-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.mobile-user-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
}

.mobile-user-detail-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--text-dark);
}

.mobile-user-detail-item i {
    width: 18px;
    color: var(--primary-color);
    font-size: 0.875rem;
}

.mobile-user-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.mobile-user-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-user-actions .btn {
    flex: 1;
    font-size: 0.8125rem;
}

/* ============================================
   11. ORDER CARDS (MOBILE)
   ============================================ */
.mobile-order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-left: 4px solid var(--border-color);
    transition: all var(--transition-normal);
}

.mobile-order-card.status-pending {
    border-left-color: var(--warning-color);
}

.mobile-order-card.status-approved {
    border-left-color: var(--info-color);
}

.mobile-order-card.status-completed {
    border-left-color: var(--success-color);
}

.mobile-order-card.status-cancelled {
    border-left-color: var(--danger-color);
}

.mobile-order-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.875rem;
}

.mobile-order-number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-order-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.125rem;
}

.mobile-order-status {
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-full);
    font-size: 0.6875rem;
    font-weight: 600;
}

.mobile-order-customer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    margin-bottom: 0.875rem;
}

.mobile-order-customer-avatar {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.8125rem;
    flex-shrink: 0;
}

.mobile-order-customer-info {
    flex: 1;
    min-width: 0;
}

.mobile-order-customer-name {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-order-customer-company {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.mobile-order-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.875rem;
}

.mobile-order-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
}

.mobile-order-detail-label {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.mobile-order-detail-value {
    font-weight: 600;
    color: var(--text-dark);
}

.mobile-order-total {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-order-actions {
    display: flex;
    gap: 0.5rem;
}

.mobile-order-actions .btn {
    flex: 1;
    font-size: 0.8125rem;
}

/* ============================================
   12. CATEGORY SIDEBAR
   ============================================ */
.category-sidebar {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    position: sticky;
    top: 1.5rem;
}

.category-list {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    font-weight: 500;
    font-size: 0.9375rem;
}

.category-item:hover {
    background-color: var(--primary-50);
    color: var(--primary-color);
    text-decoration: none;
}

.category-item.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border-color: var(--primary-color);
}

.category-item .badge {
    margin-left: auto;
}

@media (max-width: 991px) {
    .category-sidebar {
        position: static;
        margin-bottom: 1.5rem;
        padding: 1rem;
    }
    
    .category-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .category-item {
        flex: 0 0 auto;
        padding: 0.5rem 1rem;
        border-radius: var(--radius-full);
        font-size: 0.875rem;
    }
}

/* ============================================
   13. FORMS
   ============================================ */
.modern-form {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
textarea,
select {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    transition: all var(--transition-fast);
    font-size: 1rem;
    background-color: var(--white);
    width: 100%;
}

.form-control:focus,
.form-select:focus,
input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    display: block;
}

/* Prevent iOS zoom on input focus */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    input[type="password"],
    input[type="search"],
    textarea,
    select,
    .form-control,
    .form-select {
        font-size: 16px !important;
    }
}

/* ============================================
   14. QUANTITY INPUT
   ============================================ */
.quantity-input {
    display: inline-flex;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-input button {
    background: var(--light-gray);
    border: none;
    padding: 0.5rem 0.75rem;
    color: var(--secondary-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
}

.quantity-input button:hover {
    background: var(--primary-color);
    color: var(--white);
}

.quantity-input input,
.quantity-input input[type="number"],
.cart-update-form input[type="number"] {
    border: none;
    text-align: center;
    width: 50px;
    padding: 0.5rem;
    font-weight: 600;
    background: transparent;
    /* Number input okları (spinner) tamamen gizle */
    -moz-appearance: textfield !important;
    -webkit-appearance: textfield !important;
    appearance: textfield !important;
}

/* Chrome, Safari, Edge için spinner tamamen gizle */
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button,
.quantity-input input[type="number"]::-webkit-outer-spin-button,
.quantity-input input[type="number"]::-webkit-inner-spin-button,
.cart-update-form input[type="number"]::-webkit-outer-spin-button,
.cart-update-form input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
}

.quantity-input input:focus {
    outline: none;
    box-shadow: none;
}

@media (max-width: 576px) {
    .quantity-input {
        width: 100%;
    }
    
    .quantity-input input {
        flex: 1;
    }
}

/* ============================================
   15. SEARCH BAR
   ============================================ */
.modern-search {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
}

.modern-search .form-control {
    border: none;
    box-shadow: none;
    padding: 0.625rem 1rem;
    background: transparent;
}

.modern-search .form-control:focus {
    border: none;
    box-shadow: none;
}

.modern-search .search-btn {
    border-radius: var(--radius-md);
    padding: 0.5rem 1rem;
}

/* ============================================
   16. CART & BADGES - PROFESSIONAL HEADER CART
   ============================================ */

/* Header Cart Link */
.header-cart-link {
    display: inline-flex !important;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 1rem !important;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.header-cart-link:hover {
    background: var(--primary-50) !important;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

/* Header Cart Container */
.header-cart-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.header-cart-container i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Header Cart Badge - Professional Style */
.header-cart-badge {
    position: absolute;
    top: -8px;
    right: -10px;
    min-width: 20px;
    height: 20px;
    background: #ef4444 !important;
    color: white !important;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    z-index: 10;
    animation: badge-pulse 2s infinite;
}

@keyframes badge-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Header Cart Total */
.header-cart-total {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-dark);
}

.header-cart-link:hover .header-cart-total {
    color: var(--primary-color);
}

/* Old cart badge - for compatibility */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    z-index: 10;
}

/* Floating Action Button (Mobile Cart) */
.fab-cart {
    position: fixed;
    bottom: var(--fab-bottom, 2rem);
    right: var(--fab-right, 1.5rem);
    width: var(--fab-size, 60px);
    height: var(--fab-size, 60px);
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    text-decoration: none;
    font-size: var(--fab-icon-size, 1.5rem);
    z-index: 1050;
    transition: all 0.3s ease;
}

.fab-cart:hover {
    transform: scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.fab-cart:active {
    transform: scale(0.95);
}

/* Floating cart badge */
.fab-cart-badge {
    position: absolute;
    top: var(--fab-badge-top, -4px);
    right: var(--fab-badge-right, -4px);
    min-width: var(--fab-badge-size, 24px);
    height: var(--fab-badge-size, 24px);
    background: #ef4444;
    color: #ffffff;
    border-radius: 12px;
    font-size: var(--fab-badge-font-size, 0.75rem);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Masaüstünde gizle */
@media (min-width: 992px) {
    .fab-cart {
        display: none !important;
    }
}

/* ============================================
   17. ALERTS & NOTIFICATIONS
   ============================================ */
.modern-alert {
    border-radius: var(--radius-lg);
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modern-alert-success {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.modern-alert-danger {
    background: linear-gradient(135deg, #fef2f2, #fecaca);
    color: var(--danger-color);
    border-left: 4px solid var(--danger-color);
}

.modern-alert-warning {
    background: linear-gradient(135deg, #fffbeb, #fed7aa);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.modern-alert-info {
    background: linear-gradient(135deg, #ecfeff, #cffafe);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--white);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 400px;
    transform: translateX(420px);
    transition: transform var(--transition-slow);
    border-left: 4px solid;
}

.toast-notification.show {
    transform: translateX(0);
}

.toast-success {
    border-left-color: var(--success-color);
}

.toast-success i {
    color: var(--success-color);
}

.toast-error {
    border-left-color: var(--danger-color);
}

.toast-error i {
    color: var(--danger-color);
}

.toast-info {
    border-left-color: var(--primary-color);
}

.toast-info i {
    color: var(--primary-color);
}

.toast-warning {
    border-left-color: var(--warning-color);
}

.toast-warning i {
    color: var(--warning-color);
}

.toast-notification .btn-close {
    opacity: 0.5;
}

.toast-notification .btn-close:hover {
    opacity: 1;
}

@media (max-width: 576px) {
    .toast-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }
    
    .toast-notification.show {
        transform: translateY(0);
    }
}

/* ============================================
   18. TABLES
   ============================================ */
.table-wrapper,
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    width: 100%;
    margin-bottom: 0;
}

.table th {
    font-weight: 600;
    color: var(--text-dark);
    background-color: var(--light-gray);
    border-bottom: 2px solid var(--border-color);
    padding: 0.875rem 1rem;
    white-space: nowrap;
}

.table td {
    padding: 0.875rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border-color);
}

.table-hover tbody tr:hover {
    background-color: var(--primary-50);
}

/* Admin Table Styles */
.admin-card .table {
    margin-bottom: 0;
}

.admin-card .table thead th {
    background: #f8fafc;
    color: #374151;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    padding: 1rem;
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

.admin-card .table tbody td {
    padding: 1rem;
    vertical-align: middle;
    color: #1f2937;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
}

.admin-card .table tbody tr:last-child td {
    border-bottom: none;
}

.admin-card .table .fw-bold {
    color: #111827;
}

.admin-card .table .text-muted {
    color: #6b7280 !important;
        font-size: 0.8125rem;
    }
    
.admin-card .table .text-primary {
    color: #2563eb !important;
}

/* Status Select in Table */
.status-select {
    min-width: 130px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    color: #374151;
    background-color: #fff;
}

.status-select:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

@media (max-width: 991px) {
    .table {
        min-width: 700px;
        font-size: 0.875rem;
    }
    
    .table th,
    .table td {
        padding: 0.625rem 0.75rem;
    }
}

/* ============================================
   19. EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.4;
    color: var(--secondary-light);
}

.empty-state h4,
.empty-state h5 {
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.empty-state p {
    margin-bottom: 1.5rem;
}

/* ============================================
   20. CART PAGE STYLES
   ============================================ */
.cart-item {
    transition: background-color var(--transition-fast);
}

.cart-item:hover {
    background-color: var(--light-gray);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.cart-item-placeholder {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cart-item {
        padding: 1rem !important;
    }
    
    .cart-item .row {
        flex-direction: column;
    }
    
    .cart-item-image,
    .cart-item-placeholder {
        width: 70px;
        height: 70px;
    }
}

/* ============================================
   21. CHECKOUT PAGE STYLES
   ============================================ */
.delivery-option {
    position: relative;
}

.delivery-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.delivery-option label {
    cursor: pointer;
    display: block;
}

.delivery-option .border {
    transition: all var(--transition-fast);
}

.delivery-option input:checked + label .border {
    border-color: var(--primary-color) !important;
    background-color: var(--primary-50);
}

.checkout-summary {
    position: sticky;
    top: 1.5rem;
}

.vat-breakdown {
    font-size: 0.875rem;
}

.summary-calculations {
    font-size: 0.9375rem;
}

@media (max-width: 991px) {
    .checkout-summary {
        position: static !important;
        margin-top: 1.5rem;
    }
    
    .delivery-options {
        display: flex;
        flex-direction: column;
        gap: 0.875rem;
    }
}

/* ============================================
   22. PROFILE PAGE STYLES
   ============================================ */
.order-item {
    transition: background-color var(--transition-fast);
}

.order-item:hover {
    background-color: var(--light-gray);
}

.order-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-50);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.order-details {
    background: var(--light-gray);
    border-radius: var(--radius-md);
}

@media (max-width: 768px) {
    .order-item .row {
        flex-direction: column;
    }
    
    .order-item .text-md-end {
        text-align: left !important;
        margin-top: 1rem;
    }
}

/* ============================================
   23. ADMIN PANEL STYLES
   ============================================ */
.admin-sidebar {
    background: var(--admin-sidebar-bg);
    min-height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    z-index: 1000;
    transition: transform var(--transition-slow);
}

.admin-content {
    margin-left: 260px;
    padding: 1.5rem;
    min-height: 100vh;
    transition: margin-left var(--transition-slow);
}

.btn-admin-primary {
    background: linear-gradient(135deg, var(--admin-primary), var(--admin-accent));
    color: var(--white);
    border: none;
}

.btn-admin-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

/* Admin Navigation Tabs - Filter Buttons */
.admin-card .nav-tabs,
.admin-card .nav.nav-tabs {
    border-bottom: 2px solid #e5e7eb !important;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f9fafb;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.admin-card .nav-tabs .nav-link,
.admin-card .nav.nav-tabs .nav-link,
nav.nav-tabs .nav-link {
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
    padding: 0.75rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease;
    border-radius: 8px !important;
    background: #ffffff !important;
    position: relative;
    white-space: nowrap;
    text-decoration: none !important;
}

.admin-card .nav-tabs .nav-link i,
nav.nav-tabs .nav-link i {
    color: #6b7280 !important;
    margin-right: 0.5rem;
}

.admin-card .nav-tabs .nav-link:hover,
nav.nav-tabs .nav-link:hover {
    background: #f3f4f6 !important;
    color: #2563eb !important;
    border-color: #2563eb !important;
}

.admin-card .nav-tabs .nav-link:hover i,
nav.nav-tabs .nav-link:hover i {
    color: #2563eb !important;
}

.admin-card .nav-tabs .nav-link.active,
nav.nav-tabs .nav-link.active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
}

.admin-card .nav-tabs .nav-link.active i,
nav.nav-tabs .nav-link.active i {
    color: #ffffff !important;
}

.admin-card .nav-tabs .nav-link .badge,
nav.nav-tabs .nav-link .badge {
    font-size: 0.6875rem;
    padding: 0.25rem 0.5rem;
    margin-left: 0.375rem;
}

/* Admin User Avatars */
.user-avatar-sm {
    width: 40px;
    height: 40px;
    background: var(--admin-accent);
    border-radius: var(--radius-full);
        display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
}

.user-avatar-lg {
    width: 60px;
    height: 60px;
    background: var(--admin-accent);
    border-radius: var(--radius-full);
        display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Product Thumbnails */
.product-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius-md);
}

.product-thumb-placeholder {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-gray);
    border-radius: var(--radius-md);
    color: var(--secondary-light);
}

/* Admin Mobile Responsive */
@media (max-width: 991px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.show {
        transform: translateX(0);
    }
    
    .admin-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .admin-mobile-toggle {
        display: block !important;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 1001;
        background: var(--admin-primary);
        color: var(--white);
        border: none;
        padding: 0.75rem;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
    }
}

/* ============================================
   24. CATEGORY CHECKBOX GROUP (Admin)
   ============================================ */
.category-checkbox-group {
    background: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
        padding: 1rem;
    max-height: 300px;
    overflow-y: auto;
}

.category-checkbox-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    cursor: pointer;
}

.category-checkbox-item:hover {
    border-color: var(--admin-accent);
    background: var(--primary-50);
    transform: translateX(4px);
}

.category-checkbox-item:last-child {
    margin-bottom: 0;
}

.category-checkbox-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: var(--admin-accent);
}

.category-checkbox-item label {
    margin: 0 0 0 0.75rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-dark);
    flex-grow: 1;
    user-select: none;
}

.category-checkbox-item:has(input:checked) {
    background: linear-gradient(135deg, var(--primary-50) 0%, #e0f2fe 100%);
    border-color: var(--admin-accent);
}

.category-checkbox-item:has(input:checked) label {
    color: var(--admin-accent);
    font-weight: 600;
}

/* ============================================
   25. STATUS BADGES
   ============================================ */
.badge {
    font-weight: 600;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

.status-select {
    min-width: 120px;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.status-select[data-status="pending"] {
    background-color: var(--warning-light);
    border-color: var(--warning-color);
}

.status-select[data-status="approved"] {
    background-color: var(--info-light);
    border-color: var(--info-color);
}

.status-select[data-status="completed"] {
    background-color: var(--success-light);
    border-color: var(--success-color);
}

.status-select[data-status="cancelled"] {
    background-color: var(--danger-light);
    border-color: var(--danger-color);
}

/* ============================================
   26. LOADING & ANIMATIONS
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: var(--radius-full);
    animation: spinner-border 0.75s linear infinite;
}

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

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   27. MODAL STYLES
   ============================================ */
.modal-content {
    border-radius: var(--radius-xl);
    border: none;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
    }
    
    .modal-header,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-body {
        padding: 1rem;
    }
}

/* ============================================
   28. DROPDOWN STYLES
   ============================================ */
.dropdown-menu {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    position: absolute;
    z-index: 1050;
    overflow-y: auto;
    max-height: 400px;
}

.dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.625rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--primary-50);
    color: var(--primary-color);
}

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

/* ============================================
   29. HERO SECTION (Landing Page)
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 5rem 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 xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: none;
    height: 100%;
    transition: all var(--transition-slow);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--white);
    font-size: 1.75rem;
}

.stats-section {
    background: var(--light-color);
    padding: 3rem 0;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

/* ============================================
   30. RESPONSIVE BREAKPOINTS
   ============================================ */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .d-lg-none {
        display: none !important;
    }
    
    .d-lg-block {
        display: block !important;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .container {
        max-width: 95%;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
}

/* Small devices (landscape phones, 576px to 767px) */
@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    h1 { font-size: 1.5rem !important; }
    h2 { font-size: 1.375rem !important; }
    h3 { font-size: 1.25rem !important; }
    h4 { font-size: 1.125rem !important; }
    h5 { font-size: 1rem !important; }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .mb-4 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    /* Hero Section Mobile */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem !important;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .feature-icon {
        width: 56px;
        height: 56px;
        font-size: 1.375rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    h1 { font-size: 1.375rem !important; }
    h2 { font-size: 1.25rem !important; }
    h3 { font-size: 1.125rem !important; }
    h4 { font-size: 1rem !important; }
    h5 { font-size: 0.9375rem !important; }
    h6 { font-size: 0.875rem !important; }
    
    .modern-card,
.admin-card {
        border-radius: var(--radius-lg);
    }
    
    .modern-card-header,
    .card-header-modern,
.admin-card-header {
        padding: 0.875rem 1rem;
    }
    
    .card-body {
        padding: 0.875rem;
    }
    
    /* Mobile Card Adjustments */
    .mobile-card-list {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .mobile-item-card {
        border-radius: var(--radius-md);
    }
    
    .mobile-card-image {
        height: 160px;
    }
    
    .mobile-card-content {
        padding: 0.875rem;
    }
    
    .mobile-card-title {
        font-size: 0.9375rem;
    }
    
    .mobile-card-price {
        font-size: 1.125rem;
    }
    
    /* User Cards */
    .mobile-user-avatar {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .mobile-user-name {
        font-size: 0.875rem;
    }
    
    /* Order Cards */
    .mobile-order-card {
        padding: 0.875rem;
    }
    
    .mobile-order-number {
        font-size: 0.8125rem;
    }
    
    .mobile-order-total {
        font-size: 1rem;
    }
    
    /* Hero Section Extra Small */
    .hero-section {
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.5rem !important;
    }
    
    .feature-card {
        padding: 1.25rem;
    }
    
    .feature-icon {
        width: 48px;
        height: 48px;
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
}

/* ============================================
   31. UTILITY CLASSES
   ============================================ */

/* Prevent horizontal scroll */
body, html {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Touch targets */
@media (max-width: 768px) {
    .btn,
    .form-control,
    .form-select,
    .category-item,
    .mobile-category-badge {
        min-height: 44px;
    }
}

/* Text overflow */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.text-truncate-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Scroll to Top Button */
#scrollTopBtn {
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* Fix for iOS input zoom */
@supports (-webkit-touch-callout: none) {
    select,
    textarea,
    input {
        font-size: 16px !important;
    }
}

/* Print Styles */
@media print {
    .modern-navbar,
    .fab-cart,
    #scrollTopBtn,
    .btn,
    .admin-sidebar {
        display: none !important;
    }
    
    .admin-content {
        margin-left: 0 !important;
    }
    
    body {
        background: white;
    }
}

/* ============================================
   32. STAT CARDS - Admin Dashboard
   ============================================ */

    .stat-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.stat-card.active {
    border-width: 2px;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

/* Stat Card Colors */
.stat-card-warning {
    border-left: 4px solid #f59e0b;
}

.stat-card-warning .stat-card-value {
    color: #d97706;
}

.stat-card-warning.active {
    border-color: #f59e0b;
    background: #fffbeb;
}

.stat-card-info {
    border-left: 4px solid #3b82f6;
}

.stat-card-info .stat-card-value {
    color: #2563eb;
}

.stat-card-info.active {
    border-color: #3b82f6;
    background: #eff6ff;
}

.stat-card-success {
    border-left: 4px solid #10b981;
}

.stat-card-success .stat-card-value {
    color: #059669;
}

.stat-card-success.active {
    border-color: #10b981;
    background: #ecfdf5;
}

.stat-card-danger {
    border-left: 4px solid #ef4444;
}

.stat-card-danger .stat-card-value {
    color: #dc2626;
}

.stat-card-danger.active {
    border-color: #ef4444;
    background: #fef2f2;
}

/* Responsive Stat Cards */
@media (max-width: 575px) {
    .stat-card {
        padding: 1rem;
    }
    
    .stat-card-value {
        font-size: 1.5rem;
    }
    
    .stat-card-label {
        font-size: 0.75rem;
    }
}



/* ============================================
   33. MOBILE UX ENHANCEMENTS - CRITICAL
   ============================================ */

/* Mobile Touch Targets - Apple HIG & Material Design Standards */
@media (max-width: 768px) {
    /* Minimum 44x44px touch targets for all interactive elements */
    .btn,
    .dropdown-item,
    .category-item,
    .quantity-input button,
    .add-to-cart-btn,
    .remove-item-btn,
    .modern-search .search-btn {
        min-height: 44px !important;
        min-width: 44px !important;
        padding: 0.625rem 1rem !important;
    }
    
    /* Floating Cart Button - Enhanced for Mobile */
    .fab-cart {
        --fab-size: 64px;
        --fab-bottom: 1.5rem;
        --fab-right: 1.5rem;
        --fab-icon-size: 1.5rem;
        box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5) !important;
        z-index: 1050 !important;
    }
    
    .fab-cart:active {
        transform: scale(0.92) !important;
    }
    
    .fab-cart-badge {
        --fab-badge-size: 26px;
        --fab-badge-font-size: 0.8125rem;
        --fab-badge-top: -6px;
        --fab-badge-right: -6px;
        font-weight: 700 !important;
        border: 3px solid #ffffff !important;
    }
    
    /* Product Price - Larger for Mobile Readability */
    .product-price,
    .mobile-card-price {
        font-size: 1.5rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        line-height: 1.2 !important;
    }
    
    .product-vat,
    .mobile-card-description {
        font-size: 0.875rem !important;
    }
    
    /* Cart Item Prices - Enhanced Visibility */
    .cart-item .fw-bold.text-primary,
    [data-item-total] {
        font-size: 1.375rem !important;
        font-weight: 700 !important;
    }
    
    /* Quantity Controls - Larger Touch Targets */
    .quantity-input {
        min-height: 44px !important;
    }
    
    .quantity-input button {
        min-width: 44px !important;
        min-height: 44px !important;
        font-size: 1.125rem !important;
    }
    
    .quantity-input input {
        min-width: 60px !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
    }
    
    /* Form Inputs - Prevent iOS Zoom */
    .form-control,
    .form-select {
        font-size: 16px !important;
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
    }

    .modern-search .search-btn {
        min-width: 44px !important;
        min-height: 44px !important;
    }
    
    /* Navigation Links - Larger Touch Targets */
    .modern-navbar .nav-link {
        min-height: 48px !important;
        padding: 0.75rem 1.25rem !important;
        font-size: 1rem !important;
    }
    
    /* Category Items - Mobile Friendly */
    .category-item {
        min-height: 48px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Mobile Card Actions */
    .mobile-card-actions .btn,
    .mobile-user-actions .btn,
    .mobile-order-actions .btn {
        min-height: 44px !important;
        font-size: 0.9375rem !important;
        padding: 0.625rem 1rem !important;
    }
    
    /* Add to Cart Button - Prominent */
    .add-to-cart-btn {
        min-height: 48px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        padding: 0.75rem 1.25rem !important;
    }
    
    /* Remove Item Button */
    .remove-item-btn {
        min-height: 44px !important;
        font-size: 0.9375rem !important;
    }
    
    /* Badges - Readable Size */
    .badge,
    .mobile-category-badge,
    .mobile-user-status,
    .mobile-order-status {
        font-size: 0.8125rem !important;
        padding: 0.375rem 0.75rem !important;
        min-height: 28px !important;
        display: inline-flex !important;
        align-items: center !important;
    }
    
    /* Toast Notifications - Mobile Optimized */
    .toast-notification {
        left: 1rem !important;
        right: 1rem !important;
        top: 1rem !important;
        min-width: auto !important;
        max-width: none !important;
        font-size: 0.9375rem !important;
    }
    
    /* Modal - Full Screen on Small Devices */
    .modal-dialog {
        margin: 0.5rem !important;
        max-width: calc(100% - 1rem) !important;
    }
    
    /* Dropdown - Mobile Friendly */
    .dropdown-menu {
        font-size: 1rem !important;
    }
    
    .dropdown-item {
        min-height: 44px !important;
        padding: 0.75rem 1rem !important;
        font-size: 1rem !important;
    }
}

/* Extra Small Devices - Enhanced Mobile Experience */
@media (max-width: 575px) {
    /* Floating Cart - Optimized Position */
    .fab-cart {
        --fab-size: 60px;
        --fab-bottom: 1.25rem;
        --fab-right: 1.25rem;
        --fab-icon-size: 1.375rem;
    }
    
    .fab-cart-badge {
        --fab-badge-size: 24px;
        --fab-badge-font-size: 0.75rem;
        --fab-badge-top: -4px;
        --fab-badge-right: -4px;
    }
    
    /* Product Price - Maximum Readability */
    .product-price,
    .mobile-card-price {
        font-size: 1.375rem !important;
    }
    
    /* Buttons - Comfortable Touch */
    .btn {
        min-height: 44px !important;
        font-size: 0.9375rem !important;
    }
    
    .btn-lg {
        min-height: 52px !important;
        font-size: 1.0625rem !important;
    }
    
    /* Quantity Input - Larger */
    .quantity-input button {
        min-width: 40px !important;
        min-height: 40px !important;
    }
    
    .quantity-input input {
        min-width: 56px !important;
        font-size: 1rem !important;
    }
}

/* Landscape Mode - Optimize for Horizontal Viewing */
@media (max-width: 896px) and (orientation: landscape) {
    .fab-cart {
        --fab-size: 52px;
        --fab-bottom: 1rem;
        --fab-right: 1rem;
    }
    
    .hero-section {
        padding: 2rem 0 !important;
    }
    
    .mobile-card-image {
        height: 140px !important;
    }
}

/* High DPI Displays - Retina Optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .product-image,
    .cart-item-image,
    .mobile-card-image img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark Mode Support - Future Enhancement */
@media (prefers-color-scheme: dark) {
    /* Placeholder for dark mode styles */
    /* Can be implemented in future updates */
}

/* Reduced Motion - Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High Contrast Mode - Accessibility */
@media (prefers-contrast: high) {
    .btn,
    .modern-card,
    .product-card {
        border-width: 2px !important;
    }
    
    .product-price,
    .mobile-card-price {
        font-weight: 800 !important;
    }
}

/* ============================================
   34. MOBILE PERFORMANCE OPTIMIZATIONS
   ============================================ */

/* Smooth Scrolling for Mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent overscroll bounce on iOS */
    body {
        overscroll-behavior-y: none;
    }
    
    /* Hardware Acceleration for Animations */
    .fab-cart,
    .toast-notification,
    .product-card,
    .mobile-item-card {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* Optimize Image Loading */
    img {
        content-visibility: auto;
    }
    
    /* Reduce Paint Areas */
    .modern-card,
    .product-card,
    .mobile-item-card {
        contain: layout style paint;
    }
}

/* ============================================
   35. MOBILE ACCESSIBILITY ENHANCEMENTS
   ============================================ */

/* Focus Visible - Keyboard Navigation */
@media (max-width: 768px) {
    *:focus-visible {
        outline: 3px solid var(--primary-color) !important;
        outline-offset: 2px !important;
    }
    
    /* Skip to Content Link */
    .skip-to-content {
        position: absolute;
        top: -40px;
        left: 0;
        background: var(--primary-color);
        color: white;
        padding: 0.75rem 1.5rem;
        text-decoration: none;
        z-index: 9999;
        border-radius: 0 0 var(--radius-md) 0;
    }
    
    .skip-to-content:focus {
        top: 0;
    }
    
    /* Screen Reader Only */
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border-width: 0;
    }
}

/* ============================================
   36. MOBILE SAFE AREAS - iOS Notch Support
   ============================================ */

@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
        
        .modern-navbar {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
        
        .fab-cart {
            --fab-right: max(1.5rem, env(safe-area-inset-right));
            --fab-bottom: max(1.5rem, env(safe-area-inset-bottom));
        }
        
        .toast-notification {
            left: max(1rem, env(safe-area-inset-left)) !important;
            right: max(1rem, env(safe-area-inset-right)) !important;
            top: max(1rem, env(safe-area-inset-top)) !important;
        }
    }
}

/* ============================================
   37. MOBILE COLOR CONTRAST - WCAG AA Compliance
   ============================================ */

@media (max-width: 768px) {
    /* Ensure minimum 4.5:1 contrast ratio for text */
    .product-price,
    .mobile-card-price,
    .cart-item .fw-bold {
        color: #1d4ed8 !important; /* Darker blue for better contrast */
    }
    
    .text-muted {
        color: #475569 !important; /* Darker gray for better readability */
    }
    
    /* Button Contrast */
    .btn-modern-primary,
    .btn-modern {
        background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
    }
    
    /* Badge Contrast */
    .badge {
        font-weight: 700 !important;
    }
}

/* END OF MOBILE UX ENHANCEMENTS */
