/* Tech Store catalog – isolated component classes to avoid overwriting Gizmos. */
.tscb-catalog,.tscb-quote-page{--tscb-ink:#14233d;--tscb-blue:#1663e9;--tscb-border:#e7edf5;--tscb-soft:#f5f8fc;--tscb-muted:#6d7b90;--tscb-green:#197a4b;color:var(--tscb-ink)}
.tscb-catalog *,.tscb-quote-page *{box-sizing:border-box}
.tscb-grid{display:grid;grid-template-columns:repeat(var(--tscb-columns,4),minmax(0,1fr));gap:16px;align-items:stretch}
.tscb-card{border:1px solid var(--tscb-border);border-radius:16px;background:#fff;min-width:0;overflow:hidden;display:flex;flex-direction:column;box-shadow:0 4px 18px rgba(15,39,77,.045);transition:box-shadow .2s,transform .2s}
.tscb-card:hover{box-shadow:0 15px 35px rgba(15,39,77,.10);transform:translateY(-2px)}
.tscb-card-image{display:flex;align-items:center;justify-content:center;position:relative;background:#f7f9fc;padding:16px;aspect-ratio:1.22;color:var(--tscb-ink)}
.tscb-card-image img{max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}
.tscb-discount{position:absolute;top:12px;left:12px;padding:5px 9px;background:#ed343e;color:#fff;border-radius:7px;font-size:12px;font-weight:800}
.tscb-card-content{padding:14px 14px 16px;display:flex;flex:1;flex-direction:column;gap:9px;min-width:0}
.tscb-brand{font-size:11px;line-height:1.3;font-weight:800;color:#3367bc;text-transform:uppercase;letter-spacing:.025em}
.tscb-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:44px;font-size:15px;line-height:1.43;font-weight:800;color:var(--tscb-ink)!important;text-decoration:none!important}
.tscb-title:hover{color:var(--tscb-blue)!important}
.tscb-sku{color:var(--tscb-muted);font-size:11px;line-height:1.3;word-break:break-word}
.tscb-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:3px 0 5px;min-height:52px}
.tscb-spec{min-width:0;background:#f2f6fb;border-radius:7px;padding:6px 7px;line-height:1.35;color:#3f506b;font-size:11px;overflow-wrap:anywhere}
.tscb-spec b{color:#1c365c;font-weight:800}
.tscb-specs-empty{display:block;font-size:11px;color:#7e8da3;padding-top:9px;min-height:52px}
.tscb-stock{font-weight:750;font-size:11px;display:flex;align-items:center;gap:6px}
.tscb-stock:before{content:'';display:inline-block;border-radius:50%;height:7px;width:7px;background:#d49c1e}
.tscb-stock.tscb-in{color:var(--tscb-green)}.tscb-stock.tscb-in:before{background:#21a36b}
.tscb-stock.tscb-out{color:#ad4850}.tscb-stock.tscb-out:before{background:#d94f5a}
.tscb-prices{margin-top:auto;display:flex;flex-direction:column;align-items:flex-start;gap:3px;padding-top:8px}
.tscb-price{font-size:21px;font-weight:850;color:var(--tscb-ink)}
.tscb-price .woocommerce-Price-amount{font-size:21px!important;font-weight:850}
.tscb-price del,.tscb-price del .woocommerce-Price-amount{color:#9ba5b5!important;font-size:13px!important;font-weight:500!important}
.tscb-price ins{text-decoration:none;color:#d52d37}
.tscb-price ins .woocommerce-Price-amount{color:#d52d37}
.tscb-tax-note{font-size:10px;color:#8b96a8}
.tscb-actions{display:grid;gap:8px;padding-top:4px}
.tscb-cart-button,.tscb-quote-add,.tscb-quote-link,.tscb-submit{font:inherit!important;width:100%;display:flex!important;align-items:center;justify-content:center;text-align:center!important;min-height:43px!important;border-radius:9px!important;font-size:12px!important;font-weight:800!important;line-height:1.2!important;transition:background .2s;white-space:normal!important;text-decoration:none!important}
.tscb-cart-button{color:#fff!important;background:var(--tscb-blue)!important;border:1px solid var(--tscb-blue)!important;padding:10px 8px!important;box-shadow:none!important}
.tscb-cart-button:hover{background:#0c50c0!important}
.tscb-quote-add,.tscb-quote-link{color:#174eac!important;background:#f4f8ff!important;border:1px solid #dce7fb!important;padding:10px 8px!important;cursor:pointer}
.tscb-quote-add:hover,.tscb-quote-link:hover{background:#e9f2ff!important}
.tscb-quote-add:disabled{opacity:.6;cursor:wait}
.tscb-toast{position:fixed;z-index:99999;left:50%;bottom:25px;transform:translateX(-50%);background:#0b2143;color:#fff;border-radius:12px;padding:13px 16px;max-width:min(460px,calc(100vw - 30px));box-shadow:0 12px 30px rgba(0,0,0,.25);font-size:13px;display:flex;gap:12px;align-items:center}
.tscb-toast a{color:#a8d0ff!important;text-decoration:underline}
.tscb-legacy-action{display:block;width:100%;clear:both;margin-top:10px}
/* The legacy mode inserts only supplementary text and a quote action; it does not overwrite theme templates. */
.woocommerce ul.products li.product > .tscb-specs{padding:0 10px;max-width:100%}
.woocommerce ul.products li.product .tscb-legacy-action{padding:0 8px 12px}
.tscb-quote-page{max-width:1000px;margin:20px auto;padding:12px}
.tscb-quote-page h2{font-size:28px;margin-bottom:8px}.tscb-quote-page h3{margin:22px 0 16px;font-size:20px}
.tscb-quote-page p{color:#5d6a7b;line-height:1.6}
.tscb-quote-lines{display:flex;flex-direction:column;gap:10px;margin:20px 0 24px}
.tscb-quote-line{display:grid;grid-template-columns:70px minmax(0,1fr) 100px 78px;gap:16px;align-items:center;background:#fff;border:1px solid var(--tscb-border);border-radius:12px;padding:12px}
.tscb-line-image{background:#f7f9fc;border-radius:8px;overflow:hidden;width:70px;height:70px;display:grid;place-items:center}
.tscb-line-image img{width:100%;height:100%;object-fit:contain}
.tscb-line-price{color:#384b68;font-size:13px;margin-top:5px}.tscb-line-price small{display:block;color:#8290a2;font-size:11px}
.tscb-quote-line label,.tscb-request-form label{font-size:13px;font-weight:700;display:flex;flex-direction:column;gap:7px;color:#2d405b}
.tscb-quote-line input{width:100%;min-height:42px;border:1px solid #cbd7ea;border-radius:7px;padding:8px}
.tscb-remove{background:none;border:1px solid #f2d1d4;color:#b83f4a;padding:9px 11px;border-radius:8px;font-size:12px;min-height:40px;cursor:pointer}
.tscb-request-form{background:#fff;border:1px solid var(--tscb-border);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:14px}
.tscb-request-form h3{margin:0 0 6px}.tscb-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
.tscb-request-form input:not([type="checkbox"]),.tscb-request-form textarea{display:block;width:100%;min-width:0;min-height:43px;border:1px solid #cdd8e7;border-radius:9px;padding:10px 12px;background:#fff;color:#132b4b;font-size:14px}
.tscb-request-form textarea{min-height:110px;resize:vertical}
.tscb-request-form label span{color:#cb3b4f}.tscb-request-form .tscb-consent{display:flex;flex-direction:row;align-items:flex-start;gap:9px;font-weight:500;line-height:1.5}
.tscb-consent input{margin-top:3px}
.tscb-submit{width:auto;min-height:48px!important;padding:12px 24px!important;background:#1264e9!important;color:#fff!important;border:0!important;align-self:start;cursor:pointer}
.tscb-trap{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;opacity:0!important;left:-9999px!important}
.tscb-alert{margin:18px 0;padding:12px 15px;border-radius:9px;font-size:14px}
.tscb-ok{background:#e8f8ee;border:1px solid #bcead0;color:#165f3c}.tscb-error{background:#fff1f2;border:1px solid #f4c9ce;color:#a62735}
.tscb-empty{padding:22px;background:#f5f8fc;border-radius:12px;color:#63758e}

/* v1.0.1: price markup must not force regular+sale amount into one line. */
.tscb-catalog .tscb-card-content {min-width:0}
.tscb-catalog .tscb-title {min-width:0;overflow-wrap:anywhere}
.tscb-catalog .tscb-prices {min-width:0;width:100%;max-width:100%}
.tscb-catalog .tscb-price {display:block;width:100%;max-width:100%;min-width:0;line-height:1.25;white-space:normal!important}
.tscb-catalog .tscb-price > .price,
.tscb-catalog .tscb-price .ts-cash-price {display:flex!important;flex-direction:column;align-items:flex-start;gap:2px;width:100%;min-width:0;white-space:normal!important}
.tscb-catalog .tscb-price del,
.tscb-catalog .tscb-price ins {display:block!important;max-width:100%;margin:0!important;padding:0!important;white-space:normal!important;line-height:1.3}
.tscb-catalog .tscb-price .woocommerce-Price-amount,
.tscb-catalog .tscb-price .woocommerce-Price-amount bdi {display:inline-block;max-width:100%;white-space:normal!important;vertical-align:baseline;overflow-wrap:normal;line-height:1.25}
.tscb-catalog .tscb-price del .woocommerce-Price-amount,
.tscb-catalog .tscb-price del .woocommerce-Price-amount bdi {font-size:13px!important;font-weight:500!important;line-height:1.25}
.tscb-catalog .tscb-price ins .woocommerce-Price-amount,
.tscb-catalog .tscb-price ins .woocommerce-Price-amount bdi {color:#d52d37!important}
.tscb-catalog .tscb-card .tscb-actions {min-width:0}
/* Hide old placeholder on sites serving an HTML fragment cached from 1.0.0. */
.tscb-catalog .tscb-specs-empty {display:none!important}

@media (max-width:1100px) {
  .tscb-catalog .tscb-grid {grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:760px) {
  .tscb-catalog .tscb-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}
  .tscb-catalog .tscb-card {min-width:0;border-radius:13px;box-shadow:0 3px 12px rgba(15,39,77,.05);transform:none}
  .tscb-catalog .tscb-card:hover {transform:none}
  .tscb-catalog .tscb-card-image {padding:8px;aspect-ratio:1.3}
  .tscb-catalog .tscb-card-content {padding:10px 9px 11px;gap:6px}
  .tscb-catalog .tscb-brand {font-size:10px;line-height:1.2;letter-spacing:0}
  .tscb-catalog .tscb-title {font-size:13px;line-height:1.35;min-height:52px;-webkit-line-clamp:3;font-weight:750}
  .tscb-catalog .tscb-sku {font-size:10px;line-height:1.3}
  .tscb-catalog .tscb-specs {display:flex;flex-direction:column;gap:4px;margin:0;min-height:0}
  .tscb-catalog .tscb-spec {font-size:10px;padding:5px 6px}
  .tscb-catalog .tscb-spec:nth-child(n+3) {display:none}
  .tscb-catalog .tscb-stock {font-size:10px;line-height:1.3;gap:5px;min-height:15px}
  .tscb-catalog .tscb-stock:before {height:6px;width:6px;flex:0 0 6px}
  .tscb-catalog .tscb-prices {margin-top:4px;padding-top:0;gap:2px;align-items:flex-start}
  .tscb-catalog .tscb-price,
  .tscb-catalog .tscb-price .woocommerce-Price-amount,
  .tscb-catalog .tscb-price .woocommerce-Price-amount bdi {font-size:clamp(13px,4.1vw,17px)!important;font-weight:800;letter-spacing:-.025em}
  .tscb-catalog .tscb-price del .woocommerce-Price-amount,
  .tscb-catalog .tscb-price del .woocommerce-Price-amount bdi {font-size:11px!important;letter-spacing:0}
  .tscb-catalog .tscb-tax-note {font-size:9px;line-height:1.25}
  .tscb-catalog .tscb-actions {gap:4px;padding-top:5px;margin-top:auto}
  .tscb-catalog .tscb-cart-button {min-height:40px!important;padding:8px 5px!important;font-size:11px!important;border-radius:8px!important}
  .tscb-catalog .tscb-quote-add,
  .tscb-catalog .tscb-quote-link {display:flex!important;min-height:28px!important;padding:4px 2px!important;border:0!important;background:transparent!important;color:#1656ae!important;font-size:10px!important;line-height:1.25!important;text-decoration:underline!important;text-underline-offset:2px;overflow-wrap:anywhere}
  .tscb-catalog .tscb-quote-add:hover,
  .tscb-catalog .tscb-quote-link:hover {background:transparent!important;color:#0c50c0!important}
  .tscb-quote-line {grid-template-columns:62px minmax(0,1fr);gap:10px}
  .tscb-quote-line label,.tscb-remove {grid-column:2}
  .tscb-form-grid {grid-template-columns:1fr}
  .tscb-request-form {padding:15px}
  .tscb-submit {align-self:stretch}
}
@media (max-width:370px) {
  .tscb-catalog .tscb-grid {gap:7px}
  .tscb-catalog .tscb-card-content {padding:8px 7px 10px;gap:5px}
  .tscb-catalog .tscb-title {font-size:12px;min-height:49px}
  .tscb-catalog .tscb-brand {font-size:9px}
  .tscb-catalog .tscb-price,
  .tscb-catalog .tscb-price .woocommerce-Price-amount,
  .tscb-catalog .tscb-price .woocommerce-Price-amount bdi {font-size:13px!important}
  .tscb-catalog .tscb-cart-button {font-size:10px!important;min-height:38px!important;padding:7px 3px!important}
  .tscb-catalog .tscb-quote-add,
  .tscb-catalog .tscb-quote-link {font-size:9px!important}
}
