/* =========================================================
   CSS Custom Properties
   ========================================================= */
:root {
  --cream: #fdfaf5;
  --beige: #e8dcc8;
  --tan: #d6c3a5;
  --forest: #4f6f52;
  --blue: #cfe3e6;
  --text-dark: #2b2b2b;
}

/* =========================================================
   Reset
   ========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================================================
   Base
   ========================================================= */
body {
  font-family: 'Georgia', serif;
  line-height: 1.7;
  background-color: var(--cream);
  background-image: radial-gradient(circle at top, #ffffff 0%, var(--cream) 70%);
  color: var(--text-dark);
}

/* =========================================================
   Header & Navigation
   ========================================================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, var(--beige), var(--blue));
  padding: 1.5rem 1rem;
  border-bottom: 1px solid var(--tan);
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  color: var(--forest);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}

header nav {
  margin-top: 0.5rem;
}

nav a {
  margin: 0 1.25rem;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 1rem;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  left: 0;
  bottom: -4px;
  background-color: var(--forest);
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* =========================================================
   Main Container
   ========================================================= */
main {
  max-width: 1000px;
  margin: 2rem auto;
  padding: 1rem;
}

/* =========================================================
   Buttons
   ========================================================= */
.button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  background: var(--forest);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: #3e5f44;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.12);
}

.button.secondary {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}

.button.secondary:hover {
  background: var(--forest);
  color: white;
}

/* =========================================================
   Hero Section
   ========================================================= */
.hero {
  background-image: url('https://images.unsplash.com/photo-1556228453-97d5aaed97f6?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  color: black;
  text-align: center;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.hero-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-family: 'Georgia', serif;
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* =========================================================
   Product Grid
   ========================================================= */
#product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  max-width: 1500px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.product {
  background-color: var(--beige);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

.product img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product h3 {
  font-size: 1.2rem;
  color: var(--forest);
  margin-bottom: 0.25rem;
}

.product p {
  font-size: 0.95rem;
  margin: 0.4rem 0;
  color: #4a4a4a;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest);
  margin: 0.5rem 0;
}

.product a {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: var(--forest);
  text-decoration: none;
  font-weight: bold;
  opacity: 0.85;
}

.product a:hover {
  opacity: 1;
  text-decoration: underline;
}

.product button {
  background: var(--forest);
  color: white;
  border: none;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  margin: 0.5rem 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product button:hover {
  background: #3e5f44;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

/* =========================================================
   Product Detail — Slideshow
   ========================================================= */
.slideshow-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: auto;
}

.product-main-image {
  width: 400px;
  height: 400px;
  display: block;
  margin: 0 auto;
}

.product-image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

/* =========================================================
   Cart Page
   ========================================================= */
.cart-container {
  background: var(--beige);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  max-width: 900px;
  margin: 3rem auto;
}

.cart-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background-color: #f7f5ef;
  border-radius: 14px;
  margin-bottom: 16px;
  align-items: center;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  background-color: #eee;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  margin: 0;
  font-size: 1rem;
  color: #2f3e2f;
}

.cart-item-info p {
  margin: 6px 0;
  color: #5a6b5a;
}

.remove-btn {
  background-color: transparent;
  color: #8b4b4b;
  font-size: 0.85rem;
  padding: 4px 0;
}

.remove-btn:hover {
  text-decoration: underline;
}

/* Quantity Controls */
.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

.quantity-controls button {
  background-color: #e3eddc;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-size: 16px;
  font-weight: bold;
  color: #2f3e2f;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.quantity-controls button:hover {
  background-color: #cfe0c3;
  transform: scale(1.05);
}

.quantity-controls span {
  min-width: 20px;
  text-align: center;
  font-weight: 600;
}

/* Cart Summary */
.cart-summary {
  margin-top: 2rem;
  padding: 1.5rem;
  background: #fffdf8;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  max-width: 500px;
  margin-left: auto;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.summary-row.total {
  font-weight: bold;
  font-size: 1.2rem;
  border-top: 1px solid #ddd;
  padding-top: 0.75rem;
}

/* =========================================================
   Checkout Form
   ========================================================= */
form {
  background-color: #fffdf8;
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  margin: 2rem auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

form h2 {
  margin-bottom: 1rem;
  color: black;
}

form label {
  display: block;
  margin-bottom: 1rem;
  font-weight: bold;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: inherit;
}

.form-group {
  display: flex;
  gap: 1rem;
}

.form-group.double > label,
.form-group.triple > label {
  flex: 1;
}

button[type='submit'] {
  background-color: black;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
}

button[type='submit']:hover {
  background-color: #333;
}

/* =========================================================
   Testimonials
   ========================================================= */
.testimonials {
  margin-top: 4rem;
  padding: 3rem 2rem;
  background: #f4efe9;
  text-align: center;
  border-radius: 16px;
}

.testimonials h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #3b5f4a;
}

.testimonial-card {
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  font-size: 1.1rem;
  color: #444;
}

#testimonial-author {
  display: block;
  margin-top: 1rem;
  font-weight: 600;
  color: #2f4f3f;
}

/* =========================================================
   About Us Page Sections
   ========================================================= */
.mission,
.trust,
.faith,
.shop-cta,
.contact {
  text-align: center;
  max-width: 900px;
  margin: 3.5rem auto 0;
  padding: 2rem 1.5rem;
}

/* Mission */
.mission {
  background: var(--beige);
  color: var(--text-dark);
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.mission h3 {
  color: black;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

/* Trust */
.trust {
  background: var(--blue);
  color: #355f5b;
  border-radius: 12px;
}

.trust h2 {
  color: var(--forest);
}

/* Faith */
.faith {
  background: #fffdf8;
  border: 1px solid var(--tan);
  border-radius: 14px;
  padding: 2.5rem 1.5rem;
  max-width: 800px;
  margin: 4rem auto 0;
}

.faith h2 {
  color: var(--forest);
  font-size: 1.9rem;
  margin-bottom: 0.75rem;
}

.faith p {
  color: #4a4a4a;
  max-width: 600px;
  margin: 0 auto;
}

/* Shop CTA */
.shop-cta {
  margin-bottom: 4rem;
}

/* Contact */
.contact {
  background: var(--cream);
  border-top: 1px solid var(--tan);
  padding: 3rem 1.5rem 4rem;
}

.contact h2 {
  color: var(--forest);
  margin-bottom: 0.75rem;
}

.contact a {
  color: var(--forest);
  font-weight: 600;
  text-decoration: none;
}

.contact a:hover {
  text-decoration: underline;
}

/* =========================================================
   Generic Page Message (success / cancel / thank-you)
   ========================================================= */
.page-message {
  text-align: center;
  padding: 3rem 2rem;
  max-width: 600px;
  margin: 2rem auto;
}

.page-message h2 {
  margin-bottom: 1rem;
}

.page-message p {
  margin: 0 auto 1.5rem;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  color: #999;
}
