:root {
    --theme-primary-color: #dc3545;
    --theme-secondary-color: #6c757d;
    --theme-accent-color: #ffc107;
    --theme-background-color: #ffffff;
    --theme-text-color: #212529;
    --theme-link-color: #dc3545;
    --theme-font-family: 'Almarai', sans-serif;
    --theme-font-size-base: 16px;
    --theme-button-radius: 25px;
    --theme-card-radius: 15px;
    --theme-shadow-intensity: 0 2px 10px rgba(0, 0, 0, 0.1);

    --admin-bg: #f8f9fa;
    --admin-surface: #ffffff;
    --admin-border: #eceff3;
    --admin-text-dark: #111827;
    --admin-text-muted: #6b7280;
    --admin-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
    --admin-radius: 18px;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

a {
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: none;
}

.fas,
.far,
.fab,
[data-lucide] {
    transition: all 0.3s ease;
}

[data-lucide] {
    width: 20px;
    height: 20px;
}

.img-fluid {
    border-radius: 10px;
}

.img-thumbnail {
    padding: 0.25rem;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 0.75rem;
    max-width: 100%;
    height: auto;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--theme-primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Buttons */
.btn,
.bttn {
    transition: all 0.3s ease;
    font-weight: 600;
}

.btn {
    border-radius: 25px;
    padding: 10px 20px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bttn {
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary,
.btn-success,
.bttn_primary {
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    border: none;
    color: #fff;
}

.btn-primary:hover,
.btn-success:hover,
.bttn_primary:hover {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%,
        color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%
    );
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
}

.bttn_border {
    background: transparent;
    border: 2px solid var(--theme-primary-color);
    color: var(--theme-primary-color);
}

.bttn_border:hover {
    background: var(--theme-primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
}

.btn-outline-primary { color: #dc3545; border-color: #dc3545; }
.btn-outline-primary:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }

.btn-outline-warning { color: #ffc107; border-color: #ffc107; }
.btn-outline-warning:hover { color: #000; background-color: #ffc107; border-color: #ffc107; }

.btn-outline-info { color: #17a2b8; border-color: #17a2b8; }
.btn-outline-info:hover { color: #fff; background-color: #17a2b8; border-color: #17a2b8; }

.btn-outline-success { color: #198754; border-color: #198754; }
.btn-outline-success:hover { color: #fff; background-color: #198754; border-color: #198754; }

.btn-outline-danger { color: #dc3545; border-color: #dc3545; }
.btn-outline-danger:hover { color: #fff; background-color: #dc3545; border-color: #dc3545; }

.btn-warning {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-warning:hover {
    color: #000;
    background-color: #ffcd39;
    border-color: #ffc720;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.5rem;
}

/* Cards / alerts / forms / tables */
.card {
    border-radius: var(--theme-card-radius);
    box-shadow: var(--theme-shadow-intensity);
    transition: all 0.3s ease;
    border: none;
}

.card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.card-header {
    border-radius: 15px 15px 0 0 !important;
    border-bottom: none;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-text-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--theme-primary-color);
}

.alert {
    border-radius: 10px;
    border: none;
    box-shadow: var(--theme-shadow-intensity);
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--theme-primary-color) 25%, transparent);
}

.form-group,
.inputBox {
    margin-bottom: 20px;
}

.form-label,
.inputBox label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.input {
    position: relative;
    display: flex;
    align-items: center;
}

.input .icon {
    position: absolute;
    right: 15px;
    color: var(--theme-primary-color);
    z-index: 2;
}

.input input,
.input textarea {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.input input:focus,
.input textarea:focus {
    outline: none;
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.input.area textarea {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 16px 12px;
    padding-left: 2.5rem;
}

.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    color: #fff;
    border: none;
    font-weight: 600;
}

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-striped > tbody > tr:nth-of-type(odd) > td {
    background-color: rgba(0, 0, 0, 0.02);
}

.table-bordered > :not(caption) > * {
    border-width: 1px 0;
}

.table-bordered > :not(caption) > * > * {
    border-width: 0 1px;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: none;
    color: var(--theme-primary-color);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    border-color: var(--theme-primary-color);
}

/* Helper classes */
.w-100 { width: 100% !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.justify-content-center { justify-content: center !important; }
.text-center { text-align: center !important; }
.text-muted { color: #6c757d !important; }
.text-danger { color: var(--theme-primary-color) !important; font-size: 14px; margin-top: 5px; }
.bg-light { background-color: #f8f9fa !important; }
.bg-info { background-color: var(--theme-primary-color) !important; }
.bg-secondary { background-color: #6c757d !important; }
.bg-dark { background-color: #343a40 !important; }

.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
}

.btn-group {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
}

.btn-group > .btn {
    position: relative;
    flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child) {
    margin-right: -1px;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-group > .btn:not(:last-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* Upload / media */
.imageUpload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed var(--theme-primary-color);
    border-radius: var(--theme-card-radius);
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.imageUpload:hover {
    background: #fff5f5;
    border-color: color-mix(in srgb, var(--theme-primary-color) 80%, black);
}

.imageUpload i {
    font-size: 48px;
    color: var(--theme-primary-color);
    margin-bottom: 15px;
}

.imageUpload span {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-text-color);
    margin-bottom: 10px;
}

.imageUpload p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.mediaView {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-intensity);
}

.media img,
.media video {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.delete-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: var(--theme-primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    background: color-mix(in srgb, var(--theme-primary-color) 90%, black);
    transform: scale(1.1);
}

/* Generic admin area */
.adminPage {
    padding: 20px 0;
    background: var(--admin-bg);
    min-height: 100vh;
}

.adminBody {
    padding: 20px;
}

.adminPage .card {
    border-radius: 15px;
    box-shadow: var(--theme-shadow-intensity);
    border: none;
    margin-bottom: 20px;
}

.adminPage .card-body {
    padding: 30px;
}

.sidebar {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 20px;
}

.statisticsCard {
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.statisticsCard:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.title h3 {
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: bold;
}

/* Shared product-like chips inside orders */
.order-products,
.products-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.products-list {
    flex-direction: column;
    gap: 12px;
}

.product-item,
.product-detail-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 4px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 120px;
    position: relative;
    transition: box-shadow 0.2s;
}

.product-detail-item {
    flex-direction: column;
    align-items: stretch;
    border: 1px solid #eee;
    background: #fff;
    margin-bottom: 8px;
}

.product-item:hover,
.product-detail-item:hover {
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.10);
}

.product-badge {
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    color: #fff;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 13px;
    margin-right: 4px;
    margin-left: 4px;
    font-weight: 600;
}

.product-item .text-info,
.product-detail-item .text-info {
    font-size: 12px;
    margin-top: 2px;
    color: #17a2b8 !important;
    display: block;
}

.product-detail-item .badge {
    font-size: 14px;
    padding: 6px 14px;
    border-radius: 16px;
}

/* Store product cards */
.productCard.modern-card {
    background: var(--theme-background-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 400px;
}

.productCard.modern-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--theme-primary-color) 15%, transparent);
    border-color: var(--theme-primary-color);
}

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 10;
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    color: #fff;
    border-radius: 12px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
    font-weight: 700;
}

.discount-badge .discount-percent {
    font-size: 18px;
    line-height: 1;
    margin-bottom: 2px;
}

.discount-badge .discount-label {
    font-size: 10px;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.productCard.modern-card .imgView {
    position: relative;
    overflow: hidden;
    background: #f8f9fa;
    height: 300px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.productCard.modern-card .imgView a {
    width: 100%;
    height: 300px;
}

.productCard.modern-card .imgView img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    transition: transform 0.4s ease;
    display: block;
}

.productCard.modern-card:hover .imgView img {
    transform: scale(1.08);
}

.offer-overlay {
    position: absolute;
    top: 12px;
    right: 12px;
    background: color-mix(in srgb, var(--theme-primary-color) 95%, transparent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 5;
    backdrop-filter: blur(4px);
}

.offer-overlay i {
    font-size: 14px;
}

.productCard.modern-card .content {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-badge {
    display: inline-block;
    background: color-mix(in srgb, var(--theme-primary-color) 10%, white);
    color: var(--theme-primary-color);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    align-self: flex-start;
}

.productCard.modern-card .product-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--theme-text-color);
    min-height: 48px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.productCard.modern-card .product-title a {
    color: var(--theme-text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.productCard.modern-card .product-title a:hover {
    color: var(--theme-primary-color);
}

.price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.price-wrapper {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--theme-primary-color);
}

.old-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    font-weight: 500;
}

.save-amount {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #28a745;
    font-size: 13px;
    font-weight: 600;
}

.save-amount i {
    font-size: 14px;
}

.productCard.modern-card .buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-top: auto;
    align-items: stretch;
}

.productCard.modern-card .btn-view {
    flex: 1;
    background: linear-gradient(
        135deg,
        var(--theme-primary-color) 0%,
        color-mix(in srgb, var(--theme-primary-color) 80%, black) 100%
    );
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
    text-decoration: none;
    white-space: nowrap;
    min-width: 0;
}

.productCard.modern-card .btn-view:hover {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--theme-primary-color) 90%, black) 0%,
        color-mix(in srgb, var(--theme-primary-color) 70%, black) 100%
    );
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--theme-primary-color) 30%, transparent);
    color: #fff;
}

.productCard.modern-card .btn-cart {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--theme-primary-color);
    transition: all 0.3s;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.productCard.modern-card .btn-cart:hover {
    background: var(--theme-primary-color);
    color: #fff;
    border-color: var(--theme-primary-color);
    transform: scale(1.05);
}

.productCard.modern-card .btn-cart i {
    font-size: 18px;
}

/* Product page swipers */
.productView .images {
    position: relative;
    margin-bottom: 20px;
}

.productView .mainSwiper {
    width: 100%;
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--theme-shadow-intensity);
    background: #fff;
}

.productView .mainSwiper .swiper-slide,
.productView .mainSwiper .imgView,
.productView .thumbswiper .imgView,
.productView .thumbswiper .video-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.productView .mainSwiper .imgView,
.productView .thumbswiper .imgView,
.productView .thumbswiper .video-thumbnail {
    width: 100%;
    height: 100%;
}

.productView .mainSwiper .imgView img,
.productView .mainSwiper .imgView video {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 15px;
}

.productView .thumbswiper {
    width: 100%;
    height: 100px;
    margin-top: 15px;
}

.productView .thumbswiper .swiper-slide {
    width: auto;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
}

.productView .thumbswiper .swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--theme-primary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--theme-primary-color) 20%, transparent);
}

.productView .thumbswiper .imgView img,
.productView .thumbswiper .video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 10px;
}

/* Footer */
.footer {
    background: color-mix(in srgb, var(--theme-primary-color) 85%, black);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    border-top: 3px solid var(--theme-primary-color);
}

.footer .container {
    max-width: 1200px;
}

.footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer .brand-name {
    color: #fff !important;
    font-weight: 800;
    font-size: 28px;
    letter-spacing: 0.5px;
}

.footer .item {
    margin-bottom: 15px;
}

.footer .messanger {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 25px;
    background: color-mix(in srgb, #fff 15%, transparent);
    border: 2px solid color-mix(in srgb, #fff 30%, transparent);
    transition: all 0.3s ease;
}

.footer .messanger:hover {
    background: #fff;
    color: var(--theme-primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px color-mix(in srgb, #fff 30%, transparent);
}

.footer .messanger i {
    font-size: 20px;
}

.footer .copyRight {
    text-align: center;
    padding-top: 20px;
    margin-top: 30px;
    border-top: 1px solid color-mix(in srgb, #fff 20%, transparent);
    color: #fff;
    opacity: 0.8;
    font-size: 14px;
}

.footer .copyRight span {
    color: #fff;
}

/* Admin products page */
.admin-products-page {
    padding: 0 !important;
    margin: 0 !important;
    background:
        radial-gradient(circle at top right, rgba(220, 53, 69, 0.05), transparent 24%),
        radial-gradient(circle at bottom left, rgba(220, 53, 69, 0.03), transparent 22%),
        #f8f9fa;
    min-height: calc(100vh - 40px);
}

.admin-products-page .container,
.admin-products-page .adminBody {
    width: 100%;
    max-width: 100%;
    padding: 0 !important;
    margin: 0 !important;
}

.products-page-wrap {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.products-page-header,
.products-stat-box,
.products-filters-box,
.products-results-head,
.products-table-shell,
.products-empty-state,
.products-mobile-card {
    background: #fff;
    border: 1px solid var(--admin-border);
    border-radius: 20px;
    box-shadow: var(--admin-shadow);
}

.products-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
}

.products-page-header__content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-page-kicker {
    font-size: 12px;
    font-weight: 800;
    color: var(--theme-primary-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.products-page-title {
    margin: 0;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 900;
    color: #1f2937;
}

.products-page-subtitle {
    margin: 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--admin-text-muted);
    max-width: 760px;
}

.products-page-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.products-add-btn {
    min-height: 50px;
    padding: 12px 20px;
    border-radius: 14px;
    white-space: nowrap;
}

.products-topbar-grid {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.products-stat-box {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.products-stat-box__icon {
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.08);
    border: 1px solid rgba(220, 53, 69, 0.1);
    flex-shrink: 0;
}

.products-stat-box__icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.products-stat-box__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.products-stat-box__label {
    font-size: 13px;
    font-weight: 700;
    color: var(--admin-text-muted);
}

.products-stat-box__count {
    font-size: 30px;
    line-height: 1;
    font-weight: 900;
    color: var(--admin-text-dark);
}

.products-stat-box__hint {
    font-size: 12px;
    color: #9ca3af;
}

.products-filters-box {
    padding: 20px;
}

.products-filter-form,
.products-filter-fields {
    width: 100%;
}

.products-filter-fields {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 240px) auto;
    gap: 16px;
    align-items: end;
}

.products-filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-filter-field label {
    font-size: 13px;
    font-weight: 800;
    color: #374151;
    margin: 0;
}

.products-filter-input {
    position: relative;
    display: flex;
    align-items: center;
}

.products-filter-input i {
    position: absolute;
    right: 16px;
    color: var(--theme-primary-color);
    font-size: 14px;
    z-index: 2;
}

.products-filter-input input,
.products-filter-input select {
    width: 100%;
    height: 52px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    padding: 12px 44px 12px 14px;
    transition: all 0.25s ease;
    color: var(--admin-text-dark);
    font-size: 14px;
    box-shadow: none;
}

.products-filter-input input:focus,
.products-filter-input select:focus {
    outline: none;
    border-color: rgba(220, 53, 69, 0.5);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.10);
}

.products-filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.products-filter-btn,
.products-reset-btn {
    min-height: 52px;
    border-radius: 16px;
    padding: 12px 18px;
    justify-content: center;
}

.products-results-head {
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.products-results-head__title-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.products-results-head__title {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    color: var(--admin-text-dark);
}

.products-results-head__meta {
    margin: 0;
    font-size: 13px;
    color: var(--admin-text-muted);
}

.products-results-head__count {
    min-width: 92px;
    height: 92px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.10), rgba(220, 53, 69, 0.03));
    color: var(--theme-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 1px solid rgba(220, 53, 69, 0.10);
    flex-shrink: 0;
}

.products-results-head__count span {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.products-results-head__count small {
    font-size: 12px;
    font-weight: 700;
    color: var(--admin-text-muted);
    margin-top: 4px;
}

.products-desktop-view {
    display: block !important;
}

.products-mobile-list {
    display: none !important;
    flex-direction: column;
    gap: 14px;
}

.products-table-shell {
    padding: 8px;
    overflow: hidden;
}

.products-table-responsive {
    overflow-x: auto;
}

.products-table {
    width: 100%;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    background: transparent;
    min-width: 1100px;
}

.products-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 18px 16px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    border: none;
}

.products-table tbody td {
    padding: 16px;
    vertical-align: middle;
    border-color: #eef2f7;
    background: #fff;
}

.products-table tbody tr {
    transition: all 0.25s ease;
}

.products-table tbody tr:hover td {
    background: #fff8f8;
}

.products-thumb-link {
    display: inline-flex;
    text-decoration: none;
}

.products-thumb {
    width: 84px;
    height: 84px;
    border-radius: 18px;
    object-fit: cover;
    border: 1px solid #eceff3;
    background: #fff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.products-thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    font-size: 22px;
    background: #f8fafc;
}

.products-name-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 220px;
}

.products-name {
    font-size: 16px;
    font-weight: 800;
    color: var(--admin-text-dark);
    line-height: 1.5;
}

.products-desc {
    font-size: 12px;
    line-height: 1.8;
    color: var(--admin-text-muted);
}

.products-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.products-chip--category {
    background: rgba(220, 53, 69, 0.10);
    color: var(--theme-primary-color);
}

.products-chip--muted {
    background: #eef2f7;
    color: #64748b;
}

.products-price {
    font-size: 18px;
    font-weight: 900;
    color: var(--theme-primary-color);
    white-space: nowrap;
}

.products-order-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    height: 38px;
    padding: 0 12px;
    border-radius: 12px;
    background: #111827;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
    flex-shrink: 0;
}

.products-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.products-actions .btn,
.products-actions form .btn {
    margin: 0;
    min-width: 40px;
    min-height: 40px;
    width: auto;
    border-radius: 12px;
    box-shadow: none;
}

.products-actions .btn-warning {
    padding: 8px 14px;
    min-width: auto;
    min-height: 40px;
    font-weight: 700;
    border-radius: 12px;
}

.products-actions .d-inline-flex {
    display: inline-flex !important;
}

.products-pagination-wrap {
    padding-top: 4px;
    display: flex;
    justify-content: center;
}

.products-pagination-wrap .pagination {
    margin-bottom: 0;
    gap: 4px;
    flex-wrap: wrap;
}

.products-empty-state {
    padding: 52px 24px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 14px;
}

.products-empty-state__icon {
    width: 90px;
    height: 90px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(220, 53, 69, 0.08);
    color: var(--theme-primary-color);
    font-size: 34px;
}

.products-empty-state h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: var(--admin-text-dark);
}

.products-empty-state p {
    margin: 0;
    max-width: 560px;
    color: var(--admin-text-muted);
    line-height: 1.9;
    font-size: 14px;
}

/* Mobile cards */
.products-mobile-card {
    padding: 14px;
}

.products-mobile-card__top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.products-mobile-card__image-link {
    flex-shrink: 0;
    text-decoration: none;
}

.products-mobile-card__image {
    width: 82px;
    height: 82px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid #eceff3;
    background: #fff;
}

.products-mobile-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    background: #f8fafc;
    font-size: 22px;
}

.products-mobile-card__main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.products-mobile-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.products-mobile-card__title {
    font-size: 15px;
    line-height: 1.6;
    color: var(--admin-text-dark);
    font-weight: 900;
}

.products-mobile-card__desc {
    margin: 0;
    font-size: 12px;
    line-height: 1.8;
    color: var(--admin-text-muted);
}

.products-mobile-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.products-mobile-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eef2f7;
}

.products-mobile-card__actions .btn,
.products-mobile-card__actions form .btn {
    min-width: 42px;
    min-height: 42px;
    width: auto;
    margin: 0;
    box-shadow: none;
}

.products-mobile-card__offer-btn {
    padding: 9px 12px !important;
    min-width: auto !important;
}

/* Responsive */
@media (max-width: 1199.98px) {
    .products-topbar-grid {
        grid-template-columns: 1fr;
    }

    .products-stat-box {
        min-height: auto;
    }

    .products-filter-fields {
        grid-template-columns: 1fr 1fr;
    }

    .products-filter-actions {
        grid-column: 1 / -1;
    }
}

@media (max-width: 991.98px) {
    .products-page-header {
        padding: 22px 20px;
        border-radius: 22px;
        flex-direction: column;
        align-items: flex-start;
    }

    .products-page-title {
        font-size: 28px;
    }

    .products-results-head {
        padding: 18px 18px;
    }

    .products-results-head__count {
        min-width: 78px;
        height: 78px;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .card {
        margin-bottom: 20px;
    }

    .btn {
        width: 100%;
        margin-bottom: 10px;
    }

    .productCard.modern-card .product-title {
        font-size: 15px;
        min-height: 40px;
    }

    .current-price {
        font-size: 18px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
        padding: 5px 10px;
    }

    .discount-badge .discount-percent {
        font-size: 16px;
    }

    .productCard.modern-card .buttons {
        flex-direction: row;
    }

    .footer {
        padding: 30px 0 15px;
        margin-top: 40px;
    }

    .footer .brand-name {
        font-size: 24px;
    }

    .footer h6 {
        font-size: 1rem;
        margin-top: 20px;
    }

    .footer .messanger {
        padding: 8px 16px;
        font-size: 14px;
    }

    .productView .mainSwiper {
        height: 400px;
    }

    .productView .thumbswiper {
        height: 80px;
    }
}

@media (max-width: 767.98px) {
    .admin-products-page {
        min-height: auto;
    }

    .admin-products-page .container,
    .admin-products-page .adminBody,
    .products-page-wrap {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .products-page-wrap {
        gap: 14px;
    }

    .products-page-header,
    .products-filters-box,
    .products-results-head,
    .products-stat-box,
    .products-empty-state,
    .products-mobile-card {
        border-radius: 16px;
    }

    .products-page-header {
        padding: 16px 14px;
    }

    .products-page-title {
        font-size: 24px;
    }

    .products-page-subtitle {
        font-size: 13px;
        line-height: 1.8;
    }

    .products-page-header__actions {
        width: 100%;
    }

    .products-add-btn {
        width: 100%;
    }

    .products-stat-box {
        padding: 16px 14px;
    }

    .products-stat-box__icon {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .products-stat-box__icon img {
        width: 30px;
        height: 30px;
    }

    .products-stat-box__count {
        font-size: 26px;
    }

    .products-filters-box {
        padding: 16px 14px;
    }

    .products-filter-fields {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .products-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .products-filter-btn,
    .products-reset-btn {
        width: 100%;
    }

    .products-results-head {
        padding: 16px 14px;
        flex-direction: column;
        align-items: flex-start;
    }

    .products-results-head__count {
        min-width: 100%;
        height: auto;
        padding: 14px;
        border-radius: 14px;
        flex-direction: row;
        justify-content: space-between;
    }

    .products-results-head__count span {
        font-size: 22px;
    }

    .products-desktop-view {
        display: none !important;
    }

    .products-mobile-list {
        display: flex !important;
    }

    .products-pagination-wrap {
        padding-top: 0;
    }
}

@media (min-width: 768px) {
    .products-desktop-view {
        display: block !important;
    }

    .products-mobile-list {
        display: none !important;
    }
}

@media (max-width: 576px) {
    .productView .mainSwiper {
        height: 350px;
    }

    .productView .thumbswiper {
        height: 70px;
    }
}

@media (max-width: 480px) {
    .products-mobile-card {
        padding: 12px;
    }

    .products-mobile-card__top {
        gap: 10px;
    }

    .products-mobile-card__image {
        width: 74px;
        height: 74px;
        border-radius: 14px;
    }

    .products-mobile-card__title {
        font-size: 14px;
    }

    .products-mobile-card__desc {
        font-size: 11px;
    }

    .products-price {
        font-size: 16px;
    }

    .products-order-badge {
        min-width: 50px;
        height: 34px;
        font-size: 12px;
    }

    .products-mobile-card__actions {
        gap: 6px;
    }

    .products-mobile-card__actions .btn,
    .products-mobile-card__actions form .btn {
        min-width: 40px;
        min-height: 40px;
    }
}