/* =========================================================
   Zanura theme layer – built on YouCan Origins
   Brand: --zn-brand (purple)  Accent: --zn-accent (yellow)
   ========================================================= */

:root {
  --zn-ink: #1a1033;
  --zn-muted: #6b6480;
  --zn-soft: #f6f3ff;
  --zn-line: #ece8f6;
  --zn-success: #12a150;
  --zn-sale: #ff5a1f;
  --zn-shadow: 0 1px 2px rgba(26, 16, 51, 0.04), 0 8px 24px rgba(26, 16, 51, 0.06);
  --zn-shadow-hover: 0 2px 4px rgba(26, 16, 51, 0.06), 0 14px 34px rgba(59, 15, 160, 0.14);
}

body {
  color: var(--zn-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3 {
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
button.primary,
.yc-btn.primary {
  background: var(--zn-brand) !important;
  border-color: var(--zn-brand) !important;
  color: #fff !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 18px rgba(var(--zn-brand-rgb), 0.28);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
button.primary:hover,
.yc-btn.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(var(--zn-brand-rgb), 0.34);
}
button.primary:active,
.yc-btn.primary:active {
  transform: translateY(0);
}

/* ---------- Announcement bar ---------- */
.announcement-bar,
yc-announcement-bar,
[class*="announcement"] {
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ---------- Section heads ---------- */
yc-section-head h2 {
  font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3.2rem);
  font-weight: 700;
  position: relative;
}
yc-section-head[data-position="center"] h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  border-radius: 4px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, var(--zn-brand), var(--zn-accent));
}
yc-section-head p {
  color: var(--zn-muted);
}

/* ---------- Slideshow ---------- */
yc-slider .slider-inner img {
  border-radius: 0;
}
yc-slider .yc-btn {
  background: var(--zn-accent) !important;
  color: var(--zn-ink) !important;
  border: none !important;
  font-weight: 700;
  padding: 14px 30px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

/* ---------- Product cards ---------- */
.product-card {
  background: #fff;
  border: 1px solid var(--zn-line);
  box-shadow: var(--zn-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--zn-shadow-hover);
}
.product-card .img-link {
  display: block;
  background: var(--zn-soft);
}
.product-card .img-link img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0 !important;
  transition: transform 0.5s ease;
}
.product-card:hover .img-link img {
  transform: scale(1.05);
}
.product-card .badge {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 999px !important;
  padding: 0.35em 0.9em;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.product-card .badge.zn-sale {
  background: var(--zn-sale);
  color: #fff;
}
.product-card .info {
  padding: 1em 1em 1.1em;
  gap: 6px;
  flex: 1;
  align-content: start;
  border-radius: 0 !important;
}
.product-card .info .title {
  white-space: normal !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-weight: 600;
  font-size: 1.45rem;
  line-height: 1.35;
  min-height: 2.7em;
}
.product-card .info .price .current {
  color: var(--zn-brand);
  font-weight: 700;
  font-size: 1.75rem;
}
.product-card .info .price .compare-at {
  color: var(--zn-muted);
  font-size: 1.3rem;
}
.zn-card-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--zn-success);
  margin: 0;
}
.product-card .info .yc-btn.secondary,
.product-card .info button.secondary {
  background: var(--zn-brand) !important;
  color: #fff !important;
  border-color: var(--zn-brand) !important;
  font-weight: 600;
  margin-block-start: auto;
}
.product-card .info .yc-btn.secondary:hover,
.product-card .info button.secondary:hover {
  filter: brightness(1.1);
}

/* ---------- Single product ---------- */
.single-product yc-product-media .main-image img {
  border-radius: 18px;
  background: var(--zn-soft);
}
.single-product yc-product-info {
  gap: 14px;
}
.single-product .product-title,
.single-product yc-product-info h1 {
  font-size: clamp(2.2rem, 1.8rem + 1vw, 2.9rem);
  font-weight: 700;
  line-height: 1.25;
}
.single-product .price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.single-product .price .current {
  color: var(--zn-brand);
  font-weight: 800;
}
.single-product .price .compare-at {
  color: var(--zn-muted);
  text-decoration: line-through;
  font-weight: 500;
}

/* Express checkout form */
.buy-button .express-checkout {
  border: 2px solid rgba(var(--zn-brand-rgb), 0.18) !important;
  border-radius: 18px !important;
  background: #fff;
  box-shadow: 0 10px 30px rgba(var(--zn-brand-rgb), 0.08);
  overflow: hidden;
}
.buy-button .express-checkout .header {
  background: linear-gradient(135deg, var(--zn-brand), #6a2de0) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.55rem !important;
  text-align: center;
  border: none !important;
}
.buy-button .express-checkout .fields::before {
  background: var(--zn-soft) !important;
  color: var(--zn-brand) !important;
  font-weight: 600;
}
.buy-button .express-checkout .field input,
.buy-button .express-checkout .field textarea,
.buy-button .express-checkout yc-combobox-trigger {
  border-radius: 12px !important;
  border: 1.5px solid var(--zn-line) !important;
  background: #fbfaff;
  font-size: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.buy-button .express-checkout .field input:focus,
.buy-button .express-checkout .field textarea:focus {
  border-color: var(--zn-brand) !important;
  box-shadow: 0 0 0 4px rgba(var(--zn-brand-rgb), 0.12);
  outline: none;
}
.buy-button .place-order button.primary,
.buy-button button[type="submit"].primary {
  font-size: 1.65rem;
  padding: 16px 20px;
  animation: zn-pulse 2.4s ease-in-out infinite;
}
@keyframes zn-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(var(--zn-brand-rgb), 0.28); }
  50% { box-shadow: 0 6px 18px rgba(var(--zn-brand-rgb), 0.28), 0 0 0 8px rgba(var(--zn-brand-rgb), 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .buy-button .place-order button.primary,
  .buy-button button[type="submit"].primary { animation: none; }
}

/* Trust row on product page */
.zn-ptrust {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.zn-ptrust li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--zn-soft);
  color: var(--zn-ink);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}
.zn-ptrust li svg {
  flex: none;
  color: var(--zn-brand);
}
.zn-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px dashed rgba(18, 161, 80, 0.45);
  background: #effaf3;
  color: #0b6b35;
  font-size: 1.35rem;
  font-weight: 600;
}
.zn-note svg {
  flex: none;
}

/* ---------- Trust badges section ---------- */
.zn-trust__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-block-start: 24px;
}
.zn-trust__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--zn-line);
  box-shadow: var(--zn-shadow);
}
.zn-trust__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--zn-icon-bg, var(--zn-brand));
  color: var(--zn-icon-fg, #fff);
}
.zn-trust__title {
  margin: 0;
  font-weight: 700;
  font-size: 1.5rem;
}
.zn-trust__text {
  margin: 2px 0 0;
  font-size: 1.3rem;
  color: var(--zn-muted);
  line-height: 1.4;
}

/* ---------- How it works ---------- */
.zn-steps__list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  counter-reset: zn;
}
.zn-steps__item {
  position: relative;
  text-align: center;
  padding: 28px 20px 24px;
  border-radius: 20px;
  background: var(--zn-soft);
}
.zn-steps__num {
  position: absolute;
  top: 14px;
  inset-inline-start: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--zn-accent);
  color: var(--zn-ink);
}
.zn-steps__icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  color: var(--zn-brand);
  box-shadow: var(--zn-shadow);
  margin-block-end: 12px;
}
.zn-steps__title {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 1.6rem;
}
.zn-steps__text {
  margin: 0;
  color: var(--zn-muted);
  font-size: 1.35rem;
  line-height: 1.45;
}
.zn-steps__cta {
  display: flex;
  justify-content: center;
  margin-block-start: 26px;
}
.zn-steps__cta .yc-btn {
  min-width: 220px;
  padding: 15px 30px;
}

/* ---------- FAQ ---------- */
.zn-faq__list {
  max-width: 760px;
  margin: 24px auto 0;
  display: grid;
  gap: 10px;
}
.zn-faq__item {
  border: 1px solid var(--zn-line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.zn-faq__item[open] {
  border-color: rgba(var(--zn-brand-rgb), 0.35);
  box-shadow: var(--zn-shadow);
}
.zn-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 1.5rem;
}
.zn-faq__item summary::-webkit-details-marker { display: none; }
.zn-faq__plus {
  flex: none;
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--zn-soft);
}
.zn-faq__plus::before,
.zn-faq__plus::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 2px;
  background: var(--zn-brand);
  translate: -50% -50%;
  transition: rotate 0.2s ease;
}
.zn-faq__plus::after { rotate: 90deg; }
.zn-faq__item[open] .zn-faq__plus::after { rotate: 0deg; }
.zn-faq__answer {
  padding: 0 18px 16px;
  color: var(--zn-muted);
  font-size: 1.4rem;
  line-height: 1.6;
}

/* ---------- WhatsApp floating button ---------- */
.zn-wa {
  position: fixed;
  z-index: 50;
  inset-inline-end: 16px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.4);
  transition: transform 0.2s ease;
}
.zn-wa:hover { transform: scale(1.05); }
.zn-wa span { padding-inline-end: 6px; }
@media (max-width: 768px) {
  .zn-wa { bottom: 86px; padding: 11px; }
  .zn-wa span { display: none; }
  .zn-ptrust li { font-size: 1.2rem; padding: 9px 10px; }
  .product-card .info { padding: 0.8em 0.8em 0.9em; }
  .product-card .info .title { font-size: 1.3rem; }
  .product-card .info .price .current { font-size: 1.55rem; }
  .product-card .info .yc-btn.secondary { padding: 10px 8px; font-size: 1.3rem; }
  .zn-trust__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .zn-trust__item { flex-direction: column; text-align: center; padding: 14px 10px; gap: 8px; }
  .zn-trust__icon { width: 44px; height: 44px; }
  .zn-trust__title { font-size: 1.35rem; }
  .zn-trust__text { font-size: 1.2rem; }
}

/* ---------- Footer ---------- */
footer, .footer, yc-footer {
  border-top: 1px solid var(--zn-line);
}

/* ---------- Hero (Zanura) ---------- */
.zn-hero { position: relative; }
.zn-hero__media { display: block; line-height: 0; }
.zn-hero__media img { width: 100%; height: auto; display: block; aspect-ratio: 1376 / 768; object-fit: cover; }
.zn-hero:not([data-full]) { padding: 16px 10% 0; }
.zn-hero:not([data-full]) .zn-hero__media img { border-radius: 22px; }
.zn-hero__fallback {
  padding: 64px 10%;
  text-align: center;
  color: #fff;
  background: radial-gradient(1200px 400px at 80% 0%, rgba(255,197,49,.25), transparent 60%), linear-gradient(135deg, var(--zn-brand), #6a2de0);
  display: grid; gap: 14px; justify-items: center;
}
.zn-hero__title { margin: 0; font-size: clamp(2.8rem, 2rem + 3vw, 5rem); font-weight: 800; line-height: 1.1; }
.zn-hero__sub { margin: 0; font-size: 1.7rem; opacity: .9; max-width: 560px; }
.zn-hero__fallback .yc-btn { background: var(--zn-accent) !important; color: var(--zn-ink) !important; border: none !important; }
.zn-hero__chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  padding: 14px 16px; background: #fff; border-bottom: 1px solid var(--zn-line);
}
.zn-hero__chips span {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--zn-soft); color: var(--zn-ink);
  font-weight: 600; font-size: 1.3rem;
}
.zn-hero__chips svg { color: var(--zn-brand); }
@media (max-width: 640px) {
  .zn-hero__chips { gap: 6px; padding: 10px 8px; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .zn-hero__chips span { white-space: nowrap; font-size: 1.15rem; padding: 7px 11px; }
}

/* ---------- Fixes v1.0.1 ---------- */
.single-product yc-product-info > p.h2,
.single-product yc-product-info > .h2:first-child {
  font-weight: 700;
  font-size: clamp(2.2rem, 1.8rem + 1vw, 2.9rem);
  line-height: 1.25;
}
.single-product .buy-button .express-checkout .fields {
  grid-template-columns: 1fr !important;
}
.single-product .buy-button .express-checkout .field,
.single-product .buy-button .express-checkout yc-phone-validation {
  grid-column: 1 / -1;
}
.single-product .description {
  border-top: 1px solid var(--zn-line);
  padding-top: 18px;
  margin-top: 6px;
}

/* ---------- v1.2: no quantity selector (offers handle quantity) ---------- */
.buy-button .place-order,
.buy-button .actions[data-sticky] {
  display: flex;
}
.buy-button .place-order button[type="submit"],
.buy-button .actions[data-sticky] button.primary {
  flex: 1;
  width: 100%;
}
.buy-button yc-quantity-control { display: none !important; }

/* =========================================================
   v1.3 – MOBILE FIRST (most orders come from phones)
   ========================================================= */

/* Sticky order bar (product page, mobile only) */
.zn-sticky-cta { display: none; }
@media (max-width: 990px) {
  .zn-sticky-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    position: fixed;
    z-index: 40;
    left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid var(--zn-line);
    box-shadow: 0 -8px 24px rgba(26, 16, 51, 0.08);
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }
  .zn-sticky-cta.is-visible { transform: translateY(0); }
  .zn-sticky-cta__price { display: grid; line-height: 1.2; min-width: 0; }
  .zn-sticky-cta__price strong { color: var(--zn-brand); font-size: 1.8rem; font-weight: 800; white-space: nowrap; }
  .zn-sticky-cta__label { font-size: 1.15rem; font-weight: 600; color: var(--zn-success); white-space: nowrap; }
  .zn-sticky-cta button.primary { flex: 1; min-height: 50px; font-size: 1.6rem; border-radius: 12px; }
  .zn-wa { bottom: 84px; }
}

@media (max-width: 768px) {
  /* Inputs: 16px stops iPhone auto-zoom; bigger touch targets */
  .buy-button .express-checkout .field input,
  .buy-button .express-checkout .field textarea,
  .buy-button .express-checkout yc-combobox-trigger,
  .buy-button .express-checkout select {
    font-size: 16px !important;
    min-height: 50px;
  }
  .buy-button .express-checkout .field label { font-size: 1.35rem; font-weight: 600; color: var(--zn-ink); }
  .buy-button .express-checkout .header { font-size: 1.6rem !important; padding: 14px 12px !important; }
  .buy-button .express-checkout .fields { padding: 3.2em 14px 16px !important; gap: 12px !important; }
  .buy-button .place-order { padding: 0 !important; margin-top: 12px; position: static !important; }
  .buy-button .place-order button[type="submit"] { min-height: 56px; font-size: 1.7rem; border-radius: 14px; }

  /* Inline form: no inner scroll box */
  .single-product yc-product-info .buy-button { margin-block: 0.5em !important; }
  .single-product yc-product-info .buy-button .buy-area { max-height: none !important; overflow: visible !important; }
  .single-product yc-product-info .buy-button .express-checkout .header { position: static !important; }
  .zn-order-anchor { scroll-margin-top: 80px; }

  /* Product page rhythm */
  .single-product { gap: 14px !important; }
  .single-product yc-product-info { gap: 12px; }
  .single-product yc-product-info > p.h2 { font-size: 2rem !important; line-height: 1.3; }
  .single-product .price .current { font-size: 2.6rem; }
  .single-product yc-product-media .main-image img { border-radius: 14px; }
  .zn-note { font-size: 1.3rem; padding: 10px 12px; }

  /* Offers (Buy 1 / Buy 2 …) as big tappable cards */
  yc-variant[name="radio"] { display: grid !important; gap: 8px !important; }
  yc-variant[name="radio"] .radio-item {
    display: flex !important;
    align-items: center;
    gap: 10px !important;
    padding: 14px 14px;
    border: 1.5px solid var(--zn-line);
    border-radius: 12px;
    background: #fff;
    font-size: 1.5rem !important;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
  }
  yc-variant[name="radio"] .radio-item:has(input:checked) {
    border-color: var(--zn-brand);
    background: var(--zn-soft);
    box-shadow: 0 0 0 3px rgba(var(--zn-brand-rgb), 0.12);
  }
  yc-variant[name="radio"] .radio-item input[type="radio"] { width: 20px; height: 20px; flex: none; color: var(--zn-brand); }

  /* Header: compact */
  yc-section-head h2 { font-size: 2.2rem; }
  .notice-bar { font-size: 12px !important; padding: 6px 8px !important; line-height: 1.35; }

  /* Home: product grid 2 columns, compact cards */
  .items-grid { gap: 10px !important; }
  .product-card { border-radius: 14px; }
  .product-card .badge { font-size: 1rem; padding: 0.3em 0.7em; inset-block-start: 8px !important; inset-inline-start: 8px !important; }
  .product-card .info .yc-btn.secondary { min-height: 42px; }
  .zn-card-note { font-size: 1.1rem; }
  .zn-steps__list { gap: 10px; }
  .zn-steps__item { padding: 22px 14px 18px; text-align: start; display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; align-items: center; }
  .zn-steps__icon { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .zn-steps__icon svg { width: 24px; height: 24px; }
  .zn-steps__num { top: 8px; inset-inline-start: 8px; width: 22px; height: 22px; font-size: 1.1rem; }
  .zn-steps__title { font-size: 1.5rem; }
  .zn-steps__text { font-size: 1.3rem; }
  .zn-faq__item summary { font-size: 1.45rem; padding: 14px; }
  yc-section { padding-inline: 14px !important; }
}

/* Small phones */
@media (max-width: 380px) {
  .zn-sticky-cta__label { display: none; }
  .product-card .info .title { font-size: 1.2rem; }
}
@media (max-width: 768px) {
  .single-product yc-product-info .buy-button .express-checkout .header { z-index: auto !important; }
}
