* {
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
}

/* Global overflow reset - only body scrolls */
html {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Force visible overflow on all containers except specific scrollable elements */
main, section, div, article, aside, nav {
    overflow-y: visible;
}

/* Allow horizontal scroll only on specific elements */
.hide-scrollbar,
.table-responsive,
.products-table-responsive {
    overflow-y: visible;
}

/* Image optimization */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* Body gradient background */
body {
    background: linear-gradient(to bottom, #ffffff 0%, #f9fafb 50%, #f3f4f6 100%);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Hide scrollbar for horizontal categories */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth transitions */
.category-item {
    transition: all 0.3s ease;
}

.category-item.active {
    background-color: #1f2937 !important;
    color: white !important;
}

.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:active {
    transform: scale(0.98);
}

/* Logo preload */
.logo-container {
    position: relative;
}

.logo-container img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container img.loaded {
    opacity: 1;
}

/* Drinks Accordion Styles */
.drink-accordion-item {
    margin-bottom: 0.75rem;
}

/* Accordion content needs hidden overflow for the slide animation */
.accordion-content {
    max-height: 0;
    overflow: hidden !important;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.accordion-content.show {
    max-height: 2000px;
}

.accordion-content.hidden {
    max-height: 0;
    padding: 0;
}

.accordion-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

button:has(+ .accordion-content.show) .accordion-icon {
    transform: rotate(180deg);
}

/* Page Fade-in Animation */
#mobile-app {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    overflow-y: visible;
    position: relative;
    padding-bottom: 70px; /* Space for footer */
}

/* Prevent horizontal scroll */
header,
footer {
    width: 100%;
    max-width: 100vw;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Footer fixed at bottom */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background-color: white;
    border-top: 1px solid #e5e7eb;
    margin: 0;
    padding: 0;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
}

footer > div {
    margin: 0;
    padding: 14px 16px;
}

/* Ensure all containers don't overflow */
.container,
section,
div[class*="px-"] {
    max-width: 100%;
    box-sizing: border-box;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for category cards */
.category-card {
    opacity: 0;
    animation: fadeInUp 0.5s ease-out forwards;
}

/* Category Card Enhancements */
.category-card {
    min-height: 130px;
    position: relative;
    overflow: hidden !important;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid rgba(229, 231, 235, 0.8);
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.18), 0 10px 12px -8px rgba(0, 0, 0, 0.12);
    border-color: rgba(156, 163, 175, 0.6);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:active {
    transform: translateY(-3px) scale(0.98);
    box-shadow: 0 6px 14px -3px rgba(0, 0, 0, 0.14), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
}

/* Touch optimizations for mobile */
@media (hover: none) and (pointer: coarse) {
    .category-card:hover {
        transform: none;
        box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    }
    
    .category-card:active {
        transform: scale(0.97);
        box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    }
}

/* Page Head - Category Pages */
.page-head {
    padding: 20px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    background: #e2e8f0;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
    padding: 13px 18px;
    min-height: 50px;
    min-width: 95px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    align-self: flex-start;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

.back-btn:hover {
    background: #cbd5e1;
    border-color: #94a3b8;
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-btn:active {
    transform: scale(0.96);
    background: #b0bcc9;
}

.back-btn:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.page-title {
    font-size: 32px;
    font-weight: 800;
    color: #0F172A;
    margin: 0;
    line-height: 1.2;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

@media (min-width: 375px) {
    .page-title {
        font-size: 36px;
    }
}

/* Global Accessibility: Focus States */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast for menu items */
#menu-items a {
    color: #1f2937;
    font-weight: 500;
}

#menu-items a:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Enhanced category card accessibility */
.category-card:focus-within {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ==========================================
   ADMIN PANEL STYLES
   ========================================== */

/* Admin Layout */
.admin-layout {
    display: flex;
    background: #F8FAFC;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Sidebar */
.admin-sidebar {
    width: 280px;
    background: #0F172A;
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    overflow-y: auto !important;
    overflow-x: hidden;
    z-index: 50;
    transition: transform 0.3s ease;
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.sidebar-close {
    display: none;
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.sidebar-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
}

.sidebar-group {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #64748B;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    letter-spacing: 0.05em;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #CBD5E1;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.2s;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.sidebar-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.sidebar-item.active {
    background: #2563EB;
    color: white;
}

.sidebar-item svg {
    flex-shrink: 0;
}

/* Sidebar Overlay */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 40;
    opacity: 0;
    transition: opacity 0.3s;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main Content Area */
.admin-main {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    overflow-y: visible;
    width: 100%;
}

/* Top Header */
.admin-header {
    background: white;
    border-bottom: 1px solid #E2E8F0;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    color: #1E293B;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background 0.2s;
}

.hamburger-btn:hover {
    background: #F1F5F9;
}

.header-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1E293B;
    margin: 0;
    flex: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-back {
    padding: 0.5rem 1rem;
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-back:hover {
    background: #E2E8F0;
    color: #1E293B;
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: white;
    color: #DC2626;
    border: 1px solid #DC2626;
    border-radius: 0.5rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-logout:hover {
    background: #DC2626;
    color: white;
}

.btn-logout svg {
    width: 1rem;
    height: 1rem;
}

/* Content Area */
.admin-content {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    overflow-x: hidden;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .admin-sidebar {
        transform: translateX(-100%);
    }
    
    .admin-sidebar.open {
        transform: translateX(0);
    }
    
    .sidebar-close {
        display: block;
    }
    
    .admin-main {
        margin-left: 0;
    }
    
    .hamburger-btn {
        display: block;
    }
    
    .admin-content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 640px) {
    .header-title {
        font-size: 1.125rem;
    }
    
    .btn-back,
    .btn-logout {
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .btn-back span,
    .btn-logout span {
        display: none;
    }
    
    .admin-content {
        padding: 1rem;
    }
}

/* Breadcrumb */
.breadcrumb {
    margin-bottom: 1.5rem;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-link {
    color: #64748B;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-link:hover {
    color: #2563EB;
}

.breadcrumb-current {
    color: #1E293B;
    font-weight: 500;
}

.breadcrumb-separator {
    color: #CBD5E1;
    user-select: none;
}

/* Alert / Flash Messages */
.alert {
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.alert p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}

.alert-success {
    background: #F0FDF4;
    border-color: #16A34A;
    color: #15803D;
}

.alert-error {
    background: #FEF2F2;
    border-color: #DC2626;
    color: #B91C1C;
}

.alert-warning {
    background: #FFFBEB;
    border-color: #F59E0B;
    color: #D97706;
}

.alert-info {
    background: #EFF6FF;
    border-color: #2563EB;
    color: #1D4ED8;
}

/* Dashboard Stats */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Dashboard Stats Grid - 2x2 Layout */
.dashboard-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
}

/* Dashboard Actions 2x2 Layout */
.dashboard-actions-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .dashboard-actions-2x2 {
        gap: 0.75rem;
    }
}

@media (max-width: 540px) {
    .dashboard-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dashboard-actions-2x2 {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .dashboard-stats-grid {
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8125rem;
    }
    
    .stat-icon {
        width: 40px;
        height: 40px;
    }
    
    .stat-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .products-table-card {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .products-table th:first-child,
    .products-table td:first-child {
        padding-left: 1rem;
    }
    
    .products-table th:last-child,
    .products-table td:last-child {
        padding-right: 1rem;
    }
    
    .products-table-id {
        font-size: 0.75rem;
    }
    
    .product-name {
        font-size: 0.8125rem;
    }
    
    .products-table-price {
        font-size: 0.875rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.5rem;
        font-size: 0.6875rem;
    }
    
    .action-btn {
        width: 32px;
        height: 32px;
    }
    
    .action-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .quick-action-btn,
    .quick-action-btn-secondary {
        padding: 0.75rem;
        font-size: 0.8125rem;
        min-height: 48px;
    }
    
    .quick-action-btn svg,
    .quick-action-btn-secondary svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .dashboard-actions-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .main-content {
        padding: 0.75rem;
    }
    
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .products-table {
        min-width: 500px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.125rem;
    }
}

.stat-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-card-primary .stat-icon {
    background: #EFF6FF;
    color: #2563EB;
}

.stat-card-success .stat-icon {
    background: #F0FDF4;
    color: #16A34A;
}

.stat-card-info .stat-icon {
    background: #F0F9FF;
    color: #0EA5E9;
}

.stat-card-warning .stat-icon {
    background: #FFFBEB;
    color: #F59E0B;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: #64748B;
    margin: 0 0 0.25rem 0;
    font-weight: 500;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1E293B;
    margin: 0;
    line-height: 1;
}

/* Quick Action Buttons */
.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background: #2563EB;
    color: white;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    border: none;
    text-align: center;
    min-height: 60px;
}

.quick-action-btn:hover {
    background: #1D4ED8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.quick-action-btn-secondary {
    background: white;
    color: #475569;
    border: 1.5px solid #E2E8F0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
    text-align: center;
    min-height: 60px;
}

.quick-action-btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .quick-action-btn,
    .quick-action-btn-secondary {
        font-size: 0.8125rem;
        padding: 0.75rem;
        min-height: 50px;
        gap: 0.375rem;
    }
    
    .quick-action-btn svg,
    .quick-action-btn-secondary svg {
        width: 18px;
        height: 18px;
    }
    
    .dashboard-actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .main-content {
        padding: 1rem;
        max-width: 100%;
        overflow-x: hidden;
    }
}

@media (max-width: 768px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-icon {
        width: 48px;
        height: 48px;
    }
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1E293B;
    margin-bottom: 0.5rem;
}

.form-label.required::after {
    content: '*';
    color: #DC2626;
    margin-left: 0.25rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #E2E8F0;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #1E293B;
    transition: all 0.2s;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #2563EB;
    ring: 2px;
    ring-color: rgba(37, 99, 235, 0.1);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error {
    border-color: #DC2626;
}

.form-input.error:focus {
    ring-color: rgba(220, 38, 38, 0.1);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
    font-size: 0.75rem;
    color: #DC2626;
    margin-top: 0.25rem;
    display: block;
}

.form-help {
    font-size: 0.75rem;
    color: #64748B;
    margin-top: 0.25rem;
    display: block;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748B'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background: #2563EB;
    color: white;
}

.btn-primary:hover {
    background: #1D4ED8;
}

.btn-primary:disabled {
    background: #94A3B8;
    cursor: not-allowed;
}

.btn-success {
    background: #16A34A;
    color: white;
}

.btn-success:hover {
    background: #15803D;
}

.btn-danger {
    background: #DC2626;
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
}

.btn-secondary {
    background: white;
    color: #475569;
    border: 1px solid #E2E8F0;
}

.btn-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
}

.btn-ghost {
    background: transparent;
    color: #475569;
    border: 2px solid #E2E8F0;
}

.btn-ghost:hover {
    background: #F8FAFC;
}

/* Image Upload Preview */
.image-upload-container {
    margin-top: 0.5rem;
}

.image-preview {
    margin-top: 1rem;
    display: none;
}

.image-preview.active {
    display: block;
}

.image-preview img {
    max-width: 200px;
    max-height: 200px;
    border-radius: 0.5rem;
    border: 1px solid #E2E8F0;
}

/* Products Table */
.products-table-card {
    background: white;
    border: 1px solid #E2E8F0;
    border-radius: 0.75rem;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.products-table-responsive {
    overflow-x: auto !important;
    overflow-y: visible;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.products-table {
    width: 100%;
    border-collapse: collapse;
}

.products-table thead {
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
}

.products-table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.products-table tbody tr {
    border-bottom: 1px solid #F1F5F9;
    transition: background 0.2s;
}

.products-table tbody tr:hover {
    background: #F8FAFC;
}

.products-table tbody tr:last-child {
    border-bottom: none;
}

.products-table td {
    padding: 1rem;
    font-size: 0.875rem;
    color: #1E293B;
}

.products-table-id {
    font-weight: 600;
    color: #64748B;
    white-space: nowrap;
}

.product-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-thumb {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    object-fit: cover;
    border: 1px solid #E2E8F0;
    flex-shrink: 0;
}

.product-thumb-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 0.5rem;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94A3B8;
    flex-shrink: 0;
}

.product-name {
    font-weight: 500;
    color: #1E293B;
}

.products-table-category {
    color: #64748B;
}

.products-table-price {
    font-weight: 600;
    color: #0F172A;
    white-space: nowrap;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-badge-success {
    background: #DCFCE7;
    color: #15803D;
}

.status-badge-warning {
    background: #FEF3C7;
    color: #B45309;
}

.status-badge-default {
    background: #F1F5F9;
    color: #64748B;
}

.status-badge-danger {
    background: #FEE2E2;
    color: #B91C1C;
}

/* Table Actions */
.table-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 0.375rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    text-decoration: none;
}

.action-btn-edit {
    color: #2563EB;
}

.action-btn-edit:hover {
    background: #EFF6FF;
}

.action-btn-delete {
    color: #DC2626;
}

.action-btn-delete:hover {
    background: #FEF2F2;
}

@media (max-width: 768px) {
    .products-table th,
    .products-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8125rem;
    }
    
    .product-thumb,
    .product-thumb-placeholder {
        width: 32px;
        height: 32px;
    }
    
    .products-table-category {
        display: none;
    }
    
    .products-table-responsive {
        -webkit-overflow-scrolling: touch;
    }
    
    .products-table {
        min-width: 600px;
    }
}
