@charset "UTF-8";

/* ========== Base Styles ========== */
body {
  font-family: 'Lato', sans-serif;
  background: #fefdf8;
  color: #2a2a2a;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
}

.hidden {
  display: none;
}

.view-cart-btn {
  position: relative;
  top: 10px;
  left: 10px;
  background: #f8fbba;
  color: #333;
  padding: 10px 15px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  z-index: 999;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.view-cart-btn:hover {
  background: linear-gradient(to right, #b0d9a4, #f2e4b3, #eac4d1);
}

/* ========== Hero Section ========== */
.gift-hero {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-overlay {
  background-color: rgba(255, 255, 255, 0.92);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  max-width: 720px;
  border: 2px solid #d8eecf;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-overlay h1 {
  font-size: 42px;
  color: #3e704f;
  margin-bottom: 10px;
}

.hero-overlay p {
  font-size: 18px;
  color: #475943;
}

.back-button.top-right {
  position: absolute;
  top: 20px;
  right: 20px;
  background: linear-gradient(to right, #f9fce6, #f0fdf7);
  border: 2px solid #c7e49d;
  padding: 10px 15px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  font-weight: bold;
  color: #2a2a2a;
}

.back-button.top-right:hover {
  background: linear-gradient(to right, #b0d9a4, #f2e4b3, #eac4d1);
}

/* ========== Intro Section ========== */
.gift-intro {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(to right, #f9fce6, #f0fdf7);
}

.gift-intro h2 {
  font-size: 32px;
  background: #3e704f;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 15px;
}

.gift-intro p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  color: #445544;
}

/* ========== Product Gallery ========== */
.gift-gallery {
  padding: 60px 20px;
  background-color: #fdfdf6;
  text-align: center;
}

.product-category {
  border: 2px solid #dcead5;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 25px;
}

.category-toggle {
  width: 100%;
  padding: 16px;
  background: linear-gradient(to right, #fdf6a5, #fce58c, #f4d8a3);
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  text-align: left;
  transition: background 0.3s ease;
}

.category-toggle:hover {
  background: linear-gradient(to left, #fdf6a5, #fce58c, #f4d8a3);
}

.category-products {
  display: none;
  padding: 20px;
  background-color: #f8fef4;
}

.product-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 25px;
  text-align: center;
}

.product-item img {
  width: 100%;
  max-width: 240px;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.product-item h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0 4px;
  color: #3a4d2e;
}

.product-item p {
  font-size: 14px;
  color: #4e5b42;
  max-width: 320px;
}

.price {
  font-size: 16px;
  color: #667a4d;
  font-weight: bold;
  margin-top: 8px;
}

.buy-button,
.add-to-cart {
  margin-top: 10px;
  padding: 10px 18px;
  background: linear-gradient(to left, #b0d9a4, #f2e4b3, #eac4d1);
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
  text-decoration: none;
  color: #2a2a2a;
}

.buy-button:hover,
.add-to-cart:hover {
  background: linear-gradient(to right, #b0d9a4, #f2e4b3, #eac4d1);
}

/* ========== CTA Section ========== */
.cta-section {
  padding: 60px 20px;
  background: linear-gradient(to top, #f0fdf7, #ffffff);
  text-align: center;
}

.cta-section h3 {
  font-size: 28px;
  color: #3e704f;
}

.cta-section p {
  font-size: 17px;
  color: #4b5c45;
  margin-bottom: 20px;
}

.cta-section a {
  font-weight: bold;
  color: #3e704f;
  text-decoration: underline;
}

/* ========== Footer ========== */
/* Footer */
footer {
  background: #f2f1ec;
  text-align: center;
  padding: 20px;
  font-size: 14px;
  color: #333;
  border-top: 1px solid #ccc;
}


/* ========== Media Queries ========== */
@media (max-width: 1920px) {
  .gift-hero {
    background-image: url("../../img/gift_boxes/hero_image_1920px.jpg");
    max-height: 900px;
  }
}

@media (max-width: 1200px) {
  .gift-hero {
    background-image: url("../../img/gift_boxes/hero_image_1200px.jpg");
    max-height: 700px;
  }

  .hero-overlay {
    padding: 30px;
  }

  .product-item img {
    max-width: 200px;
  }
}

@media (max-width: 768px) {
  .gift-hero {
    background-image: url("../../img/gift_boxes/hero_image_768px.jpg");
    max-height: 768px;
  }

  .hero-overlay h1 {
    font-size: 28px;
  }

  .hero-overlay p {
    font-size: 15px;
  }

  .product-item img {
    max-width: 180px;
  }

  .category-toggle {
    font-size: 18px;
    padding: 14px;
  }

  .gift-intro h2 {
    font-size: 26px;
  }

  .gift-intro p {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .gift-hero {
    background-image: url("../../img/gift_boxes/hero_image_480px.jpg");
    max-height: 480px;
  }

  .hero-overlay {
    padding: 15px;
  }

  .hero-overlay h1 {
    font-size: 24px;
  }

  .hero-overlay p {
    font-size: 14px;
  }

  .product-item h4 {
    font-size: 18px;
  }

  .product-item p {
    font-size: 13px;
  }

  .buy-button {
    padding: 9px 14px;
    font-size: 13px;
  }

  .category-toggle {
    font-size: 16px;
  }

  .view-cart-btn {
    font-size: 14px;
  }
}

@media (max-width: 300px) {
  .gift-hero {
    background-image: url("../../img/gift_boxes/hero_image_300px.jpg");
    max-height: 300px;
  }

  .hero-overlay h1 {
    font-size: 20px;
  }

  .hero-overlay p {
    font-size: 13px;
  }

  .product-item h4 {
    font-size: 16px;
  }

  .product-item p {
    font-size: 12px;
  }

  .buy-button {
    padding: 8px 12px;
    font-size: 12px;
  }

  .category-toggle {
    font-size: 14px;
    padding: 12px;
  }
}
