.site-main {
    max-width: 100% !important;
    padding: 20px !important;
}

:root {
    --ds-primary: #635bff;
    --ds-primary-hover: #524cdb;
    --ds-bg: #f8fafc;
    --ds-card-bg: #ffffff;
    --ds-text: #1e293b;
    --ds-text-muted: #64748b;
    --ds-border: #e2e8f0;
    --ds-success: #10b981;
    --ds-danger: #ef4444;
    --ds-radius: 12px;
    --ds-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --ds-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.ds-dashboard-container h1, 
.ds-dashboard-container h2, 
.ds-dashboard-container h3, 
.ds-dashboard-container h4, 
.ds-dashboard-container h5, 
.ds-dashboard-container h6, 
.ds-dashboard-container b, 
.ds-dashboard-container strong, 
.ds-dashboard-container label, 
.ds-dashboard-container .aslm-sidebar-item,
.ds-dashboard-container .aslm-sidebar-item span,
.ds-dashboard-container .aslm-page-title,
.ds-dashboard-container .ds-badge {
    font-weight: 400 !important;
}

.ds-dashboard-container {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ds-text);
    display: flex;
    width: 100%;
    max-width: 100%;
    min-height: 80vh;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    margin: 20px 0 60px;
    border: 1px solid var(--ds-border);
    box-sizing: border-box;
}
.ds-dashboard-container * {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ds-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.ds-dashboard-header h1 {
    font-size: 2rem;
    font-weight: 400;
    margin: 0;
    letter-spacing: -0.025em;
}

/* Buttons */
.ds-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--ds-radius);
    font-weight: 400;
    font-size: 0.9375rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    gap: 8px;
}

.ds-btn-primary {
    background: #635bff;
    color: white;
    box-shadow: 0 4px 14px rgba(99, 91, 255, 0.2);
    border-radius: 99px;
    font-weight: 400;
}

.ds-btn-secondary {
    background: white;
    color: var(--ds-text);
    border: 1px solid var(--ds-border);
}

.ds-btn-danger {
    background: #fff;
    color: var(--ds-danger);
    border: 1px solid #fee2e2;
}

.ds-btn-sm {
    padding: 6px 12px;
    font-size: 0.8125rem;
}

.ds-btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Alerts */
.ds-alert {
    padding: 16px;
    border-radius: var(--ds-radius);
    margin-bottom: 24px;
    font-weight: 400;
}

.ds-alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #d1fae5;
}

/* Empty State */
.ds-empty-state {
    text-align: center;
    padding: 80px 40px;
    background: var(--ds-card-bg);
    border: 2px dashed var(--ds-border);
    border-radius: var(--ds-radius);
}

.ds-empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.ds-empty-state h2 {
    margin-bottom: 8px;
}

.ds-empty-state p {
    color: var(--ds-text-muted);
    margin-bottom: 24px;
}

/* Product Grid */
.ds-product-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 1200px) { .ds-product-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 768px)  { .ds-product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .ds-product-grid { grid-template-columns: 1fr; } }

.ds-product-card {
    background: var(--ds-card-bg);
    border-radius: var(--ds-radius);
    overflow: hidden;
    box-shadow: var(--ds-shadow);
    border: 1px solid var(--ds-border);
}

.ds-product-card-img {
    height: 130px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 10px;
}
.ds-product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}
.ds-product-card-no-img {
    width: 52px;
    height: 52px;
    background: #e2e8f0;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.ds-product-card-info {
    padding: 10px 12px 8px;
}

.ds-product-card-info h3 {
    margin: 0 0 8px;
    font-size: 0.85rem;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ds-product-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 0.75rem;
    font-weight: 400;
}

.ds-price {
    font-weight: 400;
    color: var(--ds-primary);
}

.ds-product-card-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--ds-border);
    display: flex;
    justify-content: space-between;
}

/* Card Actions (Icons) */
.aslm-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid #f3f4f6; }
.aslm-card-actions-left { display: flex; align-items: center; gap: 8px; }
.aslm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; border: none; background: #f1f5f9; color: #475569; cursor: pointer; text-decoration: none !important; flex-shrink: 0; }

/* Form */
.ds-product-form {
    background: var(--ds-card-bg);
    padding: 40px;
    border-radius: var(--ds-radius);
    box-shadow: var(--ds-shadow-lg);
    border: 1px solid var(--ds-border);
}

.ds-form-section {
    margin-bottom: 40px;
}

.ds-form-group {
    margin-bottom: 24px;
}

.ds-form-group label {
    display: block;
    font-weight: 400;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.ds-product-form input[type="text"],
.ds-product-form input[type="email"],
.ds-product-form input[type="password"],
.ds-product-form input[type="number"],
.ds-product-form input[type="url"],
.ds-product-form input[type="search"],
.ds-product-form input[type="file"],
.ds-product-form select,
.ds-product-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--ds-border);
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: none;
    background: #fff;
    box-sizing: border-box;
}

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

.ds-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.ds-image-preview {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    background: #f1f5f9;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--ds-border);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}
.ds-image-preview:hover { opacity: 0.85; }
.ds-image-preview::after {
    content: '✎';
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ds-image-preview span {
    font-size: 0.65rem;
    color: var(--ds-text-muted);
    text-align: center;
    padding: 10px;
}

/* File rows */
.ds-file-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.ds-file-row input:first-child {
    flex: 1;
}

.ds-file-row input:nth-child(2) {
    flex: 2;
}

.ds-remove-file {
    background: none;
    border: none;
    color: var(--ds-danger);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.ds-form-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 24px;
    border-top: 1px solid var(--ds-border);
}

@media (max-width: 768px) {
    .ds-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ds-form-row {
        grid-template-columns: 1fr;
    }
    .ds-product-form {
        padding: 24px;
    }
}
/* Auth Container */
.ds-auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: 20px;
}

.ds-auth-card {
    background: #fff;
    width: 100%;
    max-width: 440px;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--ds-shadow-lg);
    border: 1px solid var(--ds-border);
}

.ds-auth-tabs {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--ds-border);
    padding-bottom: 16px;
}

.ds-auth-tab {
    text-decoration: none;
    color: var(--ds-text-muted);
    font-weight: 400;
    font-size: 1rem;
    position: relative;
    padding-bottom: 16px;
}

.ds-auth-tab.active {
    color: #000;
}

.ds-auth-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.ds-auth-form .ds-form-group label {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 400;
    margin-bottom: 10px;
}

.ds-auth-form input {
    width: 100% !important;
    height: 52px !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 1rem !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
}

.ds-btn-block {
    width: 100%;
    padding: 16px !important;
}

.ds-auth-footer {
    text-align: center;
    margin-top: 24px;
}

.ds-auth-footer a {
    color: var(--ds-text-muted);
    font-size: 0.875rem;
    text-decoration: none;
}

.ds-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fee2e2;
}

/* Sidebar Layout */
:root {
    --dash-sidebar-width: 220px;
    --dash-bg: #fcfcfc;
    --dash-border: #e5e7eb;
    --dash-active: #000;
    --dash-text: #4b5563;
}

.aslm-sidebar {
    width: var(--dash-sidebar-width);
    background: #fdfdfd;
    border-right: 1px solid var(--dash-border);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.aslm-sidebar-nav {
    padding: 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.aslm-sidebar-section-label {
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #aaa;
    padding: 12px 14px 4px;
    margin-top: 4px;
}
.aslm-sidebar-section-label:first-child {
    margin-top: 0;
    padding-top: 2px;
}

.aslm-sidebar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 8px;
    color: var(--dash-text);
    text-decoration: none !important;
    font-size: 0.8rem;
    font-weight: 400;
    line-height: 1.3;
}

.aslm-sidebar-item.active {
    background: #000;
    color: #fff;
}

.aslm-sidebar-divider {
    height: 1px;
    background: #ebebeb;
    margin: 6px 14px;
}

.aslm-main-content {
    flex: 1;
    padding: 32px 40px;
    background: #f9fafb;
    overflow-y: auto;
}

.aslm-top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
}

.aslm-page-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: #111;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Mobile Header */
.ds-dashboard-mobile-header {
    display: none;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid var(--ds-border);
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1100;
}
.ds-mobile-logo {
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}
.ds-mobile-nav-selector {
    background: #f8fafc;
    border: 1px solid var(--ds-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--ds-text);
    outline: none;
    flex: 1;
    width: 100%;
}

@media (max-width: 950px) {
    .ds-dashboard-container { flex-direction: column; margin: 0; border-radius: 0; border: none; }
    .ds-dashboard-mobile-header { display: flex; padding: 15px; margin-bottom: 15px; border-bottom: 1px solid #f1f5f9; }
    .aslm-sidebar { display: none !important; }
    .aslm-main-content { padding: 0 15px 20px; }
}

@media (max-width: 768px) {
    .ds-dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    .ds-form-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .ds-product-form {
        padding: 20px !important;
    }
    .aslm-top-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .aslm-top-header > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px !important;
    }
    
    /* Menu form mobile adjustments */
    #ds-menu-form .ds-menu-item-row {
        grid-template-columns: 50px 1fr 30px !important;
        grid-template-areas: "img fields remove" "img price remove";
        gap: 10px !important;
        padding: 10px !important;
    }
    #ds-menu-form .ds-img-upload-mini { grid-area: img; }
    #ds-menu-form .ds-menu-item-fields { grid-area: fields; }
    #ds-menu-form .ds-price-group { grid-area: price; margin-top: 5px; }
    #ds-menu-form .ds-remove-item { grid-area: remove; }
    
    #ds-menu-form .ds-menu-section-header {
        padding-right: 40px !important;
    }
}

/* Responsive Tables & Sales List */
.ds-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -24px;
    padding: 0 24px;
}
.ds-sales-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    min-width: 650px;
}
.ds-sales-table th {
    padding: 16px 12px;
    font-weight: 500;
    color: var(--ds-text-muted);
    border-bottom: 1px solid var(--ds-border);
    text-align: left;
}
.ds-sales-table td {
    padding: 16px 12px;
    border-bottom: 1px solid #f9fafb;
    color: var(--ds-text);
}
.ds-order-id { font-weight: 500; color: #111 !important; }
.ds-order-total { font-weight: 500; color: #000 !important; }
.ds-order-details-row { background: #fcfdfe; }
.ds-order-details-row td { padding: 20px 12px !important; }
.ds-order-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.ds-details-label {
    margin: 0 0 12px;
    font-size: 0.8rem;
    color: #64748b;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .ds-sales-table { font-size: 0.85rem; }
    .ds-sales-table th, .ds-sales-table td { padding: 12px 8px; }
    .ds-order-details-grid { grid-template-columns: 1fr; gap: 20px; }
    .ds-table-responsive { margin: 0 -15px; padding: 0 15px; }
}
