:root {
  color-scheme: dark;
  --primary: #ed1c24;
  --primary-dark: #c81018;
  --blue: #335599;
  --info: #058fff;
  --red: #f05564;
  --green: #42d78c;
  --page: #1e1e20;
  --panel: #252529;
  --panel-2: #313136;
  --panel-3: #222225;
  --field: #48484d;
  --field-border: #5a5a5f;
  --line: #313136;
  --text: #d5d5d8;
  --muted: rgba(213, 213, 216, .72);
  --heading: #f6f6f7;
  --white: #f8f8f9;
  --container: 1260px;
  --radius: 6px;
  --gap: 16px;
  --shadow: 0 1px 4px rgba(0, 0, 0, .18), 0 4px 16px rgba(0, 0, 0, .14);
}

html[data-theme="light"] {
  color-scheme: light;
  --blue: #284f9f;
  --info: #005fbe;
  --red: #d82842;
  --page: #f3f4f6;
  --panel: #ffffff;
  --panel-2: #eceef3;
  --panel-3: #f7f8fb;
  --field: #ffffff;
  --field-border: #cfd3db;
  --line: #d9dde5;
  --text: #26272b;
  --muted: rgba(38, 39, 43, .68);
  --heading: #101114;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(20, 22, 28, .08), 0 10px 24px rgba(20, 22, 28, .08);
}

html[data-theme="light"] .topbar,
html[data-theme="light"] .menubar {
  color: rgba(248, 248, 249, .72);
  background: #171719;
  border-color: #2b2c31;
}

html[data-theme="light"] .topbar-list a,
html[data-theme="light"] .topbar-promo,
html[data-theme="light"] .topbar-button,
html[data-theme="light"] .departments,
html[data-theme="light"] .menu-link {
  color: rgba(248, 248, 249, .72);
}

html[data-theme="light"] .topbar-list a:hover,
html[data-theme="light"] .topbar-button:hover,
html[data-theme="light"] .topbar-button[aria-expanded="true"],
html[data-theme="light"] .departments:hover,
html[data-theme="light"] .menu-link:hover {
  color: #f8f8f9;
}

html[data-theme="light"] .middlebar {
  background: #e9ebf1;
}

html[data-theme="light"] .action {
  color: #202126;
  background: rgba(16, 17, 20, .07);
}

html[data-theme="light"] .action:hover {
  background: rgba(16, 17, 20, .12);
}

html[data-theme="light"] .search input::placeholder {
  color: rgba(38, 39, 43, .55);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--page);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

main {
  min-height: 56vh;
}

.container {
  width: min(100% - 24px, var(--container));
  margin-inline: auto;
}

.site-header {
  display: contents;
}

.topbar {
  min-height: 32px;
  color: var(--muted);
  background: var(--panel-3);
  font-size: 14px;
}

.topbar .container {
  min-height: 32px;
  display: grid;
  grid-template-columns: 1fr minmax(360px, 1.4fr) 1fr;
  align-items: center;
  gap: 16px;
}

.topbar-list,
.currency-list {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  white-space: nowrap;
}

.topbar-list i,
.currency-list i {
  color: var(--primary);
}

.topbar-promo {
  justify-self: center;
  text-align: center;
  white-space: nowrap;
}

.topbar-promo a,
.link-info,
.view-all {
  color: var(--info);
}

.currency-list {
  justify-content: flex-end;
  gap: 14px;
}

.preference-item {
  position: relative;
}

.topbar-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.topbar-button[aria-expanded="true"] {
  color: var(--heading);
}

.preference-menu {
  position: absolute;
  z-index: 50;
  top: calc(100% + 8px);
  right: 0;
  min-width: 108px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  box-shadow: var(--shadow);
}

.preference-menu button {
  width: 100%;
  min-height: 30px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 4px;
  padding: 0 9px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: left;
}

.preference-menu button:hover,
.preference-menu button[aria-current="true"] {
  color: var(--heading);
  background: rgba(255, 255, 255, .08);
}

.flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  display: inline-block;
  margin-right: 5px;
}

.language-indicator {
  min-width: 18px;
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.middlebar {
  position: relative;
  z-index: 20;
  min-height: 76px;
  background: var(--panel-2);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

body.is-stuck .middlebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
}

.middlebar .container {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  width: 220px;
  flex: 0 0 220px;
  display: flex;
  align-items: center;
}

.brand img {
  width: 100%;
  height: auto;
}

.search {
  height: 44px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 176px 90px;
  flex: 1 1 auto;
  min-width: 320px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--field);
}

.search input,
.search select {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--text);
  background: var(--field);
  padding-inline: 15px;
}

.search input::placeholder {
  color: rgba(213, 213, 216, .74);
}

.search select {
  color: var(--muted);
  border-left: 1px solid var(--field-border);
}

.search button,
.primary-button {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.search button {
  border-radius: 0;
}

.search button:hover,
.primary-button:hover {
  background: var(--primary-dark);
}

.button-link,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
}

.secondary-button {
  color: var(--heading);
  background: var(--panel-2);
  border: 1px solid var(--line);
}

.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.action {
  position: relative;
  min-width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.action i {
  font-size: 22px;
  line-height: 1;
}

.action.account {
  justify-content: flex-start;
  width: auto;
  padding: 0 12px 0 10px;
  white-space: nowrap;
}

.action.account small {
  display: block;
  margin-bottom: -4px;
  font-size: 11px;
  line-height: 1.1;
}

.action.account span {
  font-size: 16px;
  line-height: 1.1;
}

.action.stuck-menu {
  display: none;
}

body.is-stuck .action.stuck-menu {
  display: inline-flex;
}

.badge {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.menubar {
  min-height: 53px;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}

.menubar .container {
  min-height: 53px;
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}

.menubar .container::-webkit-scrollbar {
  display: none;
}

.departments {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-right: 22px;
  border-right: 1px solid var(--line);
  white-space: nowrap;
  color: var(--muted);
}

.menu-link {
  color: var(--muted);
  white-space: nowrap;
  font-weight: 400;
}

.hero-slider {
  padding: 16px 0 0;
}

.hero-slider .swiper--slides {
  border-radius: 12px;
  overflow: hidden;
}

.hero-slider .swiper-slide img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  opacity: 0;
  transition: opacity .2s;
}

.hero-slider .swiper--slides:hover .swiper-button-next,
.hero-slider .swiper--slides:hover .swiper-button-prev {
  opacity: 1;
}

.hero {
  padding: 16px 0 0;
}

.hero-wrap {
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: var(--gap);
  height: calc(min(100vw - 24px, var(--container)) * .397);
}

.hero-item {
  overflow: hidden;
  background: #e7f4ff;
}

.hero-item img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.hero-md {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.hero-lg {
  grid-column: 3 / span 2;
  grid-row: 1 / span 2;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 52px;
  transform: translateY(-50%);
  color: #313136;
}

.hero-arrow svg {
  width: 100%;
  height: 100%;
}

.hero-prev {
  left: -58px;
}

.hero-next {
  right: -58px;
}

.dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
}

.dot {
  width: 16px;
  height: 4px;
  background: #313136;
}

.dot.active {
  background: var(--blue);
}

.benefits {
  margin: 53px 0 67px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.benefit {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  align-items: start;
}

.benefit i {
  color: var(--blue);
  font-size: 44px;
  line-height: 1;
}

.benefit h3,
.widget h3,
.footer h3,
.footer h4 {
  margin: 0;
  color: var(--heading);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.benefit p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  margin: 0;
  color: var(--heading);
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--panel);
}

.product-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.tag {
  min-width: 37px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  padding: 0 8px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.tag.sale {
  background: var(--red);
}

.tag.top {
  background: var(--green);
}

.tag.new {
  background: var(--info);
}

.wish {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d5d5d8;
  border-radius: 999px;
  color: #313136;
  background: #fff;
  font-size: 18px;
}

.product-media {
  height: 280px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-body {
  min-height: 137px;
  padding: 12px 16px 14px;
  background: var(--panel);
}

.category {
  color: var(--primary);
  font-size: 14px;
}

.product-title {
  display: block;
  margin-top: 3px;
  color: var(--blue);
  font-size: 15px;
  line-height: 1.3;
  font-weight: 500;
}

.stars {
  display: block;
  height: 18px;
  color: var(--primary);
  font-size: 16px;
  line-height: 1;
  letter-spacing: 0;
}

.stars .empty {
  color: #313136;
}

.price {
  margin-top: 1px;
  color: var(--red);
  font-size: 23px;
  line-height: 1.1;
  font-weight: 400;
}

.price del {
  margin-left: 5px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
}

.meta {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.banner {
  margin: 55px auto 80px;
  min-height: 228px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.banner-copy {
  padding: 38px 28px;
}

.banner-kicker,
.eyebrow {
  margin: 0 0 5px;
  color: var(--blue);
  text-transform: uppercase;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: .02em;
}

.banner h2 {
  margin: 0 0 2px;
  color: var(--heading);
  font-size: 29px;
  line-height: 1.25;
  font-weight: 500;
}

.banner p {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 16px;
}

.banner-art {
  width: min(48%, 486px);
  height: 228px;
  object-fit: cover;
  object-position: right center;
}

.brand-strip {
  margin-bottom: 78px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
}

.brand-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  min-height: 68px;
}

.brand-track img {
  width: 165px;
  max-width: 80%;
  margin: 0 auto;
}

.page-hero {
  padding: 48px 0 28px;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 860px;
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--info);
}

.catalog-shell {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 10px;
  margin-bottom: 72px;
}

.catalog-shell-top {
  grid-template-columns: 1fr;
}

.filter-panel,
.summary-card,
.content-panel,
.support-card,
.auth-card,
.auth-panel,
.account-panel,
.account-nav,
.timeline-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.filter-panel {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.filter-panel h2,
.summary-card h2,
.content-panel h2,
.support-card h2,
.auth-card h2,
.auth-panel h2,
.account-panel h2,
.timeline-panel h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 20px;
}

.filter-block {
  display: grid;
  gap: 10px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.filter-block h3 {
  margin: 0;
  color: var(--heading);
  font-size: 15px;
}

.filter-block a,
.filter-block label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.toolbar-controls button,
.toolbar-controls select,
.filter-chips a,
.pagination a,
.icon-only {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-2);
}

.toolbar-controls button,
.icon-only {
  width: 38px;
  display: grid;
  place-items: center;
}

.toolbar-controls select {
  padding: 0 12px;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-chips a,
.pagination a {
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.pagination .active {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
}

.search-summary {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}

.inline-search {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 8px;
}

.mock-form input,
.mock-form select,
.mock-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--field);
  padding: 0 12px;
}

.mock-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

.mock-form {
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.detail-media {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.detail-media img {
  width: 88%;
  max-height: 500px;
  object-fit: contain;
}

.detail-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.detail-copy h1 {
  margin: 4px 0 8px;
  color: var(--heading);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
}

.detail-copy p {
  color: var(--muted);
}

.detail-price {
  margin: 14px 0;
  color: var(--red);
  font-size: 34px;
  line-height: 1.1;
}

.detail-price del {
  color: var(--muted);
  font-size: 20px;
}

.spec-list {
  display: grid;
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
  color: var(--text);
}

.purchase-row {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 12px;
}

.quantity-products {
  height: 44px;
  display: grid;
  grid-template-columns: 38px 1fr 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel-2);
}

.quantity-products button,
.quantity-products input {
  min-width: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: center;
}

.secondary-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.secondary-actions a {
  color: var(--muted);
}

.product-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 64px;
}

.product-info-grid > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.product-info-grid h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 18px;
}

.product-info-grid p {
  margin: 0;
  color: var(--muted);
}

.related-products {
  margin-bottom: 72px;
}

.checkout-layout,
.support-layout,
.auth-shell,
.content-layout,
.account-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}

.line-items {
  display: grid;
  gap: 12px;
}

.cart-row {
  display: grid;
  grid-template-columns: 92px 1fr 130px 92px 40px;
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.cart-row img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.summary-card,
.support-card,
.timeline-panel,
.auth-card,
.auth-panel,
.account-panel,
.content-panel {
  padding: 22px;
}

.summary-card {
  display: grid;
  gap: 14px;
}

.summary-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.summary-card strong,
.cart-row strong {
  color: var(--heading);
}

.summary-total {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 20px;
}

.summary-cards {
  width: 246px;
  max-width: 100%;
}

.checkout-form {
  display: grid;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.checkout-form h2 {
  margin: 0;
  color: var(--heading);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.span-2 {
  grid-column: span 2;
}

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.payment-options label,
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.confirmation-panel,
.error-page {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 70px 24px;
}

.confirmation-panel i {
  color: var(--green);
  font-size: 64px;
}

.confirmation-panel h2,
.error-page h1 {
  margin: 0;
  color: var(--heading);
  font-size: clamp(2rem, 4vw, 4rem);
}

.confirmation-panel p,
.error-page p {
  max-width: 620px;
  color: var(--muted);
}

.confirmation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.compare-table {
  margin-bottom: 72px;
  overflow-x: auto;
}

.compare-table table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  background: var(--panel);
}

.compare-table th,
.compare-table td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
}

.compare-table th {
  color: var(--heading);
}

.compare-table th img {
  width: 120px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  background: #fff;
  border-radius: var(--radius);
}

.support-form,
.timeline-panel ol {
  display: grid;
  gap: 14px;
}

.timeline-panel ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-panel li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-panel span {
  color: var(--muted);
}

.auth-shell {
  grid-template-columns: minmax(0, 520px) 1fr;
}

.auth-shell.narrow {
  grid-template-columns: minmax(0, 520px);
}

.auth-card,
.auth-panel {
  display: grid;
  gap: 16px;
}

.auth-card.wide {
  max-width: 760px;
}

.form-row-between {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.auth-panel p,
.content-panel p,
.support-card p,
.article-panel p,
.panel-note {
  color: var(--muted);
}

.account-layout {
  grid-template-columns: 260px 1fr;
}

.account-nav {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.account-nav a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--muted);
  border-radius: var(--radius);
}

.account-nav a:hover {
  color: var(--heading);
  background: var(--panel-2);
}

.dashboard-grid,
.address-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.dashboard-grid a,
.address-grid article,
.blog-card,
.content-steps div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-3);
}

.dashboard-grid a {
  display: grid;
  gap: 6px;
}

.dashboard-grid i {
  color: var(--primary);
  font-size: 32px;
}

.dashboard-grid strong {
  color: var(--heading);
  font-size: 28px;
}

.dashboard-grid span,
.address-grid p,
.blog-card p {
  color: var(--muted);
}

.order-list {
  display: grid;
  gap: 10px;
}

.order-list div {
  display: grid;
  grid-template-columns: 1fr 1fr 100px 90px;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-3);
}

.order-list a,
.address-grid a {
  color: var(--info);
}

.content-layout {
  grid-template-columns: 1fr 340px;
}

.content-panel {
  max-width: 860px;
}

.content-panel h2,
.support-card h2,
.blog-card h2 {
  color: var(--heading);
}

.content-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.content-steps strong {
  display: block;
  color: var(--primary);
  font-size: 24px;
}

.content-steps span {
  color: var(--muted);
}

.compatibility-layout,
.repair-layout,
.media-library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}

.compatibility-layout {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.service-stack,
.repair-board,
.library-side {
  display: grid;
  gap: 16px;
}

.service-panel,
.compatibility-card,
.repair-card,
.media-card,
.assistant-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.service-panel,
.compatibility-card,
.repair-card,
.assistant-panel {
  padding: 22px;
}

.service-panel h2,
.compatibility-card h2,
.repair-card h2,
.media-card h2,
.assistant-panel h2,
.upload-panel h2,
.grade-panel h2 {
  margin: 0;
  color: var(--heading);
  font-size: 20px;
  line-height: 1.2;
}

.service-panel p,
.device-header p,
.repair-card-head p,
.media-card p,
.assistant-panel p {
  margin: 7px 0 0;
  color: var(--muted);
}

.compatibility-search,
.library-search,
.upload-panel {
  display: grid;
  gap: 16px;
}

.finder-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finder-filters label,
.finder-filters button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 12px;
  color: var(--muted);
  background: var(--panel-2);
  cursor: pointer;
  white-space: nowrap;
}

.finder-filters button.active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.device-header,
.repair-card-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.device-header span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.device-header strong,
.repair-card-head > strong {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 10px;
  color: var(--heading);
  background: var(--panel-2);
  white-space: nowrap;
  font-size: 13px;
}

.service-table {
  overflow-x: auto;
}

.service-table table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.service-table th,
.service-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.service-table th {
  color: var(--heading);
  font-size: 13px;
}

.service-table td {
  color: var(--muted);
  font-size: 14px;
}

.service-table td strong,
.table-price {
  color: var(--heading);
}

.supply-kind {
  color: var(--info);
  font-weight: 700;
}

.assistant-panel,
.library-side {
  position: sticky;
  top: 96px;
}

.chat-log,
.prompt-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.chat-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--panel-3);
  font-size: 14px;
}

.chat-message.user {
  color: var(--heading);
  background: var(--field);
}

.prompt-list button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 8px 10px;
  color: var(--muted);
  background: var(--panel-2);
  cursor: pointer;
  text-align: left;
}

.prompt-list button:hover {
  color: var(--heading);
}

.repair-card-head {
  grid-template-columns: 48px minmax(0, 1fr) auto;
}

.repair-card-head i {
  color: var(--blue);
  font-size: 40px;
  line-height: 1;
}

.repair-option-list {
  display: grid;
}

.repair-option {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
}

.repair-option:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.repair-option input {
  margin-top: 3px;
  accent-color: var(--primary);
}

.repair-option:has(input:checked) {
  color: var(--heading);
}

.option-copy strong {
  display: block;
  color: var(--heading);
}

.option-copy small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.4;
}

.option-cost {
  color: var(--red);
  white-space: nowrap;
  font-weight: 700;
}

.repair-summary .primary-button,
.repair-summary .secondary-button,
.upload-panel .primary-button {
  width: 100%;
}

.upload-panel .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.summary-picks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.summary-picks li {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.media-card {
  overflow: hidden;
}

.media-frame {
  position: relative;
  height: 226px;
  display: grid;
  place-items: center;
  background: #fff;
  overflow: hidden;
}

.media-frame img {
  width: 82%;
  height: 180px;
  object-fit: contain;
}

.media-frame .tag {
  position: absolute;
  top: 14px;
  left: 14px;
}

.media-body {
  padding: 16px;
}

.media-body h2 {
  margin-top: 4px;
}

.media-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  color: var(--muted);
}

.media-meta strong {
  color: var(--heading);
}

.slot-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 14px;
}

.slot-list li {
  display: flex;
  gap: 7px;
}

.slot-list i {
  color: var(--green);
}

.media-actions {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 8px;
  margin-top: 16px;
}

.media-actions .secondary-button {
  width: 100%;
  min-width: 0;
  padding: 0 12px;
}

.upload-box {
  min-height: 154px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px dashed var(--field-border);
  border-radius: var(--radius);
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.upload-box i {
  color: var(--info);
  font-size: 42px;
  line-height: 1;
}

.upload-box strong {
  color: var(--heading);
}

.blog-grid {
  margin-bottom: 72px;
}

/* ===== Chatbot input UI ===== */
.chat-input-bar {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.chat-input-bar input {
  min-height: 44px;
  border: 0;
  outline: 0;
  padding: 0 12px;
  color: var(--text);
  background: var(--field);
  font: inherit;
}

.chat-input-bar .primary-button {
  min-height: 44px;
  width: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  padding: 0;
}

.chat-log {
  max-height: 400px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.chat-message {
  position: relative;
}

.chat-message.bot {
  border-color: color-mix(in srgb, var(--info) 45%, var(--line));
}

.chat-message.user {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}

.chat-sender {
  display: block;
  margin-bottom: 4px;
  color: var(--info);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.chat-message.user .chat-sender {
  color: var(--primary);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  border-color: color-mix(in srgb, var(--info) 45%, var(--line));
  background: var(--panel-3);
}

.typing-indicator span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typingBounce .6s infinite alternate;
}

.typing-indicator span:nth-child(2) { animation-delay: .15s; }
.typing-indicator span:nth-child(3) { animation-delay: .3s; }

@keyframes typingBounce {
  0% { opacity: .3; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-4px); }
}

.chat-clear-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.chat-clear-link:hover {
  color: var(--heading);
}

/* ===== Repair wizard ===== */
.wizard-container {
  margin-bottom: 72px;
}

.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 32px;
}

.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wizard-step-circle {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
  transition: all .2s ease;
}

.wizard-step.active .wizard-step-circle {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
}

.wizard-step.completed .wizard-step-circle {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.wizard-step-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.wizard-step.active .wizard-step-label {
  color: var(--heading);
}

.wizard-step.completed .wizard-step-label {
  color: var(--green);
}

.wizard-step-line {
  width: 60px;
  height: 2px;
  margin: 0 12px;
  background: var(--line);
  transition: background .2s ease;
}

.wizard-step-line.completed {
  background: var(--green);
}

.wizard-panel {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.wizard-panel h2 {
  margin: 0 0 20px;
  color: var(--heading);
  font-size: 22px;
}

.device-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.device-pick {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 20px 12px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}

.device-pick:hover {
  border-color: var(--field-border);
  background: var(--panel-3);
}

.device-pick.selected {
  border-color: var(--primary);
}

.device-pick i {
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.device-pick strong {
  color: var(--heading);
  font-size: 15px;
}

.device-pick span {
  color: var(--muted);
  font-size: 13px;
}

.wizard-device-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.wizard-device-banner i {
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.wizard-device-banner strong {
  display: block;
  color: var(--heading);
}

.wizard-device-banner p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.wizard-textarea-label {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.wizard-textarea {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--field);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
}

.wizard-estimate {
  display: grid;
  gap: 20px;
}

.wizard-summary-card {
  text-align: left;
}

.wizard-summary-card .primary-button,
.wizard-summary-card .secondary-button {
  width: 100%;
}

/* Wizard customer fields (step 3) */
.wizard-customer-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.wizard-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.wizard-field label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text, #e0e0e0);
}

.wizard-field label small {
  font-weight: 400;
  color: var(--muted, #999);
  font-size: 0.75rem;
}

.wizard-field input {
  padding: 10px 14px;
  border: 1px solid var(--border, #333);
  border-radius: 8px;
  background: var(--surface-alt, #1a1a1a);
  color: var(--text, #e0e0e0);
  font-size: 0.9rem;
  transition: border-color 0.2s;
}

.wizard-field input:focus {
  outline: none;
  border-color: var(--primary, #d83d3d);
}

.wizard-field input.error {
  border-color: var(--danger, #ef4444);
}

.wizard-field-error {
  font-size: 0.75rem;
  color: var(--danger, #ef4444);
  min-height: 1em;
}

/* Wizard spinner */
.wizard-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border, #333);
  border-top-color: var(--primary, #d83d3d);
  border-radius: 50%;
  animation: wizard-spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes wizard-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
  .wizard-customer-fields {
    grid-template-columns: 1fr;
  }
}

/* ===== Refurbished catalog ===== */
.refurb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  margin-bottom: 72px;
}

.refurb-toolbar {
  display: grid;
  gap: 12px;
}

.refurb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.refurb-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color .15s ease;
}

.refurb-card:hover {
  border-color: var(--field-border);
}

.refurb-media {
  position: relative;
  display: grid;
  place-items: center;
  height: 200px;
  background: #fff;
  overflow: hidden;
}

.refurb-media img {
  width: 80%;
  height: 160px;
  object-fit: contain;
}

.refurb-media .tag {
  position: absolute;
  top: 12px;
  left: 12px;
}

.refurb-stock-tag {
  top: 36px !important;
}

.refurb-body {
  padding: 14px 16px 16px;
}

.refurb-body .product-title {
  display: block;
  margin: 3px 0 6px;
}

.refurb-condition {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.refurb-specs-compact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 10px;
}

.refurb-specs-compact span {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.refurb-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.refurb-price strong {
  color: var(--red);
  font-size: 20px;
}

.refurb-price del {
  margin-left: 6px;
  color: var(--muted);
  font-size: 14px;
}

.refurb-warranty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

/* Grade cards in sidebar */
.grade-cards {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.grade-card-item {
  display: grid;
  gap: 4px;
}

.grade-card-item strong {
  color: var(--heading);
  font-size: 14px;
}

.grade-card-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Trust points */
.trust-panel {
  margin-top: 16px;
}

.trust-points {
  display: grid;
  gap: 14px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.trust-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trust-points li i {
  color: var(--green);
  font-size: 22px;
  line-height: 1;
  flex: 0 0 22px;
}

.trust-points li strong {
  display: block;
  color: var(--heading);
  font-size: 14px;
}

.trust-points li span {
  color: var(--muted);
  font-size: 13px;
}

/* ===== Refurbished detail page ===== */
.refurb-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 48px;
}

.refurb-main-image {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.refurb-main-image img {
  width: 85%;
  max-height: 380px;
  object-fit: contain;
}

.refurb-thumbnails {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.refurb-thumb {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  padding: 4px;
  transition: border-color .15s ease;
}

.refurb-thumb.active,
.refurb-thumb:hover {
  border-color: var(--primary);
}

.refurb-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.refurb-info {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.refurb-info h1 {
  margin: 10px 0 4px;
  color: var(--heading);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.15;
}

.refurb-detail-price {
  margin: 12px 0 20px;
}

.refurb-detail-price strong {
  color: var(--red);
  font-size: 30px;
}

.refurb-detail-price del {
  margin-left: 8px;
  color: var(--muted);
  font-size: 18px;
}

.refurb-detail-section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.refurb-detail-section h3 {
  margin: 0 0 6px;
  color: var(--heading);
  font-size: 15px;
}

.refurb-detail-section p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.refurb-detail-section p i {
  color: var(--green);
  margin-right: 4px;
}

.refurb-spec-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 14px;
}

.refurb-spec-list li {
  display: flex;
  gap: 7px;
}

.refurb-spec-list li i {
  color: var(--green);
  flex: 0 0 16px;
}

.refurb-detail-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.refurb-detail-actions .primary-button,
.refurb-detail-actions .secondary-button {
  width: 100%;
}

/* Grade cards row (detail page) */
.refurb-grades-section {
  margin-bottom: 48px;
}

.refurb-grades-section h2 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 22px;
}

.grade-cards-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grade-card-horizontal {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.grade-card-horizontal strong {
  color: var(--heading);
}

.grade-card-horizontal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.blog-card span,
.article-date {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 10px 0;
  font-size: 23px;
}

blockquote {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--heading);
  background: var(--panel-3);
}

.widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 58px;
}

.footer-widgets {
  padding-top: 42px;
  border-top: 1px solid var(--line);
}

.widget h3 {
  margin-bottom: 24px;
}

.mini-product {
  min-height: 80px;
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.mini-product.no-border {
  border-bottom: 0;
}

.mini-product img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.mini-product h4 {
  margin: 0 0 2px;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 400;
}

.mini-product span {
  color: var(--blue);
}

.widget .view-all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 14px;
}

.footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1.25fr;
  gap: 64px;
  padding: 38px 0 54px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.footer a,
.footer p,
.footer address {
  color: var(--muted);
  font-style: normal;
}

.newsletter {
  display: grid;
  gap: 24px;
}

.subscribe {
  display: grid;
  grid-template-columns: 1fr 110px;
  height: 44px;
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.subscribe input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: var(--panel-3);
  padding-inline: 16px;
}

.newsletter-note {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 7px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.contact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
}

.contact-row i {
  color: var(--primary);
  font-size: 38px;
  line-height: 1;
}

.contact-row h4 {
  margin-bottom: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-bottom .container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 24px;
}

.socials .facebook {
  color: var(--blue);
}

.socials .google {
  color: #f05564;
}

.socials .twitter {
  color: var(--info);
}

.copyright {
  text-align: center;
}

.cards {
  justify-self: end;
  width: 246px;
}

/* ===== Category hero banner ===== */
.category-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 24px;
  height: 200px;
}

.category-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Template: Default gradient (fallback) */
.category-hero--gradient {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

/* Template: Dark Gradient */
.category-hero--gradient-dark {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 40%, #2d2d44 100%);
}

/* Template: Blue Gradient */
.category-hero--gradient-blue {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 40%, #2c5364 100%);
}

/* Template: Teal Gradient */
.category-hero--gradient-teal {
  background: linear-gradient(135deg, #004d40 0%, #00695c 50%, #00897b 100%);
}

/* Template: Purple Gradient */
.category-hero--gradient-purple {
  background: linear-gradient(135deg, #1a1a2e 0%, #302b63 50%, #24243e 100%);
}

/* Template: Warm Gradient */
.category-hero--gradient-warm {
  background: linear-gradient(135deg, #2c1810 0%, #4a2c20 40%, #6b3a2a 100%);
}

/* Template: Geometric Dark */
.category-hero--geometric-dark {
  background: #1a1a2e;
  background-image:
    linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
    linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
    linear-gradient(30deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05)),
    linear-gradient(150deg, rgba(255,255,255,0.05) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.05) 87.5%, rgba(255,255,255,0.05));
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Template: Geometric Blue */
.category-hero--geometric-blue {
  background: #0f2027;
  background-image:
    linear-gradient(30deg, rgba(100,180,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(100,180,255,0.08) 87.5%),
    linear-gradient(150deg, rgba(100,180,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(100,180,255,0.08) 87.5%),
    linear-gradient(30deg, rgba(100,180,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(100,180,255,0.08) 87.5%),
    linear-gradient(150deg, rgba(100,180,255,0.08) 12%, transparent 12.5%, transparent 87%, rgba(100,180,255,0.08) 87.5%);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
}

/* Template: Dots Pattern */
.category-hero--dots-pattern {
  background-color: #1a1a2e;
  background-image: radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* Template: Waves Pattern */
.category-hero--waves-pattern {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  background-image:
    url("data:image/svg+xml,%3Csvg width='100' height='20' viewBox='0 0 100 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M21.184 20c.357-.13.72-.264 1.088-.402l1.768-.661C33.64 15.347 39.647 14 50 14c10.271 0 15.362 1.222 24.629 4.928.955.383 1.869.74 2.75 1.072h6.225c-2.51-.73-5.139-1.691-8.233-2.928C65.888 13.278 60.562 12 50 12c-10.626 0-16.855 1.397-26.66 5.063l-1.767.662c-2.475.923-4.66 1.674-6.724 2.275h6.335zm0-20C13.258 2.892 8.077 4 0 4V2c5.744 0 9.951-.574 14.85-2h6.334zM77.38 0C85.239 2.966 90.502 4 100 4V2c-6.842 0-11.386-.542-16.396-2h-6.225zM0 14c8.44 0 13.718-1.21 22.272-4.402l1.768-.661C33.64 5.347 39.647 4 50 4c10.271 0 15.362 1.222 24.629 4.928C84.112 12.722 89.438 14 100 14v-2c-10.271 0-15.362-1.222-24.629-4.928C65.888 3.278 60.562 2 50 2 39.374 2 33.145 3.397 23.34 7.063l-1.767.662C13.223 10.84 8.163 12 0 12v2z' fill='rgba(255,255,255,0.05)' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.category-hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 40px;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.2) 100%);
}

.category-hero__overlay h1 {
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .category-hero { height: 140px !important; }
  .category-hero__overlay h1 { font-size: 1.5rem; }
  .category-hero__overlay { padding: 0 20px; }
}

/* ===== Chatbot Widget ===== */
.chatbot-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
  cursor: pointer;
  font-size: 24px;
  display: grid;
  place-items: center;
  transition: background .18s ease, transform .18s ease;
}

.chatbot-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.06);
}

.chatbot-fab.active .chatbot-fab-icon--open { display: none !important; }
.chatbot-fab.active .chatbot-fab-icon--close { display: block !important; }

.chatbot-widget {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 901;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  overflow: hidden;
  transform: translateY(12px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease;
}

.chatbot-widget[aria-hidden="false"] {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--panel-3);
  border-bottom: 1px solid var(--line);
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-header-info i {
  font-size: 28px;
  color: var(--primary);
}

.chatbot-header-info strong {
  display: block;
  color: var(--heading);
  font-size: 15px;
  line-height: 1.2;
}

.chatbot-header-info span {
  font-size: 12px;
  color: var(--green);
}

.chatbot-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background .12s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, .08);
  color: var(--heading);
}

.chatbot-messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 200px;
  max-height: 380px;
  scroll-behavior: smooth;
}

.chatbot-msg {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.chatbot-msg--bot {
  align-self: flex-start;
}

.chatbot-msg--user {
  align-self: flex-end;
}

.chatbot-msg-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.chatbot-msg--bot .chatbot-msg-bubble {
  background: var(--panel-3);
  color: var(--text);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--line);
}

.chatbot-msg--user .chatbot-msg-bubble {
  background: var(--primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-msg-bubble p {
  margin: 0 0 6px;
}

.chatbot-msg-bubble p:last-child {
  margin-bottom: 0;
}

.chatbot-msg-bubble a {
  color: var(--info);
  text-decoration: underline;
}

.chatbot-msg--user .chatbot-msg-bubble a {
  color: rgba(255, 255, 255, .85);
}

.chatbot-msg-bubble ul {
  margin: 6px 0;
  padding-left: 1.2rem;
}

.chatbot-msg-bubble li {
  margin-bottom: 4px;
}

.chatbot-msg-bubble table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}

.chatbot-msg-bubble th,
.chatbot-msg-bubble td {
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.chatbot-msg-bubble th {
  color: var(--heading);
  font-weight: 600;
  white-space: nowrap;
}

.chatbot-msg-bubble .chatbot-supplies-table {
  overflow-x: auto;
  margin-top: 8px;
}

/* Printer result buttons inside chat */
.chatbot-printer-results {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chatbot-printer-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: border-color .12s ease, background .12s ease;
}

.chatbot-printer-btn:hover {
  border-color: var(--primary);
  background: rgba(237, 28, 36, .08);
}

.chatbot-printer-btn strong {
  color: var(--heading);
}

.chatbot-printer-btn span {
  font-size: 11px;
  color: var(--muted);
}

.chatbot-view-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--primary);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background .12s ease;
}

.chatbot-view-link:hover {
  background: var(--primary-dark);
}

.chatbot-product-card {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
}

.chatbot-product-card p {
  margin: 4px 0;
}

/* Typing indicator */
.chatbot-typing {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  background: var(--panel-3);
  border: 1px solid var(--line);
  align-self: flex-start;
  width: fit-content;
}

.chatbot-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: chatbotBounce .6s infinite alternate;
}

.chatbot-typing span:nth-child(2) { animation-delay: .15s; }
.chatbot-typing span:nth-child(3) { animation-delay: .3s; }

@keyframes chatbotBounce {
  0% { opacity: .3; transform: translateY(0); }
  100% { opacity: 1; transform: translateY(-4px); }
}

/* Suggestion chips */
.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.chatbot-chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .12s ease, color .12s ease;
}

.chatbot-chip:hover {
  border-color: var(--primary);
  color: var(--heading);
}

/* Chat input */
.chatbot-input {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--line);
  background: var(--field);
}

.chatbot-input input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  border: 0;
  outline: 0;
  padding: 0 14px;
  color: var(--text);
  background: transparent;
  font-size: 14px;
}

.chatbot-input input::placeholder {
  color: var(--muted);
}

.chatbot-send {
  width: 48px;
  height: 48px;
  border: 0;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: background .12s ease;
  flex: 0 0 48px;
}

.chatbot-send:hover {
  background: var(--primary-dark);
}

@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 0;
    right: 0;
    width: 100vw;
    max-width: 100vw;
    max-height: 100vh;
    border-radius: 0;
  }

  .chatbot-fab {
    bottom: 16px;
    right: 16px;
  }

  .chatbot-messages {
    max-height: calc(100vh - 220px);
  }
}

@media (max-width: 1399px) {
  .hero-arrow {
    display: none;
  }
}

@media (max-width: 1050px) {
  .topbar .container {
    grid-template-columns: 1fr auto;
  }

  .topbar-promo {
    display: none;
  }

  .search {
    grid-template-columns: 1fr 150px 86px;
  }

  .action.account {
    width: 44px;
    padding: 0;
  }

  .action.account .account-text {
    display: none;
  }

  .benefit-grid,
  .products-grid,
  .product-info-grid,
  .dashboard-grid,
  .address-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .widgets,
  .footer-main,
  .checkout-layout,
  .support-layout,
  .content-layout,
  .product-detail,
  .account-layout,
  .auth-shell,
  .compatibility-layout,
  .repair-layout,
  .media-library-layout,
  .refurb-layout,
  .refurb-detail {
    grid-template-columns: 1fr;
  }

  .filter-panel,
  .assistant-panel,
  .library-side {
    position: static;
  }

  .refurb-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .grade-cards-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    font-size: 13px;
  }

  .topbar .container {
    min-height: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 14px;
    padding-block: 6px;
  }

  .topbar-list,
  .currency-list {
    min-width: 0;
    flex-wrap: wrap;
    gap: 6px 14px;
    white-space: normal;
  }

  .topbar-list {
    flex: 1 1 100%;
  }

  .currency-list {
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .preference-menu {
    right: auto;
    left: 0;
  }

  .middlebar .container {
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .middlebar {
    min-height: 132px;
  }

  .brand {
    width: 185px;
    flex-basis: 185px;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    grid-template-columns: 1fr 84px;
    min-width: 0;
  }

  .search select {
    display: none;
  }

  .actions {
    margin-left: auto;
  }

  .menubar {
    display: none;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 124px);
    gap: 8px;
    height: auto;
  }

  .hero-md,
  .hero-lg {
    grid-column: auto;
    grid-row: auto;
  }

  .benefits {
    margin: 32px 0;
  }

  .benefit-grid,
  .products-grid,
  .media-grid,
  .brand-track,
  .footer-links,
  .footer-bottom .container,
  .catalog-shell,
  .product-info-grid,
  .dashboard-grid,
  .address-grid,
  .blog-grid,
  .content-steps,
  .form-grid,
  .payment-options,
  .refurb-grid,
  .grade-cards-row {
    grid-template-columns: 1fr;
  }

  .device-picker {
    grid-template-columns: repeat(2, 1fr);
  }

  .wizard-step-label {
    display: none;
  }

  .wizard-step-line {
    width: 32px;
    margin: 0 6px;
  }

  .wizard-panel {
    padding: 18px;
  }

  .refurb-main-image {
    min-height: 280px;
  }

  .refurb-thumbnails {
    overflow-x: auto;
  }

  .product-media {
    height: 260px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section-head h2 {
    font-size: 25px;
  }

  .banner {
    flex-direction: column;
    align-items: stretch;
    margin: 36px auto 48px;
  }

  .banner-art {
    width: 100%;
    object-position: center;
  }

  .cart-row {
    grid-template-columns: 74px 1fr;
  }

  .cart-row .quantity-products,
  .cart-row strong,
  .cart-row .icon-only {
    grid-column: 2;
  }

  .purchase-row,
  .inline-search,
  .subscribe {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  .order-list div {
    grid-template-columns: 1fr;
  }

  .device-header,
  .repair-card-head,
  .media-actions {
    grid-template-columns: 1fr;
  }

  .repair-card-head {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .repair-card-head > strong {
    grid-column: 2;
  }

  .repair-option {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .option-cost {
    grid-column: 2;
  }

  .repair-card-head i {
    font-size: 34px;
  }

  .device-header strong,
  .repair-card-head > strong,
  .option-cost {
    justify-self: start;
  }

  .finder-filters label,
  .finder-filters button {
    flex: 1 1 auto;
  }

  .cards,
  .copyright {
    justify-self: center;
  }
}
