:root {
    --sidebar-width: 320px;
    --sidebar-mini-width: 78px;
    --sidebar-speed: 0.25s;
    --primary-color: #00843d;
}

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

html,
body {
    font-family: "Roboto", sans-serif;
    width: 100%;
    height: 100%;
}

body {
    display: flex;
    min-height: 100dvh;
    width: 100vw;
    margin: 0;
}

#page-loader {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.loader-spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #e9ecef;
    border-top: 6px solid #198754;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.loader-text {
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #198754;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

body.loaded #page-loader {
    display: none;
}

.notify-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: #dc3545;
    color: white;
    font-size: 14px;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    width: 100%;
}

.bg-surface {
    background-color: #ffffff;
}

.section-padding {
    padding: 80px 0;
}

.card {
    border: none;
    border-radius: 12px;
}

.auth-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background: linear-gradient(45deg, #0e542e, #d5e8de); */
    background:
        radial-gradient(circle at top left, #52b788 0%, transparent 45%),
        radial-gradient(circle at bottom right, #d8f3dc 0%, transparent 40%),
        linear-gradient(135deg, #2d6a4f 0%, #74c69d 45%, #f8fff8 100%);
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
}

.auth-register-card {
    width: 100%;
    max-width: 900px;
    background: #fff;
    border-radius: 15px;
    padding: 40px;
}

.auth-logo {
    text-align: center;
    margin-bottom: 15px;
}

.auth-logo img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 2px solid #fff;
}

.input-group-text {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.form-control {
    height: 50px;
    border-radius: 8px;
}

.sidebar {
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    height: 100dvh;
    position: sticky;
    top: 0;
    left: 0;
    background: #fff;
    border-right: 1px solid #e5e7eb;
    transition:
        width var(--sidebar-speed) cubic-bezier(0.4, 0, 0.2, 1),
        min-width var(--sidebar-speed) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1045;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-mini-width);
    min-width: var(--sidebar-mini-width);
}

.sidebar.collapsed .nav-arrow {
    display: none !important;
}

.sidebar-header {
    height: 80px;
    padding: 18px;
}

.logo img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    transition: 0.25s;
}

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

.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-text,
.sidebar.collapsed .nav-heading,
.sidebar.collapsed .nav-arrow {
    opacity: 0;
    visibility: hidden;
    width: 0;
    pointer-events: none;
    position: absolute;
}

.sidebar.collapsed .sidebar-header {
    justify-content: center !important;
}

.sidebar.collapsed .logo-wrapper,
.sidebar.collapsed .nav-link {
    justify-content: center;
}

.sidebar.collapsed .nav-link {
    gap: 0 !important;
}

.logo-text,
.nav-text,
.nav-heading,
.nav-arrow {
    transition:
        opacity 0.15s ease,
        cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    height: 70px;
    border-bottom: 1px solid #f3f4f6;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav-link {
    height: 44px;
    display: flex !important;
    align-items: center;
    gap: 12px;
    border-radius: 8px;
    color: #4b5563;
    transition: all var(--sidebar-speed) ease;
    position: relative;
}

.nav-link i {
    font-size: 1.25rem;
}

.nav-link:hover {
    background: #f1f8f4;
    color: var(--primary-color);
}

.nav-link.active {
    background: #e6f3ec;
    color: var(--primary-color);
    font-weight: 500;
}

.nav-link.active::before {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 5px;
    border-radius: 0 4px 4px 0;
    background: var(--primary-color);
}

@media (max-width: 768px) {
    .content-wrapper {
        padding-top: 10px;
        display: flex;
        flex-direction: row;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100dvh;
        width: var(--sidebar-width);
        min-width: var(--sidebar-width);
        transform: translateX(-100%);
        transition: transform var(--sidebar-speed) cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: none;
        grid-template-columns: auto;
    }

    .sidebar.mobile-open {
        transform: translateX(0);
        box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
    }

    .sidebar.collapsed {
        width: var(--sidebar-width) !important;
        min-width: var(--sidebar-width) !important;
        transform: translateX(-100%);
    }

    .sidebar.collapsed .logo-text,
    .sidebar.collapsed .nav-text,
    .sidebar.collapsed .nav-heading,
    .sidebar.collapsed .nav-arrow {
        opacity: 1;
        visibility: visible;
        width: auto;
        position: static;
        display: none !important;
    }

    .sidebar.collapsed .nav-link {
        justify-content: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        gap: 0 !important;
    }

    .sidebar.collapsed .logo-wrapper {
        width: 100%;
        justify-content: center;
        gap: 0 !important;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .sidebar-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.4);
        z-index: 1040;
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--sidebar-speed) linear;
        backdrop-filter: blur(2px);
    }

    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }

    #mobileSidebarClose {
        display: none !important;
    }
}

@media (max-width: 767.98px) {
    #mobileSidebarClose {
        display: flex !important;
        align-items: center;
        justify-content: center;
    }
}

.nav-arrow {
    transition: transform 0.2s ease;
}

.sidebar.collapsed .collapse,
.sidebar.collapsed .collapsing {
    display: none !important;
}

.sidebar .collapse ul {
    position: relative;
    border-left: 2px solid var(--bs-border-color, #dee2e6);
    margin-left: 1.25rem !important;
    padding-left: 0.75rem !important;
}

.sidebar .collapse .nav-link {
    transition:
        color 0.15s ease-in-out,
        padding-left 0.15s ease-in-out;
}

.sidebar .collapse .nav-link:hover {
    color: var(--bs-success, #198754) !important;
    padding-left: 0.5rem !important;
}

.search-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 5px 12px;
    height: 42px;
    max-width: 600px;
    display: flex;
    align-items: center;
}

.search-box input {
    height: 32px;
    font-size: 14px;
}

.search-box i {
    font-size: 15px;
}

.content-area {
    overflow-y: auto;
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
    }

    .sidebar-wrapper {
        width: 100%;
        position: relative;
    }

    .top-header {
        padding: 10px !important;
    }

    .search-box {
        width: 100%;
    }

    .content-area {
        padding: 10px !important;
    }
}

@media (max-width: 480px) {
    .alert {
        font-size: 14px;
    }
}

.banner-card {
    min-height: 120px;
}

.card img {
    height: 80px;
    object-fit: contain;
}

.border {
    border-color: #eee !important;
}

.products-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    color: white;
    margin-bottom: 3rem;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.25);
    position: relative;
    overflow: hidden;
}

.products-header::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.products-header::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.products-header > * {
    position: relative;
    z-index: 1;
}

.products-header h1 {
    color: white;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: 2.5rem;
}

.products-header p {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    font-size: 1.1rem;
}

.filter-sidebar {
    position: sticky;
    top: 20px;
}

@media (max-width: 991.98px) {
    .filter-sidebar {
        display: none !important;
    }
}

.filter-sidebar .card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.1);
    background: white;
}

.filter-sidebar .card-header {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.1rem;
    border-bottom: none;
}

.filter-sidebar .card-header i {
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.filter-sidebar .card-body {
    padding: 1.5rem;
}

.filter-sidebar .list-group {
    border-radius: 10px;
    overflow: hidden;
}

.filter-sidebar .list-group-item {
    border: none;
    padding: 0.875rem 1.25rem;
    transition: all 0.3s ease;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    cursor: pointer;
    font-weight: 500;
}

.filter-sidebar .list-group-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    padding-left: 1.5rem;
    transform: translateX(5px);
    color: #667eea;
}

.filter-sidebar .list-group-item.active {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateX(5px);
}

.filter-sidebar .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.filter-sidebar .form-control,
.filter-sidebar .form-select {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
}

.filter-sidebar .form-control:focus,
.filter-sidebar .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.filter-sidebar .form-check {
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 0.5rem;
}

.filter-sidebar .form-check:hover {
    background: #f8f9fa;
}

.filter-sidebar .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.25rem;
    cursor: pointer;
}

.filter-sidebar .form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.filter-sidebar .form-check-label {
    cursor: pointer;
    font-weight: 500;
    margin-left: 0.5rem;
}

.filter-sidebar .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.filter-sidebar .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.filter-sidebar .btn-outline-secondary {
    border-radius: 10px;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.filter-sidebar .btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.active-filters-card {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    border-radius: 12px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1);
}

.active-filters-card .badge {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.active-filters-card .badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.alert-info {
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    box-shadow: 0 2px 10px rgba(13, 202, 240, 0.2);
    padding: 1.25rem 1.5rem;
    font-weight: 500;
}

.dropdown-toggle {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-menu {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    color: #667eea;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.pagination {
    justify-content: center;
}

.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #667eea;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
}

.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state i {
    opacity: 0.3;
}

.empty-state {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.2);
}

.empty-state i {
    opacity: 0.2;
    font-size: 5rem;
}

.empty-state h3 {
    color: #495057;
    font-weight: 700;
}

.empty-state .btn {
    border-radius: 12px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.empty-state .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.offcanvas .select2-container--open {
    z-index: 1065 !important;
}

.offcanvas-start {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.offcanvas-header {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    color: white;
    padding: 1.25rem;
    margin: 10px;
    border-radius: 10px;
}

.offcanvas-header .btn-close {
    filter: invert(1);
    opacity: 0.9;
}

.offcanvas-body .list-group-item {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.offcanvas-body .list-group-item.active {
    background: linear-gradient(135deg, #198754 0%, #198754 100%);
    color: white;
    font-weight: 600;
}

.offcanvas-body .form-control-sm,
.offcanvas-body .form-select-sm {
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
}

.offcanvas-body .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.container-fluid {
    --bs-gutter-x: 1.5rem;
}

@media (max-width: 767.98px) {
    .container-fluid {
        --bs-gutter-x: 1rem;
    }
}

@media (min-width: 1400px) {
    .container-fluid {
        --bs-gutter-x: 2.5rem;
    }
}

.category-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.category-card:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.category-logo {
    margin-bottom: 15px;
    text-align: center;
}

.category-logo img {
    height: 100px;
    width: 100px;
    border-radius: 50%;
    border: 2px solid white;
}

.table-responsive {
    white-space: nowrap;
    width: 100%;
}

.text-center {
    align-items: center;
    justify-content: center;
    align-self: center;
}

table.custom-table {
    width: 100%;
}

table.custom-table thead tr th {
    background-color: #198754 !important;
    color: #fff !important;
    text-align: center !important;
    vertical-align: middle !important;
}

table.custom-table tbody tr td {
    background-color: #fff !important;
    color: #000 !important;
    text-align: center !important;
    vertical-align: middle !important;
}

table.custom-table tfoot .pagination {
    justify-content: center !important;
    margin: 0 !important;
}

table.custom-table tfoot .page-link {
    color: black !important;
    background: white !important;
    border: 1px solid #ddd !important;
    padding: 5px 10px !important;
}

table.custom-table tfoot .page-item.active .page-link {
    background-color: green !important;
    color: white !important;
    border-color: green !important;
}

table.custom-table tfoot .page-link:hover {
    background-color: #f1f1f1 !important;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-group .form-control {
    width: 100%;
    height: 38px;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group .form-control:focus {
    border-color: #198754;
    outline: none;
    box-shadow: 0 0 5px rgba(25, 135, 84, 0.25);
}

.form-group textarea.form-control {
    height: auto;
    resize: vertical;
}

.form-group select.form-control {
    cursor: pointer;
}

.form-group .required {
    color: #dc3545;
}

.select2-container {
    width: 100% !important;
}

.select2-container .select2-selection--single {
    height: 38px !important;
    border: 1px solid #ced4da !important;
    border-radius: 5px !important;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__rendered {
    line-height: 38px !important;
    padding-left: 12px !important;
    font-size: 14px;
}

.select2-container--default
    .select2-selection--single
    .select2-selection__arrow {
    height: 38px !important;
}

.profile-section img {
    border: 3px solid #fff;
}

.sidebar.collapsed .profile-section div {
    display: none;
}

.sidebar.collapsed .profile-section img {
    width: 45px;
    height: 45px;
}

#userProfilePhotoModal .select2-container {
    width: 100% !important;
}

#userProfilePhotoModal .select2-dropdown {
    z-index: 9999;
}

#splash-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    overflow: hidden;
    background:
        radial-gradient(circle at top left, #d1e7dd 0%, transparent 35%),
        radial-gradient(circle at bottom right, #a3cfbb 0%, transparent 35%),
        linear-gradient(135deg, #f8fffb, #eefaf2, #dff3e7);
}

#splash-screen::before,
#splash-screen::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    animation: float 8s ease-in-out infinite;
}

#splash-screen::before {
    width: 300px;
    height: 300px;
    background: rgba(25, 135, 84, 0.1);
    top: -80px;
    left: -80px;
}

#splash-screen::after {
    width: 220px;
    height: 220px;
    background: rgba(32, 201, 151, 0.12);
    bottom: -60px;
    right: -60px;
    animation-delay: 2s;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-25px);
    }
}

.splash-card {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    padding: clamp(2rem, 4vw, 3rem);
    text-align: center;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 28px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.12),
        0 5px 15px rgba(0, 0, 0, 0.05);
    transition: 0.4s;
}

.splash-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.15);
}

.logo-animation {
    width: clamp(50px, 18vw, 90px);
    animation: pulseLogo 2s ease-in-out infinite;
}

@keyframes pulseLogo {
    0% {
        transform: scale(0.95);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(0.95);
    }
}

.splash-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: #198754;
    margin-top: 1rem;
}

.splash-card p {
    color: #6c757d;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.progress-container {
    width: 100%;
    height: 12px;
    border-radius: 50px;
    overflow: hidden;
    background: #e9ecef;
    margin-top: 1.5rem;
}

.progress-bar-loading {
    width: 0;
    height: 100%;
    border-radius: 50px;
    background: linear-gradient(90deg, #198754, #20c997, #43aa8b);
    transition: width 0.08s linear;
}

#loadingPercent {
    display: block;
    margin-top: 15px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #198754;
    letter-spacing: 1px;
}

.loading-text {
    margin-top: 12px;
    color: #6c757d;
    font-size: 0.95rem;
}

.fade-out {
    animation: fadeOut 0.6s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 768px) {
    .splash-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }
}

@media (max-width: 576px) {
    .splash-card {
        width: 100%;
        padding: 1.8rem 1.2rem;
    }

    #loadingPercent {
        font-size: 1.1rem;
    }
}

#productGrid {
    margin-top: 1rem;
    --card-radius: 18px;
    --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 992px) {
    #productGrid[style*="--desktop-cols: 5"] > div {
        flex: 0 0 auto;
        width: calc(20% - 1rem);
        max-width: calc(20% - 1rem);
    }
}

.product-card {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    transform-style: preserve-3d;
    perspective: 1200px;
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(13, 110, 253, 0.05),
        transparent 55%
    );
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-12px) rotateX(2deg);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18);
}

.product-card:hover::before {
    opacity: 1;
}

.product-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top,
        rgba(13, 110, 253, 0.15),
        transparent 65%
    );
    opacity: 0;
    transition: 0.4s;
    pointer-events: none;
}

.product-card:hover::after {
    opacity: 1;
}

.product-image-wrapper {
    position: relative;
    height: clamp(120px, 18vw, 160px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 2;
    padding: 8px;
}

.product-image-wrapper::before {
    content: "";
    position: absolute;
    bottom: 12px;
    width: 45%;
    height: 14px;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 50%;
    filter: blur(10px);
    transition: all 0.5s ease;
}

.product-card:hover .product-image-wrapper::before {
    transform: scale(1.3);
    opacity: 0.35;
}

.product-image {
    width: 100%;
    max-width: 120px;
    max-height: 120px;
    height: auto;
    object-fit: contain;
    transition: all 0.4s ease;
}

.product-card:hover .product-image {
    transform: none;
    filter: none;
}

.product-image-wrapper::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -60%;
    width: 45%;
    height: 300%;
    transform: rotate(25deg);
    background: rgba(255, 255, 255, 0.25);
}

.product-card:hover .product-image-wrapper::after {
    animation: shine 0.8s;
}

@keyframes shine {
    to {
        left: 140%;
    }
}

.product-card .card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1rem;
}

.product-card .card-title {
    margin-bottom: 0.5rem;
}

.product-card .card-title a {
    display: block;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.product-card:hover .card-title a {
    color: #0d6efd;
}

.product-card .h5 {
    color: #0d6efd;
    font-weight: 700;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
}

.product-card .badge {
    border-radius: 50px;
    padding: 0.45rem 0.75rem;
    font-size: 0.72rem;
    transition: 0.3s;
}

.product-card:hover .badge {
    transform: translateY(-2px);
}

.product-card .btn {
    border-radius: 50px;
    font-weight: 600;
    transition: 0.3s;
}

.product-card .btn:hover {
    transform: translateY(-2px);
}

.product-card .btn-primary {
    border-radius: 30px;
    transition: 0.3s;
}

.product-card:hover .btn-primary {
    transform: translateY(-2px);
}

.wishlist-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #666;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

.wishlist-toggle i {
    font-size: 20px;
    color: #777;
    transition: all 0.3s ease;
}

.wishlist-toggle.active i {
    color: #f20509 !important;
}

.wishlist-toggle.active {
    background: #fff !important;
}

.wishlist-toggle:hover {
    transform: scale(1.1);
}

.wishlist-toggle:hover i {
    color: #f20509;
}

.wishlist-toggle:active {
    transform: scale(0.9);
}

@media (max-width: 576px) {
    .wishlist-toggle {
        top: 8px;
        right: 8px;
        width: 38px;
        height: 38px;
    }

    .wishlist-toggle i {
        font-size: 18px;
    }
}

.product-card .alert {
    border-radius: 12px;
}

.product-card {
    animation: fadeUp 0.5s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff4d4f;
    color: #fff;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
    z-index: 5;
}

.product-image-box {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.product-inner {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.product-bg {
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    top: -90px;
    left: 50%;
    transform: translateX(-50%) scale(1);
    transition: transform 0.6s ease;
    z-index: 1;
}

.product-card:hover .product-bg {
    transform: translateX(-50%) scale(1.2);
}

@media (max-width: 992px) {
    .product-image-wrapper {
        height: 150px;
    }

    .product-image {
        max-width: 110px;
        max-height: 110px;
    }

    .product-bg {
        width: 200px;
        height: 200px;
        top: -80px;
    }
}

@media (max-width: 768px) {
    .product-image-wrapper {
        height: 130px;
    }

    .product-image {
        max-width: 100px;
        max-height: 100px;
    }

    .product-bg {
        width: 180px;
        height: 180px;
        top: -70px;
    }
}

@media (max-width: 576px) {
    .product-image-wrapper {
        height: 110px;
    }

    .product-image {
        max-width: 90px;
        max-height: 90px;
    }

    .product-bg {
        width: 150px;
        height: 150px;
        top: -55px;
    }
}

.product-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 18px;
}

.product-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    min-height: calc(1.5em * 3);
    display: block !important;
    width: 100% !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
}

.product-stock {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    font-size: 0.9rem;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stock-price del {
    color: #888;
    font-weight: normal;
    padding: 0 !important;
}

.selling-price {
    color: #198754;
    font-weight: bold;
    padding: 0 !important;
}

.stock-text {
    color: #6c757d;
    text-align: right;
}

.warehouse-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 15px;
    padding: 18px 25px;
    margin-bottom: 20px;
    border-left: 6px solid #198754;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}

.warehouse-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.warehouse-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e9f7ef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #198754;
    font-size: 28px;
    margin-right: 18px;
}

.warehouse-content {
    flex: 1;
}

.warehouse-label {
    font-size: 13px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.warehouse-content h4 {
    margin: 4px 0 0;
    color: #198754;
    font-weight: 700;
    font-size: 28px;
}

.warehouse-badge {
    background: #198754;
    color: #fff;
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 991px) {
    .warehouse-header {
        padding: 15px 20px;
    }

    .warehouse-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .warehouse-content h5 {
        font-size: 22px;
    }

    .warehouse-badge {
        font-size: 13px;
        padding: 8px 14px;
    }
}

@media (max-width: 767px) {
    .warehouse-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .warehouse-icon {
        margin: 0 auto;
        width: 55px;
        height: 55px;
    }

    .warehouse-content {
        width: 100%;
    }

    .warehouse-content h5 {
        font-size: 20px;
        line-height: 1.4;
    }

    .warehouse-label {
        font-size: 12px;
    }

    .warehouse-badge {
        width: 100%;
        justify-content: center;
        font-size: 14px;
    }
}

.product-footer {
    margin-top: auto;
    display: flex;
    justify-content: center;
    width: 100%;
}

.cart-btn {
    width: 100%;
    max-width: 100%;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 15px;
    border-radius: 12px;
    font-size: clamp(13px, 2vw, 16px);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cart-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.cart-btn:active {
    transform: scale(0.92);
}

.cart-icon {
    font-size: 16px;
}

.cart-btn:hover .cart-icon {
    animation: cartBounce 0.5s ease;
}

@keyframes cartBounce {
    0% {
        transform: translateY(0);
    }

    30% {
        transform: translateY(-6px) rotate(-10deg);
    }

    60% {
        transform: translateY(0) rotate(10deg);
    }

    100% {
        transform: translateY(0);
    }
}

.cart-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: rgba(255, 255, 255, 0.25);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.cart-btn:hover::before {
    left: 150%;
}

@media (max-width: 768px) {
    .product-content {
        padding: 15px;
    }

    .product-title {
        font-size: 0.95rem;
    }

    .cart-btn {
        height: 40px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .product-content {
        padding: 12px;
    }

    .product-stock {
        font-size: 13px;
    }

    .cart-btn {
        height: 35px;
        font-size: 13px;
    }
}

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 350px;
    gap: 24px;
    align-items: start;
}

.checkout-main {
    min-width: 0;
}

.checkout-stepper {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #e9ecef;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.checkout-step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: 0;
    cursor: pointer;
}

.step-circle {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 2px solid #dfe3e8;
    border-radius: 50%;
    background: #fff;
    color: #6c757d;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.step-circle .bi-check {
    display: none;
}

.step-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.step-content strong {
    color: #343a40;
    font-size: 14px;
    font-weight: 700;
}

.step-content span {
    margin-top: 3px;
    color: #8a9199;
    font-size: 11px;
}

.step-line {
    height: 2px;
    flex: 1 1 auto;
    min-width: 18px;
    margin: 0 12px;
    background: #e9ecef;
    transition: background 0.25s ease;
}

.checkout-step.active .step-circle {
    border-color: #198754;
    background: #198754;
    color: #fff;
    box-shadow: 0 0 0 5px rgba(25, 135, 84, 0.1);
}

.checkout-step.active .step-content strong {
    color: #198754;
}

.checkout-step.completed .step-circle {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

.checkout-step.completed .step-number {
    display: none;
}

.checkout-step.completed .step-circle .bi-check {
    display: block;
    font-size: 18px;
}

.checkout-step.completed .step-content strong {
    color: #198754;
}

.checkout-step.completed + .step-line {
    background: #198754;
}

.checkout-tab {
    display: none;
    padding: 26px;
    background: var(--bs-body-bg, #fff);
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.checkout-tab.active {
    display: block;
    animation: checkoutFade 0.25s ease;
}

@keyframes checkoutFade {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cart-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.step-label {
    display: inline-block;
    margin-bottom: 6px;
    color: #198754;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.cart-header h2 {
    margin: 0;
    color: #212529;
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
}

.cart-header p {
    margin: 6px 0 0;
    color: #6c757d;
    font-size: 14px;
}

.cart-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.remove-all-cart-form {
    margin: 0;
}

.remove-all-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #dc3545;
    border-radius: 999px;
    background: #fff1f1;
    color: #dc3545;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-all-cart i {
    font-size: 14px;
}

.remove-all-cart:hover {
    background: #dc3545;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 12px rgba(220, 53, 69, 0.2);
}

.remove-all-cart:active {
    transform: scale(0.96);
}

@media (max-width: 767.98px) {
    .cart-header-actions {
        width: 100%;
        align-items: stretch;
    }

    .item-counter {
        align-self: flex-start;
    }

    .remove-all-cart-form {
        width: 100%;
    }

    .remove-all-cart {
        width: 100%;
    }
}

.item-counter {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    padding: 8px 13px;
    background: #f1f8f4;
    border-radius: 999px;
    color: #198754;
    font-size: 13px;
    font-weight: 700;
}

.cart-items {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 2vw, 24px);
    width: 100%;
    min-width: 0;
}

.cart-card {
    display: grid;
    grid-template-columns:
        minmax(140px, 2fr) repeat(4, minmax(75px, max-content))
        auto;
    gap: clamp(12px, 2vw, 24px);
    align-items: center;
    padding: clamp(16px, 2.5vw, 24px);
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 14px;
    box-sizing: border-border-box;
    width: 100%;
}

.cart-card:hover {
    border-color: #d6dee5;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.05);
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    overflow: hidden;
    background: #f8f9fa;
    border-radius: 12px;
    color: #adb5bd;
    font-size: 24px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-details {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.product-details > span:first-child {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.cart-quantity {
    min-width: max-content;
    flex-shrink: 0;
}

.cart-price,
.cart-quantity,
.cart-discount,
.cart-total {
    min-width: 0;
}

.cart-price span,
.cart-quantity > span,
.cart-discount span,
.cart-total span {
    display: block;
    margin-bottom: 5px;
    color: #8a9199;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.cart-price strong,
.cart-discount strong,
.cart-total strong {
    color: #212529;
    font-size: 14px;
    font-weight: 700;
}

.quantity-box {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: auto;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 9px;
    overflow: hidden;
    box-sizing: border-border-box;
}

.quantity-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 100%;
    border: 0;
    color: #fff;
    cursor: pointer;
}

.quantity-box .quantity-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 34px;
    padding: 0 !important;
    line-height: 1 !important;
    border: 0;
    flex-shrink: 0;
    cursor: pointer;
}

.quantity-box .quantity-input {
    width: 44px;
    height: 34px;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    flex-shrink: 0;
}

.quantity-input {
    width: 45px;
    height: 100%;
    padding: 0;
    border: 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
}

.quantity-box .quantity-input::-webkit-inner-spin-button,
.quantity-box .quantity-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-input {
    -webkit-appearance: textfield;
    -moz-appearance: textfield;
    appearance: textfield;
}

.remove-cart-form {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.remove-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #fff1f1;
    color: #dc3545;
    cursor: pointer;
    transition: all 0.2s ease;
}

.remove-cart:hover {
    background: #dc3545;
    color: #fff;
}

.empty-cart {
    padding: 50px 20px;
    border: 1px dashed #ced4da;
    border-radius: 14px;
    text-align: center;
}

.empty-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 28px;
}

.empty-cart h3 {
    margin: 0 0 6px;
    color: #343a40;
    font-size: 20px;
}

.empty-cart p {
    margin: 0 0 18px;
    color: #6c757d;
    font-size: 14px;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    width: 100%;
}

.cart-actions button,
.cart-actions a {
    min-height: 42px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    min-width: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #343a40;
    font-size: 13px;
    font-weight: 700;
}

.input-wrapper {
    position: relative;
}

.input-wrapper > i {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: #8a9199;
    pointer-events: none;
}

.form-group input,
.form-group textarea {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    outline: 0;
    background: #fff;
    color: #212529;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input {
    height: 44px;
    padding: 0 14px;
}

.input-wrapper input {
    padding-left: 42px;
}

.form-group textarea {
    min-height: 110px;
    padding: 12px 14px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

.option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.select-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 13px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.select-option > i:first-of-type {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    background: #f1f8f4;
    color: #198754;
    font-size: 19px;
}

.select-option div {
    min-width: 0;
}

.select-option strong,
.select-option small {
    display: block;
}

.select-option strong {
    color: #343a40;
    font-size: 14px;
}

.select-option small {
    margin-top: 3px;
    color: #868e96;
    font-size: 12px;
}

.select-option .selected-icon {
    display: none;
    margin-left: auto;
    color: #198754;
    font-size: 20px;
}

.select-option.active {
    border-color: #198754;
    background: #f8fcfa;
}

.select-option.active .selected-icon {
    display: block;
}

.payment-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border: 1px solid #dee2e6;
    border-radius: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 10px;
    background: #f1f3f5;
    color: #495057;
    font-size: 20px;
}

.payment-card > div:nth-child(3) {
    min-width: 0;
}

.payment-card strong,
.payment-card small {
    display: block;
}

.payment-card strong {
    color: #343a40;
    font-size: 14px;
}

.payment-card small {
    margin-top: 3px;
    color: #868e96;
    font-size: 12px;
}

.payment-card > i:last-child {
    display: none;
    margin-left: auto;
    color: #198754;
    font-size: 21px;
}

.payment-card.active {
    border-color: #198754;
    background: #f8fcfa;
}

.payment-card.active .payment-card-icon {
    background: #e8f5ee;
    color: #198754;
}

.payment-card.active > i:last-child {
    display: block;
}

.secure-payment {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px;
    border-radius: 11px;
    background: #f8f9fa;
}

.secure-payment > i {
    color: #198754;
    font-size: 22px;
}

.secure-payment strong,
.secure-payment span {
    display: block;
}

.secure-payment strong {
    color: #343a40;
    font-size: 13px;
}

.secure-payment span {
    margin-top: 2px;
    color: #868e96;
    font-size: 12px;
}

.order-summary {
    position: sticky;
    top: 20px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 18px;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.05);
}

.summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #edf0f2;
}

.summary-top span {
    display: block;
    margin-bottom: 4px;
    color: #8a9199;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.summary-top h3 {
    margin: 0;
    color: #212529;
    font-size: 19px;
}

.summary-top > i {
    color: #198754;
    font-size: 24px;
}

.summary-items {
    max-height: auto;
    max-width: auto;
    overflow-y: auto;
    padding: 5px 20px;
}

.summary-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f1f2;
}

.summary-item:last-child {
    border-bottom: 0;
}

.summary-item > div {
    min-width: 0;
}

.summary-item strong {
    display: block;
    overflow: hidden;
    color: #343a40;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.summary-item small {
    display: block;
    margin-top: 3px;
    color: #8a9199;
    font-size: 11px;
}

.summary-item-price {
    flex-shrink: 0;
    color: #198754 !important;
    font-size: 13px !important;
}

.summary-calculation {
    padding: 14px 20px;
    border-top: 1px solid #edf0f2;
}

.summary-calculation > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 5px 0;
}

.summary-calculation span {
    color: #6c757d;
    font-size: 13px;
}

.summary-calculation strong {
    color: #343a40;
    font-size: 13px;
}

.summary-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 20px;
    padding: 16px 0;
    border-top: 1px solid #dee2e6;
}

.summary-total span {
    color: #343a40;
    font-size: 14px;
    font-weight: 700;
}

.summary-total strong {
    color: #198754;
    font-size: 20px;
    font-weight: 800;
}

.secure-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 13px 20px;
    background: #f8f9fa;
    color: #6c757d;
    font-size: 14px;
}

.secure-checkout i {
    color: #198754;
}

.confirmation-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 18px;
    padding: 13px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #fff;
    color: #5f666d;
    font-size: 12px;
    line-height: 1.5;
    cursor: pointer;
}

.confirmation-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    margin-top: 1px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    color: #fff;
    transition: all 0.2s ease;
}

.custom-checkbox i {
    display: none;
    font-size: 13px;
}

.confirmation-checkbox input:checked + .custom-checkbox {
    border-color: #198754;
    background: #198754;
}

.confirmation-checkbox input:checked + .custom-checkbox i {
    display: block;
}

@media (max-width: 1199.98px) {
    .checkout-layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 18px;
    }

    .checkout-tab {
        padding: 22px;
    }

    .checkout-stepper {
        padding: 14px;
    }

    .step-line {
        margin: 0 8px;
    }

    .step-content span {
        display: none;
    }

    .cart-card {
        display: grid;
        grid-template-columns: 2fr repeat(4, 1fr) auto;
        grid-template-areas: "product price quantity discount total remove";
        gap: 12px;
        padding: 14px;
    }

    .cart-product {
        grid-area: product;
        min-width: 0;
    }
    .cart-price {
        grid-area: price;
    }
    .cart-quantity {
        grid-area: quantity;
    }
    .cart-discount {
        grid-area: discount;
    }
    .cart-total {
        grid-area: total;
    }

    .remove-cart {
        grid-area: remove;
        position: static;
        transform: none;
        justify-self: end;
    }

    .product-image {
        width: 58px;
        height: 58px;
        flex-basis: 58px;
    }

    .quantity-box {
        height: 32px;
    }

    .quantity-btn {
        width: 32px;
        height: 100%;
        flex-basis: 32px;
        padding: 0;
        border: 0;
    }

    .quantity-input {
        width: 42px;
        height: 100%;
    }
}

@media (max-width: 991.98px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .order-summary {
        position: static;
        order: 2;
    }

    .checkout-main {
        order: 1;
    }

    .summary-items {
        max-height: none;
    }

    .checkout-stepper {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .checkout-stepper::-webkit-scrollbar {
        display: none;
    }

    .checkout-step {
        flex: 0 0 auto;
    }

    .cart-card {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr auto;
        grid-template-areas:
            "product  product  product  product  remove"
            "price    quantity discount total    total";
        gap: 14px;
        padding: 16px;
    }

    .cart-product {
        grid-area: product;
    }
    .cart-price {
        grid-area: price;
    }
    .cart-quantity {
        grid-area: quantity;
    }
    .cart-discount {
        grid-area: discount;
    }
    .cart-total {
        grid-area: total;
    }
    .remove-cart-form {
        grid-area: remove;
        justify-self: end;
    }
}

@media (max-width: 767.98px) {
    .checkout-stepper {
        margin-bottom: 16px;
        padding: 10px;
        border-radius: 13px;
    }

    .checkout-step {
        gap: 7px;
    }

    .step-circle {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 12px;
    }

    .checkout-step.completed .step-circle .bi-check {
        font-size: 15px;
    }

    .step-content strong {
        font-size: 11px;
    }

    .step-line {
        min-width: 12px;
        margin: 0 6px;
    }

    .checkout-tab {
        padding: 18px 14px;
        border-radius: 14px;
    }

    .cart-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 18px;
    }

    .item-counter {
        align-self: flex-start;
    }

    .cart-card {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "product  remove"
            "price    discount"
            "quantity total";
        gap: 12px;
        padding: 14px;
    }

    .cart-product {
        margin-bottom: 4px;
    }

    .product-image {
        width: 50px;
        height: 50px;
        flex: 0 0 50px;
    }

    .product-details > span:first-child {
        font-size: 13px;
        line-height: 1.35;
        min-width: 50% !important;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .cart-price strong,
    .cart-discount strong,
    .cart-total strong {
        font-size: 13px;
    }

    .cart-price span {
        display: inline;
        margin-right: 7px;
    }

    .cart-discount {
        padding-top: 10px;
        border-top: 1px solid #f0f1f2;
    }

    .cart-discount span {
        display: inline;
        margin-right: 7px;
    }

    .cart-total {
        align-self: end;
        text-align: right;
    }

    .cart-total span {
        margin-bottom: 3px;
    }

    .quantity-box {
        height: 30px;
    }

    .quantity-btn {
        width: 28px;
    }

    .quantity-input {
        width: 38px;
        font-size: 13px;
    }

    .cart-actions {
        display: flex;
        flex-direction: row;
        gap: 10px;
        padding: 0 8px;
    }

    .cart-actions > * {
        width: calc(50% - 5px);
        flex: 0 0 calc(50% - 5px);
        max-width: none;
    }

    .form-grid,
    .option-grid {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }

    .select-option,
    .payment-card {
        padding: 13px;
    }

    .summary-top {
        padding: 16px;
    }

    .summary-items,
    .summary-calculation {
        padding-left: 16px;
        padding-right: 16px;
    }

    .summary-total {
        margin-left: 16px;
        margin-right: 16px;
    }
}

@media (max-width: 480px) {
    .checkout-stepper {
        padding: 8px;
    }

    .step-content {
        display: none;
    }

    .step-line {
        min-width: 10px;
        margin: 0 5px;
    }

    .cart-card {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "product  remove"
            "price    discount"
            "quantity quantity"
            "total    total";
    }

    .cart-product {
        max-width: calc(100% - 10px);
    }

    .product-image {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .product-details {
        flex: 1 1 auto;
        min-width: 0;
        max-width: 100%;
    }

    .product-details > span:first-child {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 13px;
        line-height: 1.35;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .quantity-btn {
        width: 31px;
        height: 32px;
        flex-basis: 31px;
    }

    .quantity-input {
        width: 50px;
    }

    .cart-quantity,
    .cart-total {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-top: 6px;
        border-top: 1px dashed #f0f0f0;
    }

    .cart-quantity > span,
    .cart-total span {
        margin-bottom: 0;
    }
}

#payment-tab {
    width: 100%;
}

.payment-checkout-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    width: 100%;
}

.payment-methods-column {
    min-width: 0;
    width: 100%;
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
}

.payment-methods-column .payment-options,
.payment-methods-column .payment-options.has-credit,
.payment-methods-column .payment-options.no-credit {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 12px !important;
    width: 100% !important;
}

.payment-methods-column .payment-options .payment-card {
    display: flex !important;
    flex: 0 0 auto !important;
    position: relative;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.payment-methods-column .payment-card > * {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.payment-form-column {
    min-width: 0;
    width: 100%;
}

.payment-form-column > * {
    max-width: 100%;
    box-sizing: border-box;
}

.payment-form-column input,
.payment-form-column select,
.payment-form-column textarea {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .payment-checkout-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }
}

.payment-card {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    padding: 13px 15px;
    gap: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.payment-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 5px 18px rgba(15, 23, 42, 0.06);
    transform: translateY(-1px);
}

.payment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-card:has(input:checked) {
    border-color: #2563eb;
    background: #f8fbff;
    box-shadow:
        0 5px 18px rgba(37, 99, 235, 0.08),
        inset 0 0 0 1px rgba(37, 99, 235, 0.04);
}

.payment-card-main {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    flex: 1;
}

.payment-card-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    font-size: 18px;
}

.online-icon {
    background: #f3f4f6;
    color: #64748b;
}

.payment-card:has(input:checked) .online-icon {
    background: #ecfdf5;
    color: #059669;
}

.cash-icon {
    background: #f3f4f6;
    color: #64748b;
}

.payment-card:has(input:checked) .cash-icon {
    background: #ffd5d5;
    color: #ef0404;
}

.credit-icon {
    background: #f3f4f6;
    color: #64748b;
}

.payment-card:has(input:checked) .credit-icon {
    background: #fff7ed;
    color: #ea580c;
}

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

.payment-card-details strong {
    display: block;
    margin-bottom: 3px;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.payment-card-details small {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.payment-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 3px;
}

.payment-title strong {
    margin-bottom: 0;
}

.credit-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 20px;
    background: #fff7ed;
    color: #c2410c;
    font-size: 9px;
    font-weight: 700;
    white-space: nowrap;
}

.payment-radio {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    color: transparent;
    font-size: 11px;
    transition: all 0.2s ease;
}

.payment-card:has(input:checked) .payment-radio {
    border-color: #2563eb;
    background: #2563eb;
    color: #ffffff;
}

.secure-payment {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 13px;
    background: #f8fafc;
}

.secure-payment-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #ecfdf5;
    color: #16a34a;
    font-size: 18px;
}

.secure-payment-text {
    flex: 1;
    min-width: 0;
}

.secure-payment-text strong {
    display: block;
    margin-bottom: 2px;
    color: #1f2937;
    font-size: 16px;
    font-weight: 700;
}

.secure-payment-text span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

.secure-lock {
    flex: 0 0 auto;
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 768px) {
    .payment-options.has-credit,
    .payment-options.no-credit {
        grid-template-columns: 1fr;
    }

    .payment-card {
        min-height: 76px;
    }
}

@media (max-width: 480px) {
    .payment-header {
        margin-bottom: 16px;
    }

    .payment-header h2 {
        font-size: 20px;
    }

    .payment-header p {
        font-size: 11px;
    }

    .payment-options.has-credit,
    .payment-options.no-credit {
        gap: 9px;
    }

    .payment-card {
        min-height: 70px;
        padding: 11px 12px;
        border-radius: 12px;
    }

    .payment-card-main {
        gap: 10px;
    }

    .payment-card-icon {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 10px;
        font-size: 16px;
    }

    .payment-card-details strong {
        font-size: 13px;
    }

    .payment-card-details small {
        font-size: 10px;
    }

    .payment-radio {
        width: 21px;
        height: 21px;
        flex-basis: 21px;
    }

    .credit-badge {
        font-size: 8px;
        padding: 2px 6px;
    }

    .secure-payment {
        margin-top: 11px;
        padding: 10px 11px;
        border-radius: 11px;
    }

    .secure-payment-icon {
        width: 33px;
        height: 33px;
        flex-basis: 33px;
        font-size: 16px;
    }

    .secure-payment-text strong {
        font-size: 13px;
    }

    .secure-payment-text span {
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .payment-card {
        padding: 10px;
    }

    .payment-card-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .payment-card-details small {
        font-size: 9px;
    }
}

.online-payment-details {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f7fcf9;
    animation: onlinePaymentShow 0.25s ease;
}

@keyframes onlinePaymentShow {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.online-payment-header {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 15px;
}

.online-payment-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #dcf5e6;
    color: #00843d;
    font-size: 18px;
}

.online-payment-header strong {
    display: block;
    color: #111827;
    font-size: 16px;
    font-weight: 700;
}

.online-payment-header span {
    display: block;
    margin-top: 2px;
    color: #848a85;
    font-size: 12px;
}

.online-payment-form {
    display: grid;
    grid-template-rows: 1fr;
    gap: 12px;
    width: 100%;
}

@media (max-width: 768px) {
    .online-payment-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .online-payment-details {
        margin-top: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .online-payment-header {
        margin-bottom: 12px;
    }

    .online-payment-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        font-size: 16px;
    }

    .online-payment-header strong {
        font-size: 13px;
    }

    .online-payment-header span {
        font-size: 10px;
    }
}

.otp-payment-details {
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: #f8fbff;
    animation: otpShake 0.25s ease;
}

.otp-header {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 22px;
}

.otp-icon {
    width: 58px;
    height: 58px;
    min-width: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: #eaf8f0;
    color: #198754;
    font-size: 27px;
}

.otp-header-content {
    flex: 1;
}

.otp-step {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #198754;
}

.otp-header h3 {
    margin: 0 0 5px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.otp-header p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.otp-security {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    margin-bottom: 25px;
    background: #f0fdf4;
    border: 1px solid #d1fae5;
    border-radius: 12px;
}

.otp-security > i {
    color: #198754;
    font-size: 21px;
}

.otp-security strong {
    display: block;
    font-size: 14px;
    color: #166534;
}

.otp-security span {
    display: block;
    margin-top: 2px;
    font-size: 13px;
    color: #4b5563;
}

.otp-card {
    width: 100%;
}

.otp-form {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.otp-form .form-group {
    width: 100%;
    min-width: 0;
    margin-bottom: 18px;
    box-sizing: border-box;
}

.otp-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.otp-form label .required {
    color: #dc3545;
    margin-left: 3px;
}

.otp-box-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 20px 0 10px;
    box-sizing: border-box;
}

.otp-box {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50px;
    height: 50px;
    box-sizing: border-box;
    font-size: 20px;
    font-weight: 600;
    border: 1px solid #d1d5db;
    -webkit-appearance: none;
    appearance: none;
    -webkit-user-select: text;
    user-select: text;
    caret-color: #198754;
    width: 52px;
    padding: 0;
    margin: 0;
    border: 1.5px solid #dfe3e8;
    border-radius: 12px;
    background: #fafafa;
    color: #111827;
    font-family: inherit;
    line-height: 58px;
    text-align: center;
    outline: none;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.otp-box:hover {
    border-color: #198754;
    background: #ffffff;
}

.otp-box:focus {
    background: #ffffff;
    border-color: #198754;
    box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.otp-box.filled {
    border-color: #198754;
    background: #f7fcf9;
}

.otp-box.otp-error {
    border-color: #dc3545;
    background: #fff8f8;
    animation: otpShake 0.3s ease;
}

@keyframes otpShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.otp-hint {
    display: block;
    margin-top: 7px;
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
}

.otp-message {
    min-height: 0;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.otp-message:empty {
    display: none;
}

.otp-verify-btn {
    width: auto;
    max-width: 240px;
    min-height: 40px;
    padding: 6px 16px;
    margin-left: auto;
    margin-right: auto;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.otp-verify-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(25, 135, 84, 0.2);
}

.otp-verify-btn:active {
    transform: translateY(0);
}

.otp-resend {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 18px;
    color: #6b7280;
    font-size: 13px;
}

.otp-resend .btn-link {
    padding: 0;
    color: #198754;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.otp-resend .btn-link:hover {
    text-decoration: underline;
}

.otp-resend .btn-link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}

#otp-countdown {
    color: #9ca3af;
    font-size: 12px;
}

@media (max-width: 768px) {
    .otp-payment-details {
        padding: 10px;
    }
    .otp-card {
        padding: 22px;
        border-radius: 17px;
    }
    .otp-box-wrapper {
        gap: 8px;
    }
    .otp-box {
        width: 48px;
        height: 54px;
        flex-basis: 48px;
        font-size: 22px;
        line-height: 54px;
        border-radius: 11px;
    }
}

@media (max-width: 480px) {
    .otp-payment-details {
        padding: 5px;
    }
    .otp-card {
        padding: 18px 15px;
        border-radius: 15px;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
    }
    .otp-header {
        gap: 12px;
        margin-bottom: 18px;
    }
    .otp-icon {
        width: 46px;
        height: 46px;
        min-width: 46px;
        border-radius: 13px;
        font-size: 21px;
    }
    .otp-step {
        font-size: 10px;
    }
    .otp-header h3 {
        font-size: 18px;
    }
    .otp-header p {
        font-size: 12px;
    }
    .otp-security {
        padding: 11px;
    } /* OTP BOXES */
    .otp-box-wrapper {
        gap: 6px;
        margin-top: 18px;
    }
    .otp-box {
        width: 42px;
        height: 50px;
        flex-basis: 42px;
        font-size: 20px;
        line-height: 50px;
        border-radius: 10px;
    }
    .otp-hint {
        font-size: 11px;
    }
    .otp-verify-btn {
        min-height: 50px;
        font-size: 14px;
    }
    .otp-resend {
        flex-direction: column;
        gap: 2px;
    }
}

.online-payment-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.confirm-payment-section {
    width: 100%;
}

.confirm-order-wrapper {
    padding-top: 10px;
    display: flex !important;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    text-align: center;
}

#confirm-place-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto !important;
    max-width: 100%;
    white-space: nowrap;
    margin: 0 auto;
}

.confirm-payment-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    text-align: center;
    gap: 15px;
    padding: 18px 15px;
    border: 1px solid #dbe7df;
    background: #f7fcf9;
    border-radius: 16px;
}

.confirm-payment-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #e8f7ef;
    color: #198754;
    font-size: 22px;
}

.confirm-payment-content {
    flex: 1;
}

.confirm-payment-content strong {
    display: block;
    color: #1f2937;
    font-size: 15px;
    margin-bottom: 3px;
}

.confirm-payment-content span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    line-height: 1.4;
}

#confirm-place-order {
    flex-shrink: 0;
    min-height: 44px;
    padding: 8px 20px;
    font-weight: 600;
}

.next-track-order-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    .confirm-payment-card {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 18px 15px;
    }

    .confirm-payment-icon {
        margin: 0 auto;
    }

    #confirm-place-order {
        width: 100%;
    }
}

.tracking-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
}

.tracking-line {
    position: relative;
    margin-top: 30px;
}

.tracking-item {
    position: relative;
    padding-left: 55px;
    padding-bottom: 35px;
}

.tracking-item:last-child {
    padding-bottom: 0;
}

.tracking-item::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 35px;
    width: 3px;
    height: calc(100% - 5px);
    background: #ddd;
}

.tracking-item:last-child::before {
    display: none;
}

.tracking-dot {
    position: absolute;
    left: 8px;
    top: 0;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #ddd;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #ddd;
}

.tracking-item.active .tracking-dot {
    background: #198754;
    box-shadow: 0 0 0 2px #198754;
}

.tracking-item.active::before {
    background: #198754;
}

.tracking-title {
    font-weight: 600;
    font-size: 16px;
}

.tracking-date {
    font-size: 13px;
    color: #999;
}

@media (max-width: 576px) {
    .tracking-card {
        padding: 18px;
    }

    .tracking-item {
        padding-left: 45px;
    }
}

.product-details .stock-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.product-details .stock-badge.in-stock {
    background-color: #e6f4ea;
    color: #137333;
}

.product-details .stock-badge.low-stock {
    background-color: #fef7e0;
    color: #b06000;
}

.product-details .stock-badge.out-of-stock {
    background-color: #fce8e6;
    color: #c5221f;
}

.modal {
    z-index: 1060 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}
