/* ==========================================================================
   Floor & Decor - AI Shopping Assistant
   Design extracted from flooranddecor.com: black utility bar, white header
   with the red-square ampersand wordmark, red primary nav, full-bleed hero
   collage, sharp corners throughout, uppercase condensed type.
   ========================================================================== */

:root {
  --fd-red: #e11a2b;
  --fd-red-dark: #b8121f;
  --fd-black: #000000;
  --fd-ink: #1a1a1a;
  --fd-body: #333333;
  --fd-muted: #6d6d6d;
  --fd-line: #dcdcdc;
  --fd-line-soft: #ebebeb;
  --fd-shell: #f4f4f4;
  --fd-white: #ffffff;
  --fd-green: #1f7a4d;

  --font-display: 'Helvetica Neue', 'Arial Narrow', Helvetica, Arial, sans-serif;
  --font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --shell-max: 1360px;
  --header-h: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--fd-body);
  background: var(--fd-white);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--fd-ink);
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--fd-ink);
  margin: 0;
  letter-spacing: -0.01em;
}

.shell {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

:focus-visible {
  outline: 2px solid var(--fd-red);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------ promo bar */
.promo-bar {
  background: var(--fd-black);
  color: var(--fd-white);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 16px;
}

.promo-bar a {
  color: var(--fd-white);
  text-decoration: underline;
  font-weight: 700;
}

/* --------------------------------------------------------------- utility nav */
.utility-bar {
  border-bottom: 1px solid var(--fd-line-soft);
  background: var(--fd-white);
}

.utility-bar__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 30px;
}

.utility-bar__links {
  display: flex;
  gap: 22px;
  margin: 0 auto;
}

.utility-bar a,
.utility-bar span {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fd-ink);
  white-space: nowrap;
}

.utility-bar a:hover {
  color: var(--fd-red);
}

/* -------------------------------------------------------------------- header */
.site-header {
  background: var(--fd-white);
  border-bottom: 1px solid var(--fd-line-soft);
}

.site-header__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--fd-ink);
}

.wordmark__amp {
  background: var(--fd-red);
  color: var(--fd-white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.header-search {
  flex: 1;
  max-width: 480px;
  display: flex;
  border: 1px solid var(--fd-line);
  height: 38px;
}

.header-search input {
  flex: 1;
  border: 0;
  padding: 0 14px;
  font-size: 14px;
  font-family: inherit;
  min-width: 0;
  background: var(--fd-white);
}

.header-search input:focus {
  outline: none;
}

.header-search button {
  border: 0;
  background: var(--fd-white);
  color: var(--fd-red);
  width: 42px;
  display: grid;
  place-items: center;
}

.header-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 26px;
}

.header-tool {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fd-ink);
}

.header-tool__icon {
  color: var(--fd-muted);
  flex-shrink: 0;
}

.header-tool__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.header-tool__sub {
  display: block;
  font-size: 10.5px;
  color: var(--fd-muted);
  line-height: 1.25;
}

.header-cart {
  position: relative;
  color: var(--fd-ink);
}

.header-cart__count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  background: var(--fd-red);
  color: var(--fd-white);
  font-size: 10px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ----------------------------------------------------------------- main nav */
.main-nav {
  background: var(--fd-red);
}

.main-nav__inner {
  max-width: var(--shell-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 34px;
  overflow-x: auto;
  scrollbar-width: none;
}

.main-nav__inner::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--fd-white);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 0;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current='page'] {
  border-bottom-color: var(--fd-white);
}

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: 72vh;
  min-height: 500px;
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  overflow: hidden;
  background: var(--fd-shell);
}

.hero__panel {
  position: relative;
  overflow: hidden;
}

.hero__panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 18px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.32));
}

.hero__title {
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 1.06;
  font-weight: 800;
  color: var(--fd-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
  max-width: 620px;
}

.hero__sub {
  font-size: clamp(14px, 1.2vw, 18px);
  color: var(--fd-white);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  max-width: 460px;
  margin: 0;
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 13px 28px;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn--dark {
  background: var(--fd-ink);
  color: var(--fd-white);
}

.btn--dark:hover {
  background: var(--fd-red);
}

.btn--red {
  background: var(--fd-red);
  color: var(--fd-white);
}

.btn--red:hover {
  background: var(--fd-red-dark);
}

.btn--outline {
  background: transparent;
  color: var(--fd-ink);
  border-color: var(--fd-ink);
}

.btn--outline:hover {
  background: var(--fd-ink);
  color: var(--fd-white);
}

.btn--block {
  width: 100%;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* -------------------------------------------------------------- promo tiles */
.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.promo-tile {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background: var(--fd-shell);
}

.promo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.promo-tile__body {
  position: relative;
  z-index: 1;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.08) 60%, transparent 100%);
}

.promo-tile__title {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.1;
  font-weight: 800;
  color: var(--fd-white);
  max-width: 320px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

.promo-tile__sub {
  color: var(--fd-white);
  font-size: 14px;
  margin: 0;
  max-width: 300px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.promo-tile__body .btn {
  margin-top: auto;
}

/* ----------------------------------------------------------------- sections */
.section {
  padding: 52px 0;
}

.section--tight {
  padding: 34px 0;
}

.section--shell {
  background: var(--fd-shell);
}

.section__head {
  text-align: center;
  margin-bottom: 30px;
}

.section__eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 10px;
}

.section__title {
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.section__sub {
  color: var(--fd-muted);
  margin: 8px 0 0;
  font-size: 15px;
}

.section__head--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  text-align: left;
  gap: 20px;
}

/* -------------------------------------------------------- category tile row */
.category-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
}

.category-tile {
  display: block;
  background: var(--fd-white);
  border: 1px solid var(--fd-line-soft);
}

.category-tile__img {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--fd-shell);
}

.category-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.category-tile:hover img {
  transform: scale(1.05);
}

.category-tile__label {
  padding: 12px 10px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fd-ink);
}

/* --------------------------------------------------------------- rail / row */
.rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 0 18px;
  scroll-snap-type: x proximity;
}

.rail > * {
  flex: 0 0 258px;
  scroll-snap-align: start;
}

.rail::-webkit-scrollbar {
  height: 8px;
}

.rail::-webkit-scrollbar-thumb {
  background: var(--fd-line);
}

/* ------------------------------------------------------------- product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--fd-white);
  border: 1px solid var(--fd-line-soft);
  position: relative;
  transition: box-shadow 0.18s ease;
}

.product-card:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.1);
}

.product-card__media {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--fd-shell);
}

.product-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.product-card__brand {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-muted);
}

.product-card__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fd-ink);
}

.product-card__price {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: var(--fd-ink);
}

.product-card__price small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fd-muted);
}

.product-card__meta {
  font-size: 11.5px;
  color: var(--fd-muted);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--fd-red);
  color: var(--fd-white);
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.badge--dark {
  background: var(--fd-ink);
}

.rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--fd-muted);
}

.rating__stars {
  color: #f0a020;
  letter-spacing: 1px;
}

/* ------------------------------------------------------- services strip */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--fd-line-soft);
  background: var(--fd-white);
}

.service {
  padding: 26px 24px;
  border-right: 1px solid var(--fd-line-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service:last-child {
  border-right: 0;
}

.service__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.service p {
  margin: 0;
  font-size: 13px;
  color: var(--fd-muted);
}

.service__link {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-top: auto;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
}

/* ------------------------------------------------------------------- footer */
.site-footer {
  background: var(--fd-ink);
  color: #c9c9c9;
  padding: 44px 0 26px;
  margin-top: 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid #333;
}

.footer-col h4 {
  color: var(--fd-white);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

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

.footer-col a {
  color: #c9c9c9;
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--fd-white);
}

.footer-note {
  padding-top: 20px;
  font-size: 11.5px;
  color: #8f8f8f;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* =========================================================== PDP =========== */
.breadcrumbs {
  padding: 16px 0;
  font-size: 12px;
  color: var(--fd-muted);
}

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

.breadcrumbs a:hover {
  color: var(--fd-red);
}

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.pdp__media {
  border: 1px solid var(--fd-line-soft);
  background: var(--fd-shell);
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.pdp__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdp__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 8px;
}

.pdp__title {
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 10px;
}

.pdp__price {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 800;
  color: var(--fd-ink);
  margin: 16px 0 2px;
}

.pdp__price small {
  font-size: 14px;
  font-weight: 600;
  color: var(--fd-muted);
}

.pdp__coverage {
  font-size: 13px;
  color: var(--fd-muted);
  margin-bottom: 18px;
}

.pdp__desc {
  font-size: 14.5px;
  line-height: 1.6;
  margin: 18px 0;
}

.variant-group {
  margin: 20px 0;
}

.variant-group__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-muted);
  margin-bottom: 9px;
}

.variant-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.variant-option {
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 9px 16px;
  font-size: 13px;
  color: var(--fd-ink);
}

.variant-option[aria-pressed='true'] {
  border-color: var(--fd-ink);
  background: var(--fd-ink);
  color: var(--fd-white);
}

.qty-row {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin: 22px 0 16px;
  flex-wrap: wrap;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fd-muted);
}

.field input,
.field select {
  border: 1px solid var(--fd-line);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  background: var(--fd-white);
  color: var(--fd-ink);
  min-width: 96px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 13.5px;
}

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

.spec-table th {
  width: 40%;
  font-weight: 700;
  color: var(--fd-muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.feature-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 7px;
  height: 7px;
  background: var(--fd-red);
}

.callout {
  border-left: 3px solid var(--fd-red);
  background: var(--fd-shell);
  padding: 14px 16px;
  font-size: 13.5px;
  margin: 20px 0;
}

/* =========================================================== CART ========== */
.cart-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
  padding: 28px 0 60px;
}

.cart-line {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--fd-line-soft);
  align-items: start;
}

.cart-line__media {
  width: 108px;
  height: 108px;
  overflow: hidden;
  border: 1px solid var(--fd-line-soft);
  background: var(--fd-shell);
}

.cart-line__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-line__name {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fd-ink);
  line-height: 1.35;
}

.cart-line__meta {
  font-size: 12.5px;
  color: var(--fd-muted);
  margin-top: 5px;
}

.cart-line__right {
  text-align: right;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.cart-line__price {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--fd-muted);
  text-decoration: underline;
}

.link-btn:hover {
  color: var(--fd-red);
}

.summary {
  border: 1px solid var(--fd-line);
  padding: 24px;
  align-self: start;
  position: sticky;
  top: 20px;
}

.summary h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 16px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
}

.summary__row--total {
  border-top: 1px solid var(--fd-line);
  margin-top: 10px;
  padding-top: 14px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--fd-ink);
}

.empty-state {
  padding: 70px 20px;
  text-align: center;
  color: var(--fd-muted);
}

.empty-state h2 {
  margin-bottom: 10px;
  text-transform: uppercase;
}

.confirm-banner {
  background: #eaf5ef;
  border-left: 3px solid var(--fd-green);
  padding: 18px 20px;
  margin: 20px 0;
}

.confirm-banner h3 {
  color: var(--fd-green);
  text-transform: uppercase;
  font-size: 15px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

/* ==================================================== CHAT LAUNCHER ======== */
.chat-launcher {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fd-red);
  color: var(--fd-white);
  border: 0;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.26);
}

.chat-launcher:hover {
  background: var(--fd-red-dark);
}

.chat-launcher[hidden] {
  display: none;
}

/* ======================================================= CHAT PANEL ======== */
.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 430px;
  max-width: calc(100vw - 32px);
  height: 660px;
  max-height: calc(100vh - 48px);
  background: var(--fd-white);
  border: 1px solid var(--fd-line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 950;
}

.chat-panel[hidden] {
  display: none;
}

/* Embedded variant used by the standalone pop-out page. */
.chat-panel--embedded {
  position: static;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 820px;
  height: calc(100vh - 40px);
  max-height: none;
  margin: 20px auto;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.14);
}

.chat-header {
  background: var(--fd-ink);
  color: var(--fd-white);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.chat-header__avatar {
  width: 34px;
  height: 34px;
  background: var(--fd-red);
  color: var(--fd-white);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.chat-header__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.chat-header__sub {
  font-size: 11px;
  color: #b9b9b9;
  line-height: 1.3;
}

.chat-header__actions {
  margin-left: auto;
  display: flex;
  gap: 2px;
}

.chat-icon-btn {
  background: transparent;
  border: 0;
  color: #d4d4d4;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 0;
}

.chat-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: var(--fd-white);
}

/* ---------------------------------------------------------- persona bar
   Sits at the top of a panel with overflow:hidden, so the hover tooltip has
   to open DOWNWARD. overflow must stay visible here or the tooltip is clipped
   on the vertical axis - never use overflow-x:auto on this bar. */
.persona-bar {
  flex-shrink: 0;
  background: var(--fd-shell);
  border-bottom: 1px solid var(--fd-line);
  padding: 9px 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  overflow: visible;
  position: relative;
  z-index: 5;
}

.persona-bar__label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fd-muted);
  margin-right: 2px;
}

.persona-chip-wrap {
  position: relative;
  overflow: visible;
}

.persona-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--fd-white);
  border: 1px solid var(--fd-line);
  padding: 5px 10px 5px 5px;
  font-size: 12px;
  color: var(--fd-ink);
  font-family: inherit;
}

.persona-chip:hover {
  border-color: var(--fd-ink);
}

.persona-chip[aria-pressed='true'] {
  border-color: var(--fd-red);
  box-shadow: inset 0 0 0 1px var(--fd-red);
}

.persona-chip__avatar {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--fd-white);
  font-size: 9.5px;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

/* Tooltip opens downward from the persona bar. An upward tooltip would be
   clipped by the panel's overflow:hidden and never appear. */
.persona-tooltip {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 300px;
  max-width: min(300px, calc(100vw - 60px));
  background: var(--fd-white);
  border: 1px solid var(--fd-ink);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  padding: 13px 14px;
  z-index: 60;
  display: none;
  text-align: left;
}

.persona-chip-wrap:hover .persona-tooltip,
.persona-chip-wrap:focus-within .persona-tooltip {
  display: block;
}

.persona-chip-wrap:last-of-type .persona-tooltip,
.persona-chip-wrap:nth-last-of-type(2) .persona-tooltip {
  left: auto;
  right: 0;
}

.persona-tooltip__name {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fd-ink);
}

.persona-tooltip__tag {
  font-size: 11.5px;
  color: var(--fd-red);
  font-weight: 700;
  margin-bottom: 9px;
}

.persona-tooltip dl {
  margin: 0;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 10px;
  font-size: 11.5px;
}

.persona-tooltip dt {
  color: var(--fd-muted);
  font-weight: 700;
}

.persona-tooltip dd {
  margin: 0;
  color: var(--fd-body);
}

.persona-tooltip__loved {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--fd-line-soft);
  font-size: 11.5px;
}

.persona-tooltip__loved strong {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fd-muted);
  margin-bottom: 5px;
}

.persona-tooltip__loved ul {
  margin: 0;
  padding-left: 14px;
  display: grid;
  gap: 3px;
  color: var(--fd-body);
}

/* ------------------------------------------------------------ chat messages */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--fd-white);
  min-height: 0;
}

.msg {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}

.msg--user {
  align-items: flex-end;
}

.bubble {
  padding: 11px 14px;
  font-size: 14px;
  line-height: 1.55;
  max-width: 86%;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

.bubble--bot {
  background: var(--fd-shell);
  color: var(--fd-body);
  border-left: 3px solid var(--fd-red);
}

.bubble--user {
  background: var(--fd-ink);
  color: var(--fd-white);
}

.bubble a {
  color: var(--fd-red);
  font-weight: 700;
  text-decoration: underline;
}

.bubble--user a {
  color: var(--fd-white);
}

.bubble strong {
  font-weight: 700;
  color: var(--fd-ink);
}

/* Inline product card - image left, details right. */
.chat-product {
  display: flex;
  gap: 12px;
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 10px;
  width: 100%;
  text-align: left;
  align-items: stretch;
}

.chat-product:hover {
  border-color: var(--fd-ink);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.chat-product__media {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--fd-shell);
  border: 1px solid var(--fd-line-soft);
}

.chat-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-product__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.chat-product__brand {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fd-muted);
}

.chat-product__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fd-ink);
  line-height: 1.3;
}

.chat-product__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--fd-shell);
  border: 1px solid var(--fd-line-soft);
  color: var(--fd-muted);
  padding: 2px 6px;
}

.tag--good {
  background: #eaf5ef;
  border-color: #cfe6da;
  color: var(--fd-green);
}

.chat-product__price {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  color: var(--fd-ink);
}

.chat-product__price small {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--fd-muted);
}

/* The muted caption under a card carries the reason. The product name is never
   repeated here - the card already shows it. */
.chat-product-reason {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fd-muted);
  padding: 0 2px 2px;
}

.chat-product-reason a {
  color: var(--fd-red);
  font-weight: 600;
}

/* ------------------------------------------------------------- quick replies */
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 2px 0 4px;
}

.quick-reply {
  background: var(--fd-white);
  border: 1px solid var(--fd-red);
  color: var(--fd-red);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 13px;
}

.quick-reply:hover {
  background: var(--fd-red);
  color: var(--fd-white);
}

.quick-reply:disabled {
  border-color: var(--fd-line);
  color: var(--fd-muted);
  background: var(--fd-shell);
}

/* ---------------------------------------------------------- typing indicator */
.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--fd-shell);
  border-left: 3px solid var(--fd-red);
  padding: 14px 16px;
  align-self: flex-start;
}

.typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fd-muted);
  animation: typing-bounce 1.3s infinite ease-in-out;
}

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

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

@keyframes typing-bounce {
  0%,
  70%,
  100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  35% {
    transform: translateY(-5px);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing span {
    animation: none;
  }
}

/* --------------------------------------------------------- in-chat widgets */
.chat-widget {
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 13px;
}

.chat-widget__title {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fd-ink);
  margin-bottom: 4px;
}

.chat-widget__note {
  font-size: 11.5px;
  color: var(--fd-muted);
  margin: 0 0 10px;
}

.store-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 11px 12px;
  margin-bottom: 8px;
  font-family: inherit;
}

.store-card:last-child {
  margin-bottom: 0;
}

.store-card:hover,
.store-card[aria-pressed='true'] {
  border-color: var(--fd-red);
  background: #fff7f8;
}

.store-card__row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.store-card__name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fd-ink);
}

.store-card__distance {
  font-size: 11px;
  font-weight: 700;
  color: var(--fd-red);
  white-space: nowrap;
}

.store-card__meta {
  font-size: 11.5px;
  color: var(--fd-muted);
  margin-top: 3px;
  line-height: 1.45;
}

.day-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
}

.day-tab {
  flex: 1;
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fd-muted);
  font-family: var(--font-display);
}

.day-tab[aria-selected='true'] {
  background: var(--fd-ink);
  border-color: var(--fd-ink);
  color: var(--fd-white);
}

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

.slot {
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 9px 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--fd-ink);
  font-family: inherit;
}

.slot:hover {
  border-color: var(--fd-red);
  color: var(--fd-red);
}

.appt-card {
  border: 1px solid var(--fd-green);
  background: #eaf5ef;
  padding: 14px;
}

.appt-card__head {
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fd-green);
  margin-bottom: 8px;
}

.appt-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 5px 10px;
  font-size: 12.5px;
}

.appt-card dt {
  color: var(--fd-muted);
  font-weight: 700;
}

.appt-card dd {
  margin: 0;
  color: var(--fd-ink);
}

/* ------------------------------------------------------------ style quiz */
.quiz-progress {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fd-red);
  margin-bottom: 6px;
}

.quiz-prompt {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fd-ink);
  margin-bottom: 11px;
  line-height: 1.4;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quiz-option {
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
  padding: 0;
  overflow: hidden;
  text-align: left;
  font-family: inherit;
  display: flex;
  flex-direction: column;
}

.quiz-option:hover {
  border-color: var(--fd-red);
}

.quiz-option__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--fd-shell);
}

.quiz-option__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quiz-option__label {
  padding: 8px 10px 3px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--fd-ink);
}

.quiz-option__caption {
  padding: 0 10px 10px;
  font-size: 11px;
  color: var(--fd-muted);
  line-height: 1.4;
}

/* ------------------------------------------------------------- calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 10px;
}

.calc-grid .field input,
.calc-grid .field select {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  padding: 8px 10px;
}

.calc-grid .field label {
  font-size: 10px;
}

.calc-grid--full {
  grid-template-columns: 1fr;
}

.calc-result {
  border-top: 1px solid var(--fd-line-soft);
  margin-top: 11px;
  padding-top: 11px;
  font-size: 12.5px;
}

.calc-result__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.calc-result__row--total {
  border-top: 1px solid var(--fd-line);
  margin-top: 7px;
  padding-top: 9px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--fd-ink);
}

.calc-result__hint {
  font-size: 11px;
  color: var(--fd-muted);
  margin: 8px 0 0;
  line-height: 1.45;
}

/* -------------------------------------------------------------- composer */
.chat-composer {
  flex-shrink: 0;
  border-top: 1px solid var(--fd-line);
  padding: 11px 12px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  background: var(--fd-white);
}

.chat-composer textarea {
  flex: 1;
  border: 1px solid var(--fd-line);
  padding: 10px 12px;
  font-family: inherit;
  font-size: 14px;
  resize: none;
  max-height: 120px;
  min-height: 42px;
  line-height: 1.45;
  color: var(--fd-ink);
}

.chat-composer textarea:focus {
  outline: none;
  border-color: var(--fd-ink);
}

.chat-send {
  background: var(--fd-red);
  border: 0;
  color: var(--fd-white);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-send:hover {
  background: var(--fd-red-dark);
}

.chat-send:disabled {
  background: var(--fd-line);
  cursor: not-allowed;
}

/* Camera button sits inside the composer, left of the input. */
.chat-attach {
  background: var(--fd-white);
  border: 1px solid var(--fd-line);
  color: var(--fd-ink);
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}

.chat-attach:hover {
  background: var(--fd-shell);
  border-color: var(--fd-ink);
}

.chat-attach:focus-visible {
  outline: 2px solid var(--fd-red);
  outline-offset: 1px;
}

.chat-attach:disabled {
  color: var(--fd-line);
  cursor: not-allowed;
}

/* Staged photo preview, above the composer. */
.chat-attach-bar {
  flex-shrink: 0;
  margin: 0 12px 8px;
  padding: 8px;
  background: var(--fd-shell);
  border: 1px solid var(--fd-line);
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-attach-bar__thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--fd-line);
  background: var(--fd-white);
}

.chat-attach-bar__body {
  flex: 1;
  min-width: 0;
}

.chat-attach-bar__title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fd-ink);
}

.chat-attach-bar__note {
  font-size: 11.5px;
  color: var(--fd-muted);
  margin-top: 2px;
}

.chat-attach-bar__cancel {
  background: transparent;
  border: 0;
  color: var(--fd-muted);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.chat-attach-bar__cancel:hover {
  color: var(--fd-red);
}

/* The photo as it appears in the customer's own message bubble. */
.chat-user-image {
  display: block;
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.bubble__text {
  white-space: pre-wrap;
}

.chat-error {
  margin: 0 14px 8px;
  padding: 9px 11px;
  background: #fdeced;
  border-left: 3px solid var(--fd-red);
  font-size: 12.5px;
  color: #8f1620;
}

/* ------------------------------------------------------------ chat page */
.chat-page {
  background: var(--fd-shell);
  min-height: 100vh;
}

.chat-page__bar {
  background: var(--fd-ink);
  color: var(--fd-white);
  padding: 11px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.chat-page__bar .wordmark__text {
  color: var(--fd-white);
}

.chat-page__bar .btn {
  margin-left: auto;
  padding: 9px 18px;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .service:nth-child(2) {
    border-right: 0;
  }

  .pdp {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    height: 66vh;
  }

  .hero__panel:not(.hero__panel--main) {
    display: none;
  }

  .promo-grid {
    grid-template-columns: 1fr;
  }

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

  .header-search {
    display: none;
  }

  .header-tool__label,
  .header-tool__sub {
    display: none;
  }
}

@media (max-width: 620px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border: 0;
  }

  .chat-launcher {
    right: 14px;
    bottom: 14px;
    padding: 12px 18px;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .service {
    border-right: 0;
    border-bottom: 1px solid var(--fd-line-soft);
  }
}
