:root {
    --tm-red: #c8102e;
    --tm-red-dark: #9f0d25;
    --tm-black: #111111;
    --tm-dark: #1f1f1f;
    --tm-charcoal: #2a2a2a;
    --tm-gray: #6b7280;
    --tm-muted: #9ca3af;
    --tm-light-gray: #f6f7f9;
    --tm-border: #e5e7eb;
    --tm-card: #ffffff;
    --tm-success: #15803d;
    --tm-warning: #b45309;
    --tm-danger: #b91c1c;
}

html {
    font-size: 14px;
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--tm-light-gray);
    color: var(--tm-black);
    font-family: "Inter", "Segoe UI", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
}

    a:hover {
        text-decoration: none;
    }

main {
    min-height: calc(100vh - 68px);
}

/* =========================
   Navbar
========================= */

.tm-navbar {
    background: var(--tm-black);
    color: #ffffff;
    border-bottom: 3px solid var(--tm-red);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.tm-navbar-inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding-left: 28px;
    padding-right: 28px;
    position: relative;
}

.tm-brand {
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

    .tm-brand:hover {
        color: #ffffff;
    }

.tm-brand-logo {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--tm-black);
    border: 2px solid var(--tm-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.tm-brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1;
    font-weight: 800;
}

.tm-brand small {
    display: block;
    color: #d1d5db;
    font-size: 0.78rem;
    margin-top: 4px;
}

.tm-navbar-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.tm-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: 16px;
}

    .tm-nav-links a {
        color: #e5e7eb;
        font-weight: 600;
        font-size: 0.95rem;
        padding: 8px 2px;
        border-bottom: 2px solid transparent;
    }

        .tm-nav-links a:hover {
            color: #ffffff;
            border-bottom-color: var(--tm-red);
        }

.tm-user-area {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #e5e7eb;
    font-size: 0.92rem;
}

.tm-mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 0;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

    .tm-mobile-menu-button span {
        width: 20px;
        height: 2px;
        border-radius: 999px;
        background: #ffffff;
        transition: transform 0.18s ease, opacity 0.18s ease;
    }

    .tm-mobile-menu-button.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .tm-mobile-menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

    .tm-mobile-menu-button.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

/* =========================
   Auth Page
========================= */

.auth-page {
    min-height: calc(100vh - 68px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
    background: radial-gradient(circle at top left, rgba(200, 16, 46, 0.08), transparent 32%), linear-gradient(135deg, #ffffff, #f5f6f8);
}

.auth-card {
    width: 100%;
    max-width: 460px;
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    box-shadow: 0 24px 70px rgba(17, 17, 17, 0.10);
    padding: 34px;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.auth-logo {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: var(--tm-black);
    color: #ffffff;
    border-bottom: 4px solid var(--tm-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.auth-brand h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 850;
    letter-spacing: -0.4px;
    color: var(--tm-black);
}

.auth-brand p {
    margin: 4px 0 0;
    color: var(--tm-gray);
}

.auth-footer {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--tm-border);
    color: var(--tm-gray);
    text-align: center;
    font-size: 0.9rem;
}

/* =========================
   Forms
========================= */

.form-label {
    color: var(--tm-black);
    font-weight: 700;
    font-size: 0.92rem;
}

.form-control,
.form-select {
    border-radius: 12px;
    border-color: var(--tm-border);
    color: var(--tm-black);
    min-height: 42px;
}

    .form-control:focus,
    .form-select:focus {
        border-color: var(--tm-red);
        box-shadow: 0 0 0 0.2rem rgba(200, 16, 46, 0.10);
    }

.form-check-input:checked {
    background-color: var(--tm-red);
    border-color: var(--tm-red);
}

.text-danger {
    color: var(--tm-danger) !important;
}

/* =========================
   Buttons
========================= */

.btn {
    border-radius: 11px;
    font-weight: 700;
}

.btn-tm-primary {
    border: 0;
    background: var(--tm-black);
    color: #ffffff;
}

    .btn-tm-primary:hover,
    .btn-tm-primary:focus {
        background: var(--tm-red);
        color: #ffffff;
    }

.btn-tm-red {
    border: 0;
    background: var(--tm-red);
    color: #ffffff;
}

    .btn-tm-red:hover,
    .btn-tm-red:focus {
        background: var(--tm-red-dark);
        color: #ffffff;
    }

.btn-tm-outline {
    background: #ffffff;
    color: var(--tm-black);
    border: 1px solid var(--tm-border);
}

    .btn-tm-outline:hover,
    .btn-tm-outline:focus {
        color: var(--tm-red);
        border-color: rgba(200, 16, 46, 0.35);
        background: rgba(200, 16, 46, 0.04);
    }

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.35);
}

/* =========================
   Page Layout
========================= */

.page-shell {
    padding: 34px 28px;
}

.page-header {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    padding: 26px;
    margin-bottom: 24px;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
    position: relative;
    overflow: hidden;
}

    .page-header::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 5px;
        height: 100%;
        background: var(--tm-red);
    }

    .page-header h1 {
        margin: 0;
        font-weight: 850;
        letter-spacing: -0.6px;
        color: var(--tm-black);
    }

    .page-header p {
        margin: 8px 0 0;
        color: var(--tm-gray);
        font-size: 0.98rem;
    }

.content-card {
    background: var(--tm-card);
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    padding: 26px;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

/* =========================
   Admin Dashboard
========================= */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-card {
    display: block;
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    padding: 24px;
    min-height: 190px;
    color: var(--tm-black);
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    position: relative;
    overflow: hidden;
}

    .dashboard-card::after {
        content: "";
        position: absolute;
        right: 20px;
        bottom: 18px;
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: var(--tm-red);
        opacity: 0.85;
    }

    .dashboard-card:hover {
        transform: translateY(-3px);
        border-color: rgba(200, 16, 46, 0.35);
        box-shadow: 0 20px 50px rgba(17, 17, 17, 0.10);
        color: var(--tm-black);
    }

.dashboard-card-label {
    display: inline-flex;
    background: rgba(200, 16, 46, 0.08);
    color: var(--tm-red);
    border: 1px solid rgba(200, 16, 46, 0.14);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.dashboard-card h2 {
    font-size: 1.15rem;
    font-weight: 850;
    margin-bottom: 10px;
    color: var(--tm-black);
}

.dashboard-card p {
    color: var(--tm-gray);
    margin: 0;
    line-height: 1.55;
}

/* =========================
   Tables
========================= */

.tm-table-card {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

.tm-table {
    width: 100%;
    min-width: 900px;
    margin: 0;
}

    .tm-table thead th {
        background: #fafafa;
        color: var(--tm-black);
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        border-bottom: 1px solid var(--tm-border);
        padding: 14px 16px;
        white-space: nowrap;
    }

    .tm-table tbody td {
        padding: 14px 16px;
        vertical-align: middle;
        border-bottom: 1px solid var(--tm-border);
        color: var(--tm-black);
    }

    .tm-table tbody tr:hover {
        background: rgba(200, 16, 46, 0.03);
    }

/* =========================
   Badges
========================= */

.tm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.76rem;
    font-weight: 800;
}

.tm-badge-red {
    background: rgba(200, 16, 46, 0.09);
    color: var(--tm-red);
}

.tm-badge-dark {
    background: rgba(17, 17, 17, 0.08);
    color: var(--tm-black);
}

.tm-badge-success {
    background: rgba(21, 128, 61, 0.10);
    color: var(--tm-success);
}

.tm-badge-warning {
    background: rgba(180, 83, 9, 0.11);
    color: var(--tm-warning);
}

.tm-badge-danger {
    background: rgba(185, 28, 28, 0.10);
    color: var(--tm-danger);
}

/* =========================
   Utility
========================= */

.tm-muted {
    color: var(--tm-gray);
}

.tm-section-title {
    font-size: 1.15rem;
    font-weight: 850;
    color: var(--tm-black);
    margin-bottom: 14px;
}

.tm-divider {
    height: 1px;
    background: var(--tm-border);
    margin: 20px 0;
}

/* =========================
   Customer Management
========================= */

.page-header-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.customer-filter-card {
    padding: 20px;
}

.customer-filter-actions {
    display: flex;
    gap: 10px;
}

    .customer-filter-actions .btn {
        flex: 1;
    }

.customer-count-line {
    display: flex;
    justify-content: flex-end;
    color: var(--tm-gray);
    font-size: 0.9rem;
    margin: 0 4px 10px;
}

.customer-mobile-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.customer-mobile-card,
.empty-mobile-card {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
}

.customer-mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--tm-border);
}

    .customer-mobile-card-header h2 {
        margin: 0;
        color: var(--tm-black);
        font-size: 1.1rem;
        font-weight: 850;
        line-height: 1.2;
    }

    .customer-mobile-card-header p {
        margin: 6px 0 0;
        color: var(--tm-gray);
        font-size: 0.9rem;
        word-break: break-word;
    }

.customer-mobile-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 16px 0;
}

    .customer-mobile-info-grid div {
        min-width: 0;
    }

    .customer-mobile-info-grid span {
        display: block;
        color: var(--tm-gray);
        font-size: 0.76rem;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        margin-bottom: 4px;
    }

    .customer-mobile-info-grid strong {
        display: block;
        color: var(--tm-black);
        font-size: 0.94rem;
        font-weight: 750;
        overflow-wrap: anywhere;
    }

.customer-mobile-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

    .customer-mobile-actions form,
    .customer-mobile-actions .btn,
    .customer-mobile-actions button {
        width: 100%;
    }

.empty-mobile-card {
    text-align: center;
    padding: 28px 20px;
}

    .empty-mobile-card h2 {
        font-size: 1.2rem;
        font-weight: 850;
        margin-bottom: 8px;
    }

    .empty-mobile-card p {
        color: var(--tm-gray);
        margin-bottom: 18px;
    }

.customer-form-card {
    max-width: 1180px;
    margin: 0 auto;
}

.form-section {
    padding: 0 0 24px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--tm-border);
}

    .form-section:last-of-type {
        border-bottom: 0;
        margin-bottom: 0;
    }

.form-section-header {
    margin-bottom: 18px;
}

    .form-section-header h2 {
        margin: 0;
        font-size: 1.12rem;
        font-weight: 850;
        color: var(--tm-black);
    }

    .form-section-header p {
        margin: 6px 0 0;
        color: var(--tm-gray);
        font-size: 0.93rem;
    }

.account-status-box {
    min-height: 70px;
    height: 100%;
    border: 1px solid var(--tm-border);
    border-radius: 16px;
    background: #fafafa;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

    .account-status-box strong {
        display: block;
        color: var(--tm-black);
        font-weight: 850;
        margin-bottom: 4px;
    }

    .account-status-box span {
        display: block;
        color: var(--tm-gray);
        font-size: 0.9rem;
    }

.form-action-bar {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 6px;
}

    .form-action-bar .btn {
        min-width: 150px;
    }

/* =========================
   Product Catalogue
========================= */

.product-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.catalog-header-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 180px;
    text-align: right;
    color: var(--tm-gray);
    font-weight: 700;
    font-size: 0.9rem;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.catalog-products {
    min-width: 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(230px, 1fr));
    gap: 18px;
    align-items: stretch;
}

.catalog-filters {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

.catalog-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

    .catalog-filter-header h2 {
        margin: 0;
        font-size: 1.08rem;
        font-weight: 850;
    }

    .catalog-filter-header p {
        margin: 3px 0 0;
        color: var(--tm-gray);
        font-size: 0.88rem;
        font-weight: 650;
    }

.catalog-filter-close {
    display: none;
    border: 0;
    background: transparent;
    color: var(--tm-black);
    font-size: 1.8rem;
    line-height: 1;
}

.catalog-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.mobile-filter-bar {
    display: none;
    margin-bottom: 14px;
}

.filter-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ================================
   Product catalogue card images
   ================================ */

.product-card .product-card-image,
.product-card .product-image,
.catalog-product-card .product-card-image,
.catalog-product-card .product-image {
    width: 100%;
    height: 130px;
    max-height: 130px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 8px;
}

    .product-card .product-card-image img,
    .product-card .product-image img,
    .catalog-product-card .product-card-image img,
    .catalog-product-card .product-image img {
        width: 100%;
        height: 100%;
        max-width: 110px;
        max-height: 105px;
        object-fit: contain;
        display: block;
    }

/* If the image itself has these classes */
.product-card img.product-card-image,
.product-card img.product-image,
.catalog-product-card img.product-card-image,
.catalog-product-card img.product-image {
    width: 100%;
    height: 130px;
    max-height: 130px;
    object-fit: contain;
    padding: 8px;
    background: #ffffff;
    border: none;
    border-radius: 0;
}

/* Mobile */
@media (max-width: 575.98px) {
    .product-card .product-card-image,
    .product-card .product-image,
    .catalog-product-card .product-card-image,
    .catalog-product-card .product-image,
    .product-card img.product-card-image,
    .product-card img.product-image,
    .catalog-product-card img.product-card-image,
    .catalog-product-card img.product-image {
        height: 115px;
        max-height: 115px;
    }

        .product-card .product-card-image img,
        .product-card .product-image img,
        .catalog-product-card .product-card-image img,
        .catalog-product-card .product-image img {
            max-width: 95px;
            max-height: 90px;
        }
}

/* =========================
   Premium Product Card
========================= */

.product-card {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.95);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 36px rgba(17, 17, 17, 0.055);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    position: relative;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

    .product-card:hover {
        transform: translateY(-3px);
        border-color: rgba(200, 16, 46, 0.24);
        box-shadow: 0 22px 52px rgba(17, 17, 17, 0.10);
    }

    .product-card:has(.product-in-cart-note) {
        border-color: rgba(21, 128, 61, 0.35);
    }

        .product-card:has(.product-in-cart-note)::before {
            content: "";
            position: absolute;
            inset: 0 auto 0 0;
            width: 4px;
            background: var(--tm-success);
            z-index: 2;
        }

.product-image-box {
    width: 100%;
    height: 158px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    border-bottom: 1px solid var(--tm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 12px;
    background: transparent;
}

.product-image-placeholder {
    width: 100%;
    height: 158px;
    background: #f7f7f7;
    color: #999999;
    font-weight: 900;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card-body {
    padding: 15px 16px 13px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card-topline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.product-in-cart-note {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.10);
    color: var(--tm-success);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-card h2 {
    font-size: 1.04rem;
    font-weight: 900;
    color: var(--tm-black);
    line-height: 1.32;
    margin: 0 0 10px;
    letter-spacing: -0.2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.74rem;
}

.product-code-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--tm-gray);
    font-size: 0.84rem;
    font-weight: 800;
    margin-bottom: 10px;
}

    .product-code-line span {
        display: inline-flex;
        align-items: center;
        background: #fafafa;
        border: 1px solid var(--tm-border);
        border-radius: 999px;
        padding: 5px 8px;
        line-height: 1;
    }

.product-packing {
    color: var(--tm-black);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid var(--tm-border);
    border-radius: 13px;
    padding: 9px 10px;
    font-size: 0.88rem;
    font-weight: 850;
    margin: 0 0 10px;
    line-height: 1.35;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

    .product-meta span {
        color: var(--tm-gray);
        background: rgba(17, 17, 17, 0.045);
        border-radius: 999px;
        padding: 6px 9px;
        font-size: 0.82rem;
        font-weight: 800;
        line-height: 1.1;
    }

.product-card-footer {
    padding: 14px 16px 16px;
    border-top: 1px solid var(--tm-border);
    background: #fcfcfc;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.product-price {
    min-width: 0;
    text-align: center;
}

    .product-price strong {
        display: block;
        color: var(--tm-black);
        font-size: 1.16rem;
        line-height: 1.1;
        font-weight: 950;
        letter-spacing: -0.2px;
    }

    .product-price span {
        display: block;
        color: var(--tm-gray);
        font-size: 0.82rem;
        font-weight: 800;
        margin-top: 4px;
    }

.product-add-cart-form {
    margin: 0;
}

.product-cart-controls {
    display: grid;
    grid-template-columns: 92px 100px;
    align-items: end;
    justify-content: center;
    gap: 10px;
}

.product-add-cart-form,
.product-cart-area {
    width: 100%;
    display: grid;
    justify-items: center;
}

.product-qty-box {
    width: 82px;
}

    .product-qty-box label {
        display: block;
        color: var(--tm-gray);
        font-size: 0.76rem;
        font-weight: 900;
        margin-bottom: 4px;
        line-height: 1;
    }

    .product-qty-box input {
        height: 40px;
        min-height: 40px;
        text-align: center;
        font-size: 0.96rem;
        font-weight: 900;
        padding: 4px 7px;
        border-radius: 12px;
    }

.product-cart-controls .btn,
.product-card-footer .btn {
    min-height: 40px;
    height: 40px;
    padding: 8px 13px;
    font-size: 0.9rem;
    white-space: nowrap;
    border-radius: 12px;
}

/* =========================
   Select2
========================= */

.select2-container {
    width: 100% !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.select2-container--default .select2-selection--single {
    height: 46px;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        color: #111111;
        font-size: 0.92rem;
        font-weight: 650;
        line-height: 44px;
        padding-left: 4px;
    }

    .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #999999;
        font-weight: 600;
    }

    .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 44px;
        right: 10px;
    }

.select2-dropdown {
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 9px 12px;
    outline: none;
}

.select2-results__option {
    padding: 10px 14px;
    font-size: 0.92rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: #111111;
    color: #ffffff;
}

.select2-container--default .select2-results__option--selected {
    background: #f3f3f3;
    color: #111111;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #d71920;
    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.12);
}

/* =========================
   Cart Page - Premium UX
========================= */

.cart-page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}

    .cart-page-header h1 {
        margin: 10px 0 0;
        font-size: 1.8rem;
        font-weight: 900;
        color: var(--tm-black);
        letter-spacing: -0.5px;
    }

    .cart-page-header p {
        margin: 5px 0 0;
        color: var(--tm-gray);
        font-size: 1rem;
        font-weight: 650;
    }

.cart-alert {
    border-radius: 14px;
    padding: 12px 14px;
    margin-bottom: 14px;
    font-weight: 750;
    border: 1px solid var(--tm-border);
}

.cart-alert-success {
    background: rgba(21, 128, 61, 0.08);
    color: var(--tm-success);
    border-color: rgba(21, 128, 61, 0.18);
}

.cart-alert-error {
    background: rgba(185, 28, 28, 0.08);
    color: var(--tm-danger);
    border-color: rgba(185, 28, 28, 0.18);
}

.cart-empty-state {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    padding: 42px 22px;
    text-align: center;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

.cart-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(200, 16, 46, 0.08);
    font-size: 1.8rem;
}

.cart-empty-state h2 {
    margin: 0 0 8px;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--tm-black);
}

.cart-empty-state p {
    color: var(--tm-gray);
    margin-bottom: 18px;
    font-size: 1rem;
}

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 20px;
    align-items: start;
}

.cart-items-panel,
.cart-summary-card {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 22px;
    box-shadow: 0 12px 36px rgba(17, 17, 17, 0.05);
}

.cart-items-panel {
    padding: 18px;
}

.cart-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--tm-border);
}

    .cart-panel-header h2 {
        margin: 0;
        font-size: 1.2rem;
        font-weight: 900;
        color: var(--tm-black);
    }

    .cart-panel-header p {
        margin: 4px 0 0;
        color: var(--tm-gray);
        font-size: 0.95rem;
        font-weight: 700;
    }

.cart-items-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.cart-item-card {
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 15px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px 150px;
    gap: 16px;
    align-items: center;
    background: #ffffff;
    transition: opacity 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

    .cart-item-card:hover {
        border-color: rgba(200, 16, 46, 0.20);
    }

    .cart-item-card.is-updating {
        opacity: 0.65;
    }

    .cart-item-card.is-removing {
        opacity: 0;
        transform: translateX(12px);
    }

.cart-item-main {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-width: 0;
}

.cart-item-image {
    width: 88px;
    height: 88px;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .cart-item-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 8px;
    }

    .cart-item-image span {
        color: #999999;
        font-weight: 900;
        letter-spacing: 1px;
    }

.cart-item-info {
    min-width: 0;
}

    .cart-item-info h3 {
        margin: 0 0 8px;
        color: var(--tm-black);
        font-size: 1.08rem;
        font-weight: 900;
        line-height: 1.32;
    }

.cart-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--tm-gray);
    font-size: 0.84rem;
    font-weight: 750;
    margin-bottom: 8px;
}

    .cart-item-meta span {
        background: #fafafa;
        border: 1px solid var(--tm-border);
        border-radius: 999px;
        padding: 4px 8px;
    }

.cart-item-packing {
    display: inline-flex;
    margin: 0;
    color: var(--tm-black);
    background: #fafafa;
    border: 1px solid var(--tm-border);
    border-radius: 10px;
    padding: 7px 9px;
    font-size: 0.86rem;
    font-weight: 800;
}

.cart-item-pricing {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

    .cart-item-pricing span,
    .cart-qty-block label {
        display: block;
        color: var(--tm-gray);
        font-size: 0.82rem;
        font-weight: 850;
        margin-bottom: 4px;
    }

    .cart-item-pricing strong {
        display: block;
        color: var(--tm-black);
        font-size: 1.08rem;
        font-weight: 900;
    }

.cart-item-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    align-items: end;
}

.cart-qty-block {
    min-width: 0;
}

.cart-counter {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
}

.cart-counter-input {
    width: 92px;
    height: 42px;
    min-height: 42px;
    text-align: center;
    font-size: 1rem;
    font-weight: 900;
    border-radius: 12px;
    padding: 5px 8px;
    border: 1px solid var(--tm-border);
    background: #ffffff;
}

    .cart-counter-input:focus {
        border-color: var(--tm-red);
        box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.10);
    }

.cart-remove-icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(185, 28, 28, 0.18);
    background: rgba(185, 28, 28, 0.06);
    color: var(--tm-danger);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

    .cart-remove-icon-btn svg {
        width: 20px;
        height: 20px;
        fill: currentColor;
    }

    .cart-remove-icon-btn:hover,
    .cart-remove-icon-btn:focus {
        background: var(--tm-danger);
        border-color: var(--tm-danger);
        color: #ffffff;
        transform: translateY(-1px);
    }

.cart-summary-card {
    padding: 18px;
    position: sticky;
    top: 96px;
}

.cart-summary-header {
    padding-bottom: 14px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--tm-border);
}

    .cart-summary-header h2 {
        margin: 0;
        color: var(--tm-black);
        font-size: 1.2rem;
        font-weight: 900;
    }

    .cart-summary-header p {
        margin: 4px 0 0;
        color: var(--tm-gray);
        font-size: 0.9rem;
        font-weight: 700;
    }

.cart-summary-lines {
    margin-top: 8px;
}

.cart-summary-line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--tm-border);
}

    .cart-summary-line span {
        color: var(--tm-gray);
        font-weight: 750;
        font-size: 0.95rem;
    }

    .cart-summary-line strong {
        color: var(--tm-black);
        font-weight: 900;
        font-size: 1rem;
    }

.cart-summary-total strong {
    font-size: 1.25rem;
}

.cart-summary-note {
    background: #fafafa;
    border: 1px solid var(--tm-border);
    border-radius: 14px;
    padding: 12px;
    color: var(--tm-gray);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 650;
    margin: 14px 0;
}

/* =========================
   Responsive
========================= */

@media (min-width: 992px) {
    .catalog-filters {
        position: sticky;
        top: 96px;
        align-self: flex-start;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 1250px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1150px) {
    .cart-layout {
        grid-template-columns: 1fr;
    }

    .cart-summary-card {
        position: static;
    }
}

@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .catalog-filters {
        position: static;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-table-wrap {
        display: none !important;
    }

    .cart-item-card {
        grid-template-columns: 1fr;
    }

    .cart-item-pricing {
        grid-template-columns: 1fr 1fr;
    }

    .cart-item-controls {
        display: grid;
        grid-template-columns: 100px 44px;
        gap: 14px;
        align-items: end;
        justify-content: end;
    }
}

@media (max-width: 700px) {
    html {
        font-size: 13.5px;
    }

    main {
        min-height: auto;
    }

    .tm-navbar-inner {
        min-height: 64px;
        gap: 12px;
        padding: 12px 14px;
        flex-wrap: wrap;
    }

    .tm-brand {
        flex: 1;
        min-width: 0;
    }

    .tm-brand-logo {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .tm-brand strong {
        font-size: 0.98rem;
    }

    .tm-brand small {
        font-size: 0.74rem;
    }

    .tm-mobile-menu-button {
        display: inline-flex;
    }

    .tm-navbar-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        background: #181818;
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 18px;
        padding: 12px;
        margin-top: 4px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
    }

        .tm-navbar-menu.is-open {
            display: flex;
        }

    .tm-nav-links {
        width: 100%;
        margin-left: 0;
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

        .tm-nav-links a {
            width: 100%;
            color: #ffffff;
            background: rgba(255, 255, 255, 0.06);
            padding: 12px 14px;
            border-radius: 13px;
            border-bottom: 0;
        }

            .tm-nav-links a:hover {
                background: rgba(200, 16, 46, 0.24);
                border-bottom: 0;
            }

    .tm-user-area {
        width: 100%;
        margin-left: 0;
        justify-content: space-between;
        background: rgba(255, 255, 255, 0.06);
        padding: 10px 12px;
        border-radius: 14px;
    }

        .tm-user-area span {
            max-width: 190px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

    .page-shell {
        padding: 18px 12px;
    }

    .page-header {
        border-radius: 18px;
        padding: 20px 18px;
        margin-bottom: 16px;
    }

        .page-header.d-flex {
            flex-direction: column;
            align-items: stretch !important;
        }

        .page-header .btn {
            width: 100%;
        }

        .page-header h1 {
            font-size: 1.55rem;
            line-height: 1.2;
        }

        .page-header p {
            font-size: 0.92rem;
        }

    .content-card {
        border-radius: 18px;
        padding: 18px;
    }

        .content-card form .btn {
            min-height: 42px;
        }

    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .dashboard-card {
        border-radius: 18px;
        padding: 20px;
        min-height: auto;
    }

    .dashboard-card-label {
        font-size: 0.72rem;
        padding: 5px 9px;
        margin-bottom: 12px;
    }

    .dashboard-card h2 {
        font-size: 1.08rem;
    }

    .dashboard-card p {
        font-size: 0.92rem;
    }

    .auth-page {
        align-items: flex-start;
        padding-top: 28px;
    }

    .auth-card {
        padding: 24px;
        border-radius: 18px;
    }

    .auth-brand {
        align-items: flex-start;
    }

        .auth-brand h1 {
            font-size: 1.25rem;
        }

    .auth-logo {
        width: 50px;
        height: 50px;
    }

    .btn {
        min-height: 42px;
    }

    .form-control,
    .form-select {
        min-height: 44px;
        font-size: 1rem;
    }

    .tm-table-card {
        border-radius: 16px;
        margin-left: -2px;
        margin-right: -2px;
    }

    .tm-table {
        min-width: 980px;
    }

        .tm-table thead th,
        .tm-table tbody td {
            white-space: nowrap;
            padding: 12px 14px;
        }

        .tm-table thead th {
            font-size: 0.72rem;
        }

        .tm-table tbody td {
            font-size: 0.9rem;
        }

    .page-header-actions {
        flex-direction: column;
        align-items: stretch;
    }

        .page-header-actions .btn {
            width: 100%;
        }

    .customer-filter-card {
        padding: 16px;
    }

    .customer-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .customer-count-line {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .customer-mobile-card,
    .empty-mobile-card {
        border-radius: 16px;
        padding: 16px;
    }

    .customer-mobile-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .customer-mobile-info-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .customer-mobile-actions {
        grid-template-columns: 1fr;
    }

        .customer-mobile-actions .btn,
        .customer-mobile-actions button {
            min-height: 44px;
        }

    .customer-form-card {
        padding: 16px;
    }

    .form-section {
        padding-bottom: 22px;
        margin-bottom: 22px;
    }

    .form-section-header h2 {
        font-size: 1.05rem;
    }

    .account-status-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .form-action-bar {
        flex-direction: column-reverse;
    }

        .form-action-bar .btn {
            width: 100%;
            min-width: 0;
            min-height: 44px;
        }

    .product-page-header {
        flex-direction: column;
    }

    .catalog-header-meta {
        width: 100%;
        text-align: left;
        min-width: 0;
    }

    .mobile-filter-bar {
        display: block;
    }

        .mobile-filter-bar .btn {
            width: 100%;
        }

    .catalog-filters {
        display: none;
        border-radius: 18px;
        padding: 18px;
        margin-bottom: 14px;
    }

        .catalog-filters.is-open {
            display: block;
        }

    .catalog-filter-close {
        display: inline-flex;
    }

    .filter-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .product-card {
        border-radius: 18px;
    }

        .product-card::before {
            display: none;
        }

    .product-image-box,
    .product-image-placeholder {
        height: 150px;
    }

    .product-image {
        padding: 10px;
    }

    .product-card-body {
        padding: 14px;
    }

    .product-card h2 {
        font-size: 1rem;
        min-height: auto;
    }

    .product-card-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 12px;
    }

        .product-card-footer .btn {
            width: 100%;
        }

    .product-cart-controls {
        width: 100%;
        display: grid;
        grid-template-columns: 100px 1fr;
        align-items: end;
    }

    .product-qty-box {
        width: 100%;
    }

    .product-cart-controls .btn {
        width: 100%;
    }

    .cart-page-header {
        flex-direction: column;
        align-items: stretch;
    }

        .cart-page-header .btn {
            width: 100%;
        }

    .cart-items-panel {
        padding: 14px;
        border-radius: 18px;
    }

    .cart-item-main {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .cart-item-image {
        width: 76px;
        height: 76px;
    }

    .cart-item-pricing {
        grid-template-columns: 1fr 1fr;
    }

    .cart-item-controls {
        grid-template-columns: 1fr;
    }

    .cart-counter {
        grid-template-columns: 40px minmax(70px, 1fr) 40px;
    }

    .cart-counter-btn,
    .cart-counter-input {
        height: 42px;
        min-height: 42px;
    }

    .cart-remove-icon-btn {
        width: 42px;
        height: 42px;
    }

    @media (max-width: 420px) {
        .page-shell {
            padding: 14px 10px;
        }

        .page-header {
            padding: 18px 16px;
        }

        .content-card {
            padding: 16px;
        }

        .tm-user-area {
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

            .tm-user-area form,
            .tm-user-area button {
                width: 100%;
            }

        .auth-card {
            padding: 20px;
        }

        .cart-item-pricing {
            grid-template-columns: 1fr;
        }

        .product-cart-controls {
            grid-template-columns: 1fr;
        }
    }
}


/* =========================
   Product Details Page V2
========================= */

.product-details-page-v2 {
    max-width: 1500px;
    margin: 0 auto;
}

.product-detail-topbar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.product-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    white-space: nowrap;
}

.product-detail-title-block {
    min-width: 0;
    text-align: right;
}

.product-detail-kicker,
.product-detail-section-header span,
.order-card-header span,
.order-status-panel span,
.product-detail-cart-form label,
.product-detail-key-strip span,
.logistics-card span,
.product-spec-item span {
    display: block;
    color: var(--tm-gray);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-detail-kicker,
.product-detail-section-header span {
    color: var(--tm-red);
}

.product-detail-title-block h1 {
    margin: 4px 0 4px;
    color: var(--tm-black);
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.35px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-detail-title-block p {
    margin: 0;
    color: var(--tm-gray);
    font-size: 0.93rem;
    font-weight: 650;
}

.product-detail-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.product-detail-hero-card,
.product-detail-order-card,
.product-detail-section {
    background: #ffffff;
    border: 1px solid var(--tm-border);
    border-radius: 24px;
    box-shadow: 0 16px 44px rgba(17, 17, 17, 0.06);
}

.product-detail-hero-card {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 28px;
    min-height: 390px;
    padding: 28px;
    position: relative;
    overflow: hidden;
}

    .product-detail-hero-card::before {
        content: "";
        position: absolute;
        inset: 0 auto 0 0;
        width: 5px;
        background: var(--tm-red);
    }

.product-detail-image-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.product-detail-image-frame {
    width: 100%;
    max-width: 305px;
    aspect-ratio: 1 / 1;
    border-radius: 24px;
    border: 1px solid var(--tm-border);
    background: radial-gradient(circle at 30% 20%, rgba(200, 16, 46, 0.07), transparent 30%), linear-gradient(180deg, #ffffff 0%, #fbfbfb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

    .product-detail-image-frame img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        padding: 22px;
    }

.product-detail-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #9ca3af;
}

    .product-detail-image-placeholder span {
        width: 76px;
        height: 76px;
        border-radius: 22px;
        background: #ffffff;
        border: 1px solid var(--tm-border);
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--tm-black);
        font-weight: 950;
        font-size: 1.25rem;
        box-shadow: 0 12px 32px rgba(17, 17, 17, 0.06);
    }

    .product-detail-image-placeholder small {
        font-weight: 850;
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

.product-detail-main-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.product-detail-badge-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.product-detail-cart-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(21, 128, 61, 0.10);
    color: var(--tm-success);
    border: 1px solid rgba(21, 128, 61, 0.18);
    font-size: 0.78rem;
    font-weight: 900;
}

.product-detail-main-info h2 {
    color: var(--tm-black);
    margin: 0;
    font-size: clamp(1.55rem, 2.5vw, 2.35rem);
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.7px;
}

.product-detail-description {
    margin: 16px 0 0;
    color: var(--tm-gray);
    font-size: 1rem;
    line-height: 1.65;
    font-weight: 650;
    max-width: 820px;
}

    .product-detail-description.muted {
        color: var(--tm-muted);
    }

.product-detail-key-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

    .product-detail-key-strip div {
        min-width: 0;
        background: #fafafa;
        border: 1px solid var(--tm-border);
        border-radius: 17px;
        padding: 14px 15px;
    }

    .product-detail-key-strip strong {
        display: block;
        color: var(--tm-black);
        font-size: 0.94rem;
        line-height: 1.35;
        font-weight: 900;
        margin-top: 6px;
        overflow-wrap: anywhere;
    }

.product-detail-order-card {
    padding: 22px;
    position: sticky;
    top: 96px;
}

.order-card-header {
    padding: 2px 0 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--tm-border);
}

    .order-card-header strong {
        display: block;
        color: var(--tm-black);
        font-size: 2rem;
        line-height: 1.05;
        font-weight: 950;
        letter-spacing: -0.5px;
        margin-top: 8px;
    }

.order-status-panel {
    background: #fafafa;
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 16px;
}

    .order-status-panel strong {
        display: block;
        color: var(--tm-black);
        font-size: 1rem;
        font-weight: 950;
        margin-top: 5px;
    }

    .order-status-panel p {
        color: var(--tm-gray);
        margin: 10px 0 0;
        font-size: 0.88rem;
        line-height: 1.5;
        font-weight: 650;
    }

.product-detail-cart-form {
    display: grid;
    gap: 10px;
}

    .product-detail-cart-form input {
        height: 48px;
        border-radius: 14px;
        text-align: center;
        font-weight: 950;
    }

    .product-detail-cart-form .btn,
    .product-detail-order-card > .btn {
        min-height: 48px;
        border-radius: 14px;
    }

.product-detail-section {
    padding: 24px;
    margin-bottom: 18px;
}

.product-detail-section-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 18px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--tm-border);
}

    .product-detail-section-header h3 {
        margin: 4px 0 0;
        color: var(--tm-black);
        font-size: 1.24rem;
        font-weight: 950;
        letter-spacing: -0.25px;
    }

.product-logistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.logistics-card {
    min-width: 0;
    min-height: 150px;
    background: #fafafa;
    border: 1px solid var(--tm-border);
    border-radius: 20px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

    .logistics-card.featured {
        background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
        border-color: rgba(200, 16, 46, 0.18);
    }

        .logistics-card.featured::after {
            content: "";
            position: absolute;
            right: -28px;
            bottom: -28px;
            width: 94px;
            height: 94px;
            border-radius: 50%;
            background: rgba(200, 16, 46, 0.06);
        }

.logistics-icon,
.spec-icon {
    width: 44px;
    height: 44px;
    border-radius: 15px;
    background: #ffffff;
    border: 1px solid var(--tm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 22px rgba(17, 17, 17, 0.045);
}

    .logistics-icon svg,
    .spec-icon svg {
        width: 21px;
        height: 21px;
        fill: var(--tm-red);
    }

.logistics-card strong {
    display: block;
    color: var(--tm-black);
    font-size: 1.28rem;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.3px;
    margin-top: 7px;
    overflow-wrap: anywhere;
}

.product-spec-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.product-spec-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    background: #fafafa;
    border: 1px solid var(--tm-border);
    border-radius: 18px;
    padding: 14px;
    min-height: 84px;
}

    .product-spec-item strong {
        display: block;
        color: var(--tm-black);
        font-size: 0.94rem;
        line-height: 1.35;
        font-weight: 900;
        margin-top: 5px;
        overflow-wrap: anywhere;
    }

@media (max-width: 1250px) {
    .product-detail-shell {
        grid-template-columns: 1fr;
    }

    .product-detail-order-card {
        position: static;
    }

    .product-logistics-grid,
    .product-spec-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .product-detail-topbar {
        grid-template-columns: 1fr;
    }

    .product-detail-title-block {
        text-align: left;
    }

        .product-detail-title-block h1 {
            white-space: normal;
        }

    .product-detail-hero-card {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px;
    }

    .product-detail-image-frame {
        max-width: 340px;
    }

    .product-detail-key-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .product-details-page-v2 {
        padding-left: 12px;
        padding-right: 12px;
    }

    .product-detail-hero-card,
    .product-detail-order-card,
    .product-detail-section {
        border-radius: 18px;
        padding: 16px;
    }

    .product-detail-main-info h2 {
        font-size: 1.35rem;
    }

    .order-card-header strong {
        font-size: 1.55rem;
    }

    .product-logistics-grid,
    .product-spec-grid {
        grid-template-columns: 1fr;
    }

    .product-detail-section-header {
        display: block;
    }

    .logistics-card {
        min-height: 128px;
    }
}

/* =========================
   Softer Typography Override
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 750 !important;
}

strong,
b {
    font-weight: 700 !important;
}

.tm-brand strong,
.page-header h1,
.auth-brand h1,
.dashboard-card h2,
.customer-mobile-card-header h2,
.product-card h2,
.product-price strong,
.cart-page-header h1,
.cart-panel-header h2,
.cart-item-info h3,
.cart-summary-header h2,
.tm-detail-toolbar-text h1,
.tm-product-summary-area h2,
.tm-section-title h3,
.tm-order-price strong,
.tm-product-info-item strong,
.tm-quick-info strong {
    font-weight: 750 !important;
}

.tm-badge,
.product-in-cart-note,
.btn,
.form-label,
.tm-nav-links a,
.product-code-line,
.product-packing,
.cart-item-packing,
.cart-summary-line strong,
.tm-product-cart-form label,
.tm-order-price span,
.tm-order-status-box span,
.tm-product-info-item span,
.tm-quick-info span {
    font-weight: 650 !important;
}

.product-price-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.product-margin-inline {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    white-space: nowrap;
}

.topmarket-brand {
    display: inline-flex;
    align-items: center;
    padding-right: 0px;
    margin-right: 0px;
    text-decoration: none;
}

.topmarket-logo-circle {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.10);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.topmarket-logo {
    max-width: 65px;
    max-height: 65px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

@media (max-width: 768px) {
    .topmarket-brand {
        padding-right: 2px;
        margin-right: 2px;
    }

    .topmarket-logo-circle {
        width: 44px;
        height: 44px;
        padding: 4px;
    }

    .topmarket-logo {
        max-width: 35px;
        max-height: 35px;
    }
}

}

.product-image-link {
    position: relative;
}

.catalog-promo-image-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 5px 9px;
    border-radius: 999px;
    background: var(--tm-red);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(220, 38, 38, 0.28);
}

.catalog-price-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.catalog-promo-price-note {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 0.72rem;
    font-weight: 850;
}
.home-bonus-offer {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 5px;
    padding: 5px 9px;
    border-radius: 999px;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534 !important;
    font-size: 0.76rem;
    font-weight: 900;
}

.tm-admin-body {
    margin: 0;
    background: #f6f7f9;
    color: #111827;
}

.tm-admin-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
}

.tm-admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: #080808;
    color: #ffffff;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    z-index: 1000;
}

.tm-admin-brand {
    min-height: 70px;
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 2px solid var(--tm-red, #c8102e);
}

.tm-admin-brand-link {
    color: #ffffff;
    text-decoration: none;
}

    .tm-admin-brand-link:hover {
        color: #ffffff;
    }

    .tm-admin-brand-link strong {
        display: block;
        font-size: 1rem;
        font-weight: 900;
        letter-spacing: -0.02em;
    }

    .tm-admin-brand-link small {
        display: block;
        margin-top: 2px;
        color: rgba(255, 255, 255, 0.68);
        font-size: 0.76rem;
        font-weight: 700;
    }

.tm-admin-nav {
    display: grid;
    gap: 5px;
    padding: 12px 9px;
}

.tm-admin-nav-link,
.tm-admin-logout-btn {
    width: 100%;
    min-height: 41px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 11px;
    border-radius: 12px;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    transition: all 0.16s ease;
}

    .tm-admin-nav-link i,
    .tm-admin-logout-btn i {
        font-size: 1rem;
        width: 18px;
        text-align: center;
    }

    .tm-admin-nav-link:hover,
    .tm-admin-logout-btn:hover {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
    }

    .tm-admin-nav-link.active {
        background: #ffffff;
        color: #080808;
    }

        .tm-admin-nav-link.active i {
            color: var(--tm-red, #c8102e);
        }

.tm-admin-sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 5px;
    padding: 9px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tm-admin-logout-btn {
    cursor: pointer;
    text-align: left;
}

.tm-admin-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tm-admin-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    gap: 14px;
    justify-content: space-between;
    padding: 14px 22px;
    background: #ffffff;
    border-bottom: 1px solid #ececec;
    position: sticky;
    top: 0;
    z-index: 500;
}

.tm-admin-page-title {
    margin-right: auto;
}

.tm-admin-topbar-kicker {
    display: block;
    margin-bottom: 2px;
    color: var(--tm-red, #c8102e);
    font-size: 0.72rem;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tm-admin-topbar h1 {
    margin: 0;
    color: #111827;
    font-size: 1.25rem;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.tm-admin-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    color: #111827;
    font-size: 1.15rem;
}

.tm-admin-user-box {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 250px;
    padding: 8px 11px;
    border-radius: 999px;
    background: #fafafa;
    border: 1px solid #eeeeee;
    color: #374151;
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-admin-content {
    min-width: 0;
    padding: 20px;
}

    .tm-admin-content .page-shell {
        max-width: 100%;
        padding: 0;
    }

@media (max-width: 992px) {
    .tm-admin-shell {
        grid-template-columns: 1fr;
    }

    .tm-admin-sidebar {
        position: fixed;
        left: -230px;
        top: 0;
        width: 220px;
        transition: left 0.2s ease;
    }

        .tm-admin-sidebar.open {
            left: 0;
        }

    .tm-admin-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .tm-admin-content {
        padding: 14px;
    }

    .tm-admin-user-box {
        display: none;
    }
}

.global-catalogue-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 6000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.84);
    backdrop-filter: blur(5px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease, visibility 0.18s ease;
}

    .global-catalogue-loading-overlay.hidden {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

.global-catalogue-loading-card {
    min-width: 300px;
    padding: 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.16);
    text-align: center;
    display: grid;
    justify-items: center;
    gap: 8px;
}

    .global-catalogue-loading-card strong {
        color: var(--tm-black);
        font-size: 1rem;
        font-weight: 950;
    }

    .global-catalogue-loading-card span {
        color: var(--tm-gray);
        font-size: 0.86rem;
        font-weight: 650;
    }

.global-catalogue-loading-spinner {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 4px solid #eeeeee;
    border-top-color: var(--tm-red);
    animation: globalCatalogueSpin 0.8s linear infinite;
}

@keyframes globalCatalogueSpin {
    to {
        transform: rotate(360deg);
    }
}

.tm-admin-nav-link,
.tm-admin-logout-btn {
    font-size: 1rem;
    font-weight: 400;
}

    .tm-admin-nav-link span,
    .tm-admin-logout-btn span {
        font-weight: 400;
    }

.tm-admin-brand-link strong {
    font-weight: 500;
}