:root {
  --blue: #0866c7;
  --green: #18b883;
  --ink: #17212b;
  --muted: #5b6b7c;
  --line: #dfe7ef;
  --soft: #f7fbff;
  --warn: #fff7e6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f5f8fb;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.fast-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 24px rgba(15, 42, 72, 0.08);
}

.fast-nav-inner,
.fast-container {
  width: min(1120px, calc(100vw - 28px));
  margin: 0 auto;
}

.fast-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 76px;
}

.fast-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--blue);
  text-decoration: none;
}

.fast-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.fast-brand strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.fast-brand span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.fast-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.fast-links a,
.fast-btn,
.fast-card button,
.fast-cart-remove {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.fast-links a.active,
.fast-btn.primary,
.fast-card button {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.fast-btn.green {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
}

.fast-links a.cart-has-items {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 6px 16px rgba(24, 184, 131, 0.22);
}

.fast-links a.cart-has-items.active {
  border-color: #0d8f65;
  background: #0d8f65;
}

.fast-review-card .fast-btn,
.fast-review-card button.fast-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  float: none;
  clear: both;
  width: 100% !important;
  max-width: 100%;
  min-height: 44px;
  margin-top: 10px;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.fast-review-card button.fast-btn {
  font: inherit;
}

.fast-phone-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.fast-phone-actions .fast-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-align: center;
}

.mobile-floating-cart-link {
  position: fixed;
  top: 84px;
  right: 14px;
  z-index: 1200;
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid #0b5bb5;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 24px rgba(8, 102, 199, 0.28);
  font-weight: 900;
  text-decoration: none;
}

.mobile-floating-cart-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.mobile-floating-cart-link.is-visible {
  display: none;
}

@media (max-width: 520px) {
  .fast-phone-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-floating-cart-link.is-visible {
    display: flex;
  }
}

.fast-hero {
  padding: 30px 0 18px;
  background: linear-gradient(180deg, #ffffff 0%, #eef7ff 100%);
}

.fast-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: center;
}

.fast-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}

.fast-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.fast-cart-panel,
.fast-section,
.fast-card,
.fast-form,
.fast-review-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(15, 42, 72, 0.07);
}

.fast-cart-panel {
  padding: 16px;
}

.fast-cart-panel h2,
.fast-section h2,
.fast-form h2,
.fast-review-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.fast-cart-line,
.fast-cart-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #eef2f6;
}

.fast-cart-row:last-child {
  border-bottom: 0;
}

.fast-cart-row strong {
  display: block;
}

.fast-cart-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.fast-cart-total {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--line);
  font-size: 20px;
  font-weight: 900;
}

.fast-section {
  margin: 18px auto;
  padding: 18px;
}

.fast-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.fast-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
}

.fast-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.fast-card {
  position: relative;
  display: grid;
  grid-template-rows: 170px auto;
  min-height: 570px;
  overflow: visible;
}

.fast-card > img,
.product-media > img {
  width: 100%;
  height: 170px;
  padding: 12px;
  object-fit: contain;
  background: #f8fbff;
}

.fast-card .product-media {
  position: relative;
  display: block;
  width: 100%;
  height: 170px;
  border: 0;
  border-radius: 8px 8px 0 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: zoom-in;
}

.fast-card .product-media:focus-visible {
  outline: 3px solid rgba(8, 102, 199, 0.35);
  outline-offset: 3px;
}

.product-preview {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  z-index: 12;
  display: grid;
  gap: 10px;
  max-width: min(420px, calc(100vw - 48px));
  border: 1px solid #bed1e5;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 44px rgba(15, 42, 72, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px) scale(0.98);
  transition: opacity 160ms ease, transform 160ms ease;
}

.product-preview img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #f8fbff;
}

.product-preview strong {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: 18px;
}

.product-preview span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.product-media-preview:hover .product-preview,
.product-media-preview:focus .product-preview,
.product-media-preview:focus-within .product-preview {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.fast-card-body {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto auto;
  gap: 10px;
  padding: 13px;
}

.fast-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
}

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

.bed-feature-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.bed-feature-list li + li {
  margin-top: 4px;
}

.fast-price {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.fast-price span {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: var(--soft);
  font-weight: 900;
}

.fast-price b {
  display: block;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.fast-controls {
  display: grid;
  grid-template-columns: 1fr 74px;
  gap: 8px;
}

.fast-controls select,
.fast-controls input,
.fast-form input,
.fast-form textarea {
  width: 100%;
  border: 1px solid #cfd9e4;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  font-weight: 800;
}

.fast-form {
  margin: 18px auto;
  padding: 18px;
}

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

.fast-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.fast-form .wide {
  grid-column: 1 / -1;
}

.fast-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.fast-info-warning {
  margin-bottom: 14px;
  border: 1px solid #ffd58a;
  border-radius: 8px;
  padding: 12px;
  background: var(--warn);
  color: #6f4a00;
}

.fast-info-warning[hidden] {
  display: none;
}

.fast-info-warning strong,
.fast-info-warning p {
  display: block;
  margin: 0 0 8px;
}

.fast-message {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--blue);
  font-weight: 900;
}

.fast-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 16px;
  margin: 18px auto;
}

.fast-review-card {
  padding: 18px;
}

.fast-empty {
  padding: 14px;
  border: 1px dashed #b8c6d6;
  border-radius: 8px;
  color: var(--muted);
  background: #fbfdff;
}

.fast-footer {
  margin-top: 26px;
  padding: 26px 0;
  color: #fff;
  background: #0b2742;
}

.fast-footer a {
  color: #fff;
}

.fast-links a {
  padding: 9px 11px;
  white-space: nowrap;
  font-size: 14px;
}

@media (max-width: 840px) {
  .fast-nav-inner,
  .fast-hero-grid,
  .fast-review-grid {
    display: block;
  }

  .fast-links {
    margin-top: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .fast-links a {
    flex: 0 0 auto;
  }

  .fast-cart-panel {
    margin-top: 14px;
  }

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

@media (max-width: 560px) {
  .fast-grid,
  .fast-form-grid {
    grid-template-columns: 1fr;
  }

  .fast-card {
    grid-template-rows: 150px auto;
  }

  .fast-card img {
    height: 150px;
  }

  .fast-card .product-media {
    height: 150px;
  }

  .product-preview {
    left: 8px;
    right: 8px;
  }

  .product-preview img {
    height: 210px;
  }
}
