/*
 * File:     public/assets/css/site-tb.css
 * Purpose:  Technology Bazaar theme (navy #0B2545 + orange #F28C28). Loaded only on
 *           technology-bazaar.com, after the EPM styles (header.php, r101). It re-colours
 *           the EPM dark theme variables and adds the classes of the TB pages (tb-*).
 *           Contrast: light text on navy; navy text on orange buttons.
 * Version:  1.5 - 2026-10-31 (r105) - Navbar logo 206 x 42 (new TB mark); legal pages.
 *           1.4 - 2026-10-31 (r104) - Service Partners: verified badge, stars.
 *           1.3 - 2026-10-31 (r103) - Cart, checkout, order steps, terms page; .tb-section keeps the side gutter on phones.
 *           1.2 - 2026-10-30 (r102) - Catalogue: product cards, chips, gallery, price tiers.
 *           1.1 - 2026-10-30 (r101c) - Page background over the EPM body colour; beta note; compact navbar.
 *           1.0 - 2026-10-30 (r101) - Initial version.
 */

:root, :root[data-bs-theme], html[data-bs-theme="dark"], [data-bs-theme="dark"] {
    --tb-navy: #0B2545; --tb-navy-2: #13315C; --tb-navy-3: #1D4E89; --tb-line: #2A5288;
    --tb-orange: #F28C28; --tb-orange-2: #D9731A; --tb-orange-soft: #F8B26A;
    --tb-text: #E3EAF5; --tb-muted: #A9B8CF;
    --bs-body-bg: #0B2545; --bs-body-bg-rgb: 11, 37, 69;
    --bs-body-color: #E3EAF5; --bs-body-color-rgb: 227, 234, 245;
    --bs-emphasis-color: #FFFFFF; --bs-secondary-color: #A9B8CF;
    --bs-secondary-bg: #13315C; --bs-tertiary-bg: #10294C;
    --bs-border-color: #2A5288;
    --bs-link-color: #F8B26A; --bs-link-color-rgb: 248, 178, 106;
    --bs-link-hover-color: #FFD3A3; --bs-link-hover-color-rgb: 255, 211, 163;
    --bs-primary: #F28C28; --bs-primary-rgb: 242, 140, 40;
    --bs-success: #F28C28; --bs-success-rgb: 242, 140, 40;
    --bs-success-text-emphasis: #F8B26A; --bs-success-bg-subtle: #3A2A16; --bs-success-border-subtle: #8A5418;
    --epm-green: #F28C28; --epm-green-dark: #D9731A; --epm-green-text: #F8B26A;
    --epm-gold: #F28C28; --epm-bg-pastel-green: #13315C; --epm-bg-cream: #10294C;
    --epm-pcb-blue: #6FA8EC;
}
html body, html body.epm-body { background-color: #0B2545 !important; color: #E3EAF5; }
html body .epm-beta-note { background-color: rgba(242, 140, 40, .14) !important; border-color: rgba(242, 140, 40, .35) !important; color: #FFE2C2 !important; }
html body .epm-beta-note a { color: #F8B26A !important; }
@media (min-width: 992px) { html body .epm-navbar .tb-nav .nav-link { padding-left: .55rem; padding-right: .55rem; white-space: nowrap; } }
html body .epm-header, html body .epm-navbar { background: #0B2545 !important; border-bottom: 3px solid #F28C28; }
html body .epm-navbar .nav-link { color: #E3EAF5 !important; }
html body .epm-navbar .nav-link:hover, html body .epm-navbar .nav-link:focus { color: #F8B26A !important; }
html body .epm-navbar .nav-link .bi { color: #F28C28; }
html body .card { --bs-card-bg: #13315C; --bs-card-border-color: #2A5288; --bs-card-color: #E3EAF5; }
html body .table { --bs-table-bg: transparent; --bs-table-color: #E3EAF5; --bs-table-border-color: #2A5288; }
html body .form-control, html body .form-select { background-color: #10294C; border-color: #2A5288; color: #FFFFFF; }
html body .form-control::placeholder { color: #8FA3C1; }
html body .form-control:focus, html body .form-select:focus { border-color: #F28C28; box-shadow: 0 0 0 .2rem rgba(242, 140, 40, .3); }
html body .form-check-input:checked { background-color: #F28C28; border-color: #F28C28; }
html body .btn-success, html body .btn-primary, html body .tb-btn, html body .btn.epm-btn-primary {
    --bs-btn-bg: #F28C28; --bs-btn-border-color: #F28C28; --bs-btn-color: #0B2545;
    --bs-btn-hover-bg: #FFA347; --bs-btn-hover-border-color: #FFA347; --bs-btn-hover-color: #0B2545;
    --bs-btn-active-bg: #D9731A; --bs-btn-active-border-color: #D9731A; --bs-btn-active-color: #0B2545;
    background-color: #F28C28 !important; border-color: #F28C28 !important; color: #0B2545 !important; font-weight: 700;
}
html body .btn-success:hover, html body .btn-primary:hover, html body .tb-btn:hover, html body .btn.epm-btn-primary:hover { background-color: #FFA347 !important; border-color: #FFA347 !important; }
html body .text-success { color: #F8B26A !important; }
html body .bg-success, html body .text-bg-success { background-color: #F28C28 !important; color: #0B2545 !important; }
html body footer, html body .epm-footer { background-color: #081B33 !important; color: #C9D6EA; border-top: 3px solid #F28C28; }
html body footer a, html body .epm-footer a { color: #F8B26A; }

/* Technology Bazaar page blocks */
.tb-hero { background: radial-gradient(circle at 15% 20%, #1D4E89 0, #13315C 45%, #0B2545 100%); color: #FFFFFF; border-bottom: 1px solid #2A5288; }
.tb-hero .lead { color: #D6E2F2; }
.tb-kicker { color: #F28C28; letter-spacing: .14em; font-weight: 700; text-transform: uppercase; font-size: .85rem; }
.tb-orange { color: #F28C28; }
.tb-muted { color: #A9B8CF; }
.tb-pill { display: inline-block; background: rgba(242, 140, 40, .14); border: 1px solid rgba(242, 140, 40, .6); color: #FFE2C2; border-radius: 2rem; padding: .3rem .8rem; margin: 0 .35rem .45rem 0; font-size: .9rem; }
.tb-soon-card { background: rgba(11, 37, 69, .65); border: 1px solid #2A5288; border-radius: 1rem; padding: 2rem 1.5rem; }
.tb-soon { display: inline-block; background: #F28C28; color: #0B2545; font-weight: 800; border-radius: .4rem; padding: .3rem .8rem; }
.tb-section { padding-top: 3.5rem; padding-bottom: 3.5rem; } /* r103: vertical only - keeps the Bootstrap side gutter on phones */
.tb-band { background: #0E2B52; border-top: 1px solid #1D4E89; border-bottom: 1px solid #1D4E89; }
.tb-card { background: #13315C; border: 1px solid #2A5288; border-radius: .9rem; height: 100%; color: #E3EAF5; }
.tb-card h3, .tb-card .h5, .tb-card .h6 { color: #FFFFFF; }
.tb-icon { width: 52px; height: 52px; border-radius: 14px; background: #0B2545; border: 1px solid #F28C28; color: #F28C28; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.tb-step-no { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: #F28C28; color: #0B2545; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tb-note { background: rgba(242, 140, 40, .1); border-left: 4px solid #F28C28; border-radius: .4rem; padding: .8rem 1rem; color: #FFE2C2; }
.tb-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 991.98px) {
    html body .epm-navbar .tb-nav { flex-direction: row; flex-wrap: wrap; gap: .5rem .4rem; padding: .5rem 0 .75rem; }
    html body .epm-navbar .tb-nav .nav-link { padding: .4rem .75rem; border-radius: 999px; background: #13315C; font-size: .9rem; white-space: nowrap; }
}
html body .epm-navbar .epm-logo-img { width: 206px !important; height: 42px !important; max-width: none !important; }
@media (max-width: 380px) { html body .epm-navbar .epm-logo-img { width: 172px !important; height: 35px !important; } }

/* r102: catalogue */
.tb-chip { display: inline-block; padding: .35rem .85rem; border-radius: 999px; background: #13315C; border: 1px solid #2A5288; color: #E3EAF5; text-decoration: none; font-size: .92rem; }
.tb-chip:hover { border-color: #F28C28; color: #FFFFFF; }
.tb-chip.active { background: #F28C28; border-color: #F28C28; color: #0B2545; font-weight: 700; }
.tb-pcard { text-decoration: none; color: #E3EAF5; overflow: hidden; transition: border-color .15s, transform .15s; }
.tb-pcard:hover { border-color: #F28C28; transform: translateY(-2px); color: #FFFFFF; }
.tb-pimg { aspect-ratio: 1 / 1; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.tb-pimg img { width: 100%; height: 100%; object-fit: contain; }
.tb-pimg .bi, .tb-noimg .bi { font-size: 3rem; color: #2A5288; }
.tb-ptitle { color: #FFFFFF; line-height: 1.3; margin-bottom: .25rem; }
.tb-price { color: #F8B26A; font-weight: 800; font-size: 1.05rem; }
.tb-gallery-main { background: #FFFFFF; border-radius: .9rem; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #2A5288; }
.tb-gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.tb-noimg { background: #13315C; }
.tb-thumb { width: 72px; height: 72px; padding: 0; border: 2px solid #2A5288; border-radius: .5rem; background: #FFFFFF; overflow: hidden; }
.tb-thumb img { width: 100%; height: 100%; object-fit: contain; }
.tb-thumb.active, .tb-thumb:hover { border-color: #F28C28; }
.tb-tiers td, .tb-tiers th, .tb-specs td, .tb-specs th { background: transparent !important; color: #E3EAF5 !important; border-color: #2A5288 !important; }
.tb-specs th { width: 42%; color: #A9B8CF !important; font-weight: 600; }
.tb-facts li { margin-bottom: .35rem; }
.tb-facts .bi { color: #F28C28; margin-right: .35rem; }
html body .pagination { --bs-pagination-bg: #13315C; --bs-pagination-color: #E3EAF5; --bs-pagination-border-color: #2A5288; --bs-pagination-active-bg: #F28C28; --bs-pagination-active-border-color: #F28C28; --bs-pagination-active-color: #0B2545; --bs-pagination-hover-bg: #1D4E89; --bs-pagination-hover-color: #FFFFFF; }
.tb-auto { height: auto !important; }

/* r103: cart, checkout, orders, terms */
.tb-cart-badge { background: #F28C28; color: #0B2545; font-weight: 800; }
.tb-cart-img { object-fit: cover; border-radius: 6px; background: #13315C; }
.tb-cart td, .tb-cart th { background: transparent; }
.tb-note-inline { color: #F8B26A; }
.tb-steps { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; counter-reset: tbstep; }
.tb-steps li { counter-increment: tbstep; padding: .35rem .8rem; border-radius: 999px; background: #13315C; color: #A9B8CF; font-size: .875rem; }
.tb-steps li::before { content: counter(tbstep) ". "; }
.tb-steps li.done { background: #1D4E89; color: #E3EAF5; }
.tb-steps li.done::before { content: "\2713  "; }
.tb-steps li.now { background: #F28C28; color: #0B2545; font-weight: 700; }
.tb-legal { max-width: 860px; }
.tb-legal p { line-height: 1.65; }
@media (max-width: 575.98px) {
    .tb-cart thead { display: none; }
    .tb-cart tr { display: grid; grid-template-columns: 110px 1fr auto auto; align-items: center; gap: .5rem .75rem; padding: .75rem; border-bottom: 1px solid #2A5288; }
    .tb-cart td { display: block; border: 0 !important; padding: 0 !important; }
    .tb-cart td:first-child { grid-column: 1 / -1; }
    .tb-cart td:nth-child(3)::before { content: "x USD "; color: #A9B8CF; font-size: .8rem; }
}
/* r104: Service Partners */
.tb-verified { background: #1D4E89; color: #E3EAF5; font-weight: 600; }
.tb-stars { color: #F28C28; letter-spacing: 1px; }
a.tb-chip .tb-muted { font-size: .8em; }
/* r105: legal pages */
.tb-legal h2 { scroll-margin-top: 90px; }
.tb-legal dl dt { color: #A9B8CF; font-weight: 600; }
