/* ==========================================================================
   ATHENA HERBAL - LUXURY WELLNESS ADMIN PANEL STYLESHEET
   Clean, responsive, mobile-first design for non-technical store owners
   ========================================================================== */

:root {
    --clr-deep: #062817;
    --clr-deep-mid: #0b3d24;
    --clr-emerald: #10b981;
    --clr-emerald-dark: #059669;
    --clr-mint-soft: #f0fdf4;
    --clr-mint-border: #bbf7d0;
    --clr-bg: #f8fafc;
    --clr-card: #ffffff;
    --clr-border: #e2e8f0;
    --clr-text-main: #0f172a;
    --clr-text-muted: #64748b;
    --clr-danger: #ef4444;
    --clr-danger-bg: #fef2f2;
    --clr-warning: #f59e0b;
    --clr-warning-bg: #fffbeb;

    --ff-head: 'Outfit', sans-serif;
    --ff-body: 'Inter', sans-serif;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ff-body);
    background-color: var(--clr-bg);
    color: var(--clr-text-main);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   NAVBAR & HEADER
   ========================================================================== */
.admin-navbar {
    background: var(--clr-deep);
    color: #ffffff;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #ffffff;
}

.admin-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.admin-brand-info h1 {
    font-family: var(--ff-head);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
}

.admin-brand-info span {
    font-size: 0.72rem;
    color: var(--clr-emerald);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.admin-nav-tabs {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-tab-btn {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-family: var(--ff-head);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.nav-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-tab-btn.active {
    color: #ffffff;
    background: var(--clr-emerald-dark);
}

.admin-user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-view-site {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.btn-view-site:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dc2626;
    color: #ffffff;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 600;
    transition: background 0.2s ease;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* ==========================================================================
   CONTAINER & LAYOUT
   ========================================================================== */
.admin-container {
    max-width: 1300px;
    margin: 28px auto;
    padding: 0 20px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.25s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   METRICS & STATS CARDS
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon.green { background: #dcfce7; color: #15803d; }
.stat-icon.red { background: #fee2e2; color: #b91c1c; }
.stat-icon.purple { background: #f3e8ff; color: #7e22ce; }
.stat-icon.blue { background: #e0f2fe; color: #0284c7; }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--ff-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--clr-text-main);
    line-height: 1.1;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--clr-text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ==========================================================================
   PANEL CARDS & TOOLBARS
   ========================================================================== */
.panel-card {
    background: var(--clr-card);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.panel-toolbar {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    background: #ffffff;
    border-bottom: 1px solid var(--clr-border);
}

.panel-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 280px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
    max-width: 380px;
}

.search-input-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 9px 12px 9px 38px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    border-color: var(--clr-emerald);
}

.filter-select {
    padding: 9px 14px;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-family: inherit;
    background: #ffffff;
    cursor: pointer;
}

.btn-primary {
    background: var(--clr-deep);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-family: var(--ff-head);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-primary:hover {
    background: var(--clr-deep-mid);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 40, 23, 0.2);
}

/* ==========================================================================
   PRODUCTS TABLE
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.88rem;
}

.admin-table th {
    background: #f8fafc;
    color: var(--clr-text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 18px;
    border-bottom: 1px solid var(--clr-border);
}

.admin-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}

.admin-table tbody tr:hover {
    background-color: #f8fafc;
}

.table-prod-cell {
    display: flex;
    align-items: center;
    gap: 14px;
}

.table-prod-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    background: #f1f5f9;
    border: 1px solid var(--clr-border);
    flex-shrink: 0;
}

.table-prod-info {
    display: flex;
    flex-direction: column;
}

.table-prod-name {
    font-weight: 600;
    color: var(--clr-text-main);
    font-size: 0.92rem;
}

.table-prod-meta {
    font-size: 0.78rem;
    color: var(--clr-text-muted);
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 3px 8px;
    background: var(--clr-mint-soft);
    color: var(--clr-emerald-dark);
    border: 1px solid var(--clr-mint-border);
    border-radius: 6px;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Inline Price Editor */
.price-cell-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}

.price-display-val {
    font-weight: 700;
    color: var(--clr-deep);
    font-size: 1rem;
}

.price-edit-input {
    width: 75px;
    padding: 5px 8px;
    border: 1.5px solid var(--clr-emerald);
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.92rem;
    font-family: inherit;
}

.btn-price-quick-edit {
    background: transparent;
    border: none;
    color: var(--clr-text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    transition: color 0.15s ease;
}

.btn-price-quick-edit:hover {
    color: var(--clr-emerald);
}

/* Multi-size Prices in Table */
.multi-size-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.size-price-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.86rem;
}
.badge-size-tag {
    background: #f1f5f9;
    color: var(--clr-deep);
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    padding: 1px 6px;
    font-size: 0.74rem;
    font-weight: 600;
}
.size-price-val {
    font-weight: 700;
    color: var(--clr-deep);
}
.multi-size-edit-wrap {
    background: #f8fafc;
    border: 1px solid var(--clr-emerald);
    border-radius: 6px;
    padding: 8px;
}

/* Modal Sizes Editor */
.sizes-editor-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin: 14px 0;
}
.sizes-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.sizes-editor-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--clr-deep);
    display: flex;
    align-items: center;
    gap: 6px;
}
.sizes-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.sizes-row input {
    margin: 0;
}
.btn-size-remove {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #dc2626;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.btn-size-remove:hover {
    background: #fca5a5;
}
.btn-add-size-row {
    background: white;
    border: 1px dashed var(--clr-emerald);
    color: var(--clr-emerald-deep);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-add-size-row:hover {
    background: #ecfdf5;
}

/* Stock iOS Toggle Switch */
.stock-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

input:checked + .slider {
    background-color: var(--clr-emerald);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.stock-label-text {
    font-size: 0.8rem;
    font-weight: 600;
}

.stock-label-text.in-stock { color: #15803d; }
.stock-label-text.out-of-stock { color: #b91c1c; }

/* Action Buttons */
.table-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 1px solid var(--clr-border);
    background: #ffffff;
    color: var(--clr-text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.btn-action-icon:hover {
    background: #f1f5f9;
    color: var(--clr-text-main);
}

.btn-action-icon.delete:hover {
    background: var(--clr-danger-bg);
    color: var(--clr-danger);
    border-color: #fecaca;
}

/* ==========================================================================
   CATEGORIES GRID & CARDS
   ========================================================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    padding: 20px;
}

.category-card {
    background: #ffffff;
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.cat-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--clr-deep);
    margin-bottom: 2px;
}

.cat-card-info span {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   COUPONS TABLE & BADGES
   ========================================================================== */
.coupon-code-pill {
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 700;
    background: #f1f5f9;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    color: var(--clr-deep);
    border: 1px dashed #cbd5e1;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
}

.status-pill.active { background: #dcfce7; color: #15803d; }
.status-pill.expired { background: #fee2e2; color: #b91c1c; }
.status-pill.disabled { background: #f1f5f9; color: #64748b; }

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* ==========================================================================
   MODALS & FORMS
   ========================================================================== */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(6, 40, 23, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-backdrop.open {
    display: flex;
}

.modal-box {
    background: #ffffff;
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: zoomIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-family: var(--ff-head);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--clr-deep);
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--clr-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--clr-border);
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.form-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--clr-text-main);
    margin-bottom: 6px;
}

.form-input, .form-textarea, .form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--clr-border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none;
    border-color: var(--clr-emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Image Upload Preview Box */
.image-upload-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
}

.preview-thumb {
    width: 70px;
    height: 70px;
    border-radius: 10px;
    border: 1px solid var(--clr-border);
    object-fit: cover;
    background: #f1f5f9;
}

.upload-file-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    color: var(--clr-text-main);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.upload-file-btn:hover {
    background: #e2e8f0;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    border-left: 5px solid var(--clr-emerald);
    animation: slideInRight 0.25s ease;
}

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

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS (Touch & Mobile First UX)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. Global Layout & Container */
    body {
        font-size: 15px;
        -webkit-tap-highlight-color: transparent;
    }

    .admin-container {
        padding: 12px 10px;
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    /* 2. Top Navbar & Horizontal Tabs */
    .admin-navbar {
        height: auto;
        padding: 10px 14px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .admin-brand {
        gap: 8px;
    }

    .admin-brand img {
        width: 32px;
        height: 32px;
    }

    .admin-brand-info h1 {
        font-size: 1rem;
    }

    .admin-brand-info span {
        display: none;
    }

    .admin-user-actions {
        gap: 6px;
    }

    .admin-user-actions span#admin-user-display {
        max-width: 85px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.78rem;
        padding: 4px 8px;
    }

    .btn-view-site span, 
    .btn-logout span {
        display: none;
    }

    .btn-view-site, 
    .btn-logout {
        padding: 7px 10px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Swipeable Horizontal Navigation Tabs */
    .admin-nav-tabs {
        width: 100%;
        order: 3;
        display: flex;
        gap: 8px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 4px 0 6px 0;
        margin: 0 -4px;
    }

    .admin-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .nav-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.08);
        min-height: 38px;
    }

    .nav-tab-btn.active {
        background: var(--clr-emerald);
        color: #ffffff;
        box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
    }

    /* 3. Stats Dashboard Cards (2x2 Grid) */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-card {
        padding: 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .stat-icon {
        width: 38px;
        height: 38px;
    }

    .stat-icon svg {
        width: 20px;
        height: 20px;
    }

    .stat-value {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.72rem;
    }

    /* 4. Panel Card & Toolbar */
    .panel-card {
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        overflow: hidden;
    }

    .panel-toolbar {
        padding: 14px 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .panel-toolbar-left {
        flex-direction: column;
        min-width: 0;
        width: 100%;
        gap: 8px;
    }

    .search-input-wrap {
        max-width: 100%;
        width: 100%;
    }

    .filter-select {
        width: 100%;
        min-height: 44px;
    }

    .panel-toolbar button.btn-primary {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 0.95rem;
        min-height: 46px;
    }

    /* 5. Mobile Card Transformation for Products Table */
    .table-responsive {
        overflow: visible;
        padding: 0 4px;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table, 
    .admin-table tbody {
        display: block;
        width: 100%;
    }

    .admin-table tr {
        display: block;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 14px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
        position: relative;
    }

    .admin-table tr:hover {
        background: #ffffff;
    }

    .admin-table td {
        display: block;
        width: 100% !important;
        padding: 6px 0;
        border: none;
        text-align: left !important;
    }

    /* Product Cell (Thumb + Info) */
    .table-prod-cell {
        gap: 12px;
        align-items: flex-start;
    }

    .table-prod-img {
        width: 60px;
        height: 60px;
        border-radius: 10px;
        flex-shrink: 0;
    }

    .table-prod-name {
        font-size: 0.98rem;
        font-weight: 700;
        line-height: 1.35;
        color: var(--clr-deep);
    }

    .table-prod-meta {
        font-size: 0.78rem;
        margin-top: 4px;
        color: var(--clr-text-muted);
    }

    /* Category Badge Row */
    .admin-table td:nth-child(2) {
        padding-top: 2px;
        padding-bottom: 6px;
    }

    .category-badge {
        font-size: 0.75rem;
        padding: 3px 10px;
    }

    /* Price & Multi-Sizes Row */
    .admin-table td:nth-child(3) {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        padding: 10px 12px;
        margin: 8px 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .admin-table td:nth-child(3)::before {
        content: 'Τιμή & Μεγέθη:';
        font-size: 0.76rem;
        font-weight: 700;
        color: var(--clr-text-muted);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .admin-table td:nth-child(3) .price-cell-wrap {
        width: 100%;
        justify-content: space-between;
    }

    .admin-table td:nth-child(3) .btn-price-quick-edit {
        padding: 8px;
        background: #ecfdf5;
        border: 1px solid #a7f3d0;
        border-radius: 6px;
        color: var(--clr-emerald-deep);
        min-width: 36px;
        min-height: 36px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Stock Toggle Row */
    .admin-table td:nth-child(4) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 4px 12px 4px;
        border-bottom: 1px dashed #e2e8f0;
    }

    .admin-table td:nth-child(4)::before {
        content: 'Διαθεσιμότητα:';
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--clr-deep);
    }

    .stock-toggle-wrap {
        gap: 8px;
    }

    .switch {
        width: 48px;
        height: 28px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(20px);
    }

    /* Action Buttons Row */
    .admin-table td:nth-child(5) {
        padding-top: 12px;
    }

    .admin-table td:nth-child(5) .table-actions {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: stretch;
    }

    .admin-table td:nth-child(5) .btn-action-icon {
        flex: 1;
        min-height: 44px;
        border-radius: 8px;
        font-size: 0.88rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
        color: var(--clr-deep);
    }

    .admin-table td:nth-child(5) .btn-action-icon::after {
        content: 'Επεξεργασία';
    }

    .admin-table td:nth-child(5) .btn-action-icon.delete {
        flex: 0.85;
        background: #fee2e2;
        border-color: #fecaca;
        color: #dc2626;
    }

    .admin-table td:nth-child(5) .btn-action-icon.delete::after {
        content: 'Διαγραφή';
    }

    /* 6. Coupons Table Mobile Cards */
    #coupons-table thead {
        display: none;
    }

    #coupons-table, 
    #coupons-table tbody, 
    #coupons-table tr, 
    #coupons-table td {
        display: block;
        width: 100% !important;
    }

    #coupons-table tr {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        padding: 14px;
        margin-bottom: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    }

    #coupons-table td {
        padding: 5px 0;
        border: none;
        text-align: left !important;
    }

    #coupons-table td:last-child .table-actions {
        display: flex;
        gap: 10px;
        width: 100%;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px dashed #e2e8f0;
    }

    #coupons-table td:last-child .btn-action-icon {
        flex: 1;
        min-height: 44px;
        border-radius: 8px;
        font-size: 0.88rem;
        font-weight: 600;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: #f1f5f9;
        border: 1px solid #cbd5e1;
    }

    #coupons-table td:last-child .btn-action-icon::after {
        content: 'Επεξεργασία';
    }

    #coupons-table td:last-child .btn-action-icon.delete {
        background: #fee2e2;
        border-color: #fecaca;
        color: #dc2626;
    }

    #coupons-table td:last-child .btn-action-icon.delete::after {
        content: 'Διαγραφή';
    }

    /* 7. Categories Grid Mobile */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .category-card {
        padding: 14px;
        border-radius: 12px;
    }

    .category-card .btn-action-icon {
        min-width: 40px;
        min-height: 40px;
    }

    /* 8. Modals (Add / Edit Product, Category, Coupon) */
    .modal-box {
        width: 95%;
        max-height: 92vh;
        border-radius: 16px;
        display: flex;
        flex-direction: column;
    }

    .modal-header {
        padding: 14px 18px;
        position: sticky;
        top: 0;
        background: #ffffff;
        z-index: 20;
        border-bottom: 1px solid var(--clr-border);
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-close-btn {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .modal-body {
        padding: 16px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .modal-footer {
        padding: 14px 16px;
        position: sticky;
        bottom: 0;
        background: #ffffff;
        z-index: 20;
        border-top: 1px solid var(--clr-border);
    }

    .modal-footer button {
        width: 100%;
        justify-content: center;
        padding: 12px;
        font-size: 1rem;
        min-height: 46px;
    }

    /* 9. Form Inputs Mobile Optimization (16px to prevent iOS Safari auto-zoom) */
    .form-input, 
    .form-select, 
    .form-textarea, 
    .price-edit-input, 
    .search-input {
        font-size: 16px !important;
        min-height: 44px;
        border-radius: 8px;
    }

    .form-grid-2col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 10. Sizes Editor on Mobile */
    .sizes-editor-box {
        padding: 12px;
        margin: 12px 0;
    }

    .sizes-editor-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .btn-add-size-row {
        width: 100%;
        justify-content: center;
        padding: 10px;
        min-height: 42px;
        font-size: 0.88rem;
    }

    .sizes-row {
        flex-wrap: wrap;
        gap: 8px;
        background: #ffffff;
        border: 1px solid #e2e8f0;
        padding: 10px;
        border-radius: 10px;
        margin-bottom: 10px;
    }

    .sizes-row > div:first-child {
        flex: 1 1 100% !important;
    }

    .sizes-row > div:nth-child(2) {
        flex: 1 1 calc(100% - 54px) !important;
    }

    .btn-size-remove {
        height: 44px;
        width: 44px;
        min-width: 44px;
        border-radius: 8px;
    }

    /* Inline multi-size editor */
    .multi-size-edit-wrap {
        padding: 10px;
    }

    .multi-size-edit-wrap .price-edit-input {
        width: 85px;
    }

    .multi-size-edit-wrap .btn-price-quick-edit {
        min-width: 40px;
        min-height: 40px;
    }

    /* 11. Toast Notifications */
    .toast-container {
        left: 12px;
        right: 12px;
        bottom: 16px;
    }

    .toast {
        max-width: 100%;
        font-size: 0.88rem;
        padding: 12px 16px;
    }
}

