html {
    scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

body {
    overflow: hidden;
}

.dashboard-container {
    display: flex;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(ellipse at 8% 9%, rgba(139, 92, 246, 0.09), transparent 34%),
        radial-gradient(ellipse at 92% 28%, rgba(39, 174, 173, 0.07), transparent 32%),
        linear-gradient(135deg, #f7f5fb 0%, #f3f7fa 56%, #fbf8f4 100%);
    overflow: hidden;
}

.sidebar {
    width: 280px;
    background: var(--gray-900);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.sidebar.collapsed {
    width: 80px;
}

.sidebar-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--gray-800);
}

.sidebar .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar .logo-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
}

.sidebar .logo-icon:empty,
.sidebar .logo-icon.logo-icon--empty {
    display: none !important;
    width: 0;
    height: 0;
    margin: 0;
}

.sidebar .logo-wordmark {
    display: block;
    width: 126px;
    height: 30px;
    object-fit: contain;
    object-position: left center;
}

.sidebar .logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
}

.sidebar .logo .accent {
    color: var(--primary-light);
}

.sidebar.collapsed .logo-text {
    display: none;
}

.sidebar.collapsed .logo-wordmark {
    display: none;
}

.sidebar-toggle {
    border: 0;
    background: transparent;
    color: var(--gray-400);
    font-size: 1.25rem;
    padding: 0.5rem;
    cursor: pointer;
}

.sidebar-toggle:hover {
    color: var(--white);
}

.sidebar-nav {
    flex: 1;
    min-height: 0;
    padding: 1rem 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.nav-section {
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.nav-section-title {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
    padding-left: 0.75rem;
}

.sidebar.collapsed .nav-section-title {
    display: none;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: var(--radius);
    color: var(--gray-400);
    font-weight: 500;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease;
}

.nav-item:hover {
    background: var(--gray-800);
    color: var(--white);
}

.nav-item.active {
    background: var(--primary);
    color: var(--white);
}

.nav-item.seller-owner-only {
    opacity: .58;
}

.owner-only-label {
    margin-left: auto;
    font-size: .62rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.nav-item i {
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.sidebar.collapsed .nav-item span:not(.nav-badge) {
    display: none;
}

.nav-badge {
    margin-left: auto;
    padding: 0.2rem 0.5rem;
    background: var(--primary);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
}

.nav-badge.warning {
    background: var(--warning);
}

.sidebar.collapsed .nav-badge {
    display: none;
}

.sidebar-footer {
    flex: 0 0 auto;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-800);
    background: var(--gray-900);
    z-index: 1;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
}

.user-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: var(--white);
    font-size: 0.9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-role {
    font-size: 0.75rem;
    color: var(--gray-400);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar.collapsed .user-details {
    display: none;
}

.sidebar.collapsed .sidebar-footer {
    justify-content: center;
    padding: 1rem 0.75rem;
}

.sidebar.collapsed .user-info {
    justify-content: center;
    gap: 0;
}

.main-content {
    flex: 1;
    height: 100dvh;
    margin-left: 280px;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
    transition: margin-left 0.3s ease;
}

.sidebar.collapsed + .main-content {
    margin-left: 80px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
    min-width: 0;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--gray-600);
}

.page-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius-full);
}

.header-search i {
    color: var(--gray-400);
}

.header-search input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    width: 200px;
}

.header-search input:focus {
    outline: none;
}

.header-icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    position: relative;
    transition: all 0.2s ease;
}

.header-icon-btn:hover {
    background: var(--gray-200);
    color: var(--gray-800);
}

.notification-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--secondary);
    border-radius: 50%;
}

.user-dropdown {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.25rem;
    padding-right: 0.75rem;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.user-dropdown:hover {
    background: var(--gray-100);
}

.user-dropdown img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
}

.user-dropdown i {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.dashboard-content {
    padding: 2rem;
}

.dashboard-content.hidden {
    display: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card.gradient-1 { background: var(--gradient-1); }
.stat-card.gradient-2 { background: var(--gradient-2); }
.stat-card.gradient-3 { background: var(--gradient-3); }
.stat-card.gradient-4 { background: var(--gradient-4); }

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-size: 1.5rem;
}

.stat-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: var(--radius);
}

.stat-change.positive {
    color: #dcfce7;
}

.stat-change.negative {
    color: #fee2e2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    min-width: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.card-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.card-header.mt-2 {
    margin-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.view-all {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary-dark);
}

.orders-table {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1rem 1.5rem;
    text-align: left;
}

th {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-500);
    background: var(--gray-50);
}

td {
    font-size: 0.9rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.customer-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.customer-cell img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

.status-badge.pending {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.processing {
    background: #dbeafe;
    color: #1e40af;
}

.status-badge.shipped {
    background: #e0e7ff;
    color: #3730a3;
}

.status-badge.delivered {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.cancelled {
    background: #fee2e2;
    color: #991b1b;
}

.status-badge.active {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.draft {
    background: var(--gray-200);
    color: var(--gray-600);
}

.status-badge.warning {
    background: #fef3c7;
    color: #92400e;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.danger {
    background: #fee2e2;
    color: #991b1b;
}

.table-empty {
    padding: 2.5rem 1rem !important;
    text-align: center !important;
    color: var(--gray-500);
}

.dashboard-placeholder {
    padding: 2rem 1rem;
    color: var(--gray-500);
    text-align: center;
}

.dashboard-placeholder i {
    display: block;
    margin-bottom: .65rem;
    color: var(--primary);
    font-size: 1.5rem;
}

.dashboard-placeholder h3 {
    margin-bottom: .25rem;
    color: var(--gray-700);
    font-size: 1rem;
}

.customer-placeholder {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--gray-500);
}

.action-btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--gray-100);
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all 0.2s ease;
}

.action-btn-sm:hover {
    background: var(--primary);
    color: var(--white);
}

.quick-actions {
    padding: 1rem 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    color: var(--gray-700);
    font-weight: 500;
    transition: all 0.2s ease;
}

.quick-action-btn i {
    font-size: 1.25rem;
    color: var(--primary);
}

.quick-action-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.quick-action-btn:hover i {
    color: var(--white);
}

.performance-stats {
    padding: 0 1.5rem 1.5rem;
}

.perf-item {
    margin-bottom: 1rem;
}

.perf-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.perf-value {
    font-weight: 600;
    color: var(--gray-800);
}

.progress-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--gradient-1);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

.products-list {
    padding: 0.5rem;
}

.product-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: var(--radius);
    transition: background 0.2s ease;
}

.product-item:hover {
    background: var(--gray-50);
}

.product-item img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.product-details {
    flex: 1;
    min-width: 0;
}

.product-details h4 {
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-category {
    font-size: 0.8rem;
    color: var(--gray-500);
}

.product-stats {
    text-align: right;
}

.product-price {
    display: block;
    font-weight: 700;
    color: var(--primary);
}

.product-sold {
    display: block;
    font-size: 0.8rem;
    color: var(--gray-500);
}

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

.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-600);
    transition: all 0.2s ease;
}

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

.icon-btn:last-child:hover {
    background: var(--error);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.page-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-800);
}

.filters-bar {
    display: flex;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    border-radius: var(--radius);
    flex: 1;
    max-width: 300px;
}

.search-box i {
    color: var(--gray-400);
}

.search-box input {
    border: none;
    background: transparent;
    font-size: 0.9rem;
    width: 100%;
}

.search-box input:focus {
    outline: none;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-700);
    background: var(--white);
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
}

.products-table {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.products-table table {
    min-width: 680px;
}

.products-table td {
    vertical-align: middle;
}

.product-table-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.product-table-cell img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius);
    object-fit: cover;
}

.product-table-cell h4 {
    font-weight: 500;
    color: var(--gray-800);
}

.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.875rem;
    color: var(--gray-500);
}

.pagination {
    display: flex;
    gap: 0.5rem;
}

.page-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius);
    color: var(--gray-600);
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.page-btn:hover,
.page-btn.active {
    background: var(--primary);
    color: var(--white);
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2vw, 1.5rem);
    overflow: hidden;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.modal-container {
    position: relative;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    width: min(92vw, 600px);
    max-width: 600px;
    height: min(calc(100dvh - 2rem), 900px);
    max-height: calc(100dvh - 2rem);
    min-height: 0;
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal.active .modal-container {
    transform: scale(1);
}

.modal-container.modal-lg {
    width: min(92vw, 800px);
    max-width: 800px;
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex: 0 0 auto;
    padding: 1.5rem 2rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: var(--white);
}

.modal-header > div {
    min-width: 0;
}

.modal-eyebrow {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-header h2 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-subtitle {
    max-width: 38rem;
    margin: 0.4rem 0 0;
    color: var(--gray-500);
    font-size: 0.85rem;
    line-height: 1.5;
}

.modal-close {
    position: static;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: var(--radius-full);
    color: var(--gray-600);
    z-index: 10;
}

.modal-close:hover {
    background: var(--gray-200);
}

.modal-content {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0 2rem;
    overflow: hidden;
}

#addProductForm {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
}

.form-scroll-region {
    flex: 1 1 auto;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 1.5rem 0.25rem 1.5rem 0;
    overscroll-behavior: contain;
    scrollbar-width: none;
}

.form-scroll-region::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

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

.form-group textarea {
    resize: vertical;
}

.image-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
    cursor: pointer;
    transition: all 0.2s ease;
}

.image-upload-area:hover {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.image-upload-area i {
    font-size: 2rem;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.image-upload-area p {
    color: var(--gray-500);
    font-size: 0.9rem;
}

.uploaded-images {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.uploaded-image {
    position: relative;
    width: 80px;
    height: 80px;
}

.uploaded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
}

.uploaded-image.existing-image {
    width: 104px;
    height: 104px;
}

.uploaded-image .image-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.2rem;
    background: rgba(17, 24, 39, 0.78);
    color: var(--white);
    font-size: 0.62rem;
    text-align: center;
    border-radius: 0 0 var(--radius) var(--radius);
}

.uploaded-image .remove-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--error);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.7rem;
}

.form-actions {
    display: flex;
    flex: 0 0 auto;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 0 1.5rem;
    border-top: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: 0 -0.5rem 1rem rgba(15, 23, 42, 0.04);
    z-index: 2;
}

.form-actions .btn {
    min-width: 128px;
}

.modal-container,
.modal-content,
.form-scroll-region {
    scrollbar-width: none;
}

.modal-container::-webkit-scrollbar,
.modal-content::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
}

@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.settings-card .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
}

.settings-card .card-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1rem;
}

.settings-card .card-header h2 i {
    font-size: 1.1rem;
}

.card-body {
    padding: 1.5rem;
}

.settings-form .seller-public-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: .5rem 0;
    color: var(--gray-800, #1f2937);
    font-weight: 600;
    line-height: 1.5;
}

.settings-form .seller-public-consent input {
    flex: 0 0 auto;
    width: auto;
    margin-top: .25rem;
}

.settings-form .form-group {
    margin-bottom: 1.25rem;
}

.settings-form .form-group:last-of-type {
    margin-bottom: 0;
}

.settings-form > button[type="submit"] {
    margin-top: .75rem;
}

.password-security-card .card-body {
    padding-bottom: 1.75rem;
}

.settings-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.settings-form input,
.settings-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.settings-form input:focus,
.settings-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.social-input label i {
    font-size: 1.25rem;
}

.whatsapp-icon { color: #25D366; }
.facebook-icon { color: #1877F2; }
.instagram-icon { color: #E4405F; }
.twitter-icon { color: #1DA1F2; }

.shop-key-container {
    text-align: center;
}

.key-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.shop-key-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    background: var(--gray-100);
    padding: 0.5rem;
    border-radius: var(--radius-lg);
}

.shop-key-display input {
    flex: 1;
    background: transparent;
    border: none;
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: center;
    color: var(--gray-800);
    letter-spacing: 2px;
}

.shop-key-display input:focus {
    outline: none;
    box-shadow: none;
}

.btn-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: var(--radius);
    color: var(--gray-600);
    transition: all 0.2s ease;
}

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

.btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    margin-bottom: 1rem;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.key-warning {
    font-size: 0.8rem;
    color: var(--warning);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group input {
    flex: 1;
    padding-right: 3rem;
}

.toggle-password-btn {
    position: absolute;
    right: 0.75rem;
    background: transparent;
    color: var(--gray-400);
    padding: 0.5rem;
    transition: color 0.2s ease;
}

.toggle-password-btn:hover {
    color: var(--primary);
}

.password-strength-bar {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    margin-top: 0.5rem;
    overflow: hidden;
}

.password-strength-bar::after {
    content: '';
    display: block;
    height: 100%;
    width: 0;
    transition: all 0.3s ease;
}

.password-strength-bar.weak::after {
    width: 33%;
    background: var(--error);
}

.password-strength-bar.medium::after {
    width: 66%;
    background: var(--warning);
}

.password-strength-bar.strong::after {
    width: 100%;
    background: var(--success);
}

@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .password-security-card {
        margin-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    }

    .password-security-card .card-body {
        padding-bottom: calc(2.25rem + env(safe-area-inset-bottom, 0px));
    }

    .sidebar {
        left: -280px;
    }

    .sidebar-toggle {
        display: none;
    }
    
    .sidebar.active {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
    }

    /*
     * The shop portal scrolls inside main-content and keeps the mobile nav
     * fixed to the viewport. Let short dashboard states stretch so the
     * shared footer reaches the bottom nav instead of leaving a gray gap.
     * Keep the seller sign-in content tall enough to remain above the footer.
     */
    body:has(.shared-footer) .main-content {
        display: flex;
        flex-direction: column;
    }

    body:has(.shared-footer) .main-content > .dashboard-content:not(.hidden) {
        flex: 1 1 auto;
        min-height: 36rem;
    }

    body:has(.shared-footer) .dashboard-content > .empty-page.admin-access-state {
        padding: 1.5rem 1rem;
    }

    body:has(.shared-footer) .main-content > .shared-footer {
        flex: 0 0 auto;
        margin-top: auto;
    }
    
    .mobile-toggle {
        display: block;
    }

    .dashboard-header {
        padding: 0.75rem 1rem;
    }

    .header-left {
        min-width: 0;
    }

    .page-title {
        font-size: 1.15rem;
    }

    .header-right {
        gap: 0.35rem;
    }

    .header-icon-btn {
        width: 36px;
        height: 36px;
    }

    .user-dropdown {
        padding-right: 0;
    }

    .user-dropdown i {
        display: none;
    }
    
    .header-search {
        display: none;
    }
    
    .dashboard-content {
        padding: 1rem;
        width: 100%;
        overflow-x: hidden;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    
    .form-group.full-width {
        grid-column: 1 / -1;
    }
    
    .filters-bar {
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .search-box {
        max-width: none;
        width: 100%;
    }

    .filter-select {
        width: 100%;
    }

    .page-header {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
    }

    .page-header .btn {
        width: 100%;
        justify-content: center;
    }

    .table-footer {
        align-items: stretch;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem;
    }

    .pagination {
        justify-content: center;
    }

    .product-item {
        gap: 0.6rem;
        padding: 0.75rem;
    }

    .product-item img {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .product-stats {
        display: none;
    }

    .product-actions {
        flex: 0 0 auto;
    }

    .modal {
        align-items: flex-end;
        padding: 0;
    }

    .modal-container,
    .modal-container.modal-lg {
        width: 100%;
        max-width: none;
        height: calc(100dvh - 0.75rem);
        max-height: calc(100dvh - 0.75rem);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .modal-header {
        padding: 1.15rem 1rem 1rem;
    }

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

    .modal-subtitle {
        font-size: 0.78rem;
    }

    .modal-content {
        padding: 0 1rem;
    }

    .form-scroll-region {
        padding: 1.1rem 0.15rem 1.25rem 0;
    }

    .form-actions {
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    }

    .form-actions .btn {
        flex: 1;
        justify-content: center;
    }

    .image-upload-area {
        padding: 1.25rem 0.75rem;
        text-align: center;
    }
}

.product-delivery-editor,
.product-promotion-editor {
    padding: 1rem;
    border: 1px solid var(--gray-200, #e7e3ed);
    border-radius: .9rem;
    background: #fff;
}

.product-delivery-editor h3,
.product-promotion-editor h3 {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: 0 0 .35rem;
    color: var(--gray-900, #211a2b);
    font-size: 1rem;
}

.product-delivery-editor h3 i,
.product-promotion-editor h3 i {
    color: var(--primary, #6d28d9);
}

.delivery-option-choices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
    gap: .5rem;
    margin: .75rem 0;
}

.delivery-option-choice {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 2.75rem;
    padding: .55rem .7rem;
    border: 1px solid var(--gray-200, #e7e3ed);
    border-radius: .65rem;
    background: var(--gray-50, #faf9fc);
    cursor: pointer;
}

.delivery-option-choice input {
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
    accent-color: var(--primary, #6d28d9);
}

.product-delivery-editor textarea {
    width: 100%;
    min-height: 4rem;
    margin-top: .35rem;
    resize: vertical;
}

.product-promotion-editor .form-help {
    margin: .35rem 0 .75rem;
}

@media (max-width: 520px) {
    .product-delivery-editor,
    .product-promotion-editor {
        padding: .8rem;
    }

    .delivery-option-choices {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .dashboard-content {
        padding: 0.75rem;
    }

    .stat-card {
        padding: 1rem;
        gap: 0.75rem;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
        flex: 0 0 48px;
    }

    .stat-info h3 {
        font-size: 1.35rem;
    }

    .card-header {
        padding: 1rem;
    }

    .quick-actions {
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .quick-action-btn {
        padding: 0.85rem 0.35rem;
        font-size: 0.78rem;
    }
}

.surface-login-form {
    display: grid;
    gap: .75rem;
    width: min(100%, 24rem);
    margin: 1.25rem auto;
    text-align: left;
}

.surface-login-form label {
    margin-bottom: -.45rem;
    color: var(--gray-700);
    font-size: .84rem;
    font-weight: 600;
}

.surface-login-form input {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
}

.surface-login-form .surface-consent {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin: 0;
    color: var(--gray-600);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.45;
}

.surface-login-form .surface-consent input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin-top: .12rem;
    padding: 0;
}

.surface-login-form .surface-consent a {
    color: var(--primary);
    font-weight: 600;
}

.surface-login-form .btn {
    width: min(100%, 12rem);
    height: 2.5rem;
    min-height: 0;
    justify-self: center;
    justify-content: center;
    padding: 0 1.25rem;
    font-size: .9rem;
}

.surface-login-error {
    color: var(--danger);
    font-size: .85rem;
}

.surface-auth-modes {
    display: flex;
    justify-content: center;
    gap: .35rem;
    width: min(100%, 24rem);
    margin: 1.25rem auto 0;
    padding: .25rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--gray-100);
}

.surface-auth-modes button {
    flex: 1;
    min-height: 2.5rem;
    padding: .4rem .75rem;
    border: 0;
    border-radius: calc(var(--radius) - 2px);
    background: transparent;
    color: var(--gray-600);
    font: inherit;
    font-size: .88rem;
    font-weight: 600;
}

.surface-auth-modes button.active {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 1px 4px rgb(15 23 42 / 12%);
}

.surface-auth-status {
    width: min(100%, 30rem);
    margin: 1rem auto 0 !important;
    padding: .8rem 1rem;
    border: 1px solid color-mix(in srgb, var(--success) 24%, transparent);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--success) 7%, white);
    color: var(--success) !important;
    font-size: .88rem;
    line-height: 1.5;
    text-align: left;
}

.surface-login-form small {
    color: var(--gray-500);
    font-size: .8rem;
    line-height: 1.5;
    text-align: left;
}

.surface-return-link {
    display: inline-flex;
    align-items: center;
    justify-self: center;
    margin-top: .25rem;
    height: 2.5rem;
    padding: 0 .9rem;
    border: 1px solid color-mix(in srgb, var(--primary) 24%, transparent);
    border-radius: var(--radius);
    color: var(--primary);
    font-size: .9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.surface-return-link:hover {
    background: color-mix(in srgb, var(--primary) 8%, transparent);
    border-color: color-mix(in srgb, var(--primary) 42%, transparent);
}

.empty-page {
    padding: 3rem 1.5rem;
    text-align: center;
    color: var(--gray-500);
}

.empty-page i {
    display: block;
    margin-bottom: .75rem;
    color: var(--primary);
    font-size: 2rem;
}

.empty-page h3 {
    margin-bottom: .35rem;
    color: var(--gray-800);
}

.empty-page p {
    max-width: 42rem;
    margin: 0 auto;
}

.hidden,
[hidden] {
    display: none !important;
}

.shop-onboarding-card {
    margin-bottom: 1.25rem;
}

.shop-onboarding-card > .card-header {
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
}

.shop-onboarding-card > .card-header h2 {
    margin-right: auto;
}

.shop-onboarding-card > .card-body {
    display: grid;
    gap: 1rem;
}

.shop-onboarding-message {
    margin: 0;
    color: var(--gray-600);
    line-height: 1.55;
}

.shop-onboarding-message.is-error,
.shop-onboarding-form-message {
    color: var(--danger);
}

.shop-onboarding-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.shop-onboarding-full-width {
    grid-column: 1 / -1;
}

.shop-onboarding-grid .form-group {
    margin: 0;
}

.shop-onboarding-grid .form-help {
    display: block;
    margin-top: .4rem;
    color: var(--gray-500);
    font-size: .82rem;
}

.optional-label {
    color: var(--gray-500);
    font-size: .82em;
    font-weight: 400;
}

.shop-onboarding-form-message {
    margin: 0;
    line-height: 1.5;
}

.shop-onboarding-form .btn-primary {
    justify-content: center;
    width: fit-content;
}

.shop-verification-panel {
    padding: clamp(1rem, 3vw, 1.5rem);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--gray-50);
}

.shop-verification-heading {
    margin-bottom: 1.25rem;
}

.shop-verification-heading h3 {
    margin: 0 0 .45rem;
    color: var(--gray-800);
    font-size: 1.1rem;
}

.shop-verification-heading h3 i {
    margin-right: .4rem;
    color: var(--primary);
}

.shop-verification-heading p {
    max-width: 58rem;
    margin: 0;
    color: var(--gray-600);
    font-size: .9rem;
    line-height: 1.55;
}

.shop-verification-panel input[type="file"] {
    max-width: 100%;
    padding: .6rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    background: var(--white);
}

.shop-document-consent {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin: 1rem 0;
    color: var(--gray-700);
    font-size: .87rem;
    line-height: 1.5;
}

.shop-document-consent input {
    flex: 0 0 auto;
    margin-top: .2rem;
}

.shop-verification-panel .btn-primary {
    justify-content: center;
    width: fit-content;
}

@media (max-width: 640px) {
    .shop-onboarding-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .shop-onboarding-full-width {
        grid-column: auto;
    }

    .shop-onboarding-form .btn-primary,
    .shop-verification-panel .btn-primary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .products-card {
        margin-bottom: 4.5rem;
    }

    .products-card .products-list {
        padding-bottom: 1.5rem;
    }
}

.seller-messages-layout {
    display: grid;
    grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 14px;
    background: #fff;
}

.seller-message-inbox {
    min-width: 0;
    border-right: 1px solid var(--border-color, #e5e7eb);
    background: #fbfafc;
}

.seller-message-inbox-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color, #e5e7eb);
}

.seller-message-inbox-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.seller-message-inbox-heading > span {
    display: grid;
    place-items: center;
    min-width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: #eee6fa;
    color: #55349a;
    font-size: .75rem;
    font-weight: 700;
}

.seller-message-conversation-list {
    display: grid;
    align-content: start;
    max-height: 520px;
    overflow-y: auto;
}

.seller-message-conversation {
    display: grid;
    gap: .25rem;
    width: 100%;
    padding: .9rem 1rem;
    border: 0;
    border-bottom: 1px solid #efedf2;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.seller-message-conversation:hover,
.seller-message-conversation.is-active {
    background: #f1ebfb;
}

.seller-message-conversation:focus-visible {
    outline: 2px solid #6a37be;
    outline-offset: -2px;
}

.seller-message-conversation strong {
    overflow: hidden;
    color: var(--text-primary, #23212a);
    font-size: .86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.seller-message-conversation span,
.seller-message-conversation small {
    color: var(--text-secondary, #6e6b75);
    font-size: .74rem;
}

.seller-message-thread {
    display: flex;
    min-width: 0;
    min-height: 0;
    flex-direction: column;
    padding: 1rem;
}

.seller-message-empty,
.seller-message-list-empty {
    display: grid;
    justify-items: center;
    gap: .55rem;
    padding: 2.25rem 1rem;
    color: var(--text-secondary, #6e6b75);
    text-align: center;
}

.seller-message-empty > i,
.seller-message-list-empty > i {
    color: #7441c2;
    font-size: 1.6rem;
}

.seller-message-empty strong,
.seller-message-list-empty strong {
    color: var(--text-primary, #23212a);
}

.seller-message-empty span,
.seller-message-list-empty span {
    max-width: 260px;
    font-size: .82rem;
    line-height: 1.5;
}

.seller-message-log {
    display: grid;
    align-content: start;
    gap: .7rem;
    flex: 1 1 auto;
    min-height: 200px;
    max-height: 360px;
    overflow-y: auto;
    padding: .25rem;
    overscroll-behavior: contain;
}

.seller-message-bubble {
    justify-self: start;
    width: min(90%, 560px);
    padding: .7rem .85rem;
    border: 1px solid #e5e1eb;
    border-radius: 13px 13px 13px 4px;
    background: #f7f6f9;
}

.seller-message-bubble.is-mine {
    justify-self: end;
    border-color: #dfd2f5;
    border-radius: 13px 13px 4px 13px;
    background: #f4effb;
}

.seller-message-bubble small {
    display: block;
    margin-bottom: .35rem;
    color: var(--text-secondary, #6e6b75);
    font-size: .69rem;
}

.seller-message-bubble p {
    margin: 0;
    color: var(--text-primary, #23212a);
    line-height: 1.5;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.seller-message-no-replies {
    color: var(--text-secondary, #6e6b75);
}

.seller-message-reply {
    display: grid;
    gap: .5rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid #efedf2;
}

.seller-message-reply label {
    font-weight: 650;
}

.seller-message-reply textarea {
    width: 100%;
    min-height: 82px;
    padding: .7rem;
    border: 1px solid #d9d6df;
    border-radius: 9px;
    font: inherit;
    resize: vertical;
}

.seller-message-reply textarea:focus-visible {
    border-color: #7441c2;
    outline: 3px solid rgb(116 65 194 / 16%);
}

.seller-message-reply > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
}

.seller-message-reply > div > span {
    color: var(--text-secondary, #6e6b75);
    font-size: .75rem;
}

.seller-message-feedback {
    margin: 0;
    color: #286947;
    font-size: .8rem;
}

.seller-message-feedback.is-error {
    color: #a52534;
}

.product-moderation-notice {
    margin: 0 1rem 1rem;
    padding: .8rem .9rem;
    border: 1px solid #e6d8a5;
    border-radius: 9px;
    background: #fff9e8;
    color: #604a12;
    font-size: .86rem;
    line-height: 1.5;
}

.product-moderation-notice.is-rejected {
    border-color: #e8b9bf;
    background: #fff3f4;
    color: #842a35;
}

.seller-moderation-list {
    display: grid;
    gap: .65rem;
}

.seller-moderation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .5rem .8rem;
    padding: .8rem;
    border: 1px solid #efedf2;
    border-radius: 10px;
}

.seller-moderation-row > div {
    display: grid;
    gap: .25rem;
}

.seller-moderation-row small {
    color: var(--text-secondary, #6e6b75);
}

.seller-moderation-row p {
    margin: .2rem 0 0;
    color: #7b2934;
    overflow-wrap: anywhere;
}

.seller-moderation-row .btn {
    grid-column: 1 / -1;
    justify-self: start;
}

@media (max-width: 720px) {
    .seller-messages-layout {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .seller-message-inbox {
        border-right: 0;
        border-bottom: 1px solid var(--border-color, #e5e7eb);
    }

    .seller-message-conversation-list {
        max-height: 230px;
    }

    .seller-message-thread {
        min-height: 360px;
        padding: .75rem;
    }

    .seller-message-reply > div {
        align-items: stretch;
        flex-direction: column;
    }

    .seller-message-reply .btn {
        width: 100%;
    }

    .seller-moderation-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .seller-moderation-row .status-badge,
    .seller-moderation-row .btn {
        justify-self: start;
    }
}

/* Keep every product field inside the add-product card, even when other page
   styles or narrow viewports impose intrinsic minimum sizes on form controls. */
#addProductModal,
#addProductModal * {
    box-sizing: border-box;
}

#addProductModal .modal-content,
#addProductModal #addProductForm,
#addProductModal .form-scroll-region,
#addProductModal .form-grid,
#addProductModal .form-group {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

#addProductModal .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

#addProductModal .form-group input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#addProductModal .form-group select,
#addProductModal .form-group textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    #addProductModal .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
