/* ==========================================================================
   DEALSOFCA premium layer
   Loaded after every other stylesheet. Keeps the existing look (colours,
   layout, typography) and polishes the surface: controls, loaders, dialogs,
   tables, images and responsive behaviour.
   No CSS custom properties on purpose (the legacy bundling minifier).
   Brand palette used below: #131921 / #232f3e (dark), #0079c1 / #00b2ff (blue),
   #046903 / #009b70 (green), #f5f5f5 page, #dee2ec / #e5e9f0 borders.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base polish
   -------------------------------------------------------------------------- */
html {
    -webkit-text-size-adjust: 100%;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

    ::-webkit-scrollbar-thumb:hover {
        background: #9a9a9a;
    }

:focus-visible {
    outline: 2px solid rgba(0, 121, 193, .55);
    outline-offset: 2px;
}

a {
    transition: color .18s ease;
}

img {
    max-width: 100%;
}

hr {
    border-top-color: #e5e9f0;
    opacity: 1;
}

/* Skeleton blocks that already exist in the partials */
.load-animate {
    border-radius: 8px;
    background: #e9edf2;
    background-image: linear-gradient(90deg, #e9edf2 0%, #f6f7f9 40%, #e9edf2 80%);
    background-size: 200% 100%;
    animation: pm-shimmer 1.3s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */
.btn {
    border-radius: 6px;
    font-weight: 500;
    letter-spacing: .01em;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease, border-color .18s ease;
}

    .btn:active {
        transform: translateY(1px);
    }

    .btn:not(.btn-link):not(:disabled):hover {
        box-shadow: 0 4px 12px rgba(16, 24, 40, .14);
    }

    .btn:focus,
    .btn:focus-visible {
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .22);
    }

.btn-sm {
    border-radius: 5px;
}

.btn-primary:hover,
.btn-primary:focus {
    box-shadow: 0 4px 12px rgba(13, 110, 253, .28);
}

.btn-danger:hover,
.btn-danger:focus {
    box-shadow: 0 4px 12px rgba(220, 53, 69, .28);
}

.btn-success:hover,
.btn-success:focus {
    box-shadow: 0 4px 12px rgba(25, 135, 84, .28);
}

.btn-app-default,
.btn-accept,
.web-p-btn-add-to-cart,
.web-p-btn-add-to-box,
.btn-add-new-ctg,
.btn-download,
.age-v-accept,
.age-v-close {
    border-radius: 6px;
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .12s ease;
}

    .btn-app-default:hover,
    .btn-accept:hover,
    .web-p-btn-add-to-cart:hover,
    .web-p-btn-add-to-box:hover,
    .btn-add-new-ctg:hover {
        box-shadow: 0 6px 16px rgba(16, 24, 40, .18);
        transform: translateY(-1px);
    }

    .btn-accept:active,
    .web-p-btn-add-to-cart:active,
    .web-p-btn-add-to-box:active {
        transform: translateY(0);
    }

.p-minus-btn,
.p-plus-btn {
    transition: background-color .18s ease, color .18s ease;
}

/* --------------------------------------------------------------------------
   3. Form controls
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
    border-radius: 6px;
    border-color: #d9dee6;
    color: #232f3e;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #0079c1;
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
    }

    .form-control::placeholder {
        color: #98a2b3;
        opacity: 1;
    }

    .form-control:disabled,
    .form-control[readonly] {
        background-color: #f3f5f8;
        color: #6b7280;
    }

.form-control-sm,
.form-select-sm {
    border-radius: 5px;
}

.form-label,
.col-form-label {
    font-weight: 500;
    color: #2f3b4a;
}

.form-check-input {
    border-color: #c4cbd6;
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

    .form-check-input:checked {
        background-color: #0079c1;
        border-color: #0079c1;
    }

    .form-check-input:focus {
        border-color: #0079c1;
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
    }

.input-group-text {
    border-radius: 6px;
    background: #f1f4f8;
    border-color: #d9dee6;
    color: #4b5563;
}

textarea.form-control {
    min-height: 80px;
}

/* jQuery validate */
input.error,
select.error,
textarea.error {
    border: 1px solid #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .12);
}

label.error {
    font-size: 12px;
    color: #dc3545;
    font-weight: 500;
    margin-top: 3px;
}

/* Chosen select */
.chosen-container-single .chosen-single {
    border-radius: 6px;
    border-color: #d9dee6;
    background: #fff;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.chosen-container-active .chosen-single,
.chosen-container-active.chosen-with-drop .chosen-single {
    border-color: #0079c1;
    box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
    background: #fff;
}

.chosen-container .chosen-drop {
    border-color: #d9dee6;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 12px 28px rgba(16, 24, 40, .14);
}

.chosen-container .chosen-results li.highlighted {
    background: #0079c1;
    background-image: none;
}

.chosen-container-multi .chosen-choices {
    border-radius: 6px;
    border-color: #d9dee6;
    background-image: none;
}

    .chosen-container-multi .chosen-choices li.search-choice {
        border-radius: 12px;
        background: #eef4fb;
        border-color: #cfe0f2;
        color: #1f3d5c;
        background-image: none;
        box-shadow: none;
    }

/* Date pickers */
.daterangepicker,
.datepicker.dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(16, 24, 40, .18);
    font-family: inherit;
}

.daterangepicker td.active,
.daterangepicker td.active:hover,
.datepicker table tr td.active,
.datepicker table tr td.active:hover,
.datepicker table tr td.active.active {
    background: #0079c1 !important;
    background-image: none !important;
    border-radius: 6px;
}

.daterangepicker td.available:hover,
.datepicker table tr td.day:hover {
    background: #eef4fb;
    border-radius: 6px;
}

/* --------------------------------------------------------------------------
   4. Surfaces: cards, panels, headers
   -------------------------------------------------------------------------- */
.web-product-card {
    border-radius: 8px;
    border: 1px solid #eef0f3;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .04);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .web-product-card:hover {
        border-color: #d1d1d1;
        box-shadow: 0 10px 26px rgba(16, 24, 40, .10);
        transform: translateY(-2px);
    }

.product-box-loading,
.category-box-loading,
.master-ctg-box-loading {
    border-radius: 8px;
    border-color: #e9edf2;
}

.ctg-box,
.master-ctg-box {
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

    .ctg-box:hover,
    .master-ctg-box:hover {
        box-shadow: 0 8px 20px rgba(16, 24, 40, .10);
        transform: translateY(-2px);
    }

.left-menu-panel {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.page-header {
    border-radius: 8px;
    font-weight: 600;
    letter-spacing: .01em;
    padding: 8px 12px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
}

.box,
.admin-page .box {
    border-radius: 8px;
}

.shopping-summary-box {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .06);
}

.section-title {
    border-radius: 20px;
    padding: 6px 14px;
}

.search-view-panel {
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .25);
    overflow: hidden;
}

.search-result {
    transition: background-color .15s ease;
}

    .search-result:hover {
        background: #f3f6fa;
    }

.site-footer {
    border-top-color: #e1e5ea;
}

.table-header-tex {
    border-radius: 8px;
}

.item-not-found {
    border-radius: 10px;
    background: #fff;
    border: 1px dashed #d9dee6;
}

/* --------------------------------------------------------------------------
   5. Header and navigation
   -------------------------------------------------------------------------- */
.web-nav .nav-link,
.admin-collapse-nav .nav-link {
    border-radius: 6px;
    transition: background-color .18s ease, color .18s ease;
}

    .web-nav .nav-link:hover,
    .admin-collapse-nav .nav-link:hover {
        background: rgba(255, 255, 255, .08);
        color: #fff;
    }

.web-top-rt-btn {
    border-radius: 6px;
    transition: background-color .18s ease, color .18s ease;
}

    .web-top-rt-btn:hover {
        background: rgba(255, 255, 255, .10);
        color: #fff;
    }

.web-search input {
    border-radius: 8px;
    border: 0;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08);
}

    .web-search input:focus {
        box-shadow: 0 0 0 3px rgba(0, 178, 255, .40);
    }

.cart-item-count {
    border-radius: 8px;
    box-shadow: 0 0 0 2px #131921;
}

.corporate-client-btn {
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
}

.toggle-bar-icon {
    transition: transform .18s ease;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.admin-left-menu .menu-item > a,
.admin-left-menu .sub-menu-item > a {
    transition: background-color .15s ease, color .15s ease, padding-left .15s ease;
}

.app-profile-img img {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .25);
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   6. Loader (waitMe) and spinners
   -------------------------------------------------------------------------- */
.waitMe_container .waitMe {
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    border-radius: inherit;
    cursor: progress;
}

    .waitMe_container .waitMe .waitMe_progress img {
        width: 44px;
        height: 44px;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .10));
    }

    .waitMe_container .waitMe .waitMe_text {
        font-size: 13px !important;
        font-weight: 500 !important;
        color: #232f3e !important;
        letter-spacing: .02em;
        margin-top: 10px !important;
    }

    .waitMe_container .waitMe .waitMe_content.horizontal > .waitMe_text {
        margin: 0 0 0 14px !important;
    }

body.waitMe_container .waitMe {
    z-index: 99999;
}

.pm-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(0, 121, 193, .18);
    border-top-color: #0079c1;
    border-radius: 50%;
    animation: pm-spin .8s linear infinite;
    vertical-align: middle;
}

.pm-spinner-lg {
    width: 44px;
    height: 44px;
    border-width: 4px;
}

.pm-spinner-light {
    border-color: rgba(255, 255, 255, .3);
    border-top-color: #fff;
}

.search-loader {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   7. Application splash (shown until the first route renders)
   -------------------------------------------------------------------------- */
.pm-splash {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100000;
    background: #fff;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .4s ease, visibility .4s ease;
}

.pm-splash-hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pm-splash-inner {
    text-align: center;
}

.pm-splash-logo {
    display: block;
    max-width: 200px;
    height: auto;
    margin: 0 auto 22px;
    background: #131921;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(19, 25, 33, .25);
}

.pm-splash-text {
    margin-top: 14px;
    font-size: 13px;
    color: #6b7280;
    letter-spacing: .04em;
}

/* --------------------------------------------------------------------------
   8. Top progress bar (AJAX + route changes)
   -------------------------------------------------------------------------- */
.pm-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 100001;
    pointer-events: none;
    opacity: 0;
    transition: opacity .3s ease;
}

.pm-progress-visible {
    opacity: 1;
}

.pm-progress-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #00b2ff, #0079c1);
    box-shadow: 0 0 8px rgba(0, 178, 255, .7);
    transform: translate3d(-100%, 0, 0);
    transition: transform .25s ease;
}

/* --------------------------------------------------------------------------
   9. Alerts and toasts (SweetAlert2)
   -------------------------------------------------------------------------- */
.swal2-container.swal2-backdrop-show,
.swal2-container.swal2-shown,
.swal2-container.swal2-noanimation {
    background: rgba(15, 23, 42, .55) !important;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}

.swal2-popup.pm-swal {
    border-radius: 14px;
    padding: 1.6rem 1.4rem 1.4rem;
    box-shadow: 0 24px 60px rgba(16, 24, 40, .22);
    font-family: inherit;
}

.pm-swal .swal2-title {
    font-size: 1.3rem;
    color: #232f3e;
    font-weight: 600;
}

.pm-swal .swal2-content,
.pm-swal .swal2-html-container {
    color: #4b5563;
    font-size: .98rem;
    line-height: 1.55;
}

.pm-swal .swal2-actions {
    margin-top: 1.4rem;
}

.pm-swal .swal2-styled {
    border-radius: 8px;
    padding: .55rem 1.4rem;
    font-weight: 600;
    font-size: .95rem;
    transition: box-shadow .18s ease, transform .12s ease, background-color .18s ease;
}

    .pm-swal .swal2-styled.swal2-confirm {
        background-color: #0079c1 !important;
        box-shadow: 0 6px 16px rgba(0, 121, 193, .28);
    }

        .pm-swal .swal2-styled.swal2-confirm:hover {
            background-color: #0b6cab !important;
        }

    .pm-swal .swal2-styled.swal2-cancel {
        background-color: #eef1f5 !important;
        color: #374151 !important;
    }

        .pm-swal .swal2-styled.swal2-cancel:hover {
            background-color: #e2e7ee !important;
        }

    .pm-swal .swal2-styled:focus {
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .25) !important;
    }

.pm-swal .swal2-icon {
    margin-top: 0;
}

.pm-swal .swal2-input,
.pm-swal .swal2-textarea,
.pm-swal .swal2-select {
    border-radius: 8px;
    border-color: #d9dee6;
    box-shadow: none;
    font-size: 1rem;
}

    .pm-swal .swal2-input:focus,
    .pm-swal .swal2-textarea:focus {
        border-color: #0079c1;
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
    }

.swal2-popup.swal2-show {
    animation: pm-pop-in .28s cubic-bezier(.2, .8, .2, 1);
}

/* Toasts (timer notifications in the corner) */
.swal2-popup.swal2-toast.pm-toast {
    padding: .7rem 1rem;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    border-left: 4px solid #0079c1;
    background: #fff;
    width: auto;
    max-width: 380px;
    align-items: center;
}

    .swal2-popup.swal2-toast.pm-toast .swal2-title {
        font-size: .95rem;
        font-weight: 600;
        color: #232f3e;
        margin: 0 .6rem;
        text-align: left;
    }

    .swal2-popup.swal2-toast.pm-toast .swal2-content,
    .swal2-popup.swal2-toast.pm-toast .swal2-html-container {
        font-size: .88rem;
        text-align: left;
    }

    .swal2-popup.swal2-toast.pm-toast .swal2-timer-progress-bar {
        background: rgba(0, 121, 193, .35);
        height: .2em;
    }

    .swal2-popup.swal2-toast.pm-toast:has(.swal2-success) {
        border-left-color: #16a34a;
    }

    .swal2-popup.swal2-toast.pm-toast:has(.swal2-error) {
        border-left-color: #dc2626;
    }

    .swal2-popup.swal2-toast.pm-toast:has(.swal2-warning) {
        border-left-color: #f59e0b;
    }

    .swal2-popup.swal2-toast.pm-toast:has(.swal2-info),
    .swal2-popup.swal2-toast.pm-toast:has(.swal2-question) {
        border-left-color: #0079c1;
    }

.pm-toast-in {
    animation: pm-toast-in .3s cubic-bezier(.2, .8, .2, 1);
}

.pm-toast-out {
    animation: pm-toast-out .25s ease forwards;
}

/* --------------------------------------------------------------------------
   10. Modals, popovers, tooltips
   -------------------------------------------------------------------------- */
.modal-content {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, .28);
    overflow: hidden;
}

.modal-header {
    background: #fff;
    border-bottom: 1px solid #e9edf2;
    padding: .85rem 1.2rem;
    align-items: center;
}

.modal-title {
    font-weight: 600;
    color: #232f3e;
    font-size: 1.1rem;
}

.modal-body {
    padding: 1.1rem 1.2rem;
}

.modal-footer {
    border-top: 1px solid #e9edf2;
    background: #fff;
    padding: .75rem 1.2rem;
    gap: .5rem;
}

.modal .close {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
    border: 0;
    background: #f1f4f8;
    color: #4b5563;
    font-size: 22px;
    line-height: 34px;
    padding: 0;
    margin: 0 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

    .modal .close:hover {
        background: #fde2e2;
        color: #dc2626;
        transform: rotate(90deg);
        cursor: pointer;
    }

.modal-backdrop {
    background: #0f172a;
}

    .modal-backdrop.show {
        opacity: .55;
    }

.modal.fade .modal-dialog {
    transform: translateY(12px) scale(.98);
    transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
}

.modal.show .modal-dialog {
    transform: none;
}

.modal.animate__animated {
    animation-duration: .35s !important;
}

.modal .table-bordered > :not(caption) > * > * {
    border-color: #e5e9f0;
}

.popover.pm-popover {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .18);
    font-family: inherit;
}

    .popover.pm-popover .popover-header {
        background: #fff;
        border-bottom: 1px solid #eef0f3;
        border-radius: 10px 10px 0 0;
        font-weight: 600;
        color: #232f3e;
    }

    .popover.pm-popover .popover-body {
        color: #374151;
    }

.tooltip.pm-tooltip .tooltip-inner {
    background: #232f3e;
    border-radius: 6px;
    font-size: 12px;
    padding: .35rem .6rem;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
}

.tooltip.pm-tooltip.bs-tooltip-top .tooltip-arrow::before,
.tooltip.pm-tooltip.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow::before {
    border-top-color: #232f3e;
}

.tooltip.pm-tooltip.bs-tooltip-bottom .tooltip-arrow::before,
.tooltip.pm-tooltip.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow::before {
    border-bottom-color: #232f3e;
}

.tooltip.pm-tooltip.bs-tooltip-start .tooltip-arrow::before,
.tooltip.pm-tooltip.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow::before {
    border-left-color: #232f3e;
}

.tooltip.pm-tooltip.bs-tooltip-end .tooltip-arrow::before,
.tooltip.pm-tooltip.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow::before {
    border-right-color: #232f3e;
}

/* --------------------------------------------------------------------------
   11. DataTables
   -------------------------------------------------------------------------- */
.dataTables_wrapper.pm-dt {
    display: block;
    overflow: visible;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
}

    .dataTables_wrapper.pm-dt::after {
        content: "";
        display: table;
        clear: both;
    }

.pm-dt-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 8px;
    clear: both;
}

.pm-dt table.dataTable {
    margin-bottom: 4px !important;
}

.pm-dt table.dataTable thead th,
.pm-dt .table thead th {
    background: #f3f5f8;
    color: #4b5563;
    font-weight: 600;
    font-size: 13px;
    border-bottom: 1px solid #e5e9f0 !important;
    white-space: nowrap;
}

.pm-dt table.dataTable thead th:first-child {
    border-top-left-radius: 8px;
}

.pm-dt table.dataTable thead th:last-child {
    border-top-right-radius: 8px;
}

.pm-dt .table td {
    border-color: #eef0f3;
    padding: 7px 10px;
}

.pm-dt .table-adm td {
    padding: 5px 10px !important;
}

.pm-dt .table-bordered > :not(caption) > * > * {
    border-color: #eef0f3;
}

.pm-dt .table-striped tbody tr:nth-of-type(even) {
    background-color: #fafbfc;
}

.pm-dt .table-hover > tbody > tr:hover > td,
.pm-dt .table-hover tbody tr:nth-of-type(odd):hover,
.pm-dt .table-striped tbody tr:nth-of-type(even):hover {
    background: #eef6fd !important;
    transition: background-color .15s ease;
}

.pm-dt tr.row-selected td {
    background: #dbeafe !important;
}

/* Search box */
.pm-dt .dataTables_filter label {
    position: relative;
}

    .pm-dt .dataTables_filter label::before {
        content: "\f002";
        font-family: FontAwesome;
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #98a2b3;
        font-size: 13px;
        pointer-events: none;
    }

.pm-dt .dataTables_filter input {
    border-radius: 8px !important;
    border: 1px solid #d9dee6 !important;
    padding: 6px 12px 6px 32px !important;
    background: #fff;
    font-size: 13px;
    height: 34px;
    transition: box-shadow .18s ease, border-color .18s ease;
}

    .pm-dt .dataTables_filter input:focus {
        border-color: #0079c1 !important;
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
        outline: none;
    }

/* Length select */
.pm-dt .dataTables_length select {
    border-radius: 8px;
    border: 1px solid #d9dee6;
    padding: 6px 26px 6px 10px;
    height: 34px;
    font-size: 13px;
    background-color: #fff;
    color: #232f3e;
}

    .pm-dt .dataTables_length select:focus {
        border-color: #0079c1;
        box-shadow: 0 0 0 3px rgba(0, 121, 193, .15);
        outline: none;
    }

/* Buttons (Add New, Export...) */
.pm-dt .dt-buttons {
    margin-bottom: 6px;
}

.pm-dt button.dt-button,
.pm-dt div.dt-button,
.pm-dt a.dt-button,
.pm-dt input.dt-button {
    border-radius: 8px;
    border: 1px solid #d9dee6;
    background: #fff;
    background-image: none;
    color: #232f3e;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    margin-right: 8px;
    margin-bottom: 4px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .05);
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

    .pm-dt button.dt-button:hover,
    .pm-dt div.dt-button:hover,
    .pm-dt a.dt-button:hover,
    .pm-dt input.dt-button:hover {
        background: #0079c1;
        background-image: none;
        color: #fff;
        border-color: #0079c1;
        box-shadow: 0 4px 12px rgba(0, 121, 193, .28);
    }

/* Info + pagination */
.pm-dt .dataTables_info {
    color: #6b7280;
    font-size: 12.5px;
    padding-top: 8px !important;
}

.pm-dt .dataTables_paginate {
    padding-top: 4px;
}

.pm-dt .pagination {
    margin: 0;
    gap: 3px;
}

    .pm-dt .pagination .page-link {
        border-radius: 6px !important;
        border: 1px solid #e5e9f0;
        color: #374151 !important;
        min-width: 32px;
        text-align: center;
        padding: 4px 8px !important;
        font-size: 13px;
        transition: background-color .15s ease, color .15s ease, border-color .15s ease;
    }

        .pm-dt .pagination .page-link:hover {
            background: #eef4fb;
            border-color: #cfe0f2;
        }

    .pm-dt .pagination .page-item.active .page-link {
        background: #0079c1 !important;
        border-color: #0079c1 !important;
        color: #fff !important;
        box-shadow: 0 4px 10px rgba(0, 121, 193, .3);
    }

    .pm-dt .pagination .page-item.disabled .page-link {
        color: #b0b7c3 !important;
        background: #fafbfc;
    }

/* Processing indicator */
.pm-dt div.dataTables_processing,
div.dataTables_wrapper.pm-dt div.dataTables_processing {
    position: absolute;
    top: 64px !important;
    left: 50%;
    width: auto;
    height: auto;
    margin: 0;
    transform: translateX(-50%);
    padding: 8px 18px 8px 40px !important;
    background: #232f3e !important;
    color: #fff !important;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
    z-index: 11000;
    white-space: nowrap;
}

    .pm-dt div.dataTables_processing::before {
        content: "";
        position: absolute;
        left: 14px;
        top: 50%;
        width: 16px;
        height: 16px;
        margin-top: -8px;
        border: 2px solid rgba(255, 255, 255, .3);
        border-top-color: #fff;
        border-radius: 50%;
        animation: pm-spin .8s linear infinite;
    }

.pm-dt-empty {
    padding: 28px 10px;
    color: #98a2b3;
    text-align: center;
    font-size: 14px;
}

    .pm-dt-empty i {
        font-size: 30px;
        display: block;
        margin-bottom: 8px;
        opacity: .6;
    }

.pm-dt table.dataTable.no-footer {
    border-bottom: 1px solid #eef0f3 !important;
}

.pm-dt .admin-user-tbl-img,
.pm-dt .admin-product-tbl-img {
    border-radius: 6px;
}

.pm-dt .admin-user-tbl-img {
    border-radius: 50%;
}

/* Plain tables outside DataTables */
.pm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* --------------------------------------------------------------------------
   12. Images: shimmer while loading, fade in, placeholder when missing
   -------------------------------------------------------------------------- */
.pm-img.pm-loading {
    background-color: #eef1f5;
    background-image: linear-gradient(90deg, #eef1f5 0%, #f7f8fa 40%, #eef1f5 80%);
    background-size: 200% 100%;
    animation: pm-shimmer 1.2s ease-in-out infinite;
    color: transparent;
    border-radius: 6px;
}

.pm-img.pm-loaded {
    animation: pm-img-in .35s ease;
}

.pm-img-missing {
    object-fit: contain;
    background: #f6f7f9;
}

.web-pv-lf img,
.ctg-img img,
.master-ctg-img img,
.sp-wrap img,
.addi-prod-img img {
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   13. Keyframes
   -------------------------------------------------------------------------- */
@keyframes pm-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pm-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pm-img-in {
    from {
        opacity: .35;
    }

    to {
        opacity: 1;
    }
}

@keyframes pm-pop-in {
    from {
        opacity: 0;
        transform: scale(.92) translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pm-toast-in {
    from {
        opacity: 0;
        transform: translate3d(24px, 0, 0);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes pm-toast-out {
    from {
        opacity: 1;
        transform: none;
    }

    to {
        opacity: 0;
        transform: translate3d(24px, 0, 0);
    }
}

/* --------------------------------------------------------------------------
   14. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .web-container {
        width: 96%;
    }

    .modal-xl {
        max-width: calc(100% - 2rem);
    }
}

@media (min-width: 576px) and (max-width: 991.98px) {
    .modal-lg,
    .modal-xl {
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 991.98px) {
    /* Collapsed navigation becomes a card under the header */
    .web-nav .navbar-collapse,
    .admin-top-nav .navbar-collapse {
        background: #232f3e;
        border-radius: 0 0 10px 10px;
        padding: 8px 10px 10px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .25);
        max-height: calc(100vh - 120px);
        overflow: auto;
    }

    .web-nav .nav-link,
    .admin-collapse-nav .nav-link {
        padding: .6rem .8rem;
        border-radius: 8px;
    }

    .web-nav .navbar-nav.ms-auto,
    .admin-collapse-nav .navbar-nav.ms-auto {
        margin-top: 6px;
        border-top: 1px solid rgba(255, 255, 255, .08);
        padding-top: 6px;
    }

    .web-product-card-tbl .p-image-td {
        width: 30%;
    }

    .web-product-card-tbl .p-desc-td {
        width: 70%;
    }

    .web-pv-rt {
        height: auto !important;
    }

    .admin-main {
        padding: 8px;
    }
}

@media (max-width: 767.98px) {
    /* Prevent iOS from zooming into inputs */
    .form-control,
    .form-select,
    .chosen-container-single .chosen-single,
    .pm-dt .dataTables_filter input,
    .pm-dt .dataTables_length select {
        font-size: 16px;
    }

    .page-header {
        padding: 8px 10px;
    }

        .page-header .row > [class*="col-"] {
            text-align: left !important;
        }

        .page-header .row.g-3 {
            display: flex !important;
            width: 100%;
            margin-top: 4px;
        }

    .addi-searching select {
        width: 100% !important;
    }

    .web-product-card-tbl .p-image-td {
        width: 34%;
    }

    .web-product-card-tbl .p-desc-td {
        width: 66%;
    }

    .p-image-td {
        width: 34%;
    }

    .ctg-box,
    .category-box-loading {
        width: calc(50% - 10px) !important;
        margin: 5px !important;
    }

    .category-box-loading {
        height: 175px;
    }

        .ctg-box .ctg-img {
            height: 120px;
        }

    .section-heading {
        margin: 20px 0 24px;
    }

    .site-footer {
        padding: 30px 0 10px;
    }

        .site-footer .col-md-3 {
            text-align: left;
        }

    .shopping-summary-box {
        margin-top: 10px;
    }

    .pm-dt .dataTables_length,
    .pm-dt .dataTables_filter,
    .pm-dt .dt-buttons {
        float: none !important;
        width: 100% !important;
        margin-bottom: 8px;
    }

        .pm-dt .dataTables_filter input {
            max-width: 100% !important;
        }

        .pm-dt .dataTables_length select {
            width: 100%;
        }

    .pm-dt .dataTables_info {
        width: 100% !important;
        float: none !important;
        text-align: center;
        margin-bottom: 6px;
    }

    .pm-dt .dataTables_paginate {
        text-align: center;
        float: none !important;
        width: 100%;
    }

        .pm-dt .dataTables_paginate .pagination {
            justify-content: center;
            flex-wrap: wrap;
        }

    .swal2-popup.pm-swal {
        width: calc(100% - 1.5rem);
        padding: 1.3rem 1rem 1.1rem;
    }

    .swal2-popup.swal2-toast.pm-toast {
        max-width: calc(100vw - 1.5rem);
    }

    .modal-body {
        padding: .9rem 1rem;
    }

    .modal-header,
    .modal-footer {
        padding: .7rem 1rem;
    }

    .cart-prod-count-input {
        width: 60px !important;
    }

    .btn-history-back {
        margin-bottom: 8px;
    }
}

@media (max-width: 575.98px) {
    .modal-dialog:not(.modal-fullscreen-sm-down) {
        margin: .5rem;
        max-width: calc(100% - 1rem);
    }

    .modal-fullscreen-sm-down .modal-content {
        border-radius: 0;
        min-height: 100vh;
    }

    .modal-fullscreen-sm-down .modal-body {
        max-height: none !important;
    }

    .web-product-card-tbl .p-image-td,
    .p-image-td {
        width: 38%;
    }

    .pm-dt {
        padding: 6px;
    }

        .pm-dt .dt-buttons .dt-button {
            width: 100%;
            margin: 0 0 6px;
            text-align: center;
        }

    .pm-splash-logo {
        max-width: 160px;
    }

    .web-cart .btn {
        padding: .25rem .45rem;
        font-size: 12px;
    }

    .p-price-conf-qty {
        font-size: 12px !important;
    }

    .sales-count {
        font-size: 12px !important;
    }

    .swal2-popup.swal2-toast.pm-toast {
        width: calc(100vw - 1.5rem);
    }
}

@media (max-width: 399.98px) {
    .ctg-box,
    .category-box-loading {
        width: calc(50% - 8px) !important;
        margin: 4px;
    }

        .ctg-box .ctg-img {
            height: 105px;
        }

    .web-product-card-tbl .p-image-td,
    .p-image-td {
        width: 42%;
    }
}

/* Larger touch targets on touch devices */
@media (pointer: coarse) {
    .btn-sm {
        padding: .35rem .65rem;
        min-height: 34px;
    }

    .modal .close {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }

    .pm-dt .pagination .page-link {
        min-width: 36px;
        padding: 6px 8px !important;
    }

    .p-minus-btn,
    .p-plus-btn {
        min-width: 32px;
        min-height: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pm-img.pm-loaded,
    .pm-img.pm-loading,
    .load-animate,
    .swal2-popup.swal2-show,
    .pm-toast-in,
    .pm-toast-out {
        animation: none !important;
    }

    .web-product-card,
    .ctg-box,
    .master-ctg-box,
    .btn {
        transition: none !important;
    }
}

@media print {
    .pm-progress,
    .pm-splash,
    #whatsappButton,
    .waitMe {
        display: none !important;
    }
}

