/* Base styles */
body {
  margin: 0;
  background-color: #ffffff;
  background-image: url("img/paper-fibers.png");
  background-blend-mode: multiply;
  background-repeat: repeat;
  background-size: 1000px;
  font-family: 'Georgia', serif;
  color: #3e3a34;
}
@font-face {
  font-family: 'CleaversJuvenia';
  src: url('Cleavers_Juvenia.otf') format('opentype');
}
.header-text h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
}


/* White box at the top with text */
.header-top {
  background: white;
  padding: 2rem 0rem 0rem;
  width: 100%;
  max-height: 300px;
  text-align: center;
}

.header-text {
  font-family: 'CleaversJuvenia', serif;
  font-size: 2.5rem;
  color: #175e26;
  text-align: center;
  line-height: 1.5;
}


/* Mountain image below the white box */
header.image-header {
  width: 100%;
  height: 200px;
  background-image:
    linear-gradient(to bottom, #175e26, #175e26),
    url("img/rockies.jpeg");
  background-blend-mode: screen, multiply, normal;
  background-repeat: no-repeat;
  background-size: contain; /* Ensures full image is shown */
  background-position: center bottom;
  border-bottom: 3px solid #a47551;
  background-color: white; /* fill unused space with white */
  isolation: isolate;
}


/* Navigation */
nav {
  background: #f4eed9;
  border-top: 1px solid #c1ab92;
  border-bottom: 1px solid #cbb69a;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  margin: 0;
  padding: 0.75rem 0;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: #6e4f33;
  font-weight: 600;
}

nav a:hover,
nav a.active {
  text-decoration: underline;
  color: #4d3828;
}

/* Postcard gallery */
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.cream-box {
  background: #ffffff;
  width:375px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(68, 94, 46, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid #e0d6c2;
}

.cream-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(94, 71, 46, 0.2);
}

.postcard-img {
  max-width: 80%;
  max-height: 70%;
  object-fit: contain;
  margin-bottom: 0.5rem;
  box-shadow: 0 2px 8px rgba(160, 120, 80, 0.08);
}

figcaption {
  font-size: 0.95rem;
  color: #5a4936;
  text-align: center;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #c4d2c1;
  color: #5f5a4a;
  font-size: 0.9rem;
  border-top: 2px solid #a47551;
}

/* About page layout */
.about-section {
  max-width: 700px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #4a3f35;
}

.about-section h2 {
  margin-top: 2rem;
  font-size: 1.6rem;
  color: #6e4f33;
}

.about-section p {
  line-height: 1.65;
  font-size: 1.05rem;
  margin-top: 0.5rem;
}

/* Contact form styles */
.contact-section {
  max-width: 600px;
  margin: 3rem auto;
  padding: 0 1rem;
  color: #1b3a1e;
}
.header-text-secondary {
  font-family: 'CleaversJuvenia', serif;
  font-size: 1.5rem;
  color: #175e26;
  margin: 0;
  top: 2rem;
  bottom: 0rem;
  line-height: 1.5;
}
.header-text-secondary h1 {
  margin: 0;
  padding: 0;
  line-height: 1;
}
.tagline {
  font-size: 1rem;
  font-family: Inter, sans-serif;
  color: #175e26;
  margin-top: 0.3rem;
  margin-bottom: 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

form label {
  font-weight: 400;
  font-size: 1.05rem;
  color: #5a4936;
}

form input,
form textarea {
  padding: 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbbba0;
  font-size: 1rem;
  background: #fffefb;
  font-weight: 400;
}

form button {
  background-color: #6e4f33;
  color: #fffef8;
  border: none;
  padding: 0.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.05rem;
  font-weight: 400;
  transition: background-color 0.2s;
}

form button:hover {
  background-color: #5a3e2b;

}

/* Button styling for thank-you.html */
a button {
  background-color: #6e4f33;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 2rem;
}

a button:hover {
  background-color: #5a3e2b;
}

nav ul {
  list-style-type: none;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  background-color: #f0f0f0;
  padding: 1rem;
  margin: 0;
  position: relative;
}

nav ul li.cart-icon {
  margin-left: auto;
  margin-right: 1rem;
}

.cart-icon a {
  font-size: 1.2rem;
  text-decoration: none;
  color: #333;
  position: relative;
}

.cart-count {
  background-color: #d35400;
  color: white;
  padding: 2px 6px;
  font-size: 0.75rem;
  border-radius: 50%;
  position: relative;
  top: -3px;
  margin-left: 5px;
}

/* Cart page layout */
.cart-page {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #f4f4f4;
  color: #333;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 2rem;
}

.cart-container {
  background: #fff;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 800px;
}

.cart-container h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #175e26; /* Dark green */
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.cart-table th,
.cart-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

.cart-table th {
  background-color: #fafafa;
  font-weight: 600;
}

.cart-table tr:hover {
  background-color: #f9f9f9;
}

.empty {
  text-align: center;
  font-style: italic;
  color: #777;
}

.checkout-button,
.back-button {
  background-color: #175e26; /* Dark green */
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s ease;
  display: block;
  margin: 1rem auto;
}

.checkout-button:hover,
.back-button:hover {
  background-color: #144d1f;
}
/* Flex layout for back button and heading */
.cart-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.cart-header h1 {
  margin: 0 auto; /* keeps it centered even with left-aligned back button */
  font-size: 2rem;
  color: #175e26;
  text-align: center;
  flex-grow: 1;
}

/* Back button updated look */
.back-button {
  background-color: white;
  color: #175e26;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(23, 94, 38, 0.3); /* green shadow */
  transition: all 0.2s ease;
}

.back-button:hover {
  box-shadow: 0 0 12px rgba(23, 94, 38, 0.5);
}
.cancel-message-overlay {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #175e26;
  font-size: 1rem;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(23, 94, 38, 0.25);
  z-index: 9999;
  opacity: 1;
  transition: opacity 1s ease-out;
}

.quantity-select {
  font-size: 1rem;
  padding: 0.4rem;
  border-radius: 6px;
  border: 1px solid #a4b89f;
  margin-bottom: 0.5rem;
  background-color: #fff;
  color: #3e3a34;
}

.custom-add-button {
  background-color: white;
  color: #175e26;
  border: 2px solid #175e26;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(23, 94, 38, 0.2);
  transition: all 0.2s ease;
}

.custom-add-button:hover {
  box-shadow: 0 0 16px rgba(23, 94, 38, 0.35);
  background-color: #f8fff9;
}
/* Caption overlaid on postcard image */
.postcard-caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: 'CleaversJuvenia', serif;
  color: #175e26;
  font-size: 1.25rem;
  background: rgba(255, 255, 255, 0.65);
  padding: 0.3rem 0;
  border-top: 1px solid #a4b89f;
  border-bottom: 1px solid #a4b89f;
}

/* Wrapper for image with overlay text */
.image-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-wrapper img {
  width: 90%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* Wrapper to combine dropdown + button */
.combo-control {
  display: flex;
  align-items: stretch;
  border: 2px solid #175e26;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(23, 94, 38, 0.15);
}

/* Left side: dropdown */
.combo-control .quantity-select {
  border: none;
  border-radius: 0;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  background-color: #ffffff;
  color: #175e26;
  font-weight: 500;
  cursor: pointer;
  background-image: url('img/dropdown-arrow.png');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.65rem;
  appearance: none;
  font-size: 1rem;
  height: 100%;
}

/* Right side: add button */
.combo-control .custom-add-button {
  height: 100%;
  border: none;
  background-color: #175e26;
  color: white;
  font-weight: 500;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  border-radius: 0;
  transition: background-color 0.2s ease;
}

.combo-control .custom-add-button:hover {
  background-color: #144d1f;
}

/* Optional: icon inside button */
.custom-add-button .icon {
  height: 12px;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}
.product-page {
  max-width: 900px;
  align-items: center;
  margin: 3rem auto;
  padding: 0 1rem;
}

.product-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.product-hero img {
  width: 50%;
  align-content: center;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.product-info {
  flex: 1 1 300px;
}
.card-link {
  text-decoration: none;
  color: inherit; /* keeps text colors unchanged */
}

.icon-img {
  height: 1.1rem;
  width: auto;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: middle;
}/* Chic spotlight layout */

.product-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin: 4rem auto;
  padding: 1rem;
  background-color: white;
}

.spotlight-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.spotlight-text {
  text-align: center;
  max-width: 600px;
}

.spotlight-text h1 {
  font-family: 'Georgia', serif;
  font-size: 2.25rem;
  color: #3a332a;
  margin-bottom: 1rem;
}

.spotlight-text p {
  font-size: 1.1rem;
  color: #51463a;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.spotlight-form {
  display: flex;
  justify-content: center;
}
