/* Components: announcement bar, header/mega-menu, drawers, footer,
   product cards, hero carousel, tiles, circle-text, verse band, accordions */

/* ---------- announcement bar ---------- */
.announce {
  background: var(--teal-700); color: var(--cream);
  font-size: 0.78rem; letter-spacing: 0.06em; text-align: center;
  padding: 0.45rem 1rem;
}
.announce .verse-ref { opacity: 0.8; font-style: italic; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(254, 247, 236, 0.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.site-logo { display: flex; align-items: center; gap: 0.6rem; }
.site-logo img { width: 62px; height: 62px; border-radius: 50%; }
.site-logo .logo-text { font-family: var(--font-head); font-size: 1.55rem; font-weight: 600; color: var(--charcoal); white-space: nowrap; }
.site-logo .logo-text em { font-family: var(--font-script); color: var(--mauve); font-size: 1.1em; font-style: normal; }

.main-nav { margin-inline: auto; }
.main-nav ul { display: flex; align-items: center; gap: 0.2rem; list-style: none; padding: 0; }
.main-nav a, .main-nav .nav-link {
  display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.6rem 0.85rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--charcoal); border: none; background: none;
}
.main-nav a:hover, .main-nav .nav-link:hover { color: var(--mauve-700); }
.main-nav a[aria-current="page"] { color: var(--mauve-700); box-shadow: inset 0 -2px 0 var(--gold); }

/* mega menu */
.has-mega { position: relative; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 720px; padding: 1.6rem 2rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
  display: none; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; z-index: 95;
}
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega { display: grid; }
.mega h4 { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal-700); font-family: var(--font-body); margin-bottom: 0.7rem; }
.mega ul { display: block; }
.mega li a { display: block; padding: 0.32rem 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 0.92rem; }
.mega .mega-all { margin-top: 0.5rem; font-weight: 600; color: var(--mauve-700); }

.header-actions { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.nav-toggle { display: none; }

/* ---------- drawers (mobile nav, mini cart, search) ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 120; display: none;
}
.drawer.open { display: block; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(58, 58, 58, 0.45); }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 92vw);
  background: var(--cream); box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden;
}
.drawer__panel--left { right: auto; left: 0; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: var(--step-1); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1.2rem; }
.drawer__foot { padding: 1rem 1.2rem; border-top: 1px solid var(--line); background: var(--surface); }

/* mobile nav accordions */
.mnav details { border-bottom: 1px solid var(--line); }
.mnav summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 0.2rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step--1); cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary svg { width: 18px; height: 18px; transition: transform 0.2s; }
.mnav details[open] summary svg { transform: rotate(180deg); }
.mnav .mnav-links a { display: block; padding: 0.45rem 0.4rem; color: var(--text); }
.mnav > a.mnav-top { display: block; padding: 0.9rem 0.2rem; border-bottom: 1px solid var(--line); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: var(--step--1); color: var(--charcoal); }

/* search overlay */
.search-overlay .drawer__panel { left: 0; right: 0; width: 100%; bottom: auto; max-height: 80vh; }
.search-field { display: flex; gap: 0.6rem; align-items: center; }
.search-field input { flex: 1; padding: 0.9rem 1.2rem; border: 2px solid var(--gold); border-radius: var(--radius-pill); font-size: 1.05rem; }
.search-results { margin-top: 1rem; }
.search-results ul.products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* ---------- footer ---------- */
.site-footer { background: var(--rose); color: var(--charcoal); position: relative; overflow: hidden; }
.site-footer::after {
  content: ""; position: absolute; top: -20px; right: -40px; width: 220px; height: 220px;
  background: url("/assets/svg/palm-leaf.svg") no-repeat; background-size: contain; opacity: 0.6;
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.2rem; padding: 3rem 0 2rem; position: relative; z-index: 1; }
.footer-grid h4 { font-size: var(--step--1); letter-spacing: 0.18em; text-transform: uppercase; font-family: var(--font-body); color: var(--charcoal); margin-bottom: 0.9rem; }
.footer-grid ul { list-style: none; padding: 0; }
.footer-grid li { margin-bottom: 0.5rem; }
.footer-grid a { color: var(--charcoal); }
.footer-grid a:hover { color: var(--mauve-700); }
.footer-about p { margin-bottom: 0.8rem; }
.footer-about .verse { font-family: var(--font-head); font-style: italic; color: var(--mauve-700); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: center; }
.footer-contact svg { width: 18px; height: 18px; flex: none; color: var(--teal-700); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.8rem;
  justify-content: space-between; align-items: center; font-size: var(--step--1);
  position: relative; z-index: 1;
}
.footer-bottom .made { display: inline-flex; align-items: center; gap: 0.35rem; }
.footer-bottom .made svg { width: 14px; height: 14px; color: var(--mauve-700); }

/* floating WhatsApp */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: var(--sage-700); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { background: var(--sage); color: #fff; }

/* ---------- product card (WooCommerce-compatible markup) ---------- */
ul.products {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1.6rem 1.2rem;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 45vw), 1fr));
}
li.product { position: relative; }
.product-card {
  display: flex; flex-direction: column; height: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.product-card__media { position: relative; aspect-ratio: 1; background: var(--offwhite); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.product-card__media .img-alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .img-alt, .product-card:focus-within .img-alt { opacity: 1; }
.wish-btn {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; border: none;
  background: rgba(255, 255, 255, 0.92); color: var(--mauve-700);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow);
}
.wish-btn svg { width: 20px; height: 20px; }
.wish-btn[aria-pressed="true"] { background: var(--mauve-700); color: #fff; }
.wish-btn[aria-pressed="true"] svg path { fill: currentColor; stroke: currentColor; }
.product-card__badges { position: absolute; top: 10px; left: 10px; z-index: 3; display: flex; flex-direction: column; gap: 0.35rem; align-items: flex-start; }
.product-card__body { padding: 0.9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.woocommerce-loop-product__title, .product-card__title {
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600; line-height: 1.25; color: var(--charcoal);
}
.product-card__title a { color: inherit; }
.product-card__tags { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--teal-700); text-transform: uppercase; }
.price, .price-on-request { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-soft); font-weight: 600; }
.product-card .add_to_cart_button { margin-top: auto; width: 100%; padding: 0.7rem 1rem; }

/* ---------- hero carousel ---------- */
.hero { position: relative; overflow: hidden; background: var(--rose); }
.hero__slide { position: relative; min-height: min(78vh, 640px); display: none; }
.hero__slide.active { display: block; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__img::after { content: ""; }
.hero__veil { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(254,247,236,0.85) 0%, rgba(254,247,236,0.4) 55%, rgba(254,247,236,0.05) 100%); }
.hero__content { position: relative; z-index: 2; padding: clamp(3rem, 8vw, 6rem) 0; max-width: 620px; }
.hero__swash { position: relative; padding: clamp(1.6rem, 4vw, 3rem) clamp(1.4rem, 4vw, 3rem); text-align: center; }
.hero__swash::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("/assets/svg/brush-swash.svg") center/100% 100% no-repeat;
}
.hero__script { font-family: var(--font-script); font-size: clamp(2.9rem, 6.6vw, 4.9rem); color: var(--mauve-700); line-height: 1.05; display: block; margin: 0; font-weight: 400; /* element is an h1 on slide 1 */ }
.hero__sub { font-size: var(--step--1); letter-spacing: 0.3em; text-transform: uppercase; color: var(--charcoal); font-weight: 600; margin: 0.8rem 0 1.6rem; }
.hero__nav { position: absolute; z-index: 3; bottom: 1.2rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.6rem; }
.hero__dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--charcoal); background: transparent; padding: 0; }
.hero__dot.active { background: var(--charcoal); }
.hero__arrow {
  position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,0.85); color: var(--charcoal); box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center;
}
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow--prev { left: 1rem; }
.hero__arrow--next { right: 1rem; }
.hero__palm { position: absolute; top: 0; right: 0; width: clamp(140px, 22vw, 300px); z-index: 1; pointer-events: none; }

/* ---------- circular category tiles (home: recipients & occasions) ---------- */
.circle-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.2rem 1.8rem; padding: 1rem 0.3rem 1.6rem; }
.circle-item { flex: 0 0 auto; width: clamp(140px, 16vw, 176px); text-align: center; text-decoration: none; }
.circle-item .circle-img { width: 100%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 3px solid var(--gold); box-shadow: var(--shadow); }
.circle-item .circle-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.circle-item:hover .circle-img img { transform: scale(1.06); }
.circle-item .circle-label {
  display: block; margin-top: 0.85rem;
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600;
  color: var(--charcoal); transition: color 0.3s ease;
}
.circle-item:hover .circle-label { color: var(--mauve-700); }

/* ---------- promo tiles ---------- */
.promo-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.promo-tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: var(--shadow); }
.promo-tile img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo-tile .tile-veil { position: absolute; inset: 0; background: rgba(58,58,58,0.28); }
.promo-tile .tile-body { position: relative; z-index: 2; padding: 1.5rem; color: #fff; }
.promo-tile .tile-script { font-family: var(--font-script); font-size: clamp(2.2rem, 4.4vw, 3.3rem); color: #fff; display: block; }
.promo-tile .tile-sub { letter-spacing: 0.24em; text-transform: uppercase; font-size: var(--step--1); font-weight: 600; }
.promo-tile--rose { background: var(--rose); }
.promo-tile--rose .tile-script { color: var(--mauve-700); }
.promo-tile--rose .tile-sub { color: var(--charcoal); }
.promo-tile .btn { margin-top: 1rem; }

/* ---------- occasion tiles ---------- */
.occasion-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1.6rem 1rem; }
.occasion-tile { display: flex; flex-direction: column; text-decoration: none; }
.occasion-tile img {
  display: block; width: 100%; aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 3px solid var(--gold); box-shadow: var(--shadow);
  transition: transform 0.45s ease, box-shadow 0.45s ease;
}
.occasion-tile:hover img { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(58, 58, 58, 0.16); }
.occasion-tile .occasion-label {
  display: block; margin-top: 0.85rem; text-align: center;
  font-family: var(--font-head); font-size: 1.12rem; font-weight: 600;
  color: var(--charcoal); transition: color 0.3s ease;
}
.occasion-tile:hover .occasion-label { color: var(--mauve-700); }

/* ---------- verse band ---------- */
.verse-band { text-align: center; }
.verse-band blockquote {
  font-family: var(--font-head); font-style: italic; font-weight: 500;
  font-size: clamp(1.4rem, 3vw, 2rem); color: var(--charcoal); max-width: 44rem; margin: 0 auto;
}
.verse-band cite { display: block; font-style: normal; font-size: var(--step--1); letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal-700); margin-top: 0.9rem; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; counter-reset: step; }
.step { text-align: center; padding: 1.8rem 1.4rem; }
.step .step-icon {
  width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--salmon); color: var(--mauve-700);
  display: flex; align-items: center; justify-content: center; position: relative;
}
.step .step-icon svg { width: 32px; height: 32px; }
.step .step-icon::after {
  counter-increment: step; content: counter(step);
  position: absolute; top: -6px; right: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--charcoal); color: var(--cream); font-size: 0.8rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 1.2rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.4rem 0.2rem 1.2rem; scrollbar-width: thin; }
.carousel__track > * { flex: 0 0 clamp(220px, 24vw, 280px); scroll-snap-align: start; }
.carousel__btn {
  position: absolute; top: 40%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: var(--surface); box-shadow: var(--shadow); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center;
}
.carousel__btn svg { width: 18px; height: 18px; }
.carousel__btn--prev { left: -0.4rem; }
.carousel__btn--next { right: -0.4rem; }

/* ---------- accordions ---------- */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: 1rem 0.2rem; font-family: var(--font-head); font-size: 1.15rem; font-weight: 600;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { width: 18px; height: 18px; transition: transform 0.2s; flex: none; }
.accordion details[open] summary svg { transform: rotate(45deg); }
.accordion .accordion-body { padding: 0 0.2rem 1.2rem; color: var(--text-soft); }
.accordion .accordion-body p { margin: 0 0 0.8em; }
.accordion .accordion-body .desc-list { list-style: disc; padding-left: 1.3em; margin: 0 0 0.8em; }
.accordion .accordion-body .desc-list li { margin: 0.15em 0; }

/* ---------- breadcrumbs ---------- */
.woocommerce-breadcrumb { font-size: var(--step--1); color: var(--text-soft); margin-bottom: 1rem; }
.woocommerce-breadcrumb a { color: var(--teal-700); }

/* ---------- mini cart ---------- */
.mini-cart__item { display: flex; gap: 0.9rem; padding: 0.9rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-cart__item img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex: none; }
.mini-cart__item .mc-name { font-family: var(--font-head); font-weight: 600; font-size: 1rem; line-height: 1.25; }
.mini-cart__item .mc-qty { font-size: var(--step--1); color: var(--text-soft); }
.mini-cart__empty { text-align: center; padding: 2.5rem 1rem; color: var(--text-soft); }
.mini-cart__empty svg { width: 44px; height: 44px; margin: 0 auto 0.8rem; color: var(--gold); }

/* ---------- tag chips ---------- */
.chip {
  display: inline-block; padding: 0.3rem 0.85rem; border-radius: var(--radius-pill);
  border: 1.5px solid var(--gold); background: transparent; color: var(--charcoal);
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.chip:hover { background: var(--gold); color: var(--charcoal); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 5.4rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--charcoal); color: var(--cream); padding: 0.8rem 1.4rem; border-radius: var(--radius-pill);
  font-size: var(--step--1); z-index: 140; opacity: 0; transition: opacity 0.25s, transform 0.25s;
  pointer-events: none; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- simple dialog (copy-link fallback) ---------- */
.hgmodal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 1rem; }
.hgmodal__scrim { position: absolute; inset: 0; background: rgba(58, 58, 58, 0.45); }
.hgmodal__card {
  position: relative; width: min(26rem, 100%); padding: 1.6rem;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.hgmodal__title { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; margin-bottom: 1rem; }
.hgmodal__input {
  width: 100%; padding: 0.6rem 0.8rem; font: inherit;
  background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
}
.hgmodal__actions { display: flex; gap: 0.6rem; justify-content: flex-end; margin-top: 1.1rem; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .promo-tiles { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .main-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .mega { min-width: 0; }
  .site-logo .logo-text { font-size: 1.3rem; }
  .site-logo img { width: 52px; height: 52px; }
}
@media (max-width: 560px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 1rem 0.7rem; }
  .product-card__body { padding: 0.7rem 0.75rem 0.9rem; }
  .product-card__title { font-size: 0.98rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.6rem; }
}
