/* Techbros India catalog: shared styles for listings and product details. */
.tb-main, .tb-footer, .tb-skip-link {
  color-scheme: light;
  --tb-red: #d2151e;
  --tb-red-dark: #aa1119;
  --tb-navy: #162638;
  --tb-ink: #223144;
  --tb-muted: #5c6978;
  --tb-line: #dfe4e9;
  --tb-soft: #f5f7f9;
  --tb-red-soft: #fff2f3;
  --tb-radius: 12px;
  --tb-width: 1200px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Keep these resets inside the catalog; the original site menu owns its styles. */
.tb-main, .tb-main *, .tb-main *::before, .tb-main *::after,
.tb-footer, .tb-footer *, .tb-footer *::before, .tb-footer *::after { box-sizing: border-box; }
.tb-main, .tb-footer { color: var(--tb-ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.tb-main :where(button, input, select, textarea) { font: inherit; }
.tb-main :where(button, select) { cursor: pointer; }
.tb-main :where(button) { color: inherit; }
.tb-main :where(img), .tb-footer :where(img) { display: block; max-width: 100%; height: auto; }
.tb-main :where(a) { color: var(--tb-red); text-decoration: none; }
.tb-main :where(a:hover) { color: var(--tb-red-dark); }
.tb-main :where(p), .tb-footer :where(p) { margin: 0 0 1rem; line-height: inherit; }
.tb-main :where(h1, h2, h3) { margin: 0; color: var(--tb-navy); font-family: inherit; font-weight: 700; line-height: 1.2; letter-spacing: -.025em; }
.tb-main :where(h1) { font-size: clamp(2rem, 3.5vw, 3.15rem); }
.tb-main :where(h2) { font-size: clamp(1.45rem, 2.3vw, 2rem); }
.tb-main :where(h3) { font-size: 1.1rem; }
.tb-main [hidden], .tb-footer [hidden] { display: none !important; }
.tb-main :focus-visible, .tb-footer :focus-visible, .tb-skip-link:focus-visible { outline: 3px solid var(--tb-red); outline-offset: 4px; }
.tb-main ::selection { background: #f9cdd0; color: var(--tb-navy); }
.tb-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; border: 0 !important; clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

.tb-skip-link { position: fixed; top: 12px; left: 16px; z-index: 100; padding: 10px 18px; transform: translateY(-150%); border-radius: 6px; background: var(--tb-navy); color: #fff; font-weight: 600; }
.tb-skip-link:focus { transform: translateY(0); color: #fff; }

.tb-main { max-width: var(--tb-width); margin: 0 auto; padding: 0 24px 64px; }
.tb-hero { padding: 48px 0 36px; }
.tb-eyebrow { display: block; margin: 0 0 12px; color: var(--tb-red); font-size: .75rem; font-weight: 700; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; }
.tb-hero h1 { max-width: 860px; }
.tb-hero > p:not(.tb-eyebrow) { max-width: 720px; margin: 16px 0 0; color: var(--tb-muted); font-size: 1.0625rem; line-height: 1.7; }
.tb-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 24px 0; padding: 0; color: var(--tb-muted); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.tb-breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tb-breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #8b96a3; }
.tb-breadcrumbs a { color: var(--tb-muted); }
.tb-breadcrumbs a:hover { color: var(--tb-red); text-decoration: underline; }

.tb-catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
.tb-catalog-layout > * { min-width: 0; }

.tb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.tb-search { position: relative; display: flex; flex: 1 1 320px; align-items: center; min-width: 0; }
.tb-search > label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.tb-search-input { width: 100%; min-height: 48px; padding: 11px 46px 11px 16px; border: 1px solid #cbd3db; border-radius: 8px; background: #fff; color: var(--tb-ink); font-size: .9375rem; line-height: 1.5; }
.tb-search-icon { position: absolute; top: 50%; left: 15px; z-index: 1; transform: translateY(-50%); color: var(--tb-muted); font-size: 1.625rem; line-height: 1; pointer-events: none; }
.tb-search-icon + .tb-search-input { padding-left: 44px; }
.tb-search-input::placeholder { color: #697787; opacity: 1; }
.tb-search-input::-webkit-search-cancel-button { cursor: pointer; }
.tb-search-input:focus { border-color: var(--tb-red); }
.tb-clear-search { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--tb-muted); font-size: 1.375rem; line-height: 1; cursor: pointer; }
.tb-clear-search:hover { background: var(--tb-soft); color: var(--tb-navy); }
.tb-toolbar > select { min-height: 48px; max-width: 210px; padding: 10px 32px 10px 12px; border: 1px solid #cbd3db; border-radius: 8px; background: #fff; color: var(--tb-ink); font-size: .875rem; }
.tb-toolbar > label { color: var(--tb-muted); font-size: .8125rem; }
.tb-active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.tb-active-filters:empty { display: none; }
.tb-active-filters a, .tb-active-filters button, .tb-active-filters > span { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 6px 12px; border: 1px solid #edc8cc; border-radius: 30px; background: var(--tb-red-soft); color: var(--tb-red-dark); font-size: .8125rem; font-weight: 600; line-height: 1.3; }
.tb-active-filters a:hover, .tb-active-filters button:hover { border-color: var(--tb-red); background: #ffe5e7; }
.tb-results-status { margin: 0 0 18px; color: var(--tb-muted); font-size: .8125rem; line-height: 1.6; }
.tb-results-status strong { color: var(--tb-navy); font-weight: 600; }
.tb-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tb-card { min-width: 0; overflow: hidden; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
.tb-card:hover { border-color: #bdc6d0; box-shadow: 0 6px 20px rgb(22 38 56 / 6%); }
.tb-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.tb-card-link:hover { color: inherit; }
.tb-card-link:focus-visible { outline-offset: -4px; }
.tb-card-image { position: relative; display: flex; align-items: center; justify-content: center; height: 178px; padding: 20px; border-bottom: 1px solid var(--tb-line); background: #f9fafb; }
.tb-card-image img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.tb-image-label { position: absolute; bottom: 10px; left: 12px; z-index: 1; display: block; padding: 4px 7px; border: 1px solid var(--tb-line); border-radius: 4px; background: rgb(255 255 255 / 96%); color: var(--tb-muted); font-size: .625rem; font-weight: 500; line-height: 1.4; }
.tb-card-body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 18px; }
.tb-brand { display: block; margin: 0 0 8px; color: var(--tb-muted); font-size: .6875rem; font-weight: 700; line-height: 1.5; letter-spacing: .09em; text-transform: uppercase; }
.tb-part-number { display: block; margin: 0 0 6px; color: var(--tb-navy); font-size: .8125rem; font-weight: 650; line-height: 1.4; overflow-wrap: anywhere; }
.tb-card-title { display: -webkit-box; overflow: hidden; margin: 0 0 10px; color: var(--tb-navy); font-size: 1rem; font-weight: 650; line-height: 1.4; letter-spacing: -.01em; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.tb-card-description { display: -webkit-box; overflow: hidden; margin: 0 0 16px; color: var(--tb-muted); font-size: .8125rem; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.tb-card-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf0f3; color: var(--tb-muted); font-size: .6875rem; }
.tb-link { color: var(--tb-red); font-size: .8125rem; font-weight: 650; }
.tb-card-link:hover .tb-link { color: var(--tb-red-dark); text-decoration: underline; text-underline-offset: 3px; }
.tb-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 32px; }
.tb-pagination a, .tb-pagination button { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 13px; border: 1px solid var(--tb-line); border-radius: 7px; background: #fff; color: var(--tb-ink); font-size: .875rem; font-weight: 600; line-height: 1.3; }
.tb-pagination a:hover, .tb-pagination button:hover { border-color: #b6c0cb; background: var(--tb-soft); }
.tb-pagination [aria-current="page"] { border-color: var(--tb-navy); background: var(--tb-navy); color: #fff; }
.tb-pagination [aria-current="page"]:hover { background: var(--tb-navy); color: #fff; }
.tb-pagination button:disabled, .tb-pagination [aria-disabled="true"] { opacity: .45; pointer-events: none; }
.tb-pagination > span { padding: 0 3px; color: var(--tb-muted); }

.tb-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 20px; border: 1px solid transparent; border-radius: 7px; font-size: .875rem; font-weight: 650; line-height: 1.5; text-align: center; text-decoration: none; transition: background-color .15s ease, border-color .15s ease; cursor: pointer; }
.tb-button-primary { border-color: var(--tb-red); background: var(--tb-red); color: #fff; }
.tb-button-primary:hover { border-color: var(--tb-red-dark); background: var(--tb-red-dark); color: #fff; }
.tb-button-secondary { border-color: #bdc7d1; background: #fff; color: var(--tb-navy); }
.tb-button-secondary:hover { border-color: var(--tb-navy); background: var(--tb-soft); color: var(--tb-navy); }

.tb-product-detail { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; gap: 56px; margin-top: 32px; }
.tb-product-media { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 380px; margin: 0; padding: 40px; overflow: hidden; border: 1px solid var(--tb-line); border-radius: 16px; background: #f8fafb; }
.tb-product-media img { width: 100%; height: 340px; object-fit: contain; mix-blend-mode: multiply; }
.tb-product-media > .tb-image-label { top: 14px; bottom: auto; left: 16px; }
.tb-product-media figcaption { width: 100%; margin-top: 20px; color: var(--tb-muted); font-size: .75rem; line-height: 1.7; text-align: center; }
.tb-product-copy { min-width: 0; }
.tb-product-copy > .tb-brand { margin-bottom: 12px; color: var(--tb-red); font-size: .75rem; }
.tb-product-heading { font-size: clamp(1.9rem, 3vw, 2.65rem); line-height: 1.2; overflow-wrap: anywhere; }
.tb-product-copy > .tb-part-number { margin: 16px 0 20px; color: var(--tb-muted); font-size: 1rem; font-weight: 500; }
.tb-product-description { margin: 20px 0 24px; color: var(--tb-muted); font-size: 1rem; line-height: 1.8; overflow-wrap: anywhere; }
.tb-product-description p:last-child { margin-bottom: 0; }
.tb-specs { margin: 0 0 24px; border-top: 1px solid var(--tb-line); }
.tb-specs > div { display: grid; grid-template-columns: minmax(100px, .85fr) minmax(0, 1.15fr); gap: 20px; padding: 12px 0; border-bottom: 1px solid var(--tb-line); font-size: .875rem; }
.tb-specs dt { margin: 0; color: var(--tb-muted); font-weight: 500; }
.tb-specs dd { margin: 0; color: var(--tb-navy); font-weight: 600; overflow-wrap: anywhere; }
.tb-quote-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 16px; }
.tb-quote-actions .tb-button { flex: 1 1 160px; }
.tb-note { margin: 14px 0; color: var(--tb-muted); font-size: .8125rem; line-height: 1.7; }
.tb-warning { margin: 20px 0 0; padding: 14px 16px; border: 1px solid #e2e6eb; border-left: 3px solid #a2adba; border-radius: 0 7px 7px 0; background: var(--tb-soft); color: var(--tb-muted); font-size: .8125rem; line-height: 1.7; }
.tb-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--tb-line); }
.tb-related-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.tb-related-header p { margin: 8px 0 0; color: var(--tb-muted); font-size: .875rem; }
.tb-related .tb-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tb-related .tb-card-image { height: 160px; }

.tb-empty-state, .tb-error, .tb-loading { padding: 48px 24px; border: 1px solid var(--tb-line); border-radius: var(--tb-radius); background: var(--tb-soft); color: var(--tb-muted); text-align: center; }
.tb-empty-state h2, .tb-error h2, .tb-loading h2 { margin-bottom: 12px; font-size: 1.5rem; }
.tb-empty-state p, .tb-error p, .tb-loading p { max-width: 460px; margin: 0 auto 20px; font-size: .9375rem; }
.tb-empty-state p:last-child, .tb-error p:last-child, .tb-loading p:last-child { margin-bottom: 0; }
.tb-product-grid > .tb-empty-state, .tb-product-grid > .tb-error, .tb-product-grid > .tb-loading { grid-column: 1 / -1; }
.tb-error { border-color: #f0c5c8; background: #fff7f7; }

.tb-footer { border-top: 1px solid #26394c; background: var(--tb-navy); color: #c4ced8; }
.tb-footer-inner { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 24px 48px; max-width: var(--tb-width); margin: 0 auto; padding: 36px 24px; font-size: .8125rem; line-height: 1.8; }
.tb-footer-inner > div { max-width: 460px; }
.tb-footer p { margin: 0; }
.tb-footer strong { color: #fff; font-size: .9375rem; }
.tb-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #6e7b88; }
.tb-footer a:hover { text-decoration-color: #fff; }
.tb-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.tb-footer :focus-visible { outline-color: #fff; }

@media (max-width: 1100px) {
  .tb-product-grid { gap: 16px; }
  .tb-card-body { padding: 16px; }
  .tb-card-image { height: 160px; padding: 16px; }
}

@media (max-width: 1024px) {
  .tb-hero { padding-top: 36px; }
  .tb-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .tb-card-image { height: 190px; padding: 24px; }
  .tb-card-body { padding: 20px; }
  .tb-product-detail { gap: 32px; }
  .tb-product-media { min-height: 320px; padding: 24px; }
  .tb-product-media img { height: 280px; }
  .tb-related .tb-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .tb-main { padding: 0 20px 48px; }
  .tb-hero { padding: 30px 0 28px; }
  .tb-hero > p:not(.tb-eyebrow) { margin-top: 14px; font-size: 1rem; }
  .tb-breadcrumbs { margin: 20px 0; font-size: .75rem; }
  .tb-toolbar { gap: 10px; }
  .tb-search { flex-basis: 100%; }
  .tb-toolbar > select { flex: 1; max-width: none; }
  .tb-card-image { height: 165px; padding: 18px; }
  .tb-card-body { padding: 16px; }
  .tb-product-detail { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
  .tb-product-media { min-height: 280px; padding: 28px; }
  .tb-product-media img { height: 260px; }
  .tb-product-heading { font-size: 2rem; }
  .tb-related { margin-top: 44px; padding-top: 28px; }
  .tb-footer-inner { padding: 28px 20px; }
}

@media (max-width: 540px) {
  .tb-main { padding-right: 16px; padding-left: 16px; }
  .tb-hero h1 { font-size: 2rem; }
  .tb-eyebrow { margin-bottom: 10px; font-size: .6875rem; }
  .tb-product-grid, .tb-related .tb-product-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .tb-card-image, .tb-related .tb-card-image { height: 190px; padding: 24px; }
  .tb-card-body { padding: 18px; }
  .tb-card-title { font-size: 1.0625rem; }
  .tb-card-description { font-size: .875rem; }
  .tb-pagination { gap: 6px; margin-top: 24px; }
  .tb-pagination a, .tb-pagination button { min-width: 40px; min-height: 42px; padding: 8px 11px; font-size: .8125rem; }
  .tb-product-media { min-height: 240px; padding: 20px; }
  .tb-product-media img { height: 220px; }
  .tb-product-heading { font-size: 1.8rem; }
  .tb-specs > div { grid-template-columns: minmax(100px, .85fr) minmax(0, 1.15fr); gap: 12px; font-size: .8125rem; }
  .tb-quote-actions { flex-direction: column; }
  .tb-quote-actions .tb-button { flex: auto; width: 100%; }
  .tb-empty-state, .tb-error, .tb-loading { padding: 32px 20px; }
  .tb-footer-inner { padding-right: 16px; padding-left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .tb-main *, .tb-main *::before, .tb-main *::after, .tb-footer *, .tb-footer *::before, .tb-footer *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
