/* ============ ELVY-A — WordPress structure, inner pages ============ */

/* Accessibility helpers */
.screen-reader-text { position: absolute !important; 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: 12px; top: -60px; z-index: 1000; background: var(--green-900); color: var(--cream); padding: 10px 16px; border-radius: 10px; transition: top .3s; }
.skip-link:focus { top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }

/* Header bits from WordPress menus */
.brand__mark--img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; background: none; mix-blend-mode: normal; }
.nav__links li { position: relative; }
.nav__links .current-menu-item > a::after, .nav__links .current-product_cat-ancestor > a::after { transform: scaleX(1); }
.nav__links .sub-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; list-style: none; margin: 10px 0 0; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3), inset 0 0 0 1px var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .3s var(--ease); z-index: 60; }
.nav__links li:hover > .sub-menu, .nav__links li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav__links .sub-menu a { display: block; padding: 9px 12px; text-transform: none; letter-spacing: 0; font-size: 14px; border-radius: 10px; }
.nav__links .sub-menu a::after { display: none; }
.nav__links .sub-menu a:hover { background: var(--cream-2); }
.icon-btn--account { display: grid; }
@media (max-width: 900px) {
  .nav__links .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; margin: 0; background: none; }
  .icon-btn--account { display: none; }
}

/* Search panel */
.search-panel { position: fixed; inset: 0 0 auto; z-index: 70; background: var(--cream); padding: 26px 0; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); transform: translateY(-100%); transition: transform .5s var(--ease); }
.search-panel.on { transform: none; }
.search-panel .container { display: flex; gap: 14px; align-items: center; }
.search-form { flex: 1; display: flex; align-items: center; gap: 12px; padding: 6px 6px 6px 18px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.search-form svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }
.search-form input[type=search] { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: 500 16px var(--sans); color: var(--ink); height: 44px; }

/* Drawer body (fragment) */
.elvya-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.drawer__foot .btn--ghost { height: 44px; }
.drawer__foot .row span:last-child { font-weight: 700; }
.line-item__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.line-item h4 a { color: inherit; }
.line-item.is-loading { opacity: .4; }
.drawer .ship-meter p { margin: 0 0 8px; font-size: 13px; font-weight: 600; }
.ship-meter .amount { font-weight: 800; }
.modal__info .m-price del { color: var(--muted); font-size: 16px; font-weight: 500; margin-right: 6px; }
.modal__info .m-price ins { text-decoration: none; }
.m-full { display: inline-block; margin-top: 16px; }
.modal [hidden] { display: none !important; }

/* Front page extras */
.shop__more { text-align: center; margin-top: 44px; }
.reviews__track.is-static { animation: none; justify-content: center; width: auto; flex-wrap: wrap; padding-inline: 24px; }
.reviews__dup { display: contents; }
.news > div:last-child { position: relative; }
.news__shortcode input[type=email], .news__shortcode input[type=text] { border-radius: 100px; height: 52px; padding: 0 18px; border: 0; }
.form-status { margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.form-status--success { background: rgba(59,117,82,.12); color: var(--green-700); }
.form-status--error { background: rgba(192,57,43,.1); color: #a5281b; }
.news .form-status--success { background: rgba(227,196,125,.18); color: var(--gold-3); }
.craft__card--a img, .craft__card--b img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Generic page hero + content ---------- */
.page-hero { padding: 70px 0 40px; text-align: center; background: linear-gradient(180deg, var(--cream), var(--cream-2)); }
.page-hero .eyebrow { justify-content: center; }
.page-hero .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); }
.page-hero__title { font-size: clamp(44px, 6vw, 84px); font-weight: 500; letter-spacing: -.02em; }
.page-hero__title em { color: var(--green-700); }
.page-hero__intro { max-width: 620px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.page-content { padding: 50px 0 90px; max-width: 820px; }
.page-content__media { margin: 0 0 36px; border-radius: 22px; overflow: hidden; }
.prose { color: #3d4a41; font-size: 16.5px; line-height: 1.8; }
.prose h2, .prose h3 { color: var(--ink); margin: 1.6em 0 .5em; }
.prose h2 { font-size: 36px; } .prose h3 { font-size: 28px; }
.prose a { color: var(--green-800); border-bottom: 1px solid var(--gold); }
.prose img { border-radius: 16px; height: auto; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font-family: var(--serif); font-size: 24px; color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.wp-block-button__link { background: var(--green-800); color: var(--cream); border-radius: 100px; padding: 14px 28px; font-weight: 700; }

/* Posts / search */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 24px; padding: 50px 0 30px; }
.post-card__media { display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; background: var(--cream-2); margin-bottom: 16px; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card h2 { font-size: 28px; margin: 4px 0 8px; }
.post-card p:not(.eyebrow) { color: var(--muted); margin: 0; }
.pagination { padding-bottom: 80px; text-align: center; }
.pagination .nav-links { display: inline-flex; gap: 8px; }
.pagination .page-numbers { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; }
.pagination .page-numbers.current { background: var(--green-800); color: var(--cream); }
.empty-state { padding: 40px 0 90px; max-width: 600px; margin: auto; text-align: center; }
.comments { margin-top: 60px; }
.comment-list { list-style: none; padding: 0; }
.comment-respond input:not([type=submit]):not([type=checkbox]), .comment-respond textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 500 15px var(--sans); }
.comment-respond .submit { background: var(--green-800); color: var(--cream); border: 0; border-radius: 100px; height: 50px; padding: 0 26px; font-weight: 700; cursor: pointer; }

/* 404 */
.notfound { text-align: center; padding: 90px 0 110px; max-width: 640px; }
.notfound__num { font-family: var(--serif); font-size: clamp(110px, 18vw, 200px); line-height: .9; margin: 0; color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.notfound h1 { font-size: clamp(36px, 4.5vw, 56px); font-weight: 500; margin: 10px 0 14px; }
.notfound h1 em { color: var(--green-700); }
.notfound p { color: var(--muted); }
.notfound .search-form { margin: 26px 0 22px; }

/* ---------- About ---------- */
.about-hero { padding: 64px 0 30px; }
.about-hero__grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: end; margin-bottom: 44px; }
.about-hero .page-hero__title { text-align: left; }
.about-hero__intro { color: var(--muted); font-size: 17.5px; line-height: 1.75; margin: 0; }
.about-hero__media { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 21 / 8; box-shadow: var(--shadow); }
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story { padding: 70px 0; }
.about-story__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 70px; align-items: center; }
.about-story__media { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 4.4; }
.about-story__media img { width: 100%; height: 100%; object-fit: cover; }
.about-story__copy h2 { margin-bottom: 20px; }
.signature { font-family: var(--script); font-size: 38px; color: var(--gold); margin: 18px 0 0; }
.about-values { padding: 70px 0; background: var(--cream-2); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.about-value { position: relative; background: #fff; border-radius: 22px; padding: 34px 30px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.about-value:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.about-value__icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--green-800); margin-bottom: 26px; }
.about-value__icon svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-2); stroke-width: 1.6; }
.about-value__num { position: absolute; top: 28px; right: 30px; font-family: var(--serif); font-size: 40px; color: var(--cream-3); }
.about-value h3 { font-size: 28px; margin-bottom: 10px; }
.about-value p { margin: 0; color: var(--muted); }
.page-cta { padding: 80px 0; }
.page-cta__action { text-align: right; }

/* ---------- FAQs ---------- */
.faqs { padding: 40px 0 100px; }
.faqs__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 60px; align-items: start; }
.faqs__aside { position: sticky; top: 100px; display: grid; gap: 18px; }
.faq-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 52px; border-radius: 100px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.faq-search svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.faq-search input { flex: 1; border: 0; outline: 0; background: none; font: 500 15px var(--sans); }
.faq-groups { display: grid; background: #fff; border-radius: 18px; padding: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.faq-groups a { display: flex; justify-content: space-between; padding: 11px 14px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: background .3s; }
.faq-groups a:hover { background: var(--cream-2); }
.faq-groups small { color: var(--muted); }
.faq-help { background: var(--green-800); color: var(--cream); border-radius: 20px; padding: 26px; }
.faq-help h3 { font-size: 26px; margin-bottom: 6px; color: var(--cream); }
.faq-help p { color: rgba(251,246,234,.75); margin: 0 0 16px; font-size: 14px; }
.faq-help .btn--primary { background: var(--gold-2); color: var(--green-950); }
.faq-group { margin-bottom: 40px; scroll-margin-top: 110px; }
.faq-group__title { font-size: 32px; margin-bottom: 14px; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; cursor: pointer; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, transform .5s var(--ease); }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.6px; background: var(--ink); translate: -50% -50%; transition: transform .4s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq[open] summary i { background: var(--green-800); box-shadow: none; transform: rotate(180deg); }
.faq[open] summary i::before, .faq[open] summary i::after { background: var(--cream); }
.faq[open] summary i::after { transform: rotate(0); }
.faq__body { padding: 0 50px 22px 0; font-size: 15.5px; }
.faq[open] .faq__body { animation: cardIn .5s var(--ease); }
.faq-none, .faq-empty { color: var(--muted); padding: 20px 0; }

/* ---------- Contact ---------- */
.contact { padding: 40px 0 100px; }
.contact__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 50px; align-items: start; }
.contact__info { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.contact-card > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--cream-2); fill: none; stroke: var(--green-800); stroke-width: 1.6; flex: none; }
.contact-card span { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card a, .contact-card p { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); line-height: 1.3; word-break: break-word; }
.contact-faq { display: block; padding: 22px; border-radius: 18px; background: var(--green-800); color: var(--cream); transition: transform .4s var(--ease); }
.contact-faq:hover { transform: translateY(-3px); }
.contact-faq b { display: block; font-family: var(--serif); font-size: 22px; margin-bottom: 4px; }
.contact-faq span { color: rgba(251,246,234,.75); font-size: 14px; }
.contact__form { background: #fff; border-radius: 26px; padding: 40px; box-shadow: inset 0 0 0 1px var(--line), var(--shadow); scroll-margin-top: 110px; }
.contact__form h2 { font-size: 36px; margin-bottom: 22px; }
.form { display: grid; gap: 16px; }
.form label span { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form select { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163b27' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 16px no-repeat; }
.form .btn { justify-self: start; margin-top: 6px; }
.contact__form .form-status { margin: 0 0 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .faqs__grid { grid-template-columns: 1fr; gap: 30px; }
  .faqs__aside { position: static; grid-template-columns: 1fr 1fr; }
  .faq-search { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .about-hero__grid, .about-story__grid, .contact__grid { grid-template-columns: 1fr; gap: 30px; }
  .values, .post-grid { grid-template-columns: 1fr 1fr; }
  .page-cta__action { text-align: left; }
}
@media (max-width: 640px) {
  .page-hero { padding: 48px 0 30px; }
  .values, .post-grid, .form__row, .faqs__aside { grid-template-columns: 1fr; }
  .about-hero__media { aspect-ratio: 4 / 3; }
  .contact__form { padding: 26px 20px; }
  .faq summary { font-size: 19px; }
  .faq__body { padding-right: 0; }
  .search-form .btn { display: none; }
}

/* Admin bar offsets for fixed panels */
.admin-bar .drawer, .admin-bar .search-panel { top: 32px; }
@media (max-width: 782px) { .admin-bar .drawer, .admin-bar .search-panel { top: 46px; } }
.tile__bg { object-position: 76% 50%; }
.card__price { display: block; text-align: right; }
.card__price del { display: block; }
@media (max-width: 640px) { .card__price { text-align: left; } .card__price del { display: inline; margin-left: 6px; } }
.no-loader .loader { display: none; }
.header.scrolled { background: rgba(251,246,234,.96); }

.brand__mark--default { width: 46px; height: 46px; object-fit: contain; background: none; box-shadow: none; mix-blend-mode: normal; border-radius: 0; }
.footer__brand img, .loader__inner img { mix-blend-mode: normal; }
.footer__menu { list-style: none; margin: 0; padding: 0; }
.footer__brand img { width: 200px; margin-top: -10px; }
