:root {
    --tm-primary: #FFB100;      /* Astra global-color-1 */
    --tm-primary-light: #F9C349; /* Astra global-color-0 */
    --tm-secondary: #4D4A46;    /* Astra global-color-5 */
    --tm-text: #1E1810;         /* Astra global-color-4 */
    --tm-bg-light: #F6F7F8;     /* Astra global-color-8 */
    --tm-bg-subtle: #F0EFEC;    /* Astra global-color-3 */
    --tm-font: 'Montserrat', sans-serif;
}

.tm-product-page-wrapper,
.tmc-catalog-wrapper,
.tmi-dashboard {
    font-family: var(--tm-font);
    color: var(--tm-text);
    box-sizing: border-box;
}

.tm-product-page-wrapper *,
.tmc-catalog-wrapper *,
.tmi-dashboard * {
    box-sizing: border-box;
}

.tm-section {
    margin-bottom: 25px;
    background: #fdfdfd;
    border: 1px solid #eaeaea;
    padding: 20px;
    border-radius: 0px;
}

.tm-section-title {
    margin-top: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--tm-text);
    margin-bottom: 15px;
}

.tm-grid-options {
    display: grid;
    gap: 15px;
}

.tm-colours-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.tm-branding-grid {
    grid-template-columns: 1fr;
}

.tm-option-card {
    display: block;
    cursor: pointer;
    position: relative;
}

.tm-hidden-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tm-card-content {
    border: 2px solid #ddd;
    border-radius: 0px;
    padding: 15px;
    background: #fff;
    transition: all 0.2s ease;
}

.tm-hidden-radio:checked + .tm-card-content {
    border-color: var(--tm-primary);
    background: #fffcf0;
    box-shadow: 0 4px 12px rgba(255, 177, 0, 0.15);
}

.tm-colour-name, .tm-method-title {
    font-size: 15px;
    margin-bottom: 5px;
}

.tm-stock-info {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.tm-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 0px;
    text-transform: uppercase;
}

.tm-badge-success { background: #d4edda; color: #155724; }
.tm-badge-danger { background: #f8d7da; color: #721c24; }

.tm-delivery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tm-delivery-cell {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    padding: 6px 10px;
    border-radius: 0px;
    font-size: 12px;
    text-align: center;
    transition: background-color 0.2s, border-color 0.2s;
}

.tm-delivery-cell.highlight {
    background: var(--tm-primary);
    color: var(--tm-text);
    border-color: var(--tm-primary-light);
}

.tm-delivery-cell.highlight .tm-day-lbl,
.tm-delivery-cell.highlight .tm-max-lbl {
    color: #fff;
}

.tm-day-lbl { font-weight: 700; color: #334155; }
.tm-max-lbl { color: #64748b; }

.tm-input-large {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 0px;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    box-sizing: border-box !important;
}

.tm-input-large:focus {
    border-color: var(--tm-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 177, 0, 0.2);
}

.tm-feedback {
    margin-top: 10px;
    font-weight: 600;
    font-size: 14px;
}

.tm-result-container {
    margin-top: 30px;
    background: #f8fafc;
    border-radius: 0px;
    padding: 20px;
    border: 1px solid #e2e8f0;
}

.tm-val {
    font-weight: 600;
    color: #1a202c;
}

/* ==========================================================================
   Product Page Layout (2 Columns + Tabs)
   ========================================================================== */

.tm-product-page-wrapper {
    font-family: var(--tmc-font);
    color: #333;
    container-type: inline-size;
    container-name: tmprod;
}

.tm-product-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .tm-product-top {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Gallery */
.tm-product-gallery {
    position: relative;
}

@media (min-width: 769px) {
    .tm-product-gallery {
        position: sticky;
        top: 20px;
    }
}

.tm-gallery-main {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 0px;
    overflow: hidden;
    margin-bottom: 15px;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tm-gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.tm-no-image {
    background: #f8f9fa;
    color: #adb5bd;
    font-size: 18px;
}

.tm-gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.tm-thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.tm-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tm-thumb-active {
    border-color: var(--tm-primary);
}

/* Configurator */
.tm-product-configurator {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.tm-config-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eaeaea;
}

.tm-product-badges {
    margin-bottom: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tm-product-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.tm-product-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.tm-product-short-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
    margin: 0;
}

/* Tabs */
.tm-product-tabs {
    background: #fff;
    border-radius: 0px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    margin-top: 40px;
}

.tm-tabs-nav {
    display: flex;
    border-bottom: 1px solid #eaeaea;
    background: #fdfdfd;
    overflow-x: auto;
}

.tm-tab-btn {
    padding: 18px 24px;
    background: none;
    border: none;
    font-size: 15px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.tm-tab-btn:hover {
    color: var(--tm-primary, #FFB100);
}

.tm-tab-btn.active {
    color: var(--tm-primary, #FFB100);
    border-bottom-color: var(--tm-primary, #FFB100);
    background: #fff;
}

.tm-tab-content {
    display: none;
    padding: 30px;
    line-height: 1.6;
    color: #444;
    overflow-x: auto;
}

.tm-tab-content.active {
    display: block;
}

.tm-tab-content h4 {
    margin-top: 25px;
    margin-bottom: 10px;
    color: #222;
}

.tm-warning-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin-top: 20px;
    color: #856404;
    border-radius: 0px;
}

/* Data Table */
.tm-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.tm-data-table th,
.tm-data-table td {
    padding: 15px;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}

.tm-data-table th {
    width: 30%;
    font-weight: 600;
    color: #222;
    background: #fafafa;
}

.tm-data-table tr:last-child th,
.tm-data-table tr:last-child td {
    border-bottom: none;
}

/* ==========================================================================
   Product Page Navigation (Back Link + Breadcrumbs)
   ========================================================================== */

.tm-product-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.tm-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--tm-text, #333);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 14px;
    border-radius: 0px;
    background: var(--tm-bg-subtle, #F0EFEC);
    transition: all 0.2s ease;
}

.tm-back-link:hover {
    background: var(--tm-primary, #FFB100);
    color: #fff;
}

.tm-back-link svg {
    flex-shrink: 0;
}

.tm-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #888;
    flex-wrap: wrap;
}

.tm-breadcrumb-item a {
    color: var(--tm-text, #333);
    text-decoration: none;
}

.tm-breadcrumb-item a:hover {
    color: var(--tm-primary, #FFB100);
    text-decoration: underline;
}

.tm-breadcrumb-sep {
    color: #ccc;
    font-size: 12px;
}

.tm-breadcrumb-current {
    color: var(--tm-primary, #FFB100);
    font-weight: 600;
}

@container tmprod (max-width: 600px) {
    .tm-product-nav {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Inventory Dashboard — Accordion & Tables
   ========================================================================== */

.tmi-dashboard {
    font-family: var(--tm-font);
    color: var(--tm-text, #333);
    line-height: 1.5;
    max-width: 1200px;
    margin: 0 auto;
}

.tmi-dashboard * {
    box-sizing: border-box;
}

.tmi-dashboard-header {
    background: var(--tm-secondary, #312e81);
    color: #fff;
    padding: 32px 36px;
    border-radius: 0px;
}

.tmi-dashboard-title {
    margin: 0 0 4px 0;
    font-size: 24px;
    font-weight: 700;
}

/* Accordion */
.tmi-accordion {
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0px;
    overflow: hidden;
}

.tmi-accordion-item {
    border-bottom: 1px solid #e2e8f0;
}

.tmi-accordion-item:last-child {
    border-bottom: none;
}

.tmi-accordion-trigger {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #fafbfc;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    transition: background 0.2s ease;
}

.tmi-accordion-trigger:hover {
    background: #f1f5f9;
}

.tmi-accordion-icon {
    font-size: 18px;
    font-weight: 700;
    color: var(--tm-primary, #FFB100);
    transition: transform 0.3s ease;
    display: inline-block;
    width: 16px;
    text-align: center;
}

.tmi-accordion-trigger[aria-expanded="true"] .tmi-accordion-icon {
    transform: rotate(90deg);
}

.tmi-accordion-title {
    flex: 1;
}

.tmi-accordion-count {
    font-size: 12px;
    font-weight: 500;
    color: #64748b;
    background: #e2e8f0;
    padding: 2px 10px;
    border-radius: 0px;
}

.tmi-accordion-panel {
    padding: 0;
    overflow-x: auto;
}

/* Product Table */
.tmi-product-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.tmi-product-table thead th {
    background: #f8fafc;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    text-align: left;
    border-bottom: 2px solid #e2e8f0;
}

.tmi-product-row {
    border-bottom: 1px solid #f1f5f9;
    transition: background 0.15s ease;
}

.tmi-product-row:hover {
    background: #f8fafc;
}

.tmi-product-row td {
    padding: 12px 16px;
    vertical-align: top;
}

/* Product cell */
.tmi-product-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.tmi-product-link:hover .tmi-product-title {
    color: #6366f1;
}

.tmi-product-thumb {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 0px;
    background: #f8fafc;
    flex-shrink: 0;
}

.tmi-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmi-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    transition: color 0.15s ease;
}

.tmi-product-sku {
    font-size: 11px;
    color: #94a3b8;
}

.tmi-product-price {
    font-size: 12px;
    color: #059669;
    font-weight: 600;
}

/* Stock cells */
.tmi-stock-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tmi-stock-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 0px;
    font-size: 11px;
    font-weight: 500;
}

.tmi-stock-high {
    background: #ecfdf5;
    color: #059669;
}

.tmi-stock-low {
    background: #fffbeb;
    color: #d97706;
}

.tmi-stock-out {
    background: #fef2f2;
    color: #dc2626;
}

.tmi-colour-code {
    font-weight: 600;
}

.tmi-stock-total {
    margin-top: 4px;
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

/* Branding cells */
.tmi-branding-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tmi-branding-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 500;
    background: #ede9fe;
    color: #6d28d9;
}

.tmi-branding-tag small {
    font-weight: 400;
    opacity: 0.7;
}

/* Delivery cell */
.tmi-delivery-badge {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tmi-delivery-day {
    font-size: 14px;
    font-weight: 700;
    color: #059669;
}

.tmi-delivery-badge small {
    font-size: 11px;
    color: #64748b;
}

.tmi-no-data {
    color: #cbd5e1;
    font-size: 14px;
}

.tmi-empty {
    text-align: center;
    padding: 40px;
    color: #94a3b8;
}

/* Responsive — Dashboard */
@media screen and (max-width: 768px) {
    .tmi-dashboard-header {
        padding: 20px 16px;
    }

    .tmi-dashboard-title {
        font-size: 18px;
    }

    .tmi-accordion-trigger {
        padding: 12px 16px;
        font-size: 14px;
    }

    .tmi-product-table {
        font-size: 12px;
    }

    .tmi-product-table thead th {
        font-size: 10px;
        padding: 8px 10px;
    }

    .tmi-product-row td {
        padding: 10px;
    }

    .tmi-product-thumb {
        width: 36px;
        height: 36px;
    }
}

/* ==========================================================================
   Image Gallery Arrows
   ========================================================================== */
.tm-gallery-main {
    position: relative;
}

.tm-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--tm-text, #333);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    z-index: 10;
}

.tm-gallery-arrow:hover {
    background: var(--tm-primary, #FFB100);
    color: #fff;
    border-color: var(--tm-primary, #FFB100);
}

.tm-gallery-prev {
    left: 10px;
}

.tm-gallery-next {
    right: 10px;
}

@media (max-width: 768px) {
    .tm-gallery-arrow {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   Quote Summary UI
   ========================================================================== */
.tm-quote-summary {
    background: #fff;
    border: 2px solid var(--tm-bg-subtle, #eee);
    border-radius: 0px;
    overflow: hidden;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.tm-quote-header {
    background: var(--tm-bg-light, #f8f9fa);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--tm-bg-subtle, #eee);
}

.tm-result-heading {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--tm-text, #333);
}

.tm-quote-badge {
    background: var(--tm-primary-light, #e0e7ff);
    color: var(--tm-text, #4338ca);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 0px;
}

.tm-quote-body {
    padding: 20px;
}

.tm-result-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px dashed var(--tm-bg-subtle, #eee);
    font-size: 14px;
}

.tm-result-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.tm-row-label strong {
    display: block;
    color: var(--tm-text, #333);
}

.tm-row-label small {
    color: #666;
    font-size: 12px;
}

.tm-result-total {
    background: var(--tm-primary, #4338ca);
    color: #fff;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-total-label {
    font-size: 16px;
    font-weight: 600;
}

.tm-total-label small {
    font-size: 12px;
    opacity: 0.8;
}

.tm-total-price {
    font-size: 24px;
    font-weight: 700;
}

/* ==========================================================================
   Dashboard Stats Grid
   ========================================================================== */
.tmi-dashboard-header {
    background: var(--tm-secondary, #312e81);
    padding: 32px 36px;
    border-radius: 0px;
    color: #fff;
}

.tmi-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 24px;
}

.tmi-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 0px;
    display: flex;
    flex-direction: column;
}

.tmi-stat-card.tmi-stat-warning .tmi-stat-value { color: #f59e0b; }
.tmi-stat-card.tmi-stat-danger .tmi-stat-value { color: #ef4444; }
.tmi-stat-card.tmi-stat-info .tmi-stat-value { color: #06b6d4; }

.tmi-stat-value {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--tm-primary, #FFB100);
}

.tmi-stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* Dashboard Filters */
.tmi-dashboard-filters {
    background: #fff;
    padding: 20px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 15px;
}

.tmi-search-input {
    flex: 1;
    min-width: 250px;
    padding: 10px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 0px;
    font-size: 14px;
}

.tmi-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tmi-filter-btn {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    color: #475569;
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.tmi-filter-btn:hover { background: #e2e8f0; }

.tmi-filter-btn.active {
    background: var(--tm-primary, #FFB100);
    border-color: var(--tm-primary, #FFB100);
    color: #fff;
}

/* Procurement Table */
.tmi-procurement-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    margin: 24px 36px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.tmi-procurement-table-wrapper {
    overflow-x: auto;
}

.tmi-procurement-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 16px;
    font-size: 14px;
}

.tmi-procurement-table th {
    background: #f8fafc;
    color: #475569;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.tmi-procurement-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    color: var(--tm-text);
}

.tmi-bo-date { font-weight: 600; color: #06b6d4; }
.tmi-bo-qty { font-weight: 700; color: #10b981; }

/* JS-driven utility: dashboard filtering hides rows/items dynamically */
.tmi-product-row.hidden { display: none !important; }
.tmi-accordion-item.hidden { display: none !important; }

/* 2-Column Dashboard Layout */
.tmi-dashboard-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    margin: 24px 36px;
    align-items: start;
}

/* Sidebar Styles */
.tmi-sidebar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0px;
    padding: 20px;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.tmi-sidebar-toggle {
    display: none;
    width: 100%;
    background: transparent;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.tmi-sidebar-title {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 12px;
}

.tmi-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tmi-category-list li {
    margin-bottom: 4px;
}

.tmi-cat-btn {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 10px 12px;
    border-radius: 0px;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    font-family: inherit;
}

.tmi-cat-btn:hover {
    background: #f8fafc;
    color: #1e293b;
}

.tmi-cat-btn.active {
    background: #f1f5f9;
    color: var(--tm-primary, #FFB100);
    font-weight: 600;
}

.tmi-cat-count {
    background: #e2e8f0;
    color: #64748b;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 0px;
    font-weight: 600;
}

.tmi-cat-btn.active .tmi-cat-count {
    background: var(--tm-primary, #FFB100);
    color: #fff;
}

@media (max-width: 900px) {
    .tmi-dashboard-layout {
        grid-template-columns: 1fr;
    }

    .tmi-sidebar {
        position: static;
        max-height: none;
        margin-bottom: 24px;
        padding: 16px;
    }

    .tmi-sidebar-toggle {
        display: flex;
    }

    .tmi-sidebar-content {
        display: none;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid #e2e8f0;
    }

    .tmi-sidebar.open .tmi-sidebar-content {
        display: block;
    }

    .tmi-sidebar-title {
        display: none;
    }
}

/* ============================================
   TM PRINT SITE — GLOBAL THEME OVERRIDES
   ============================================ */

/* All buttons plugin-wide — ghost style matching TM Print site */
.tm-back-link,
.tmi-filter-btn {
    border: 2px solid #000000 !important;
    color: #000000 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    transition: all 0.25s ease !important;
    padding: 12px 28px !important;
}

.tm-back-link:hover,
.tmi-filter-btn:hover {
    background: #000000 !important;
    color: #FFB100 !important;
    border-color: #000000 !important;
}

/* Tab buttons on product page */
.tm-tab-btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 13px;
    text-transform: uppercase;
    color: #6e6e73;
    transition: all 0.2s;
    border-bottom: 2px solid transparent;
}

.tm-tab-btn:hover {
    color: #FFB100;
}

.tm-tab-btn.active {
    color: #FFB100;
    border-bottom-color: #FFB100;
    background: #fff;
}

/* Product page back link */
.tm-back-link {
    background: transparent !important;
    border: 2px solid #000 !important;
    color: #000 !important;
    font-size: 12px !important;
    padding: 8px 18px !important;
}

.tm-back-link:hover {
    background: #000 !important;
    color: #FFB100 !important;
}

/* ============================================
   PRODUCT PAGE OVERRIDES
   ============================================ */
.tm-product-page-wrapper {
    font-family: 'Montserrat', sans-serif !important;
}

/* Titles */
.tm-product-title {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    margin-bottom: 10px !important;
}

/* Sections */
.tm-section {
    background: #fff;
    border: 1px solid #eaeaea;
    padding: 20px;
    margin-bottom: 20px;
}

.tm-section-title {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 14px;
    margin-bottom: 15px;
    border-bottom: 2px solid #FFB100;
    padding-bottom: 10px;
    display: inline-block;
}

/* Option Cards (Radios) */
.tm-option-card .tm-card-content {
    border: 1px solid #eaeaea !important;
    border-radius: 0 !important;
    padding: 12px !important;
    transition: all 0.2s ease;
}

.tm-hidden-radio:checked + .tm-card-content {
    border-color: #000 !important;
    background: #f9f9f9;
    box-shadow: 2px 2px 0px #FFB100;
}

/* Result Container */
.tm-result-container {
    background: #000;
    color: #fff;
    padding: 25px;
    border: 0;
}

.tm-result-heading {
    color: #fff !important;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0 0 20px 0;
}

.tm-result-row {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0;
}

.tm-total-price {
    color: #FFB100 !important;
    font-size: 24px;
    font-weight: 800;
}

/* Tabs */
.tm-tabs-nav {
    border-bottom: 2px solid #000;
}

.tm-tab-btn {
    border: none;
    background: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 25px;
    color: #666;
}

.tm-tab-btn.active {
    background: #000;
    color: #FFB100;
}

/* Buttons */
.tm-btn-ghost {
    background: transparent;
    border: 2px solid #FFB100;
    color: #FFB100;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tm-btn-ghost:hover {
    background: #FFB100;
    color: #000;
}

.tmc-catalog-wrapper {
    background-color: rgba(0, 0, 0, 0.82) !important;
}
