/* Modern ve Şık E-Ticaret Tasarımı - Premium Versiyon */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #000000;
    --primary-light: #1a1a1a;
    --accent: #dc2626;
    --accent-hover: #b91c1c;
    --success: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
}

/* Top Bar */
.top-bar {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-light);
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.top-bar-link {
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

.top-bar-link:hover {
    color: var(--accent);
}

/* Header */
.header {
    background: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bg-white);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.search-bar {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    flex: 1;
    padding: 0.875rem 1rem 0.875rem 3rem;
    border: 2px solid transparent;
    border-radius: 8px 0 0 8px;
    background: var(--bg-white);
    font-size: 0.95rem;
    transition: all 0.3s;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.search-bar button {
    background: var(--accent);
    color: white;
    border: none;
    padding: 0.875rem 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.search-bar button:hover {
    background: var(--accent-hover);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-icon {
    color: var(--bg-white);
    font-size: 1.5rem;
    text-decoration: none;
    position: relative;
    transition: transform 0.3s;
}

.header-icon:hover {
    transform: scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--bg-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.nav-menu::-webkit-scrollbar {
    height: 4px;
}

.nav-menu::-webkit-scrollbar-track {
    background: var(--primary-light);
}

.nav-menu::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 2px;
}

.nav-menu a {
    color: var(--bg-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.nav-menu a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--text-dark);
    color: var(--bg-white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--bg-white);
}

.btn-sm {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 500px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--shadow-xl);
}

.hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.3) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--bg-white);
    padding: 3rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Categories */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.category-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.category-name {
    padding: 1.25rem;
    font-weight: 600;
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-dark);
}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--bg-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary);
    color: var(--bg-white);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 10;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    background: var(--bg-light);
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-placeholder svg {
    width: 100%;
    height: 100%;
}

.product-card:hover .product-image {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-category {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1rem;
}

.product-actions {
    display: flex;
    gap: 0.75rem;
}

.product-actions .btn {
    flex: 1;
}

/* Forms */
.form-container {
    max-width: 500px;
    margin: 3rem auto;
}

.form-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.form-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 2rem;
    text-align: center;
    color: var(--bg-white);
}

.form-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.form-body {
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

select.form-control {
    cursor: pointer;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border-color: #dc2626;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

/* Cart */
.cart-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.cart-table thead {
    background: var(--bg-light);
}

.cart-table th {
    padding: 1.25rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cart-table td {
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cart-product img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    background: var(--bg-light);
    flex-shrink: 0;
}

.cart-product-info {
    flex: 1;
}

.cart-product-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.cart-product-category {
    font-size: 0.875rem;
    color: var(--text-light);
}

.quantity-input {
    width: 80px;
    padding: 0.625rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.cart-total {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--accent);
}

/* Admin Panel */
.admin-layout {
    display: flex;
    min-height: calc(100vh - 200px);
}

.admin-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: -1rem;
    padding: 1rem;
}

.admin-filter-form {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.category-sales-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.order-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.admin-sidebar {
    width: 280px;
    background: var(--primary);
    min-height: 100%;
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 500;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: var(--primary-light);
    color: var(--bg-white);
    border-left: 4px solid var(--accent);
}

.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg-light);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.admin-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-left: 4px solid var(--accent);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
}

/* Product Detail */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.product-detail-image {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-detail-image img {
    width: 100%;
    height: auto;
    display: block;
    background: var(--bg-light);
}

.product-detail-info h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.product-detail-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.product-detail-description {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-light);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Footer */
.footer {
    background: var(--primary);
    color: var(--bg-white);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--bg-white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Responsive */
@media (max-width: 1024px) {
    .header-top {
        flex-direction: column;
        gap: 1rem;
    }
    
    .search-bar {
        max-width: 100%;
        margin: 0;
    }
    
    .product-detail {
        grid-template-columns: 1fr;
    }
    
    .admin-layout {
        flex-direction: column;
    }
    
    .admin-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    /* Top Bar - Mobilde gizle */
    .top-bar {
        display: none;
    }
    
    /* Header */
    .header-container {
        padding: 1rem;
    }
    
    .header-top {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
        order: 1;
    }
    
    .search-bar {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
        margin-top: 1rem;
    }
    
    .search-bar input {
        font-size: 0.875rem;
        padding: 0.75rem 1rem 0.75rem 2.75rem;
    }
    
    .search-bar button {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .header-actions {
        order: 2;
        gap: 0.75rem;
    }
    
    .header-icon {
        font-size: 1.25rem;
        width: 36px;
        height: 36px;
    }
    
    /* Navigation */
    nav {
        margin-top: 1rem;
    }
    
    .nav-menu {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.5rem;
        gap: 1rem;
    }
    
    .nav-menu li {
        flex-shrink: 0;
    }
    
    /* Container */
    .container {
        padding: 1rem;
    }
    
    /* Hero Banner */
    .hero-banner {
        height: 300px;
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }
    
    .product-card {
        border-radius: 8px;
    }
    
    .product-image-wrapper {
        height: 200px;
    }
    
    .product-info {
        padding: 1rem;
    }
    
    .product-name {
        font-size: 0.875rem;
        -webkit-line-clamp: 2;
    }
    
    .product-price {
        font-size: 1.125rem;
    }
    
    .product-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .product-actions .btn {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    
    /* Product Detail */
    .product-detail {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }
    
    .product-detail-image {
        min-height: 300px;
    }
    
    .product-detail-info h1 {
        font-size: 1.75rem;
    }
    
    .product-detail-price {
        font-size: 2rem;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .category-image {
        height: 120px;
    }
    
    /* Forms */
    .form-container {
        margin: 2rem auto;
        padding: 0 1rem;
    }
    
    .form-card {
        border-radius: 12px;
    }
    
    .form-header {
        padding: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-body {
        padding: 1.5rem;
    }
    
    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }
    
    .btn-lg {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
    
    /* Cart Table */
    .cart-table {
        font-size: 0.875rem;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .cart-table thead {
        display: none;
    }
    
    .cart-table tbody {
        display: block;
    }
    
    .cart-table tr {
        display: block;
        border: 1px solid var(--border);
        border-radius: 8px;
        margin-bottom: 1rem;
        padding: 1rem;
        background: var(--bg-white);
    }
    
    .cart-table td {
        display: block;
        padding: 0.5rem 0;
        border: none;
        text-align: left;
    }
    
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        display: inline-block;
        width: 80px;
        color: var(--text-light);
        font-size: 0.8rem;
    }
    
    .cart-product {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .cart-product img {
        width: 80px;
        height: 80px;
    }
    
    .cart-summary {
        margin-top: 2rem;
    }
    
    /* Checkout */
    .checkout-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Profile */
    .profile-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section h3 {
        margin-bottom: 1rem;
    }
    
    /* Admin Panel */
    .admin-layout {
        flex-direction: column;
        min-height: auto;
    }
    
    .admin-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 0;
        box-shadow: none;
    }
    
    .admin-sidebar ul {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    
    .admin-sidebar li {
        flex-shrink: 0;
    }
    
    .admin-sidebar a {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
    }
    
    .admin-sidebar a.active {
        border-left: none;
        border-bottom-color: var(--accent);
    }
    
    .admin-content {
        width: 100%;
        padding: 1rem;
    }
    
    .admin-header {
        margin-bottom: 1.5rem;
    }
    
    .admin-header h1 {
        font-size: 1.75rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    /* Admin Tables */
    .admin-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
        font-size: 0.875rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Admin Forms */
    .form-card {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="number"],
    .form-group select,
    .form-group textarea {
        font-size: 0.875rem;
        padding: 0.75rem;
    }
    
    /* Products Grid in Admin */
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .product-card .product-actions {
        flex-direction: column;
    }
    
    .product-card .product-actions .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.625rem;
    }
    
    /* Admin Filter Form */
    .admin-filter-form {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .admin-filter-form .form-group {
        margin-bottom: 0;
    }
    
    /* Admin Dashboard Grid */
    .admin-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 2rem;
    }
    
    /* Admin Header Buttons */
    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .admin-header > div {
        width: 100%;
    }
    
    .admin-header .btn {
        width: 100%;
    }
    
    /* Toast */
    .toast-container {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
        padding: 1rem;
    }
    
    /* Section Title */
    .section-title {
        font-size: 1.5rem;
    }
    
    /* Flex Between */
    .flex-between {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    /* Empty State */
    .empty-state {
        padding: 2rem 1rem;
    }
    
    .empty-state-icon {
        font-size: 4rem;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .product-image-wrapper {
        height: 150px;
    }
    
    .product-info {
        padding: 0.75rem;
    }
    
    .product-name {
        font-size: 0.8rem;
    }
    
    .product-price {
        font-size: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .logo {
        font-size: 1.25rem;
    }
    
    .search-bar input {
        padding: 0.75rem 0.875rem 0.75rem 2.5rem;
        font-size: 0.8rem;
    }
    
    .search-bar button {
        padding: 0.75rem 0.875rem;
        font-size: 0.8rem;
    }
    
    .cart-table td:before {
        width: 70px;
        font-size: 0.75rem;
    }
    
    /* Admin Panel - Small Mobile */
    .admin-sidebar a {
        padding: 0.625rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .admin-header h1 {
        font-size: 1.5rem;
    }
    
    .stat-card {
        padding: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    table {
        min-width: 500px;
        font-size: 0.8rem;
    }
    
    table th,
    table td {
        padding: 0.625rem 0.375rem;
        font-size: 0.8rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .form-card {
        margin-bottom: 1rem;
    }
    
    .form-header {
        padding: 1rem;
    }
    
    .form-header h2 {
        font-size: 1.25rem;
    }
    
    .form-body {
        padding: 1rem;
    }
    
    /* Admin Dashboard Grid - Mobile */
    .admin-dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Category Sales Grid - Mobile */
    .category-sales-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
    }
    
    /* Admin Filter Form - Mobile */
    .admin-filter-form {
        gap: 0.75rem;
    }
    
    .admin-filter-form .form-group {
        margin-bottom: 0;
    }
    
    .admin-filter-form .form-group:last-child {
        display: flex;
        gap: 0.5rem;
    }
    
    /* Top Products List - Mobile */
    .top-products-list > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }
    
    .top-products-list > div > div:last-child {
        text-align: left !important;
        width: 100%;
    }
    
    /* Order Detail Grid */
    .order-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    /* Settings Grid */
    .settings-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    /* Status Update Form */
    .status-update-form {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .status-update-form select {
        width: 100%;
    }
    
    .status-update-form button {
        width: 100%;
    }
}

/* Filters Section */
.filters-section {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filters-form {
    width: 100%;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-range-inputs input {
    flex: 1;
    min-width: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.75rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: all 0.3s;
    user-select: none;
}

.checkbox-label:hover {
    background: var(--border);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.checkbox-label span {
    color: var(--text-dark);
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .price-range-inputs {
        flex-wrap: wrap;
    }
    
    .price-range-inputs input {
        flex: 1;
        min-width: 100px;
    }
    
    .filter-group:last-child {
        flex-direction: row;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Utilities */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left-color: var(--accent);
}

.toast.success {
    border-left-color: var(--success);
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.95rem;
}

.toast-message {
    color: var(--text-light);
    font-size: 0.875rem;
}

.toast-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.toast-close:hover {
    background: var(--bg-light);
    color: var(--text-dark);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

@media (max-width: 768px) {
    .toast-container {
        right: 10px;
        left: 10px;
        top: 80px;
    }
    
    .toast {
        min-width: auto;
        max-width: 100%;
    }
}

