/* Home page visuals */
/* HERO */
.hero {
  position: relative;
  min-height: 650px;
  background: url('images/hero.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 250, 245, 0.9) 0%,
      rgba(255, 250, 245, 0.72) 38%,
      rgba(255, 250, 245, 0.2) 72%
    );
}

.hero-content {
  position: relative;
  max-width: 600px;
  margin-left: clamp(24px, 8vw, 120px);
  padding: 70px 0;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 58px;
  color: #4a3222;
  line-height: 1.08;
  margin: 14px 0 18px;
}

.hero-content p {
  margin: 0 0 26px;
  color: #6b6b6b;
  font-size: 16px;
  line-height: 1.8;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139, 90, 43, 0.08);
  color: #8B5A2B;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  padding: 8px 16px;
  border-radius: 50px;

  font-size: 13px;
  font-weight: 600;

  border: 1px solid rgba(139, 90, 43, 0.15);
}

.badge i {
  font-size: 12px;
}

/* BUTTON */
.hero-content button {
  background: #8B5A2B;
  color: white;
  padding: 15px 38px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.3s;
  font-weight: 600;
  box-shadow: 0 12px 28px rgba(139, 90, 43, 0.2);
}

.hero-content button:hover {
  background: #6e4522;
  transform: translateY(-3px);
}

/* FEATURES */
.hero-features {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  transition: 0.3s;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(139, 90, 43, 0.08);
  border-radius: 18px;
  padding: 10px 14px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.04);
}

.feature img {
  width: 38px;
}

.feature:hover {
  transform: translateY(-3px);
}

.trust-row {

  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap: 18px;

  margin-top: 34px;

  margin-bottom: 34px;

}

.trust-item {

  display: flex;

  align-items: center;

  gap: 14px;

  background: rgba(255,255,255,0.82);

  border: 1px solid rgba(139,90,43,0.08);

  border-radius: 20px;

  padding: 18px;

  box-shadow:
    0 12px 28px rgba(0,0,0,0.04);

}

.trust-icon {

  width: 44px;

  height: 44px;

  border-radius: 50%;

  background: #f3e7da;

  color: #8B5A2B;

  display: flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

}

.trust-item h3 {

  margin: 0 0 4px;

  font-size: 15px;

  color: #3f2a1d;

}

.trust-item p {

  margin: 0;

  color: #777;

  font-size: 13px;

  line-height: 1.6;

}

.campaign-banner {

  display: grid;

  grid-template-columns: 1.1fr 0.9fr;

  gap: 28px;

  align-items: center;

  margin-top: 26px;

  margin-bottom: 48px;

  padding: 34px;

  background: #fff7f0;

  border: 1px solid rgba(139,90,43,0.12);

  border-radius: 24px;

  overflow: hidden;

  box-shadow:
    0 16px 40px rgba(139,90,43,0.08);

}

.campaign-banner[hidden] {

  display: none;

}

.campaign-label {

  display: inline-flex;

  width: fit-content;

  padding: 6px 12px;

  border-radius: 999px;

  background: white;

  color: #8B5A2B;

  font-size: 12px;

  font-weight: 700;

  margin-bottom: 14px;

}

.campaign-copy h2 {

  font-family: 'Playfair Display', serif;

  color: #3f2a1d;

  font-size: 38px;

  line-height: 1.15;

  margin: 0 0 10px;

}

.campaign-copy p {

  color: #6b5a50;

  line-height: 1.7;

  margin: 0 0 22px;

}

.campaign-copy a {

  display: inline-flex;

  text-decoration: none;

  color: white;

  background: #8B5A2B;

  padding: 13px 24px;

  border-radius: 999px;

  font-weight: 700;

}

.campaign-image-wrap {

  min-height: 220px;

  border-radius: 20px;

  overflow: hidden;

  background: #f3e7da;

}

.campaign-image-wrap img {

  width: 100%;

  height: 100%;

  min-height: 220px;

  object-fit: cover;

  display: block;

}

.campaign-image-wrap.is-empty {

  display: none;

}

.campaign-banner.no-image {

  grid-template-columns: 1fr;

}

.campaign-banner.no-image .campaign-copy {

  max-width: 680px;

}
/* PRODUCTS */
.products {
  margin-top: 20px;
  text-align: center;
}

.products .title-decoration,
.testimonials .title-decoration {
  margin-bottom: 10px;
}

.product-grid {

  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(260px, 1fr));

  gap: 32px;

  margin-top: 0;

  justify-items: center;

}

.product-card {

  position: relative;

  background: white;

  border-radius: 24px;

  overflow: hidden;

  width: 260px;

  display: flex;

  flex-direction: column;

  transition: 0.35s ease;

  box-shadow:
    0 10px 30px rgba(0,0,0,0.04);

  padding: 0;

  border: 1px solid rgba(0,0,0,0.04);

}

.product-card:hover {

  transform: translateY(-8px);

  box-shadow:
    0 20px 40px rgba(0,0,0,0.08);

}

.product-card-body {

  min-height: 218px;

  display: flex;

  flex-direction: column;

  align-items: center;

  flex-shrink: 0;

}

/* PRODUCTS Card Text Font*/
.product-card h3 {

  font-family:
    'Playfair Display',
    serif;

  font-size: 24px;

  font-weight: 600;

  color: #3f2a1d;

  margin: 22px 0 8px;

}

/* PRODUCTS Card Price text Font*/
.product-card p {

  font-size: 14px;

  color: #8B5A2B;

  margin-bottom: 10px;

}

.product-card .normal-price {

  color: #8b5a2b;

  font-size: 18px;

  font-weight: 700;

  margin: 10px 0 0;

}

.product-card:hover {
  transform: translateY(-8px);
}

/* IMAGE HOVER */
.product-card img {

  width: 100%;

  height: 340px;

  aspect-ratio: 3 / 4;

  object-fit: cover;

  object-position: center top;

  display: block;

  transition: 0.5s ease;

}

.product-card:hover img {
  transform: scale(1.04);
}

/* BUTTON */
button {
  transition: all 0.25s ease;
}

button:active {
  transform: scale(0.97);
}

.product-card button {

  width: calc(100% - 30px);

  margin: 20px 15px 18px;

  height: 46px;

  border: none;

  border-radius: 12px;

  background: #8B5A2B;

  color: white;

  font-size: 13px;

  font-weight: 500;

  cursor: pointer;

  transition: 0.3s ease;

}

.product-card button:hover {
  background: #6e4522;
}

.product-card h3,
.product-card .product-price-wrap,
.product-card > p,
.product-card .low-stock-text,
.product-card-body {

  flex-shrink: 0;

}

.product-card .low-stock-text + button {

  margin-top: 14px;

}

.product-card .product-price-wrap + .notify-stock-btn,
.product-card > p + .notify-stock-btn {

  margin-top: 18px;

}

.product-card .discount-badge + .notify-stock-btn {

  margin-top: 18px;

}

.product-card button {

  margin-top: 0;

}

.product-option-groups {
  margin-top: 20px;
}

.product-option-groups h4 {
  margin: 0 0 12px;
  color: #3f2a1d;
  font-size: 14px;
  font-weight: 600;
}

.product-option-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-option-grid.color-grid {
  margin-bottom: 20px;
}

.modal-color-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.modal-size-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: 12px;
}

.modal-option-button {
  min-height: 44px;
  border: 1px solid rgba(139,90,43,0.22);
  border-radius: 14px;
  background: #fffaf5;
  color: #5a3e2b;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: 0.25s ease;
}

#product-modal .modal-option-button {
  border-radius: 14px;
  background: #fffaf5;
  color: #5a3e2b;
  border: 1px solid rgba(139,90,43,0.22);
}

.modal-color-options .modal-option-button {
  min-width: 80px;
  padding: 10px 14px;
}

.modal-size-options .modal-option-button {
  padding: 10px;
}

.modal-option-button:hover:not(:disabled) {
  border-color: #c59d5f;
  background: #f8efe4;
  transform: translateY(-1px);
}

.modal-option-button.active {
  background: #8B5A2B;
  color: white;
  border-color: #8B5A2B;
  box-shadow: 0 10px 22px rgba(139,90,43,0.18);
}

#product-modal .modal-option-button.active {
  background: #8B5A2B;
  color: white;
  border-color: #8B5A2B;
  border-radius: 14px;
}

#product-modal .modal-option-button:disabled,
#product-modal .modal-option-button.disabled,
.modal-option-button:disabled,
.modal-option-button.disabled {
  background: #f4f1ee;
  color: #c8c0ba !important;
  border-color: #eee7e1;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

#product-modal .delivery-options {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 18px;
  align-items: center;
}

#product-modal .delivery-radio {
  min-height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #5a3e2b;
  font-weight: 500;
  gap: 8px;
  padding: 0;
}

#product-modal .delivery-radio:hover {
  background: transparent;
  color: #8b5a2b;
}

#product-modal .delivery-radio span {
  border-color: #8b5a2b;
}

#product-modal .delivery-radio input:checked + span::after {
  background: #8b5a2b;
}

#modal-add {
  border-radius: 16px;
  background: #8B5A2B;
  box-shadow: 0 14px 28px rgba(139,90,43,0.18);
}

#modal-add:hover {
  background: #6f4522;
  transform: translateY(-2px);
}

.low-stock-text {
  display: inline-flex;
  width: fit-content;
  align-self: center;
  color: #b45b28 !important;
  background: #fff1e6;
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13px;
  margin: 8px auto 0 !important;
}

.sold-out-card-btn {
  background: #999 !important;
  cursor: not-allowed !important;
  opacity: 0.7;
}

.sold-out-badge {
  background: #3f2a1d;
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  width: fit-content;
}

.home-empty-products {

  grid-column: 1 / -1;

  max-width: 440px;

  margin: 0 auto;

  padding: 42px 28px;

  border-radius: 24px;

  background: #fffaf6;

  border: 1px solid #eaded2;

  text-align: center;

  box-shadow:
    0 14px 34px rgba(139,90,43,0.06);

}

.home-empty-icon {

  width: 66px;

  height: 66px;

  margin: 0 auto 16px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: #f3e7db;

  color: #8b5a2b;

  font-size: 24px;

}

.home-empty-products h3 {

  margin: 0 0 8px;

  color: #3f2a1d;

  font-family: "Playfair Display", serif;

  font-size: 26px;

}

.home-empty-products p {

  margin: 0 0 20px;

  color: #75665c;

  line-height: 1.7;

}

.home-empty-products a,
.home-empty-products button {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  min-width: 130px;

  padding: 12px 20px;

  border: none;

  border-radius: 999px;

  background: #8b5a2b;

  color: white;

  text-decoration: none;

  font-family: inherit;

  font-weight: 700;

  cursor: pointer;

}

.home-empty-products.is-error {

  background: #fff7f0;

}

.testimonials {

  padding: 30px 0 10px;

}

.review-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 24px;

  margin-top: 8px;

}

.review-card {

  background: white;

  border: 1px solid rgba(139,90,43,0.08);

  border-radius: 24px;

  padding: 28px;

  box-shadow:
    0 14px 34px rgba(0,0,0,0.04);

  text-align: center;

}

.review-stars {

  color: #c59d5f;

  font-size: 13px;

  display: flex;

  gap: 4px;

  justify-content: center;

  margin-bottom: 18px;

}

.review-card p {

  color: #5f5550;

  line-height: 1.8;

  margin: 0 0 20px;

  font-size: 14px;

}

.review-card h3 {

  font-family:
    'Playfair Display',
    serif;

  color: #3f2a1d;

  margin: 0 0 4px;

  font-size: 20px;

}

.review-card span {

  color: #9a8f87;

  font-size: 13px;

}

@media (max-width: 1024px) {

  .trust-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-grid {
    grid-template-columns: repeat(2, 1fr);
  }

}



/* Home mobile layout */
@media (max-width: 768px) {
/* HERO */
 .hero {
  position: relative;
  height: 420px;

  background: url('images/hero.jpg') center/cover no-repeat;
}
 .hero-content {
  position: absolute;
  top: 40%;
  left: -100px;

  transform: translateY(-50%);

  max-width: 70%;
  text-align: left;
}

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

 .hero-content p {
  font-size: 11px;
 }
 /*badge*/
 .badge {
  padding: 4px 10px;      /* 🔥 smaller box */
  font-size: 11px;        /* 🔥 smaller text */

  border-radius: 50px;
  display: inline-flex;   /* 🔥 better alignment */
  align-items: center;
  gap: 5px;               /* 🔥 spacing between icon + text */
}
 /* FEATURES */
 .hero-features {
  justify-content: flex-start;
  gap: 10px;
  margin-top: 15px;
}
.feature {
  flex-direction: row;
  gap: 5px;
}

.feature img {
  width: 20px;
}
.feature span {
  font-size: 9px;
}
 /* HEART ICON FIX */
 .title-decoration .heart-icon {
  width: 60px;
  height: auto;
 }

 /* PRODUCTS */
 .product-grid {
  flex-direction: column;
  margin: top 10px;
 }

 .product-card {
  width: 100%;
 }
}

@media (max-width: 768px) {

  .campaign-banner {
    grid-template-columns: 1fr;
    padding: 24px;
    margin-bottom: 34px;
  }

  .campaign-copy h2 {
    font-size: 30px;
  }

  .hero {
    min-height: 560px;
    height: auto;
    background-position: 58% center;
    align-items: center;
  }

  .hero-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    max-width: 92%;
    margin-left: 0;
    padding: 90px 20px 46px;
    text-align: left;
  }

  .hero-content h1 {
    font-size: 38px;
  }

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

  .badge {
    padding: 7px 12px;
    font-size: 11px;
    gap: 5px;
  }

  .feature {
    padding: 8px 10px;
  }

  .feature img {
    width: 24px;
  }

  .feature span {
    font-size: 10px;
  }

  .trust-row {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 22px;
    margin-bottom: 28px;
  }

  .trust-item {
    padding: 16px;
  }

  .review-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .review-card {
    padding: 24px 20px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
  }

  .product-card {
    width: 100%;
    max-width: 330px;
  }

}

@media (max-width: 768px) {

  .hero {

    min-height: 520px;

    background-position: 60% center;

  }

  .hero-overlay {

    background:
      linear-gradient(
        90deg,
        rgba(255,250,245,0.94) 0%,
        rgba(255,250,245,0.76) 48%,
        rgba(255,250,245,0.2) 100%
      );

  }

  .hero-content {

    max-width: 94%;

    padding: 78px 20px 36px;

  }

  .hero-content h1 {

    font-size: 36px;

    line-height: 1.12;

    margin: 12px 0 14px;

  }

  .hero-content p {

    font-size: 13px;

    line-height: 1.7;

    margin-bottom: 20px;

  }

  .hero-content button {

    min-height: 44px;

    padding: 12px 28px;

  }

  .hero-features {

    gap: 8px;

    margin-top: 22px;

  }

  .feature {

    border-radius: 14px;

    padding: 8px 9px;

  }

  .trust-row {

    margin-top: 18px;

    margin-bottom: 20px;

  }

  .campaign-banner {

    border-radius: 20px;

    margin-top: 20px;

    margin-bottom: 26px;

  }

  .products {

    margin-top: 8px;

  }

  .section-title {

    font-size: 32px;

  }

  .products .title-decoration,
  .testimonials .title-decoration {

    margin-bottom: 8px;

  }

  .product-grid {

    gap: 22px;

  }

  .product-card {

    max-width: 315px;

    border-radius: 22px;

  }

  .product-card img {

    height: 315px;

  }

  .product-card h3 {

    font-size: 22px;

    margin-top: 18px;

  }

  .product-card button {

    min-height: 46px;

    margin-left: 14px;

    margin-right: 14px;

    width: calc(100% - 28px);

  }

  .product-card .low-stock-text + button {

    margin-top: 16px;

  }

  .product-card .product-price-wrap + .notify-stock-btn,
  .product-card > p + .notify-stock-btn {

    margin-top: 20px;

  }

  .product-card .discount-badge + .notify-stock-btn {

    margin-top: 20px;

  }

  .product-badges {

    top: 12px;

    left: 12px;

    gap: 7px;

  }

  .new-badge,
  .sale-badge,
  .sold-out-badge {

    font-size: 10px;

    padding: 6px 10px;

  }

  .testimonials {

    padding: 20px 0 2px;

  }

  .review-grid {

    margin-top: 0;

  }

  #product-modal {

    align-items: flex-end;

  }

  #product-modal .modal-content {

    width: 100%;

    max-width: 100%;

    max-height: 88vh;

    display: block;

    overflow-y: auto;

    border-radius: 24px 24px 0 0;

    padding: 18px;

  }

  #product-modal .modal-image-wrap {

    width: 100%;

  }

  #modal-image {

    height: 330px;

    border-radius: 18px;

    margin-bottom: 0;

  }

  #modal-badges {

    top: 14px;

    left: 14px;

    gap: 8px;

  }

  #product-modal .modal-info {

    padding-top: 16px;

  }

  #product-modal .modal-info h2 {

    font-size: 28px;

    margin: 0 0 8px;

  }

  #product-modal .modal-info p {

    font-size: 14px;

    line-height: 1.6;

  }

  .product-option-groups {

    margin-top: 16px;

  }

  .modal-color-options,
  .modal-size-options {

    gap: 10px;

  }

  .modal-option-button {

    min-height: 46px;

  }

  #product-modal .delivery-options {

    margin-top: 18px;

    margin-bottom: 14px;

  }

  #modal-add {

    min-height: 48px;

    margin-top: 12px;

  }

  #product-modal .close-btn {

    top: 14px;

    right: 18px;

    z-index: 12;

    width: 34px;

    height: 34px;

    border-radius: 50%;

    background: rgba(255,255,255,0.9);

    display: inline-flex;

    align-items: center;

    justify-content: center;

  }

}

@media (max-width: 420px) {

  .hero {

    min-height: 500px;

  }

  .hero-content h1 {

    font-size: 32px;

  }

  .hero-features {

    max-width: 300px;

  }

  .feature {

    flex: 1 1 calc(50% - 8px);

  }

  .feature:last-child {

    flex-basis: 100%;

    max-width: 150px;

  }

  #modal-image {

    height: 300px;

  }

}
