/* ============================================================
   Infuzed platform.css — components added by the full platform
   (extends style.css design system)
   ============================================================ */

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--green-deep); color: #fff; padding: 10px 18px; z-index: 300; border-radius: 0 0 10px 0; }
.skip-link:focus { left: 0; }

/* header additions */
.header-icons { display: flex; align-items: center; gap: 16px; }
.icon-link { display: inline-flex; color: var(--green-deep); }
.icon-link svg { width: 21px; height: 21px; }
.icon-link:hover { color: var(--rosegold); }
.header-search input {
  border: 1px solid rgba(28,59,45,.16); border-radius: 999px; padding: 7px 14px;
  font-family: var(--font-body); font-size: .82rem; background: #fff; width: 120px; transition: width .3s;
}
.header-search input:focus { width: 170px; outline: none; border-color: var(--rosegold); }
@media (max-width: 900px) { .header-search { display: none; } }

.flash { text-align: center; padding: 11px 18px; font-size: .85rem; }
.flash-ok { background: var(--sage-soft); color: var(--green-deep); }
.flash-err { background: #f7e8e2; color: #8a4a35; }

/* product card extras */
.card-media { position: relative; }
.card-hover-img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; object-fit: cover; width: 100%; height: 100%; }
.product-card:hover .card-hover-img { opacity: 1; }
.card-badge.oos { color: #8a4a35; border-color: rgba(138,74,53,.3); }

/* PDP additions */
.stock-note { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.stock-note.in { color: var(--green); }
.stock-note.out { color: #b3684f; }
.variant-btn.oos { opacity: .45; cursor: not-allowed; }
.pdp-details { border-top: 1px solid rgba(28,59,45,.1); margin-top: 14px; padding: 12px 0 0; }
.pdp-details summary { cursor: pointer; font-family: var(--font-serif); font-size: 1.1rem; color: var(--green-deep); list-style: none; display: flex; justify-content: space-between; }
.pdp-details summary::-webkit-details-marker { display: none; }
.pdp-details summary::after { content: "+"; color: var(--rosegold); }
.pdp-details[open] summary::after { content: "−"; }
.pdp-details p { color: var(--ink-soft); font-size: .9rem; padding: 10px 0 4px; }
.wish-btn { background: none; border: 1px solid rgba(28,59,45,.18); border-radius: 999px; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--rosegold); transition: all .25s; }
.wish-btn:hover, .wish-btn.saved { background: var(--blush); border-color: var(--rosegold); }
.wish-btn svg { width: 20px; height: 20px; }

/* reviews */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px 28px; }
.review-card .stars { color: var(--rosegold); letter-spacing: .2em; margin-bottom: 10px; }
.review-card p { color: var(--ink-soft); font-size: .93rem; }
.review-card footer { margin-top: 12px; font-size: .8rem; color: var(--green-deep); }
.review-form { margin-top: 10px; }

/* journal */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.journal-card { display: block; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 0 0 22px; overflow: hidden; transition: transform .3s, box-shadow .3s; color: var(--charcoal); }
.journal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); color: var(--charcoal); }
.journal-media { aspect-ratio: 16/10; overflow: hidden; }
.journal-media img { width: 100%; height: 100%; object-fit: cover; }
.journal-card h3 { font-size: 1.25rem; margin: 14px 20px 6px; }
.journal-card p { font-size: .86rem; color: var(--ink-soft); margin: 0 20px; }
.journal-card .card-cat { margin: 14px 20px 0; }
.journal-more { display: inline-block; margin: 12px 20px 0; font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; color: var(--rosegold); }
.article-body { color: #4b4e46; line-height: 1.85; }
.article-body h2 { margin: 30px 0 12px; font-size: 1.5rem; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { margin: 0 0 16px 22px; }
.article-body a { text-decoration: underline; text-underline-offset: 3px; }

/* quiz */
.quiz-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 44px 40px; max-width: 620px; margin: 0 auto; }
.quiz-count { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); margin-bottom: 10px; }
.quiz-card h2 { font-size: 1.7rem; margin-bottom: 22px; }
.quiz-answers { display: grid; gap: 12px; }
.quiz-answer { text-align: left; background: var(--ivory); border: 1px solid rgba(28,59,45,.12); border-radius: 14px; padding: 15px 20px; font-family: var(--font-body); font-size: .95rem; cursor: pointer; transition: all .25s; color: var(--charcoal); }
.quiz-answer:hover { border-color: var(--rosegold); background: var(--blush); transform: translateX(4px); }

/* account */
.account-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 30px; }
.account-nav a { border: 1px solid rgba(28,59,45,.16); border-radius: 999px; padding: 8px 20px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--charcoal); }
.account-nav a.active, .account-nav a:hover { background: var(--green-deep); color: #f3efe6; border-color: var(--green-deep); }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .account-grid { grid-template-columns: 1fr; } }

/* shared cards */
.order-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 30px; text-align: left; }
.checkout-card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 30px; margin-top: 10px; }
.checkout-card h3 { font-size: 1.3rem; margin-bottom: 8px; }
.checkout-card .sub { font-size: .85rem; color: var(--ink-soft); margin-bottom: 18px; }
.check-line { display: block; font-size: .86rem; color: var(--ink-soft); margin-top: 10px; cursor: pointer; }
.check-line input { margin-right: 8px; accent-color: var(--rosegold); }

.coupon-form { display: flex; gap: 8px; margin-bottom: 16px; }
.coupon-form input { flex: 1; border: 1px solid rgba(28,59,45,.16); border-radius: 999px; padding: 9px 16px; font-family: var(--font-body); font-size: .85rem; }

.pay-error { display: none; background: #f7e8e2; color: #8a4a35; border-radius: 12px; padding: 14px 18px; font-size: .86rem; margin-top: 16px; }
.pay-error.show { display: block; }
.secure-line { display: flex; align-items: center; gap: 10px; justify-content: center; margin-top: 16px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }

/* status pills */
.status-pill { display: inline-block; border-radius: 999px; padding: 3px 12px; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; background: var(--concrete); color: var(--charcoal); }
.st-processing, .st-packed, .st-ready_to_ship { background: var(--sage-soft); color: var(--green-deep); }
.st-shipped, .st-collection_ready { background: #e8ecf5; color: #33487a; }
.st-delivered { background: var(--green-deep); color: #ece7da; }
.st-pending_payment, .st-payment_verification { background: var(--blush); color: #8a5a43; }
.st-cancelled, .st-refunded, .st-delivery_exception { background: #f2dcd3; color: #8a4a35; }

/* tracking timeline */
.trackline { list-style: none; margin: 0; padding: 0; }
.trackline li { position: relative; padding: 0 0 18px 26px; }
.trackline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 9px; height: 9px; border-radius: 999px; background: var(--rosegold); }
.trackline li::after { content: ""; position: absolute; left: 10px; top: 17px; bottom: -2px; width: 1px; background: rgba(28,59,45,.15); }
.trackline li:last-child::after { display: none; }
.trackline b { display: block; color: var(--green-deep); font-weight: 500; }
.trackline span { font-size: .8rem; color: var(--ink-soft); }

/* tables */
.table-wrap { overflow-x: auto; }
.rate-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-soft); }
.rate-table th, .rate-table td { padding: 15px 20px; text-align: left; font-size: .9rem; }
.rate-table th { background: var(--green-deep); color: #ece7da; font-family: var(--font-body); font-weight: 400; letter-spacing: .18em; text-transform: uppercase; font-size: .68rem; }
.rate-table tr + tr td { border-top: 1px solid rgba(28,59,45,.08); }

/* filters (shop) */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 44px; }
.filter-btn { border: 1px solid rgba(28,59,45,.2); background: #fff; border-radius: 999px; padding: 9px 22px; font-family: var(--font-body); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; transition: all .25s; color: var(--charcoal); }
.filter-btn:hover { border-color: var(--rosegold); color: var(--rosegold); }
.filter-btn.active { background: var(--green-deep); border-color: var(--green-deep); color: #f3efe6; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 44px; align-items: start; }
.contact-side { background: var(--green-deep); color: #cfc9ba; border-radius: var(--radius); padding: 40px 36px; }
.contact-side h3 { color: #f0ebe0; font-size: 1.5rem; margin-bottom: 16px; }
.contact-side p { font-size: .92rem; margin-bottom: 22px; }
.contact-side .item { margin-bottom: 18px; }
.contact-side .item b { display: block; color: var(--rosegold-2); font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; margin-bottom: 4px; }
.contact-side a { color: #ece7da; }
.contact-form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 40px 36px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* footer newsletter */
.footer-news { display: flex; gap: 8px; margin-top: 16px; max-width: 320px; }
.footer-news input { flex: 1; border: 1px solid rgba(233,226,212,.25); background: rgba(255,255,255,.06); border-radius: 999px; padding: 10px 16px; color: #ece7da; font-family: var(--font-body); font-size: .85rem; }
.footer-news input::placeholder { color: #8d8875; }
.footer-news .btn { padding: .7em 1.6em; font-size: .68rem; }

/* misc */
.leaf-list { list-style: none; }
.leaf-list li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.leaf-list li::before { content: "❧"; position: absolute; left: 0; color: var(--rosegold); }
.leaf-list b { color: var(--green-deep); font-weight: 500; }
.ritual-guide-item { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 34px 38px; margin-bottom: 20px; }
.ritual-guide-item h2 { font-size: 1.45rem; margin-bottom: 10px; }
.ritual-guide-item p { color: var(--ink-soft); }
.legal .article-body h2 { font-size: 1.35rem; margin: 30px 0 10px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* honeypot — invisible to humans, tempting to bots */
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; height: 1px; width: 1px; overflow: hidden; }

/* ritual quiz result — ranked matches with plain-language reasons */
.ritual-recap { text-align: center; margin-bottom: 34px; }
.ritual-recap-label { font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--sage); margin-bottom: 12px; }
.ritual-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ritual-chip { background: var(--white); border: 1px solid rgba(183,131,109,.35); color: var(--green-deep); border-radius: 999px; padding: 7px 16px; font-size: .82rem; }
.ritual-match { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-soft); padding: 26px 28px; margin: 0 auto 18px; max-width: 760px; }
.ritual-match.first { border: 1px solid rgba(183,131,109,.45); box-shadow: var(--shadow); }
.ritual-match-rank { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--rosegold); margin-bottom: 16px; }
.ritual-match-rank span { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--rosegold); border-radius: 999px; margin-right: 8px; font-size: .78rem; }
.ritual-match-body { display: grid; grid-template-columns: 170px 1fr; gap: 24px; align-items: start; }
.ritual-match-media img { width: 170px; height: 170px; object-fit: cover; border-radius: 14px; }
.ritual-match-info h3 { font-size: 1.5rem; margin-bottom: 2px; }
.ritual-match-info h3 a { color: var(--green-deep); }
.ritual-match-tagline { font-family: var(--font-script); color: var(--rosegold); font-size: 1.15rem; margin-bottom: 10px; }
.ritual-match-why { background: var(--blush); border-radius: 10px; padding: 10px 14px; font-size: .88rem; color: #7a5643; margin-bottom: 10px; }
.ritual-match-desc { color: var(--ink-soft); font-size: .9rem; margin-bottom: 14px; }
.ritual-match-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ritual-match-more { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 620px) {
  .ritual-match-body { grid-template-columns: 1fr; }
  .ritual-match-media img { width: 100%; height: 200px; }
}

/* ============ mobile navigation — full-screen overlay (fixes clipped menu) ============ */
@media (max-width: 720px) {
  /* backdrop-filter creates a containing block that traps fixed children — disable on mobile */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250,248,244,.97); }

  .site-nav {
    position: fixed; inset: 0; height: 100dvh; z-index: 200;
    background: linear-gradient(180deg, var(--ivory) 0%, var(--blush) 130%);
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; padding: calc(30px + env(safe-area-inset-top, 0)) 24px calc(30px + env(safe-area-inset-bottom, 0));
    transform: translateX(100%); transition: transform .38s cubic-bezier(.25,.7,.3,1);
    visibility: hidden;
  }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a {
    font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500;
    letter-spacing: .02em; text-transform: none; color: var(--green-deep);
    padding: 10px 0; opacity: 0; transform: translateY(14px);
  }
  .site-nav a::after { display: none; }
  .site-nav.open a { animation: navIn .45s cubic-bezier(.2,.65,.25,1) forwards; }
  .site-nav.open a:nth-child(1) { animation-delay: .08s; }
  .site-nav.open a:nth-child(2) { animation-delay: .14s; }
  .site-nav.open a:nth-child(3) { animation-delay: .20s; }
  .site-nav.open a:nth-child(4) { animation-delay: .26s; }
  .site-nav.open a:nth-child(5) { animation-delay: .32s; }
  .site-nav.open a:nth-child(6) { animation-delay: .38s; }
  .site-nav a.active { color: var(--rosegold); }
  /* decorative wordmark + helper row inside the overlay */
  .site-nav::before {
    content: ""; width: 120px; height: 44px; margin-bottom: 18px;
    background: url('/assets/brand/infuzed-wordmark-173F2B.svg') center/contain no-repeat;
    opacity: 0; animation: navIn .45s .02s forwards;
  }
  .site-nav::after {
    content: "Free delivery over R950 · Discreet, nationwide";
    margin-top: 26px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
    color: var(--rosegold); opacity: 0; animation: navIn .45s .46s forwards; text-align: center;
  }
  .nav-toggle { position: relative; z-index: 210; }   /* the ✕ stays tappable above the overlay */
  body.nav-open { overflow: hidden; }
}
@keyframes navIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .site-nav, .site-nav a, .site-nav::before, .site-nav::after { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
  .site-nav { visibility: hidden; }
  .site-nav.open { visibility: visible; }
}
