
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;

  /* Fallback color behind images */
  background-color: #f7f2eb;

  /* Quilt background behavior */
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  color: #333;
}

/* Keep main content centered and readable over quilt backgrounds */
.page-content {
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;

  /* Light “paper” panel over the quilt photo */
  background-color: rgba(255, 250, 246, 0.92);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

h1, h2, h3 {
  font-family: "Georgia", "Times New Roman", serif;
  color: #5a3b27;
  margin-top: 0;
}

p {
  margin-bottom: 0.75rem;
}

a {
  color: #a35b3b;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/*Header / Navigation*/

.site-header {
  background-color: #f0e0d0;
  border-bottom: 1px solid #d8c0ad;
  padding: 16px 20px;
}

.site-header h1 {
  margin: 0 0 8px 0;
  font-size: 1.8rem;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-nav a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: #ffffff;
  border: 1px solid #d2b49c;
  font-size: 0.95rem;
}

.main-nav a:hover {
  background-color: #e8d4c2;
}

/*Footer*/

.site-footer {
  margin-top: 30px;
  padding: 16px 20px;
  background-color: #f0e0d0;
  border-top: 1px solid #d8c0ad;
  text-align: center;
  font-size: 0.9rem;
}

.footer-nav {
  margin-bottom: 6px;
}

/*Page Intro*/

.page-intro {
  background-color: #fffaf6;
  border: 1px solid #e1c9b4;
  padding: 16px;
  border-radius: 6px;
  margin-bottom: 20px;
}

.page-intro h2 {
  margin-bottom: 10px;
}

/*Store Filters*/

.store-filters {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.filter-button {
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid #b98a64;
  background-color: #ffffff;
  cursor: pointer;
  font-size: 0.9rem;
}

.filter-button:hover {
  background-color: #edd4be;
}

.filter-label {
  font-size: 0.95rem;
}

.filter-label select {
  margin-left: 4px;
  padding: 4px 6px;
  font-size: 0.9rem;
}

/*Quilt Count*/

.quilt-count-text {
  margin-top: 8px;
  font-style: italic;
}

/*Quilt Card Grid*/

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.quilt-card {
  background-color: #fffaf7;
  border: 1px solid #e2d5c8;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.quilt-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.quilt-card img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 8px;
}

.quilt-card h3 {
  margin: 4px 0 6px 0;
  font-size: 1.05rem;
}

.quilt-card p {
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.quilt-details {
  margin-top: 4px;
  font-weight: bold;
  font-size: 0.9rem;
}

/*Contact Page*/

#contact-form {
  max-width: 600px;
  padding: 16px;
  background-color: #fffaf6;
  border: 1px solid #e1c9b4;
  border-radius: 6px;
}

#contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

#contact-form input,
#contact-form textarea,
#contact-form select {
  width: 100%;
  padding: 6px;
  border: 1px solid #c9b2a0;
  border-radius: 4px;
}

#contact-form button {
  margin-top: 12px;
  padding: 8px 14px;
  background-color: #b77247;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#contact-form button:hover {
  background-color: #9f6039;
}

#form-feedback.error {
  color: #b00020;
}

#form-feedback.success {
  color: #1a7f37;
}

.error-field {
  border-color: #b00020;
  background-color: #fde9ec;
}

/*Responsive Tweaks*/

@media (max-width: 600px) {
  .main-nav ul {
    flex-direction: column;
  }

  .store-filters {
    flex-direction: column;
    align-items: flex-start;
  }

  .filter-label {
    margin-left: 0;
  }
}

/*JavaScript Helper Classes*/

.hidden {
  display: none;
}

.active-filter {
  background-color: #d9b88c;
  color: #fff;
}

.highlight-card {
  outline: 3px solid #c57c4a;
}
