/* ==========================================================================
   TechSpire Solutions — Storefront design system
   Amazon structure, Google Ads polish. Shared by every page.
   Sections:
     1. Tokens            9. Product card & grid      17. Drawer
     2. Base / reset     10. Breadcrumbs              18. Mini-cart
     3. Typography       11. Forms                    19. Toast
     4. Layout           12. Alerts                   20. Footer
     5. Icons            13. Tables                   21. Carousel & scroller
     6. Buttons          14. Stepper                  22. Misc components
     7. Badges & chips   15. Skeleton                 23. Responsive
     8. Price            16. Header & search          24. Motion & print
   ========================================================================== */

/* 1. Tokens -------------------------------------------------------------- */
:root {
  --ts-navy-900: #0b1726;
  --ts-navy-800: #13233a;
  --ts-navy-700: #1d3150;
  --ts-steel: #5b89ad;
  --ts-steel-600: #3f6f96;
  --ts-blue: #1a73e8;
  --ts-blue-700: #1557b0;
  --ts-blue-50: #e8f0fe;
  --ts-blue-100: #d2e3fc;
  --ts-yellow: #ffd814;
  --ts-yellow-hover: #f7ca00;
  --ts-yellow-border: #fcd200;
  --ts-orange: #ffa41c;
  --ts-orange-hover: #fa8900;
  --ts-orange-border: #ff8f00;
  --ts-green: #188038;
  --ts-green-50: #e6f4ea;
  --ts-red: #d93025;
  --ts-red-50: #fce8e6;
  --ts-amber: #b06000;
  --ts-amber-50: #fef7e0;
  --ts-text: #0f1111;
  --ts-text-2: #565959;
  --ts-text-3: #6f7373;
  --ts-border: #d5d9d9;
  --ts-border-2: #e7e9ea;
  --ts-bg: #eaeded;
  --ts-surface: #fff;
  --ts-surface-2: #f7f8f8;
  --ts-surface-3: #f0f2f2;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(15, 17, 17, .08), 0 1px 3px rgba(15, 17, 17, .06);
  --shadow-2: 0 4px 16px rgba(15, 17, 17, .12);
  --shadow-3: 0 12px 32px rgba(15, 17, 17, .18);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --gutter: 16px;
  --container: 1500px;
  --focus: 2px solid var(--ts-blue);
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

/* 2. Base / reset -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ts-bg);
  color: var(--ts-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

html.is-locked, html.is-locked body { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--ts-border); margin: 24px 0; }
::selection { background: #c2dbff; }

:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: #8ab4f8; }

a { color: var(--ts-blue); text-decoration: none; text-underline-offset: 2px; }
a:hover { color: var(--ts-blue-700); text-decoration: underline; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: #fff;
  color: var(--ts-text);
  padding: 10px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  font-weight: 600;
  transition: top .15s;
}
.skip-link:focus { top: 12px; text-decoration: none; }

.visually-hidden, .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 3. Typography ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; color: var(--ts-text); letter-spacing: -.01em; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }
p { margin: 0 0 1em; }
small, .small { font-size: 13px; }
.text-xs { font-size: 12px; }
strong, b { font-weight: 700; }
code, kbd, pre { font-family: var(--font-mono); font-size: .92em; }
.muted, .text-muted { color: var(--ts-text-2); }
.text-success { color: var(--ts-green); }
.text-danger { color: var(--ts-red); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.tabular { font-variant-numeric: tabular-nums; }
.lead { font-size: 17px; color: var(--ts-text-2); line-height: 1.55; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ts-steel-600); margin: 0 0 6px; }
.link-plain { color: inherit; }
.link-plain:hover { color: var(--ts-blue-700); }

.page-title { font-size: 28px; font-weight: 700; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.015em; }
.page-subtitle { font-size: 15px; color: var(--ts-text-2); margin: 0; }
.page-head { margin: 20px 0 16px; }

.prose { max-width: 760px; font-size: 15px; line-height: 1.65; }
.prose h2 { font-size: 21px; margin-top: 1.8em; }
.prose h3 { font-size: 17px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }

/* 4. Layout -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container-narrow { max-width: 1040px; }
.site-main { flex: 1 0 auto; display: block; min-height: 50vh; }
.site-main:focus { outline: none; }
.page-top { padding-top: 12px; }
.page-top:empty { display: none; }
.flash-area { display: grid; gap: 10px; margin: 8px 0 4px; }

.section { margin: 28px 0; }
.section-tight { margin: 16px 0; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0 0 14px;
}
.section-title { font-size: 21px; font-weight: 700; margin: 0; letter-spacing: -.01em; }
.section-subtitle { font-size: 14px; color: var(--ts-text-2); margin: 4px 0 0; }
.section-link { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.section-link .icon { width: 16px; height: 16px; }

.stack { display: flex; flex-direction: column; gap: 12px; }
.stack-sm { display: flex; flex-direction: column; gap: 6px; }
.stack-lg { display: flex; flex-direction: column; gap: 24px; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cluster-center { justify-content: center; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.with-sidebar { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.divider { height: 1px; background: var(--ts-border); border: 0; margin: 16px 0; }

/* 5. Icons --------------------------------------------------------------- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  vertical-align: -.25em;
  stroke-width: 2;
  overflow: visible;
}
.icon-xs { width: 12px; height: 12px; vertical-align: -1px; stroke-width: 2.5; }
.icon-sm { width: 16px; height: 16px; vertical-align: -3px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 28px; height: 28px; stroke-width: 1.8; }
.icon-xl { width: 40px; height: 40px; stroke-width: 1.6; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon-tile {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--ts-steel)), var(--c2, var(--ts-navy-700)));
  box-shadow: 0 4px 12px rgba(15, 17, 17, .12);
  flex-shrink: 0;
}
.icon-tile .icon { width: 22px; height: 22px; }

/* 6. Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ts-surface);
  --btn-bg-hover: #f7fafa;
  --btn-fg: var(--ts-text);
  --btn-border: var(--ts-border);
  --btn-shadow: 0 2px 5px rgba(213, 217, 217, .5);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: background-color .15s, border-color .15s, box-shadow .15s, color .15s, transform .06s;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { background: var(--btn-bg-hover); color: var(--btn-fg); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: var(--radius-pill); }
.btn .icon { width: 18px; height: 18px; }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-disabled { opacity: .55; cursor: not-allowed; transform: none; pointer-events: none; }

.btn-cart { --btn-bg: var(--ts-yellow); --btn-bg-hover: var(--ts-yellow-hover); --btn-border: var(--ts-yellow-border); }
.btn-buy { --btn-bg: var(--ts-orange); --btn-bg-hover: var(--ts-orange-hover); --btn-border: var(--ts-orange-border); }
.btn-primary {
  --btn-bg: var(--ts-blue);
  --btn-bg-hover: var(--ts-blue-700);
  --btn-fg: #fff;
  --btn-border: var(--ts-blue);
  --btn-shadow: 0 1px 2px rgba(26, 115, 232, .25);
}
.btn-primary:hover { box-shadow: 0 1px 3px rgba(26, 115, 232, .35), 0 4px 8px rgba(26, 115, 232, .18); }
.btn-secondary { --btn-bg: #fff; --btn-bg-hover: #f7fafa; --btn-border: var(--ts-border); }
.btn-dark { --btn-bg: var(--ts-navy-800); --btn-bg-hover: var(--ts-navy-700); --btn-fg: #fff; --btn-border: var(--ts-navy-800); --btn-shadow: none; }
.btn-light { --btn-bg: #fff; --btn-bg-hover: #eef3f8; --btn-border: #fff; --btn-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.btn-outline-light { --btn-bg: transparent; --btn-bg-hover: rgba(255, 255, 255, .12); --btn-fg: #fff; --btn-border: rgba(255, 255, 255, .7); --btn-shadow: none; }
.btn-danger { --btn-bg: var(--ts-red); --btn-bg-hover: #b3261e; --btn-fg: #fff; --btn-border: var(--ts-red); --btn-shadow: none; }
.btn-link {
  --btn-bg: transparent;
  --btn-bg-hover: transparent;
  --btn-fg: var(--ts-blue);
  --btn-border: transparent;
  --btn-shadow: none;
  min-height: 0;
  padding: 2px 4px;
  border-radius: 4px;
  font-weight: 500;
}
.btn-link:hover { color: var(--ts-blue-700); text-decoration: underline; }
.btn-sm { min-height: 31px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-sm .icon { width: 15px; height: 15px; }
.btn-lg { min-height: 46px; padding: 0 26px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--btn-fg);
  border-right-color: transparent;
  border-radius: 50%;
  animation: ts-spin .7s linear infinite;
}
.btn-link.is-loading::after { border-color: var(--ts-blue); border-right-color: transparent; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ts-text-2);
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.icon-btn:hover { background: var(--ts-surface-3); color: var(--ts-text); }
.icon-btn .icon { width: 20px; height: 20px; }

/* 7. Badges & chips ------------------------------------------------------ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--ts-surface-3);
  color: var(--ts-text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: .01em;
}
.badge .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.badge-featured { background: var(--ts-navy-800); color: #fff; }
.badge-featured::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ts-orange); }
.badge-new { background: var(--ts-green-50); color: #0d652d; }
.badge-recommended { background: #b54708; color: #fff; }
.badge-savings { background: var(--ts-green-50); color: #0d652d; }
.badge-sla { background: var(--ts-blue-50); color: #174ea6; }
.badge-neutral { background: var(--ts-surface-3); color: var(--ts-text-2); }
.badge-warning { background: var(--ts-amber-50); color: #8a4b00; }
.badge-danger { background: var(--ts-red-50); color: #a50e0e; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid #dadce0;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
  -webkit-user-select: none;
  user-select: none;
}
.chip:hover { background: #f1f3f4; color: #202124; text-decoration: none; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.chip .chip-check { display: none; width: 16px; height: 16px; stroke-width: 2.5; }
.chip.is-active, .chip[aria-pressed="true"], .chip[aria-current], .chip:has(input:checked) {
  background: var(--ts-blue-50);
  border-color: var(--ts-blue-100);
  color: #1967d2;
}
.chip.is-active .chip-check, .chip[aria-pressed="true"] .chip-check, .chip:has(input:checked) .chip-check { display: inline-block; }
.chip:has(input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.chip:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.chip-note { font-size: 12px; font-weight: 700; color: var(--ts-green); }
.chip.is-active .chip-note, .chip:has(input:checked) .chip-note { color: #0d652d; }

.pill-group { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.pill-group > legend { padding: 0; margin: 0 0 8px; font-size: 13px; font-weight: 700; float: left; width: 100%; }
.pill-group > legend + * { clear: left; }

/* 8. Price --------------------------------------------------------------- */
.price {
  display: inline-flex;
  align-items: flex-start;
  color: var(--ts-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-amount { display: inline-flex; align-items: flex-start; }
.price-sym, .price-frac { font-size: .54em; line-height: 1; margin-top: .13em; }
.price-sym { margin-right: 1px; }
.price-frac { margin-left: 1px; }
.price-sm { font-size: 18px; }
.price-lg { font-size: 30px; }
.price-xl { font-size: 38px; }
.price-per { font-size: 13px; color: var(--ts-text-2); font-weight: 400; }
.price-from { font-size: 12px; color: var(--ts-text-2); }
.price-block { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 6px; }
.price-list { color: var(--ts-text-2); text-decoration: line-through; font-size: 13px; }
.price-savings { color: var(--ts-green); font-size: 13px; font-weight: 600; }
.price-total { font-weight: 700; }

/* 9. Cards, product grid & product card ---------------------------------- */
.card {
  background: var(--ts-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  min-width: 0;
}
.card-pad { padding: 20px; }
.card-bordered { box-shadow: none; border: 1px solid var(--ts-border); }
.card-hover { transition: box-shadow .2s, transform .2s; }
.card-hover:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-title { font-size: 18px; font-weight: 700; margin: 0 0 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head .card-title { margin: 0; }
.card-foot { border-top: 1px solid var(--ts-border-2); margin-top: 16px; padding-top: 14px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.product-grid > li { display: flex; min-width: 0; }
.product-grid > li > .product-card { flex: 1; }

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  background: var(--ts-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.product-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe3e6;
}
.product-card-media .art { width: 100%; height: 100%; aspect-ratio: auto; transition: transform .45s var(--ease); }
.product-card:hover .product-card-media .art { transform: scale(1.035); }
.product-card-flag { position: absolute; top: 12px; left: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.product-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px 16px 16px; }
.product-card-category {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ts-steel-600);
}
.product-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-title a { color: var(--ts-text); }
.product-card-title a:hover { color: #c7511f; text-decoration: none; }
.product-card-short {
  margin: 0;
  font-size: 13.5px;
  color: var(--ts-text-2);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; margin-top: 4px; }
.product-card-from { font-size: 12px; color: var(--ts-text-2); }
.product-card-save, .product-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
}
.product-card-save { color: var(--ts-green); font-weight: 500; }
.product-card-meta { color: var(--ts-text-2); }
.product-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.product-card-actions form { display: flex; min-width: 0; margin: 0; }
.product-card-actions .btn { flex: 1 1 auto; min-width: 0; padding: 0 8px; }
.product-card-actions > :only-child { grid-column: 1 / -1; }

/* 10. Breadcrumbs -------------------------------------------------------- */
.breadcrumbs { font-size: 13px; color: var(--ts-text-2); margin: 4px 0 10px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "\203A"; margin: 0 8px; color: #8d9191; font-size: 15px; line-height: 1; }
.breadcrumbs a { color: var(--ts-text-2); }
.breadcrumbs a:hover { color: #c7511f; }
.breadcrumbs [aria-current="page"] { color: var(--ts-text); font-weight: 500; }

/* 11. Forms -------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
.label { font-size: 13px; font-weight: 700; color: var(--ts-text); }
.label .optional { font-weight: 400; color: var(--ts-text-2); }
.label .req { color: var(--ts-red); margin-left: 2px; }
.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset > legend { padding: 0; margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.form-section { padding: 20px 0; border-top: 1px solid var(--ts-border-2); }
.form-section:first-child { border-top: 0; padding-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 8px; }

.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #888c8c;
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--ts-text);
  font-size: 15px;
  line-height: 1.4;
  box-shadow: 0 1px 2px rgba(15, 17, 17, .15) inset;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.input::placeholder, .textarea::placeholder { color: #8a8f8f; }
.input:hover, .select:hover, .textarea:hover { border-color: #6f7373; }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--ts-blue);
  box-shadow: 0 0 0 3px rgba(26, 115, 232, .25), 0 1px 2px rgba(15, 17, 17, .15) inset;
}
.input[aria-invalid="true"], .select[aria-invalid="true"], .textarea[aria-invalid="true"], .is-invalid {
  border-color: var(--ts-red);
  box-shadow: 0 0 0 3px rgba(217, 48, 37, .14);
}
.input:disabled, .select:disabled, .textarea:disabled { background-color: var(--ts-surface-3); color: var(--ts-text-2); cursor: not-allowed; }
.input[readonly] { background-color: var(--ts-surface-2); }
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565959' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  cursor: pointer;
}
.select-sm {
  width: auto;
  min-height: 31px;
  padding: 4px 30px 4px 10px;
  font-size: 13px;
  border-color: var(--ts-border);
  background-color: var(--ts-surface-3);
  background-position: right 8px center;
  background-size: 14px;
  box-shadow: 0 2px 5px rgba(15, 17, 17, .15);
}
.select-sm:hover { background-color: #e3e6e6; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .btn { border-radius: 0 var(--radius) var(--radius) 0; box-shadow: none; }

.checkbox, .radio {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
}
.checkbox input, .radio input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ts-blue);
  cursor: pointer;
}

.radio-card {
  position: relative;
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--ts-border);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.radio-card:hover { border-color: #a6abab; }
.radio-card > input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.radio-card:has(> input:checked), .radio-card.is-selected {
  border-color: var(--ts-blue);
  box-shadow: 0 0 0 1px var(--ts-blue);
  background: #f5f9ff;
}
.radio-card:has(> input:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.radio-card:has(> input:disabled) { opacity: .55; cursor: not-allowed; }
.radio-card-body { display: flex; flex-direction: column; gap: 4px; }
.radio-card-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 15px; font-weight: 700; }
.radio-card-price { font-weight: 700; white-space: nowrap; }
.radio-card-desc { font-size: 13px; color: var(--ts-text-2); }
.radio-card-tag { position: absolute; top: -10px; right: 12px; }
.radio-card-indicator {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #8d9191;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.radio-card:has(> input:checked) .radio-card-indicator, .radio-card.is-selected .radio-card-indicator {
  border-color: var(--ts-blue);
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 10px var(--ts-blue);
}
.radio-card-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  color: var(--ts-red);
  font-size: 13px;
  line-height: 1.4;
}
.field-error .icon { width: 15px; height: 15px; margin-top: 1px; }
.help { margin: 0; font-size: 13px; color: var(--ts-text-2); line-height: 1.45; }

/* 12. Alerts ------------------------------------------------------------- */
.alert {
  --alert-accent: var(--ts-blue);
  --alert-border: #c6dafc;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  border: 1px solid var(--alert-border);
  border-radius: var(--radius);
  background: #f4f8fe;
  box-shadow: inset 4px 0 0 var(--alert-accent);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ts-text);
}
.alert-success { --alert-accent: var(--ts-green); --alert-border: #a8dab5; background: #f3faf5; }
.alert-error { --alert-accent: var(--ts-red); --alert-border: #f2b8b5; background: #fef6f5; }
.alert-info { --alert-accent: var(--ts-blue); --alert-border: #c6dafc; background: #f4f8fe; }
.alert-warning { --alert-accent: #e37400; --alert-border: #fbd38d; background: #fffaf0; }
.alert-icon { width: 20px; height: 20px; margin-top: 1px; color: var(--alert-accent); }
.alert-body { flex: 1; min-width: 0; }
.alert-body > :last-child { margin-bottom: 0; }
.alert-title { font-weight: 700; margin: 0 0 2px; }
.alert-close {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin: -4px -6px -4px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ts-text-2);
  cursor: pointer;
}
.alert-close:hover { background: rgba(15, 17, 17, .06); color: var(--ts-text); }

/* 13. Tables ------------------------------------------------------------- */
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
.table th {
  padding: 10px 14px;
  border-bottom: 1px solid var(--ts-border);
  background: var(--ts-surface-2);
  color: var(--ts-text-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.table td { padding: 12px 14px; border-bottom: 1px solid var(--ts-border-2); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafbfb; }
.table .num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-compact td, .table-compact th { padding: 8px 10px; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.spec-table th, .spec-table td { padding: 10px 14px; border-bottom: 1px solid var(--ts-border-2); text-align: left; vertical-align: top; }
.spec-table th { width: 38%; background: var(--ts-surface-3); font-weight: 600; color: var(--ts-text); }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--ts-border-2); }

/* 14. Stepper ------------------------------------------------------------ */
.stepper { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.stepper > li { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; color: var(--ts-text-2); font-size: 14px; }
.stepper > li:last-child { flex: 0 0 auto; }
.stepper > li:not(:last-child)::after {
  content: "";
  flex: 1;
  min-width: 16px;
  height: 2px;
  margin: 0 12px;
  border-radius: 2px;
  background: #dadce0;
}
.stepper-dot {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 2px solid #dadce0;
  border-radius: 50%;
  background: #fff;
  color: var(--ts-text-2);
  font-size: 13px;
  font-weight: 700;
}
.stepper-dot .icon { width: 15px; height: 15px; stroke-width: 3; }
.stepper-label { flex: 0 0 auto; white-space: nowrap; }
.stepper a { color: inherit; }
.stepper > li.is-done { color: var(--ts-text); }
.stepper > li.is-done .stepper-dot { border-color: var(--ts-blue); background: var(--ts-blue-50); color: var(--ts-blue); }
.stepper > li.is-done::after { background: var(--ts-blue); }
.stepper > li.is-current { color: var(--ts-text); font-weight: 700; }
.stepper > li.is-current .stepper-dot {
  border-color: var(--ts-blue);
  background: var(--ts-blue);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, .18);
}

/* 15. Skeleton ----------------------------------------------------------- */
.skeleton {
  display: block;
  border-radius: 6px;
  background: linear-gradient(90deg, #eceff1 25%, #f6f7f8 37%, #eceff1 63%);
  background-size: 400% 100%;
  color: transparent !important;
  animation: ts-shimmer 1.4s ease infinite;
}
.skeleton-text { height: 12px; margin: 8px 0; }
.skeleton-title { height: 20px; width: 60%; margin: 8px 0 12px; }
.skeleton-media { aspect-ratio: 4 / 3; border-radius: 0; }

/* 16. Header & search ---------------------------------------------------- */
.site-header { position: relative; z-index: 50; color: #fff; }
.nav-main { background: var(--ts-navy-900); }
.nav-main-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.nav-burger {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
}
.nav-burger .icon { width: 26px; height: 26px; }
.nav-burger:hover { border-color: #fff; }
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 6px 8px;
  margin-right: 6px;
  border: 1px solid transparent;
  border-radius: 6px;
}
.nav-logo:hover { border-color: #fff; }
.nav-logo img { display: block; width: auto; height: 34px; }

.nav-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #fff;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover { border-color: #fff; color: #fff; text-decoration: none; }
.nav-line1 { display: block; font-size: 12px; color: #ccd5df; font-weight: 400; }
.nav-line2 { display: flex; align-items: center; gap: 3px; font-size: 14px; font-weight: 700; color: #fff; }
.nav-caret { color: #a7b3c2; }
.nav-account { flex-direction: row; align-items: center; }
.nav-account-text { display: flex; flex-direction: column; }
.nav-account-mobile { display: none; align-items: center; gap: 2px; font-size: 13px; font-weight: 500; color: #fff; }
.nav-account-icon { width: 26px; height: 26px; margin-left: 2px; }
.nav-locale {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  padding: 6px 9px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: default;
}
.nav-cart { flex-direction: row; align-items: flex-end; gap: 0; padding-right: 10px; }
.nav-cart-icon { position: relative; display: inline-flex; }
.icon-cart { width: 40px; height: 40px; stroke-width: 1.7; }
.cart-count {
  position: absolute;
  top: 1px;
  left: 22px;
  transform: translateX(-50%);
  min-width: 18px;
  color: var(--ts-orange);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.cart-count.is-bump { animation: ts-bump .45s var(--ease); }
.nav-cart-text { margin: 0 0 3px -2px; }

/* Search */
.search {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  height: 42px;
  margin: 0 8px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ts-text);
  transition: box-shadow .15s;
}
.search:focus-within { box-shadow: 0 0 0 3px var(--ts-orange); }
.search-scope {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  max-width: 190px;
  padding: 0 8px 0 11px;
  border-right: 1px solid #cdcdcd;
  border-radius: var(--radius) 0 0 var(--radius);
  background: #e6e6e6;
  color: #555;
  font-size: 12px;
  cursor: pointer;
  transition: background-color .15s, color .15s;
}
.search-scope:hover { background: #d4d4d4; color: var(--ts-text); }
.search-scope:focus-within { outline: 2px solid var(--ts-blue); outline-offset: -2px; }
.search-scope-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  cursor: pointer;
  font-size: 14px;
  color: var(--ts-text);
}
.search-scope-label { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-field { display: flex; flex: 1 1 auto; min-width: 0; }
.search-input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: var(--ts-text);
  font-size: 15px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search-input:focus-visible { outline: none; }
.search-input::-webkit-search-cancel-button { cursor: pointer; }
.search-btn {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 50px;
  padding: 0;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--ts-orange);
  color: var(--ts-text);
  transition: background-color .15s;
}
.search-btn:hover { background: var(--ts-orange-hover); }
.search-btn .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.search-btn:focus-visible { outline: 2px solid var(--ts-blue); outline-offset: -3px; }

.search-suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 70;
  max-height: min(70vh, 560px);
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-3), 0 0 0 1px rgba(15, 17, 17, .06);
  color: var(--ts-text);
}
.suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 14px;
}
.suggest-item[aria-selected="true"], .suggest-item:hover { background: var(--ts-surface-3); }
.suggest-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--ts-steel)), var(--c2, var(--ts-navy-700)));
}
.suggest-icon .icon { width: 18px; height: 18px; }
.suggest-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suggest-name { font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.suggest-name mark { background: none; color: inherit; font-weight: 700; }
.suggest-cat { font-size: 12px; color: var(--ts-text-2); }
.suggest-price { flex-shrink: 0; font-size: 13px; font-weight: 600; white-space: nowrap; }
.suggest-price small { font-weight: 400; color: var(--ts-text-2); font-size: 12px; }
.suggest-all { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--ts-border-2); color: var(--ts-blue); font-weight: 500; }
.suggest-all .suggest-icon { background: var(--ts-blue-50); color: var(--ts-blue); }
.suggest-empty { padding: 10px 14px; color: var(--ts-text-2); font-size: 14px; }

/* Category strip */
.nav-strip { background: var(--ts-navy-800); font-size: 14px; }
.nav-strip-inner {
  display: flex;
  align-items: center;
  gap: 2px;
  min-height: 40px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-strip-inner::-webkit-scrollbar { display: none; }
.strip-all, .strip-links a, .strip-expert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.3;
}
.strip-all { font-weight: 700; }
.strip-all:hover, .strip-links a:hover, .strip-expert:hover { border-color: #fff; color: #fff; text-decoration: none; }
.strip-links { display: flex; gap: 2px; margin: 0; padding: 0; list-style: none; }
.strip-links a.is-active { background: rgba(255, 255, 255, .1); box-shadow: inset 0 -2px 0 var(--ts-orange); }
.strip-expert { margin-left: auto; color: #ffd27a; font-weight: 600; }
.strip-expert:hover { color: #ffd27a; }

/* 17. Drawer ------------------------------------------------------------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  opacity: 0;
  transition: opacity .25s ease;
}
.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(365px, 86vw);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--ts-text);
  box-shadow: var(--shadow-3);
  transform: translateX(-100%);
  transition: transform .28s var(--ease);
}
.drawer-panel:focus { outline: none; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 56px 14px 22px;
  background: var(--ts-navy-700);
  color: #fff;
}
.drawer-avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.drawer-avatar .icon { width: 20px; height: 20px; }
.drawer-title { margin: 0; font-size: 18px; font-weight: 700; }
.drawer-close {
  position: absolute;
  top: 12px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
}
.drawer-close:hover { background: rgba(255, 255, 255, .14); }
.drawer-heading { margin: 0; padding: 18px 22px 6px; font-size: 17px; font-weight: 700; }
.drawer-list { margin: 0; padding: 0 0 12px; list-style: none; border-bottom: 1px solid #d5dbdb; }
.drawer-list:last-child { border-bottom: 0; }
.drawer-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  color: var(--ts-text);
  font-size: 14px;
  text-decoration: none;
}
.drawer-list a:hover, .drawer-list a[aria-current="page"] { background: var(--ts-bg); text-decoration: none; color: var(--ts-text); }
.drawer-list a[aria-current="page"] { font-weight: 700; }
.drawer-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--ts-steel)), var(--c2, var(--ts-navy-700)));
}
.drawer-icon-all { background: linear-gradient(135deg, var(--ts-steel), var(--ts-navy-700)); }
.drawer-icon-plain { background: var(--ts-surface-3); color: var(--ts-text-2); }
.drawer-text { flex: 1; min-width: 0; }
.drawer-chevron { color: #8d9191; }

/* 18. Mini-cart ---------------------------------------------------------- */
.mini-cart { position: fixed; inset: 0; z-index: 110; }
.mini-cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 17, .45);
  opacity: 0;
  transition: opacity .25s ease;
}
.mini-cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  background: #fff;
  color: var(--ts-text);
  box-shadow: -8px 0 28px rgba(0, 0, 0, .2);
  transform: translateX(100%);
  transition: transform .3s var(--ease);
}
.mini-cart-panel:focus { outline: none; }
.mini-cart.is-open .mini-cart-backdrop { opacity: 1; }
.mini-cart.is-open .mini-cart-panel { transform: none; }
.mini-cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid var(--ts-border-2);
}
.mini-cart-title { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 18px; font-weight: 700; color: var(--ts-green); }
.mini-cart-title.is-error { color: var(--ts-red); }
.mini-cart-check { width: 24px; height: 24px; }
.mini-cart-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 20px 16px; }
.mini-cart-foot { padding: 16px 20px 20px; border-top: 1px solid var(--ts-border-2); background: var(--ts-surface-2); }
.mini-cart-subtotal { margin: 0 0 2px; font-size: 16px; }
.mini-cart-subtotal strong { font-size: 18px; }
.mini-cart-actions { display: grid; gap: 8px; margin-top: 14px; }
.mini-cart-section { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ts-text-2); }
.mini-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--ts-border-2); }
.mini-line:last-child { border-bottom: 0; }
.mini-line.is-added { animation: ts-fade-in .35s ease; }
.mini-line-thumb {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, var(--c1, var(--ts-steel)), var(--c2, var(--ts-navy-700)));
}
.mini-line-thumb .icon { width: 30px; height: 30px; stroke-width: 1.7; }
.mini-line-small .mini-line-thumb { width: 44px; height: 44px; border-radius: 10px; }
.mini-line-small { grid-template-columns: 44px minmax(0, 1fr); padding: 10px 0; }
.mini-line-small .mini-line-thumb .icon { width: 22px; height: 22px; }
.mini-line-name { display: block; font-weight: 600; line-height: 1.3; color: var(--ts-text); }
.mini-line-name:hover { color: #c7511f; }
.mini-line-meta { margin: 2px 0 0; font-size: 13px; color: var(--ts-text-2); }
.mini-line-price { margin: 4px 0 0; font-weight: 700; }
.mini-line-price small { font-weight: 400; color: var(--ts-text-2); }
.mini-cart-notice { margin: 10px 0 0; }

/* 19. Toast -------------------------------------------------------------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  max-width: 560px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: #202124;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
  pointer-events: auto;
  animation: ts-toast-in .25s var(--ease);
}
.toast-icon { width: 20px; height: 20px; color: #8ab4f8; }
.toast-success .toast-icon { color: #81c995; }
.toast-error .toast-icon { color: #f28b82; }
.toast-text { flex: 1; }
.toast a { color: #8ab4f8; font-weight: 600; white-space: nowrap; }
.toast-close { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #bdc1c6; }
.toast-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.toast.is-leaving { animation: ts-toast-out .2s ease forwards; }

/* 20. Footer ------------------------------------------------------------- */
.site-footer { margin-top: 48px; color: #fff; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 15px;
  background: var(--ts-navy-700);
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .15s;
}
.footer-top:hover { background: #27406a; color: #fff; text-decoration: none; }
.footer-main { background: var(--ts-navy-800); padding: 40px 0 34px; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: 1080px;
}
.footer-heading { margin: 0 0 12px; font-size: 16px; font-weight: 700; color: #fff; }
.footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.footer-col a { color: #dde3ea; font-size: 14px; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { padding: 28px 0 36px; background: var(--ts-navy-900); border-top: 1px solid rgba(255, 255, 255, .08); text-align: center; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-logo { display: inline-flex; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; }
.footer-logo:hover { border-color: rgba(255, 255, 255, .6); }
.footer-logo img { height: 30px; width: auto; }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #c8d1dc;
  font-size: 13px;
}
.footer-contact li { display: inline-flex; align-items: center; gap: 6px; }
.footer-contact a { color: #fff; }
.footer-address, .footer-copy { margin: 0; color: #a7b3c2; font-size: 12px; }
.footer-tagline { margin: 0; color: #7f8fa3; font-size: 12px; font-style: italic; }

/* 21. Carousel & horizontal scroller ------------------------------------- */
.carousel { position: relative; overflow: hidden; }
.carousel-viewport { overflow: hidden; }
.carousel-track { display: flex; transition: transform .6s var(--ease); will-change: transform; }
.carousel-slide { flex: 0 0 100%; min-width: 0; }
.carousel-prev, .carousel-next {
  position: absolute;
  top: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 64px;
  height: var(--carousel-arrow-h, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background-color .15s;
}
.carousel-prev { left: 0; }
.carousel-next { right: 0; }
.carousel-prev:hover, .carousel-next:hover { background: rgba(255, 255, 255, .08); }
.carousel-prev .icon, .carousel-next .icon { width: 44px; height: 44px; stroke-width: 1.6; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .45)); }
.carousel-prev:focus-visible, .carousel-next:focus-visible { outline: 3px solid #fff; outline-offset: -6px; box-shadow: inset 0 0 0 6px var(--ts-blue); }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: var(--carousel-dots-bottom, 16px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}
.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
  cursor: pointer;
  transition: width .25s var(--ease), background-color .2s;
}
.carousel-dot[aria-current="true"] { width: 26px; background: #fff; }
.carousel-pause {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-left: 4px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 17, 17, .45);
  color: #fff;
  cursor: pointer;
}
.carousel-pause .icon { width: 12px; height: 12px; stroke-width: 3; }

.scroller { position: relative; }
.scroller-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(236px, 260px);
  gap: 16px;
  margin: 0;
  padding: 4px 2px 14px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: #c1c6c6 transparent;
}
.scroller-track::-webkit-scrollbar { height: 6px; }
.scroller-track::-webkit-scrollbar-thumb { background: #c1c6c6; border-radius: 3px; }
.scroller-item, .scroller-track > * { scroll-snap-align: start; min-width: 0; }
.scroller-btn {
  position: absolute;
  top: calc(50% - 7px);
  z-index: 4;
  display: grid;
  place-items: center;
  width: 44px;
  height: 92px;
  padding: 0;
  border: 1px solid var(--ts-border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  color: var(--ts-text);
  box-shadow: var(--shadow-2);
  transform: translateY(-50%);
  cursor: pointer;
  transition: opacity .2s, background-color .15s;
}
.scroller-btn:hover { background: #fff; }
.scroller-btn .icon { width: 26px; height: 26px; }
.scroller-prev { left: -8px; }
.scroller-next { right: -8px; }
.scroller-btn[disabled] { opacity: 0; pointer-events: none; }

/* 22. Misc components ---------------------------------------------------- */
.accordion { border-top: 1px solid var(--ts-border); }
.accordion details { border-bottom: 1px solid var(--ts-border); }
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565959' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat center / 18px;
  transition: transform .2s ease;
}
.accordion details[open] > summary::after { transform: rotate(180deg); }
.accordion summary:hover { color: var(--ts-blue-700); }
.accordion-body { padding: 0 4px 16px; color: var(--ts-text-2); line-height: 1.6; }
.accordion-body > :last-child { margin-bottom: 0; }

.empty-state { max-width: 600px; margin: 0 auto; padding: 48px 24px; text-align: center; }
.empty-state-icon {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ts-blue-50);
  color: var(--ts-blue);
}
.empty-state-title { margin: 0 0 8px; font-size: 22px; }
.empty-state-text { margin: 0 auto 22px; max-width: 460px; color: var(--ts-text-2); }

.summary-box { padding: 18px 20px; border: 1px solid var(--ts-border); border-radius: var(--radius); background: #fff; }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 4px 0; font-size: 14px; }
.summary-row > :last-child { text-align: right; font-variant-numeric: tabular-nums; }
.summary-row-total { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ts-border); font-size: 18px; font-weight: 700; }
.summary-row-savings { color: var(--ts-green); }

.list-check { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.list-check > li { position: relative; padding-left: 28px; line-height: 1.5; }
.list-check > li::before {
  content: "";
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ts-green-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23188038' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 12px;
}
.list-bullets { margin: 0; padding-left: 20px; }
.list-bullets > li { margin: 6px 0; line-height: 1.55; }

.feature { display: flex; gap: 14px; align-items: flex-start; }
.feature-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; }
.feature-text { margin: 0; font-size: 14px; color: var(--ts-text-2); }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--ts-text-2); }
.kv dd { margin: 0; font-weight: 500; }

.error-panel { max-width: 720px; margin: 24px auto; }
.notice-bar { padding: 10px 0; background: var(--ts-blue-50); color: #174ea6; font-size: 14px; text-align: center; }

.art { display: block; width: 100%; height: auto; }
.art-card { aspect-ratio: 4 / 3; }
.art-hero { aspect-ratio: 16 / 9; }
.art-thumb { aspect-ratio: 1 / 1; }
.art-frame { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-1); background: #dfe3e6; }

/* 23. Responsive --------------------------------------------------------- */
@media (max-width: 479px) {
  .stepper-label { display: none; }
  .stepper > li.is-current .stepper-label { display: inline; }
  .stepper > li:not(:last-child)::after { margin: 0 6px; }
}

@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid .field-full, .form-grid .span-2 { grid-column: 1 / -1; }
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radio-card-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .footer-cols { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .card-pad { padding: 24px; }
}

@media (min-width: 1024px) {
  :root { --gutter: 24px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .with-sidebar { grid-template-columns: 260px minmax(0, 1fr); }
  .page-title { font-size: 30px; }
}

@media (min-width: 1280px) {
  .product-grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1279px) {
  .nav-locale { display: none; }
}

@media (max-width: 1023px) {
  .nav-orders { display: none; }
  .strip-expert { margin-left: 8px; }
}

@media (max-width: 767px) {
  body { font-size: 15px; }
  .nav-main-inner {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr) auto auto;
    grid-template-areas:
      "burger logo . account cart"
      "search search search search search";
    gap: 6px 2px;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 10px;
  }
  .nav-burger { display: grid; grid-area: burger; }
  .nav-logo { grid-area: logo; margin: 0; padding: 4px 6px; }
  .nav-logo img { height: 27px; }
  .nav-account { grid-area: account; padding: 4px 6px; }
  .nav-account-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .nav-account-mobile { display: inline-flex; }
  .nav-cart { grid-area: cart; padding: 2px 6px 2px 4px; }
  .nav-cart-text { display: none; }
  .icon-cart { width: 36px; height: 36px; }
  .cart-count { left: 20px; font-size: 15px; }
  .search { grid-area: search; margin: 0; height: 44px; }
  .search-scope { display: none; }
  .search-input { font-size: 16px; border-radius: var(--radius) 0 0 var(--radius); }
  .nav-orders, .nav-locale { display: none; }
  .strip-all { display: none; }
  .nav-strip-inner { min-height: 42px; }
  .strip-expert { margin-left: 0; }

  .input, .select, .textarea { font-size: 16px; }
  .page-title { font-size: 24px; }
  .section-title { font-size: 19px; }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  .card-pad { padding: 16px; }
  .scroller-btn { display: none; }
  .scroller-track { grid-auto-columns: minmax(220px, 78%); }
  .toast-region { bottom: 16px; }
  .toast { min-width: 0; width: calc(100vw - 32px); }
  .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-stack tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--ts-border-2); }
  .table-stack td { display: flex; justify-content: space-between; gap: 12px; padding: 4px 12px; border: 0; }
  .table-stack td::before { content: attr(data-label); font-weight: 600; color: var(--ts-text-2); }
}

@media (max-width: 559px) {
  .product-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .product-grid .product-card { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: start; }
  .product-grid .product-card:hover { transform: none; }
  .product-grid .product-card-media { aspect-ratio: 1 / 1; margin: 12px 0 12px 12px; border-radius: var(--radius); }
  .product-grid .product-card-body { align-self: stretch; }
  .product-grid .product-card-flag { top: 8px; left: 8px; font-size: 11px; padding: 2px 6px; }
  .product-grid .product-card-body { padding: 12px 12px 14px; gap: 4px; }
  .product-grid .product-card-title { font-size: 15px; }
  .product-grid .product-card-short { font-size: 13px; }
  .product-grid .price { font-size: 21px; }
  .product-grid .product-card-actions { padding-top: 8px; }
  .product-grid .product-card-price .price-per { flex-basis: 100%; }
  .product-grid .product-card-actions .btn { min-height: 34px; }
}

@media (max-width: 420px) {
  .product-grid .product-card-actions { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 380px) {
  .nav-logo img { height: 24px; }
  .nav-account-mobile { font-size: 12px; }
  .product-grid .product-card { grid-template-columns: 100px minmax(0, 1fr); }
}

@media (hover: none) {
  .scroller-btn { display: none; }
  .product-card:hover { transform: none; }
}

/* 24. Motion & print ----------------------------------------------------- */
@keyframes ts-spin { to { transform: rotate(360deg); } }
@keyframes ts-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes ts-bump { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.45); } 100% { transform: translateX(-50%) scale(1); } }
@keyframes ts-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ts-toast-out { to { opacity: 0; transform: translateY(8px); } }
@keyframes ts-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ts-row-out { to { opacity: 0; transform: translateX(16px); } }

.is-removing { animation: ts-row-out .3s ease forwards; pointer-events: none; }
.is-updating { opacity: .55; transition: opacity .15s; pointer-events: none; }

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

@media print {
  .site-header, .site-footer, .mini-cart, .drawer, .toast-region, .skip-link, .no-print, .btn, .alert-close { display: none !important; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .card, .product-card, .summary-box { box-shadow: none; border: 1px solid #ccc; }
  a { color: inherit; text-decoration: none; }
  .container { max-width: none; padding: 0; }
}
