
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f5f5;
  color: #222;
}

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.site-header {
  background: #111827;
  color: #f9fafb;
  padding: 1rem 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.header-inner h1 {
  margin: 0;
  font-size: 1.7rem;
}

.contact-info {
  font-size: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer {
  margin-top: 3rem;
  padding: 1rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

.controls {
  margin: 1.5rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.controls input,
.controls select {
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
  min-width: 220px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-body {
  padding: 0.75rem 0.9rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.card-title {
  font-weight: 600;
  font-size: 1rem;
}

.card-meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.card-price {
  margin-top: 0.25rem;
  font-weight: 600;
  color: #15803d;
}

.card-tagline {
  margin-top: 0.25rem;
  font-size: 0.82rem;
  color: #4b5563;
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 50;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 1rem;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0,0,0,0.25);
  position: relative;
}

.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  font-size: 1.9rem;
  cursor: pointer;
  color: #4b5563;
}

.modal-body {
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .modal-body {
    flex-direction: row;
  }
}

.modal-images {
  flex: 1.1;
  padding: 1rem;
  border-right: 1px solid #e5e7eb;
}

.modal-images img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0.75rem;
}

.thumbs {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumbs img.active {
  border-color: #2563eb;
}

.modal-details {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
}

.modal-details h2 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.modal-details p {
  margin: 0.15rem 0;
  font-size: 0.92rem;
}

.modal-details ul {
  margin-top: 0.4rem;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.modal-callout {
  margin-top: 0.75rem;
  font-weight: 600;
}

.modal-contact {
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* Small screens */

@media (max-width: 767px) {
  .header-inner {
    align-items: flex-start;
  }
  .card img {
    height: 160px;
  }
}
