body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.1;
  background-color: #f9fafb;
  color: #1f2937;
  margin: 0;
  padding: 0;
}

header {
  background-color: #2563eb;
  color: white;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 960px;
  margin: 3rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.filter-section {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-section input,
.filter-section select,
.filter-section label,
.filter-section button {
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  flex: 1 1 220px;
  background-color: white;
}

.filter-section button {
  background-color: #2563eb;
  color: white;
  border: none;
  cursor: pointer;
}

.filter-section button:hover {
  background-color: #1d4ed8;
}

.bed-card {
  background: #f3f4f6;
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
}

.bed-card:hover {
  transform: translateY(-3px);
}

.bed-card img {
  max-width: 180px;
  border-radius: 0.5rem;
  object-fit: cover;
}

.bed-content {
  flex: 1;
  text-align: left;
}

.bed-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1e3a8a;
  margin: 0 0 0.5rem 0;
}

.bed-content p {
  font-size: 1rem;
  color: #374151;
}

.bed-content ul {
  font-size: 0.95rem;
  color: #374151;
  list-style: none;
  padding-left: 0;
  margin: 0.5rem 0;
}

.bed-content ul li {
  margin-bottom: 0.35rem;
}

.bed-content a {
  font-weight: 600;
  color: #2563eb;
}

.bed-content a:hover {
  text-decoration: underline;
}

.print-button {
  display: block;
  margin: 0 auto 2rem;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #2563eb;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.print-logo-only,
.print-only-qr,
.qr-wrapper.print-only,
.print-only {
  display: none;
}

.screen-only {
  display: inline;
}

.qr-wrapper {
  display: none;
}

/* === Responsive === */
@media (max-width: 768px) {
  .filter-section {
    flex-direction: column;
    box-shadow: none;
  }

  .bed-card {
    flex-direction: column;
    text-align: center;
  }

  .bed-card img {
    max-width: 100%;
  }

  .print-button {
    width: 100%;
  }
}

/* === Print View Styling === */
@media print {
  .filter-section,
  .print-button,
  .screen-only {
    display: none !important;
  }

  .print-only {
    display: inline !important;
  }

  .bed-card {
    display: none !important;
  }

  .bed-card[style*="display: flex"] {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    page-break-inside: avoid;
    background: white !important;
    border: 1px solid #ccc;
    padding: 0.75rem;
    font-size: 0.85rem;
  }

  .left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 180px;
    flex-shrink: 0;
  }

  .qr-wrapper.print-only {
    display: block !important;
    width: 120px;
    padding: 0.5rem;
    flex: 0 0 auto;
  }

  .print-qr {
    display: block;
    max-width: 100%;
    height: auto;
  }

  .qr-image-wrap img:not(.print-qr) {
    max-width: 180px;
    height: auto;
    display: block;
    flex: 0 0 auto;
  }

  .bed-content {
    flex: 1;
    margin-top: 0.5rem;
  }

  a .print-only {
    display: block !important;
    font-size: 0.75rem;
    margin-top: 0.25rem;
    word-break: break-word;
  }

  header,
  header h1,
  header h2,
  header a {
    color: #2563eb !important;
  }

  .container {
    box-shadow: none !important;
    background: white !important;
  }

  header {
    box-shadow: none !important;
  }

  .how-to-order-section {
    page-break-inside: avoid;
    break-inside: avoid;
  }
  /* Target all h1 elements for consistency */
h1 {
  text-align: center;
  margin-top: 1rem;
  font-weight: 600;
}

/* Optionally, limit max width and center it */
h1.screen-only {
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

}
