/* ========================================
   Morning Star — Styles
   Aesthetic: Sacred Garden at Golden Hour
   ======================================== */

/* --- CSS Variables --- */
:root {
  --cream: #FDF6EE;
  --peach: #EECDB3;
  --blush: #E8C4A8;
  --gold: #B8935A;
  --gold-dark: #8B6D3F;
  --brown: #6B4E32;
  --navy: #1A2744;
  --navy-deep: #0F1A2E;
  --rose: #C4727A;
  --sunset-pink: #E8A0A0;
  --white: #FFFFFF;
  --overlay-warm: rgba(184, 147, 90, 0.08);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Libre Caslon Text', 'Georgia', serif;
  --font-sc: 'Cormorant SC', serif;
  --font-script: 'Tangerine', cursive;

  --header-height: 80px;
  --announcement-height: 36px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + var(--announcement-height) + 20px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--brown);
  background-color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
}

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--navy);
  color: var(--gold);
  text-align: center;
  padding: 9px 20px;
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 2px;
  min-height: var(--announcement-height);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
}

.announcement-bar p {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  line-height: 1.5;
}

.star-icon {
  opacity: 0.7;
  flex-shrink: 0;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: var(--header-height);
  transition: height 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}

.site-header.scrolled {
  height: 64px;
  box-shadow: 0 1px 0 var(--gold), 0 4px 20px rgba(107, 78, 50, 0.06);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: height 0.4s ease;
}

.site-header.scrolled .logo-img {
  height: 44px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  position: relative;
  padding: 4px 0;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
  left: 0;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link--cart {
  display: flex;
  align-items: center;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1002;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--gold-dark);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  overflow: hidden;
}

.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('images/Background Flower Field.webp') center center / cover no-repeat;
  opacity: 0;
  transform: scale(1.15);
  transition: opacity 0.6s ease, transform 0.8s ease;
}

.mobile-menu::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15, 26, 46, 0.94) 0%,
    rgba(26, 39, 68, 0.92) 50%,
    rgba(15, 26, 46, 0.96) 100%
  );
  opacity: 0;
  transition: opacity 0.5s ease 0.1s;
}

.mobile-menu.open {
  pointer-events: all;
}

.mobile-menu.open::before {
  opacity: 1;
  transform: scale(1);
}

.mobile-menu.open::after {
  opacity: 1;
}

.mobile-menu__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 8px;
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--peach);
  letter-spacing: 4px;
  padding: 12px 20px;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease;
}

.mobile-menu.open .mobile-menu__link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.open .mobile-menu__link:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu__link:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu__link:nth-child(3) { transition-delay: 0.4s; }

.mobile-menu__link::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s ease, left 0.3s ease;
}

.mobile-menu__link:hover {
  color: var(--gold);
}

.mobile-menu__link:hover::after {
  width: 60%;
  left: 20%;
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: url('images/Background Flower Field.webp') center center / cover no-repeat;
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(253, 246, 238, 0.2) 0%,
    rgba(184, 147, 90, 0.18) 40%,
    rgba(253, 246, 238, 0.35) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero__arch {
  background: rgba(253, 246, 238, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 200px 200px 8px 8px;
  padding: 60px 50px 50px;
  max-width: 420px;
  width: 90%;
  box-shadow:
    0 8px 60px rgba(107, 78, 50, 0.15),
    0 0 0 1px rgba(184, 147, 90, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: heroArchIn 0.8s ease-out 0.3s forwards;
}

.hero__arch-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.hero__logo {
  width: 180px;
  height: auto;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 0.6s forwards;
}

.hero__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.15rem;
  color: var(--gold-dark);
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 0.9s forwards;
}

.hero__cta {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 2.5px;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  padding: 14px 32px;
  border-radius: 4px;
  transition: background 0.4s ease, color 0.4s ease;
  opacity: 0;
  animation: fadeUp 0.5s ease-out 1.1s forwards;
}

.hero__cta:hover {
  background: var(--gold);
  color: var(--cream);
}

/* Hero Stars */
.hero__star {
  position: absolute;
  color: var(--gold);
  opacity: 0;
  z-index: 3;
}

.hero__star--1 { top: 18%; left: 15%; animation: starTwinkle 3.5s ease-in-out 1.3s infinite, fadeIn 0.5s ease 1.3s forwards; }
.hero__star--2 { top: 25%; right: 20%; animation: starTwinkle 4s ease-in-out 1.5s infinite, fadeIn 0.5s ease 1.5s forwards; }
.hero__star--3 { bottom: 35%; left: 22%; animation: starTwinkle 3s ease-in-out 1.7s infinite, fadeIn 0.5s ease 1.7s forwards; }
.hero__star--4 { top: 30%; left: 30%; animation: starTwinkle 3.8s ease-in-out 1.4s infinite, fadeIn 0.5s ease 1.4s forwards; }
.hero__star--5 { bottom: 30%; right: 25%; animation: starTwinkle 4.2s ease-in-out 1.6s infinite, fadeIn 0.5s ease 1.6s forwards; }

/* Hero Scroll Indicator */
.hero__scroll-indicator {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  animation: fadeIn 0.6s ease-out 1.8s forwards;
}

.hero__scroll-text {
  font-family: var(--font-sc);
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  opacity: 0.6;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(139, 109, 63, 0.2);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.hero__scroll-dot {
  width: 3px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  position: absolute;
  left: -1px;
  top: -10px;
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0% { top: -10px; opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { top: 40px; opacity: 0; }
}

/* Hero Divider */
.hero__divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  z-index: 4;
  line-height: 0;
}

.hero__divider svg {
  width: 100%;
  height: 80px;
}

/* --- About Section --- */
.about {
  background: var(--cream);
  padding: 100px 40px 120px;
}

.about__container {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 55% 45%;
  gap: 60px;
  align-items: start;
}

.about__image-arch {
  border-radius: 200px 200px 8px 8px;
  overflow: hidden;
  box-shadow: 0 12px 50px rgba(107, 78, 50, 0.12);
  aspect-ratio: 3 / 4;
}

.about__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__text-col {
  padding-top: 60px;
}

.about__flower {
  margin-bottom: 24px;
}

.about__heading {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--gold-dark);
  line-height: 1.25;
  margin-bottom: 20px;
}

.about__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.about__divider-line {
  flex: 1;
  height: 1px;
  background: var(--gold);
  opacity: 0.4;
}

.about__text {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: var(--brown);
  line-height: 1.8;
}

.about__text:last-child {
  margin-bottom: 0;
}

.about__text--verse {
  font-style: italic;
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin-top: 24px;
  font-size: 0.9rem;
  color: var(--gold-dark);
}

.about__text--verse em {
  font-style: italic;
}

/* --- Collection Section --- */
.collection {
  background: var(--peach);
  padding: 100px 40px 120px;
  position: relative;
}

.collection::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184, 147, 90, 0.03) 2px,
      rgba(184, 147, 90, 0.03) 4px
    );
  pointer-events: none;
}

.collection__header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.collection__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.collection__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--brown);
  opacity: 0.8;
}

.collection__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* --- Product Card --- */
.product-card {
  background: var(--cream);
  border-radius: 140px 140px 12px 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(107, 78, 50, 0.08);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(107, 78, 50, 0.15);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--navy);
  border-radius: 140px 140px 0 0;
  overflow: hidden;
}

.product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.5s ease;
}

.product-card__img--back {
  opacity: 0;
}

.product-card:hover .product-card__img--front {
  opacity: 0;
}

.product-card:hover .product-card__img--back {
  opacity: 1;
}

/* Touch toggle for mobile */
.product-card.touch-active .product-card__img--front {
  opacity: 0;
}

.product-card.touch-active .product-card__img--back {
  opacity: 1;
}

.product-card__body {
  padding: 28px 24px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__btn {
  margin-top: auto;
}

.product-card__name {
  font-family: var(--font-sc);
  font-size: 1.35rem;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-bottom: 8px;
}

.product-card__desc {
  font-size: 0.95rem;
  color: var(--brown);
  opacity: 0.75;
  margin-bottom: 12px;
  line-height: 1.6;
}

.product-card__price-note {
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--brown);
  opacity: 0.75;
  margin-bottom: 6px;
}

.product-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--gold);
  margin-bottom: 18px;
}

/* Variant Thumbnails */
.product-card__variants {
  margin-bottom: 18px;
}

.product-card__variants-label {
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--brown);
  opacity: 0.75;
  display: block;
  margin-bottom: 10px;
}

.product-card__variant-thumbs {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.product-card__variant {
  width: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0;
  cursor: pointer;
}

.product-card__variant img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.product-card__variant.active img,
.product-card__variant:hover img {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184, 147, 90, 0.25);
}

.product-card__variant span {
  font-family: var(--font-sc);
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--brown);
  opacity: 0.75;
}

.product-card__variant.active span {
  color: var(--gold-dark);
  opacity: 1;
}

.product-card__btn {
  display: inline-block;
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold-dark);
  border: 1.5px solid var(--gold);
  padding: 12px 28px;
  border-radius: 4px;
  transition: background 0.4s ease, color 0.4s ease;
}

.product-card__btn:hover {
  background: var(--gold);
  color: var(--cream);
}

/* --- Features Section --- */
.features {
  position: relative;
  padding: 120px 40px;
  overflow: hidden;
}

.features__bg {
  position: absolute;
  inset: 0;
  background: url('images/Background Sunset.webp') center center / cover no-repeat;
}

.features__overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 39, 68, 0.87);
}

.features__content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.features__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--peach);
  margin-bottom: 60px;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.features__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.features__icon {
  color: var(--gold);
  opacity: 0.85;
}

.features__item-title {
  font-family: var(--font-sc);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--peach);
}

.features__item-text {
  font-size: 0.95rem;
  color: var(--peach);
  opacity: 0.9;
  line-height: 1.7;
}

/* --- Testimonials --- */
.testimonials {
  background: var(--cream);
  padding: 100px 40px;
}

.testimonials__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 50px;
}

.testimonials__track {
  display: flex;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 10px 4px 20px;
  scrollbar-width: none;
}

.testimonials__track::-webkit-scrollbar {
  display: none;
}

.testimonials__card {
  flex: 0 0 320px;
  background: var(--white);
  border-left: 4px solid var(--gold);
  padding: 36px 28px;
  border-radius: 0 8px 8px 0;
  scroll-snap-align: start;
  box-shadow: 0 2px 16px rgba(107, 78, 50, 0.06);
  position: relative;
}

.testimonials__quote-mark {
  font-family: var(--font-script);
  font-size: 5rem;
  color: var(--gold);
  opacity: 0.15;
  position: absolute;
  top: 8px;
  left: 20px;
  line-height: 1;
}

.testimonials__text {
  font-size: 0.9rem;
  font-style: italic;
  line-height: 1.8;
  color: var(--brown);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonials__author {
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
}

/* --- Missionary Testimonies Section --- */
.missionaries {
  position: relative;
  background: url('images/Jesus Picture.webp') center 20% / cover no-repeat fixed;
}

.missionaries__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(253, 246, 238, 0.88);
  pointer-events: none;
}

/* Section Header */
.missionaries__header {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 100px 40px 20px;
}

.missionaries__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--gold-dark);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.missionaries__subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--brown);
  letter-spacing: 0.5px;
}

/* Featured Testimony Cards */
.missionaries__testimonies {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.missionaries__testimony {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 40px;
  align-items: center;
  background: var(--white);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(107, 78, 50, 0.07);
  position: relative;
}

.missionaries__testimony:nth-child(even) {
  direction: rtl;
}

.missionaries__testimony:nth-child(even) > * {
  direction: ltr;
}

/* Arch-framed Photos */
.missionaries__photo-arch {
  width: 160px;
  height: 200px;
  border-radius: 80px 80px 8px 8px;
  overflow: hidden;
  border: 3px solid var(--gold);
  box-shadow: 0 6px 20px rgba(184, 147, 90, 0.2);
  flex-shrink: 0;
}

.missionaries__photo-arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Testimony Text */
.missionaries__testimony-body {
  position: relative;
  padding-top: 8px;
}

.missionaries__quote-mark {
  font-family: var(--font-script);
  font-size: 5.5rem;
  color: var(--gold);
  opacity: 0.12;
  position: absolute;
  top: -16px;
  left: -6px;
  line-height: 1;
  pointer-events: none;
}

.missionaries__quote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.85;
  color: var(--brown);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.missionaries__name {
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
}

/* Missionary Gallery */
.missionaries__gallery {
  position: relative;
  z-index: 1;
  padding: 20px 40px 80px;
  max-width: 1100px;
  margin: 0 auto;
}

.missionaries__gallery-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  color: var(--gold-dark);
  text-align: center;
  margin-bottom: 40px;
}

.missionaries__gallery-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.missionaries__gallery-item {
  text-align: center;
}

.missionaries__gallery-frame {
  aspect-ratio: 3 / 4;
  border-radius: 100px 100px 8px 8px;
  overflow: hidden;
  border: 3px solid var(--peach);
  box-shadow: 0 4px 16px rgba(107, 78, 50, 0.08);
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.missionaries__gallery-frame:hover {
  border-color: var(--gold);
  box-shadow: 0 8px 28px rgba(184, 147, 90, 0.18);
  transform: translateY(-4px);
}

.missionaries__gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.missionaries__gallery-name {
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--gold-dark);
  margin-top: 14px;
}

/* Decorative Divider */
.missionaries__divider {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-bottom: 60px;
}

.missionaries__divider-line {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.35;
}

/* Responsive */
@media (max-width: 900px) {
  .missionaries__header {
    padding: 70px 20px 10px;
  }

  .missionaries__testimonies {
    padding: 40px 20px 60px;
  }

  .missionaries__testimony {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 32px 24px;
    gap: 24px;
  }

  .missionaries__testimony:nth-child(even) {
    direction: ltr;
  }

  .missionaries__photo-arch {
    width: 130px;
    height: 165px;
    border-radius: 65px 65px 6px 6px;
    margin: 0 auto;
  }

  .missionaries__quote-mark {
    left: 50%;
    transform: translateX(-50%);
  }

  .missionaries__gallery-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .missionaries__gallery {
    padding: 20px 20px 60px;
  }
}

/* --- Newsletter --- */
.newsletter {
  background: var(--peach);
  padding: 100px 40px;
}

.newsletter__arch {
  max-width: 560px;
  margin: 0 auto;
  background: var(--cream);
  border-radius: 200px 200px 12px 12px;
  padding: 70px 48px 50px;
  box-shadow: 0 8px 40px rgba(107, 78, 50, 0.1);
  text-align: center;
}

.newsletter__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.newsletter__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--gold-dark);
}

.newsletter__subtitle {
  font-size: 0.9rem;
  color: var(--brown);
  opacity: 0.7;
  margin-bottom: 8px;
}

.newsletter__form {
  display: flex;
  width: 100%;
  max-width: 400px;
  gap: 0;
  border: 1.5px solid var(--gold);
  border-radius: 4px;
  overflow: hidden;
}

.newsletter__input {
  flex: 1;
  padding: 14px 18px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--brown);
  outline: none;
}

.newsletter__input::placeholder {
  color: var(--blush);
}

.newsletter__btn {
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 2px;
  padding: 14px 24px;
  background: var(--gold);
  color: var(--cream);
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.newsletter__btn:hover {
  background: var(--gold-dark);
}

.newsletter__note {
  font-size: 0.8rem;
  color: var(--brown);
  opacity: 0.5;
  margin-top: 8px;
}

.newsletter__note a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter__note a:hover {
  color: var(--gold-dark);
}

/* --- Footer --- */
.site-footer {
  background: var(--navy-deep);
  color: var(--peach);
  padding: 80px 40px 0;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
}

.footer__logo {
  height: 70px;
  width: auto;
  filter: brightness(0) invert(0.85) sepia(0.3) saturate(0.5) hue-rotate(10deg);
  margin-bottom: 16px;
}

.footer__tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 1rem;
  opacity: 0.85;
  line-height: 1.6;
}

.footer__heading {
  font-family: var(--font-sc);
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 20px;
}

.footer__link {
  display: block;
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 1px;
  color: var(--peach);
  opacity: 0.85;
  padding: 5px 0;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer__link:hover {
  color: var(--gold);
  opacity: 1;
}

.footer__social-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.footer__social-link {
  color: var(--peach);
  opacity: 0.85;
  transition: color 0.3s ease, opacity 0.3s ease;
}

.footer__social-link:hover {
  color: var(--gold);
  opacity: 1;
}

.footer__location {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer__bottom {
  border-top: 1px solid rgba(238, 205, 179, 0.15);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* --- Scroll to Top --- */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--cream);
  border-radius: 50% 50% 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(107, 78, 50, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
  z-index: 900;
}

.scroll-top.visible {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold-dark);
}

/* --- Cart Badge --- */
.nav-link--cart {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -10px;
  background: var(--rose);
  color: var(--white);
  font-family: var(--font-sc);
  font-size: 11px;
  font-weight: 600;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cart-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.cart-badge.bump {
  animation: cartBump 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 26, 46, 0.5);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--cream);
  z-index: 2001;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 40px rgba(15, 26, 46, 0.15);
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid rgba(184, 147, 90, 0.15);
}

.cart-drawer__title {
  font-family: var(--font-sc);
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
}

.cart-drawer__close {
  color: var(--brown);
  opacity: 0.5;
  transition: opacity 0.3s ease;
  padding: 4px;
}

.cart-drawer__close:hover {
  opacity: 1;
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 28px;
}

.cart-drawer__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  height: 200px;
  color: var(--brown);
  opacity: 0.5;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
}

/* Cart Item */
.cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid rgba(184, 147, 90, 0.1);
  animation: cartItemIn 0.35s ease-out;
}

.cart-item__img {
  width: 64px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--navy);
}

.cart-item__info {
  min-width: 0;
}

.cart-item__name {
  font-family: var(--font-sc);
  font-size: 0.85rem;
  letter-spacing: 1px;
  color: var(--gold-dark);
  margin-bottom: 2px;
}

.cart-item__variant {
  font-size: 0.75rem;
  color: var(--brown);
  opacity: 0.5;
  margin-bottom: 6px;
}

.cart-item__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--gold);
}

.cart-item__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(184, 147, 90, 0.25);
  border-radius: 4px;
  overflow: hidden;
}

.cart-item__qty button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--gold-dark);
  transition: background 0.2s ease;
}

.cart-item__qty button:hover {
  background: rgba(184, 147, 90, 0.1);
}

.cart-item__qty span {
  font-family: var(--font-sc);
  font-size: 14px;
  min-width: 20px;
  text-align: center;
}

.cart-item__remove {
  font-family: var(--font-sc);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--rose);
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.cart-item__remove:hover {
  opacity: 1;
}

/* Cart Footer */
.cart-drawer__footer {
  padding: 20px 28px 28px;
  border-top: 1px solid rgba(184, 147, 90, 0.15);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.cart-drawer__total span:first-child {
  font-family: var(--font-sc);
  font-size: 1rem;
  letter-spacing: 2px;
  color: var(--gold-dark);
}

.cart-drawer__total span:last-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--gold);
}

.cart-drawer__checkout {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--cream);
  font-family: var(--font-sc);
  font-size: 14px;
  letter-spacing: 2px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.cart-drawer__checkout:hover {
  background: var(--gold-dark);
}

.cart-drawer__note {
  text-align: center;
  font-size: 0.75rem;
  color: var(--brown);
  opacity: 0.4;
  margin-top: 10px;
}

/* Add-to-cart button feedback */
.product-card__btn.added {
  background: var(--gold);
  color: var(--cream);
  pointer-events: none;
}

/* ========================================
   Animations
   ======================================== */

@keyframes heroArchIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes starTwinkle {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes cartBump {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes cartItemIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Scroll-triggered animation classes */
.anim-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.anim-slide-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.anim-slide-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered delay support */
[data-delay="1"] { transition-delay: 0.12s; }
[data-delay="2"] { transition-delay: 0.24s; }
[data-delay="3"] { transition-delay: 0.36s; }
[data-delay="4"] { transition-delay: 0.48s; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero__bg {
    transform: none !important;
  }
  .anim-fade-up, .anim-slide-left {
    opacity: 1;
    transform: none;
  }
}

/* ========================================
   Responsive
   ======================================== */

/* Tablet */
@media (max-width: 1200px) {
  .collection__grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  /* Announcement bar mobile fix */
  .announcement-bar {
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 8px 16px;
  }

  .announcement-bar .star-icon {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu {
    display: block;
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo-img {
    height: 44px;
  }

  .site-header.scrolled .logo-img {
    height: 38px;
  }

  /* Hero */
  .hero {
    min-height: 580px;
    height: 90vh;
  }

  .hero__content {
    align-items: flex-start;
    padding-top: 12vh;
  }

  .hero__arch {
    padding: 44px 32px 40px;
    max-width: 340px;
    border-radius: 160px 160px 8px 8px;
  }

  .hero__logo {
    width: 140px;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .hero__star {
    display: none;
  }

  .hero__scroll-indicator {
    bottom: 70px;
    gap: 12px;
    z-index: 10;
  }

  .hero__scroll-text {
    font-size: 14px;
    letter-spacing: 4px;
    opacity: 1;
    color: var(--cream);
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
  }

  .hero__scroll-line {
    height: 56px;
    width: 2px;
    background: rgba(253, 246, 238, 0.3);
  }

  .hero__scroll-dot {
    width: 4px;
    height: 14px;
    background: var(--cream);
    box-shadow: 0 0 6px rgba(184, 147, 90, 0.5);
  }

  .hero__divider svg {
    height: 50px;
  }

  /* About */
  .about {
    padding: 60px 24px 80px;
  }

  .about__container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about__image-arch {
    max-width: 400px;
    margin: 0 auto;
  }

  .about__text-col {
    padding-top: 0;
    text-align: center;
  }

  .about__flower {
    margin: 0 auto 24px;
    display: block;
  }

  .about__divider {
    justify-content: center;
  }

  /* Collection */
  .collection {
    padding: 60px 20px 80px;
  }

  .collection__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
    gap: 28px;
  }

  .product-card {
    border-radius: 100px 100px 12px 12px;
  }

  .product-card__image-wrap {
    border-radius: 100px 100px 0 0;
  }

  /* Features */
  .features {
    padding: 80px 24px;
  }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Testimonials */
  .testimonials {
    padding: 60px 20px;
  }

  .testimonials__card {
    flex: 0 0 280px;
  }

  /* Newsletter */
  .newsletter {
    padding: 60px 20px;
  }

  .newsletter__arch {
    padding: 50px 28px 40px;
    border-radius: 140px 140px 12px 12px;
  }

  .newsletter__form {
    flex-direction: column;
    border: none;
    gap: 10px;
  }

  .newsletter__input {
    border: 1.5px solid var(--gold);
    border-radius: 4px;
    text-align: center;
  }

  .newsletter__btn {
    border-radius: 4px;
    padding: 14px;
  }

  /* Footer */
  .site-footer {
    padding: 60px 24px 0;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .footer__logo {
    margin: 0 auto 16px;
  }

  .footer__social-icons {
    justify-content: center;
  }

  .scroll-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* Small phones */
@media (max-width: 400px) {
  .hero__arch {
    padding: 36px 24px 32px;
    max-width: 300px;
    border-radius: 120px 120px 8px 8px;
  }

  .hero__logo {
    width: 120px;
  }

  .hero__tagline {
    font-size: 0.9rem;
  }

  .collection__grid {
    max-width: 100%;
  }
}

/* ==========================================
   Sold-out states (driven by /api/products)
   ========================================== */
.product-card__btn.sold-out,
.product-card__btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
  letter-spacing: 0.22em;
}
.product-card__variant.out-of-stock,
.product-card__variant[disabled] {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
  position: relative;
}
.product-card__variant.out-of-stock::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, transparent calc(50% - 1px), var(--gold) 50%, transparent calc(50% + 1px));
  pointer-events: none;
}
