/*
Theme Name: NONFICTION Store
Theme URI: https://example.com/
Author: NONFICTION
Description: Premium Korean-inspired minimalist beauty and body care storefront with built-in catalogue, cart, wishlist, checkout, order management, SEO and WhatsApp support. No plugins required.
Version: 1.0.0
Requires at least: 6.3
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nonfiction-store
*/

:root {
	--ivory: #faf7f2;
	--sand: #efe6dc;
	--rose: #c98f93;
	--rose-soft: #ead2d0;
	--wine: #5a1a24;
	--wine-deep: #3b1017;
	--ink: #1d1a19;
	--muted: #6f6663;
	--line: #e3d9ce;
	--wa: #1f7a4d;
	--serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
	--sans: "Jost", "Helvetica Neue", Arial, sans-serif;
	--wrap: 1360px;
	--hh: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.nf-lock { overflow: hidden; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
ul { padding: 0; margin: 0; list-style: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--wine); color: #fff; padding: 10px 16px; }
.nf-skip:focus { left: 8px; }
.nf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nf-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 3.4vw, 48px); }
.nf-center { text-align: center; }
.nf-muted { color: var(--muted); font-size: .92rem; }
.nf-eyebrow { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--wine); margin-bottom: .8em; }
.nf-lede { font-family: var(--serif); font-size: 1.35rem; color: var(--muted); max-width: 46rem; }
.nf-center .nf-lede { margin-left: auto; margin-right: auto; }
.nf-empty { text-align: center; padding: 48px 0; color: var(--muted); }

/* ---------- Icons & buttons ---------- */
.nf-icon { display: block; }
.nf-iconbtn { background: none; border: 0; padding: 8px; display: inline-flex; align-items: center; justify-content: center; color: inherit; border-radius: 50%; text-decoration: none; position: relative; }
.nf-iconbtn:hover { opacity: .7; }

.nf-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 15px 30px; border: 1px solid transparent; background: none; text-decoration: none; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; font-weight: 400; line-height: 1.2; transition: background .25s, color .25s, border-color .25s; text-align: center; }
.nf-btn .nf-icon { width: 18px; height: 18px; }
.nf-btn--solid { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.nf-btn--solid:hover { background: var(--wine-deep); border-color: var(--wine-deep); }
.nf-btn--line { border-color: var(--ink); color: var(--ink); }
.nf-btn--line:hover { background: var(--ink); color: var(--ivory); }
.nf-btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.nf-btn--light:hover { background: transparent; color: #fff; }
.nf-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .8); }
.nf-btn--ghost:hover { background: #fff; color: var(--ink); }
.nf-btn--wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.nf-btn--wa:hover { filter: brightness(.92); }
.nf-btn--block { display: flex; width: 100%; }
.nf-btn--sm { padding: 10px 16px; font-size: .68rem; }
.nf-btn[disabled], .nf-btn.is-disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.nf-link { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; background: none; border-top: 0; border-left: 0; border-right: 0; }
.nf-link:hover { color: var(--wine); }

/* ---------- Header ---------- */
.nf-header { position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--hh); background: var(--ivory); color: var(--ink); border-bottom: 1px solid var(--line); transition: background .3s, color .3s, border-color .3s; }
.admin-bar .nf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .nf-header { top: 46px; } }
.nf-header--over:not(.is-solid) { background: transparent; color: #fff; border-color: transparent; }
.nf-header__inner { height: 100%; max-width: 1760px; margin: 0 auto; padding: 0 clamp(16px, 2.6vw, 44px); display: flex; align-items: center; gap: 24px; }
.nf-logo { font-family: var(--serif); font-size: 1.85rem; letter-spacing: .06em; text-decoration: none; line-height: 1; margin-right: auto; }
.nf-logo__img { max-height: 40px; width: auto; }
.nf-nav { position: absolute; left: 50%; transform: translateX(-50%); }
.nf-menu { display: flex; gap: clamp(20px, 3vw, 48px); }
.nf-menu > li { position: relative; }
.nf-menu a { text-decoration: none; font-family: var(--serif); font-size: 1.12rem; letter-spacing: .08em; text-transform: uppercase; padding: 26px 0; display: inline-block; }
.nf-menu .sub-menu { position: absolute; top: 100%; left: -22px; min-width: 240px; background: var(--ivory); color: var(--ink); padding: 14px 22px; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(59, 16, 23, .35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .25s; }
.nf-menu li:hover > .sub-menu, .nf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nf-menu .sub-menu a { padding: 8px 0; font-size: 1.02rem; text-transform: none; letter-spacing: .02em; display: block; }
.nf-menu .sub-menu a:hover { color: var(--wine); }
.nf-nav__close, .nf-nav__extra, .nf-menu-toggle { display: none; }
.nf-tools { display: flex; align-items: center; gap: 4px; }
.nf-bagcount { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--wine); color: #fff; font-size: .68rem; line-height: 18px; text-align: center; padding: 0 4px; font-weight: 400; }
.nf-pop-wrap { position: relative; }
.nf-pop { position: absolute; right: 0; top: calc(100% + 14px); width: 270px; background: var(--ivory); color: var(--ink); padding: 20px; border: 1px solid var(--line); box-shadow: 0 18px 40px -20px rgba(59, 16, 23, .35); z-index: 95; }
.nf-pop label { display: block; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 6px; }
.nf-pop select { width: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); }
.nf-pop__note { font-size: .84rem; color: var(--muted); margin: 12px 0 0; }

.nf-scrim { position: fixed; inset: 0; background: rgba(29, 26, 25, .45); z-index: 80; }
.nf-main { min-height: 60vh; padding-top: var(--hh); }
.nf-home .nf-main { padding-top: 0; }
.admin-bar .nf-main { padding-top: calc(var(--hh) + 32px); }
.admin-bar.nf-home .nf-main { padding-top: 0; }

@media (max-width: 1000px) {
	:root { --hh: 64px; }
	.nf-menu-toggle { display: inline-flex; }
	.nf-logo { margin: 0 auto 0 4px; font-size: 1.55rem; }
	.nf-header__inner { gap: 6px; }
	.nf-nav { position: fixed; inset: 0 auto 0 0; transform: translateX(-102%); width: min(86vw, 380px); background: var(--ivory); color: var(--ink); z-index: 100; padding: 70px 28px 30px; overflow-y: auto; transition: transform .35s ease; visibility: hidden; }
	.nf-nav.is-open { transform: none; visibility: visible; }
	.nf-nav__close { display: inline-flex; position: absolute; top: 14px; right: 14px; }
	.nf-menu { flex-direction: column; gap: 0; }
	.nf-menu a { padding: 14px 0; font-size: 1.5rem; display: block; border-bottom: 1px solid var(--line); }
	.nf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 4px 0 8px 14px; min-width: 0; background: none; }
	.nf-menu .sub-menu a { font-size: 1.1rem; padding: 8px 0; border: 0; }
	.nf-nav__extra { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; }
	.nf-nav__extra a { text-decoration: none; }
	.nf-tools .nf-iconbtn:nth-child(3) { display: none; }
}

/* ---------- Hero ---------- */
.nf-hero { position: relative; min-height: 100vh; min-height: 100svh; color: #fff; display: flex; align-items: flex-end; overflow: hidden; background: var(--wine-deep); }
.nf-hero__media { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; }
.nf-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.nf-hero__media img:first-child { object-position: 62% 40%; }
.nf-hero__media img:last-child { object-position: 50% 30%; }
.nf-hero__shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(40, 10, 16, .66) 0%, rgba(40, 10, 16, .12) 45%, rgba(40, 10, 16, .28) 100%); }
.nf-hero__copy { position: relative; width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(18px, 3.4vw, 48px) clamp(48px, 9vh, 110px); max-width: 1000px; text-align: center; }
.nf-hero__copy h1 { font-weight: 400; letter-spacing: .06em; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.nf-hero__copy p { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.5rem); max-width: 40rem; margin: 0 auto 1.8em; }
.nf-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 760px) {
	.nf-hero__media { grid-template-columns: 1fr; grid-template-rows: 1fr 1fr; }
}

/* ---------- Sections ---------- */
.nf-section { padding-top: clamp(56px, 8vw, 112px); }
.nf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.nf-head h2 { margin: 0; }
.nf-pagehead { padding-top: clamp(28px, 5vw, 64px); padding-bottom: 28px; }
.nf-pagehead h1 { margin-bottom: .25em; }
.nf-crumbs { margin-bottom: 18px; font-size: .78rem; letter-spacing: .08em; color: var(--muted); }
.nf-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.nf-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.nf-crumbs a { text-decoration: none; }
.nf-crumbs a:hover { color: var(--wine); }
.nf-reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s ease, transform .9s ease; }
.nf-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Product grid & cards ---------- */
.nf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 28px); }
@media (max-width: 1100px) { .nf-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .nf-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.nf-card { position: relative; display: flex; flex-direction: column; }
.nf-card[hidden] { display: none; }
.nf-card__media { position: relative; display: block; aspect-ratio: 1 / 1; background: #f8f8f8; overflow: hidden; }
.nf-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.nf-card:hover .nf-card__media img { transform: scale(1.035); }
.nf-card__ph { display: grid; place-items: center; height: 100%; font-family: var(--serif); letter-spacing: .12em; color: var(--muted); }
.nf-tag { position: absolute; top: 14px; left: 14px; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .8); padding: 3px 8px; }
.nf-tag--static { position: static; display: inline-block; margin-bottom: 14px; }
.nf-wish { position: absolute; top: 8px; right: 8px; background: none; border: 0; padding: 8px; color: var(--muted); z-index: 2; transition: color .2s, transform .2s; }
.nf-wish:hover { color: var(--wine); transform: scale(1.1); }
.nf-wish[aria-pressed="true"] { color: var(--wine); }
.nf-wish[aria-pressed="true"] svg { fill: currentColor; }
.nf-wish--lg { position: static; border: 1px solid var(--line); border-radius: 50%; padding: 12px; }
.nf-card__body { padding: 16px 2px 0; display: flex; flex-direction: column; flex: 1; }
.nf-card__title { font-size: 1.2rem; margin: 0; letter-spacing: .04em; }
.nf-card__title a { text-decoration: none; }
.nf-card__sub { margin: 2px 0 0; font-size: .95rem; }
.nf-card__desc { margin: 8px 0 0; font-size: .86rem; color: var(--muted); line-height: 1.5; }
.nf-card__buy { margin-top: auto; padding-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.nf-price { font-size: .98rem; }
.nf-price--none { color: var(--muted); font-size: .86rem; }
.nf-price__was { color: var(--muted); margin-left: 6px; }
@media (max-width: 760px) { .nf-card__desc { display: none; } .nf-card__buy .nf-btn { width: 100%; } }

.nf-filters { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.nf-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-chip { display: inline-block; padding: 8px 18px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .82rem; letter-spacing: .06em; }
.nf-chip:hover, .nf-chip.is-active { background: var(--wine); color: var(--ivory); border-color: var(--wine); }
.nf-sort { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; }
.nf-sort select { background: transparent; border: 1px solid var(--line); padding: 8px 12px; text-transform: none; letter-spacing: 0; }
.nf-shop { padding-bottom: 80px; }

/* ---------- Tiles ---------- */
.nf-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 28px); }
@media (max-width: 900px) { .nf-tiles { grid-template-columns: repeat(2, 1fr); } }
.nf-tile { text-decoration: none; display: block; }
.nf-tile__img { display: block; aspect-ratio: 4 / 5; background: #f8f8f8; overflow: hidden; }
.nf-tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.nf-tile:hover .nf-tile__img img { transform: scale(1.05); }
.nf-tile__label { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-family: var(--serif); font-size: 1.3rem; }
.nf-tile__label .nf-icon { width: 20px; height: 20px; transition: transform .3s; }
.nf-tile:hover .nf-tile__label .nf-icon { transform: translateX(6px); }

/* ---------- Split / editorial / story ---------- */
.nf-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; margin-bottom: clamp(32px, 5vw, 72px); }
.nf-split--rev .nf-split__img { order: 2; }
.nf-split__img { background: #f8f8f8; }
.nf-split__img img { width: 100%; height: auto; }
.nf-split__txt p { color: var(--muted); max-width: 30rem; font-size: 1.05rem; }
@media (max-width: 800px) { .nf-split { grid-template-columns: 1fr; } .nf-split--rev .nf-split__img { order: 0; } }

.nf-editorial { position: relative; margin-top: clamp(56px, 8vw, 112px); min-height: min(80vh, 720px); display: flex; align-items: center; color: #fff; overflow: hidden; }
.nf-editorial > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.nf-editorial::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 10, 16, .55), rgba(40, 10, 16, 0) 65%); }
.nf-editorial__copy { position: relative; z-index: 1; padding: 0 clamp(24px, 7vw, 120px); max-width: 640px; }
.nf-editorial__copy .nf-eyebrow { color: #fff; opacity: .9; }
.nf-editorial__copy h2 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 400; }

.nf-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 6vw, 96px); align-items: center; }
.nf-story__img img { width: 100%; height: auto; }
.nf-story__txt p { color: var(--muted); font-size: 1.05rem; }
.nf-story--page { padding-bottom: 80px; }
@media (max-width: 800px) { .nf-story { grid-template-columns: 1fr; } }

/* ---------- Reviews ---------- */
.nf-reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 800px) { .nf-reviews { grid-template-columns: 1fr; } }
.nf-review { margin: 0; padding: 28px; background: var(--sand); }
.nf-review p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.4; margin: .6em 0 1em; }
.nf-review footer { font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.nf-stars { color: var(--wine); letter-spacing: 3px; font-size: 1rem; }
.nf-stars__off { color: var(--line); }

/* ---------- Newsletter / Instagram ---------- */
.nf-news { margin-top: clamp(56px, 8vw, 112px); background: var(--wine); color: var(--ivory); padding: clamp(48px, 7vw, 96px) 0; text-align: center; }
.nf-news h2 { font-weight: 400; }
.nf-news p { opacity: .85; }
.nf-form--inline { display: flex; gap: 10px; max-width: 560px; margin: 24px auto 0; flex-wrap: wrap; }
.nf-form--inline input[type="email"] { flex: 1 1 240px; padding: 15px 18px; border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.nf-form--inline input::placeholder { color: rgba(255, 255, 255, .7); }
.nf-form--inline .nf-btn--solid { background: #fff; color: var(--wine); border-color: #fff; }
.nf-form--inline .nf-form__msg { flex-basis: 100%; }
.nf-ig { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
@media (max-width: 900px) { .nf-ig { grid-template-columns: repeat(3, 1fr); } }
.nf-ig a { display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f8f8f8; }
.nf-ig img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.nf-ig a:hover img { transform: scale(1.06); opacity: .92; }

/* ---------- Forms ---------- */
.nf-form label { display: block; font-size: .8rem; letter-spacing: .06em; margin-bottom: 14px; }
.nf-form input[type="text"], .nf-form input[type="email"], .nf-form input[type="tel"], .nf-form textarea, .nf-form select { display: block; width: 100%; margin-top: 6px; padding: 13px 14px; background: #fff; border: 1px solid var(--line); border-radius: 0; }
.nf-form input[aria-invalid="true"], .nf-form textarea[aria-invalid="true"] { border-color: #b3261e; }
.nf-form h2 { font-size: 1.6rem; margin-top: 1.4em; }
.nf-form h2:first-child { margin-top: 0; }
.nf-form__msg { margin: 12px 0 0; min-height: 1.4em; font-size: .9rem; }
.nf-form__msg.is-ok { color: #1c6b3f; }
.nf-form__msg.is-err { color: #b3261e; }
.nf-news .nf-form__msg.is-ok, .nf-news .nf-form__msg.is-err { color: #fff; }
.nf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.nf-fields .nf-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .nf-fields { grid-template-columns: 1fr; } }
.nf-notice { background: var(--sand); padding: 16px 18px; font-size: .92rem; margin: 18px 0; }

.nf-contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(28px, 6vw, 96px); padding-bottom: 90px; }
@media (max-width: 800px) { .nf-contact { grid-template-columns: 1fr; } }

/* ---------- Product page ---------- */
.nf-product { padding-top: 24px; }
.nf-product__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .nf-product__grid { grid-template-columns: 1fr; } }
.nf-gallery { position: sticky; top: calc(var(--hh) + 20px); }
@media (max-width: 900px) { .nf-gallery { position: static; } }
.nf-gallery__main { aspect-ratio: 1 / 1; background: #f8f8f8; overflow: hidden; }
.nf-gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.nf-gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.nf-gallery__thumbs button { width: 76px; height: 76px; padding: 0; border: 1px solid transparent; background: #f8f8f8; opacity: .65; }
.nf-gallery__thumbs button.is-active, .nf-gallery__thumbs button:hover { opacity: 1; border-color: var(--wine); }
.nf-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.nf-info__title { margin-bottom: .15em; letter-spacing: .04em; }
.nf-info__sub { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .6em; }
.nf-info__price { font-size: 1.3rem; margin-bottom: 1em; }
.nf-info__lede { color: var(--muted); }
.nf-sizes { border: 0; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-sizes legend { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 8px; padding: 0; width: 100%; }
.nf-sizes label span { display: inline-block; padding: 10px 18px; border: 1px solid var(--line); cursor: pointer; font-size: .88rem; }
.nf-sizes input { position: absolute; opacity: 0; }
.nf-sizes input:checked + span { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.nf-sizes input:focus-visible + span { outline: 2px solid var(--wine); outline-offset: 2px; }
.nf-qty-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.nf-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.nf-qty button { width: 44px; height: 46px; background: none; border: 0; font-size: 1.2rem; }
.nf-qty input { width: 54px; height: 46px; text-align: center; border: 0; background: transparent; -moz-appearance: textfield; }
.nf-qty input::-webkit-outer-spin-button, .nf-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nf-qty--sm button { width: 30px; height: 32px; }
.nf-qty--sm span { min-width: 28px; text-align: center; font-size: .92rem; }
.nf-buy__btns { display: grid; gap: 10px; margin-bottom: 10px; }
.nf-buy .nf-btn--wa { margin-top: 10px; }
.nf-acc { margin-top: 36px; border-top: 1px solid var(--line); }
.nf-acc details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.nf-acc summary { cursor: pointer; font-family: var(--serif); font-size: 1.25rem; list-style: none; display: flex; justify-content: space-between; }
.nf-acc summary::after { content: "+"; }
.nf-acc details[open] summary::after { content: "−"; }
.nf-acc summary::-webkit-details-marker { display: none; }
.nf-acc details > *:not(summary) { margin-top: 12px; color: var(--muted); }
.nf-list { list-style: disc; padding-left: 1.2em; }
.nf-prose { max-width: 62rem; padding-bottom: 60px; }
.nf-acc .nf-prose { padding-bottom: 0; }
.nf-prose h2 { margin-top: 1.4em; }
.nf-prose a { color: var(--wine); }

.nf-comments { max-width: 760px; }
.nf-review-list li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.nf-review-list p { margin: 6px 0; }
.nf-comments .comment-respond { margin-top: 32px; }
.nf-comments .comment-reply-title { font-family: var(--serif); font-size: 1.6rem; }
.nf-comments label { display: block; font-size: .8rem; letter-spacing: .06em; margin-bottom: 4px; }
.nf-comments input[type="text"], .nf-comments input[type="email"], .nf-comments textarea, .nf-comments select { width: 100%; padding: 12px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.nf-comments .comment-form-cookies-consent label { display: inline; }
.nf-comments .comment-form-cookies-consent input { margin-right: 8px; }
.nf-comments .submit { background: var(--wine); color: var(--ivory); border: 0; padding: 15px 30px; letter-spacing: .16em; text-transform: uppercase; font-size: .76rem; }

/* ---------- Cart, checkout ---------- */
.nf-cartpage, .nf-checkout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(24px, 5vw, 72px); padding-bottom: 90px; align-items: start; }
@media (max-width: 900px) { .nf-cartpage, .nf-checkout { grid-template-columns: 1fr; } }
.nf-summary { background: var(--sand); padding: 28px; position: sticky; top: calc(var(--hh) + 20px); }
.nf-summary h2 { font-size: 1.5rem; }
.nf-summary .nf-btn { margin: 16px 0 12px; }
.nf-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; font-size: .95rem; }
.nf-row small { color: var(--muted); }
.nf-row--total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; font-size: 1.1rem; }
.nf-line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: start; }
.nf-line__img { background: #f8f8f8; display: block; width: 84px; height: 84px; }
.nf-line__img img { width: 100%; height: 100%; object-fit: cover; }
.nf-line__title { font-family: var(--serif); font-size: 1.15rem; text-decoration: none; display: block; line-height: 1.2; }
.nf-line__sub { display: block; font-size: .82rem; color: var(--muted); }
.nf-line__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.nf-line__total { font-size: .98rem; }
.nf-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.nf-table th, .nf-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.nf-table td:last-child, .nf-table th:last-child { text-align: right; }
.nf-confirm { max-width: 820px; padding-bottom: 90px; }

/* ---------- Drawer, search, toast, WhatsApp ---------- */
.nf-drawer { position: fixed; inset: 0 0 0 auto; width: min(430px, 100%); background: var(--ivory); z-index: 120; display: flex; flex-direction: column; box-shadow: -20px 0 50px -30px rgba(0, 0, 0, .4); animation: nf-slide .3s ease; }
@keyframes nf-slide { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.nf-drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.nf-drawer__head h2 { margin: 0; font-size: 1.5rem; }
.nf-drawer__body { flex: 1; overflow-y: auto; padding: 0 22px; }
.nf-drawer__foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 12px; text-align: center; }
.nf-drawer__foot .nf-row { padding: 0; font-size: 1.05rem; }
.nf-drawer .nf-line { grid-template-columns: 72px 1fr auto; }
.nf-drawer .nf-line__img { width: 72px; height: 72px; }

.nf-search { position: fixed; inset: 0 0 auto 0; background: var(--ivory); z-index: 130; padding: 40px 0 36px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .4); }
.nf-search__inner { max-width: 820px; margin: 0 auto; padding: 0 20px; position: relative; }
.nf-search__close { position: absolute; right: 8px; top: -26px; }
.nf-search form { display: flex; gap: 10px; }
.nf-search input[type="search"] { flex: 1; padding: 16px 18px; font-family: var(--serif); font-size: 1.4rem; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; }
.nf-search__results { margin-top: 18px; }
.nf-search__results a { display: flex; align-items: center; gap: 14px; padding: 8px 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.nf-search__results img { width: 48px; height: 48px; object-fit: cover; background: #f8f8f8; }
.nf-search__results small { display: block; color: var(--muted); }

.nf-toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 22px; font-size: .88rem; z-index: 140; opacity: 0; transition: .3s; max-width: 90vw; text-align: center; }
.nf-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.nf-wa { position: fixed; right: 18px; bottom: 18px; z-index: 70; display: inline-flex; align-items: center; gap: 10px; background: var(--wa); color: #fff; padding: 13px 18px; border-radius: 999px; text-decoration: none; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .45); font-size: .86rem; letter-spacing: .06em; transition: transform .25s; }
.nf-wa:hover { transform: translateY(-2px); }
.nf-wa .nf-icon { width: 24px; height: 24px; }
@media (max-width: 600px) { .nf-wa span { display: none; } .nf-wa { padding: 14px; } }

/* ---------- Footer ---------- */
.nf-footer { background: var(--wine-deep); color: var(--ivory); margin-top: clamp(56px, 8vw, 112px); padding-top: clamp(48px, 6vw, 80px); }
.nf-news + .nf-section, .nf-news + .nf-footer { margin-top: 0; }
.nf-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 48px; }
@media (max-width: 800px) { .nf-footer__grid { grid-template-columns: 1fr 1fr; } }
.nf-footer__logo { font-family: var(--serif); font-size: 2rem; letter-spacing: .08em; margin: 0 0 .3em; }
.nf-footer__tag { opacity: .75; max-width: 22rem; }
.nf-footer__h { font-family: var(--sans); font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 400; margin-bottom: 1.2em; opacity: .8; }
.nf-footer li { margin-bottom: 8px; }
.nf-footer a { text-decoration: none; opacity: .88; }
.nf-footer a:hover { opacity: 1; text-decoration: underline; }
.nf-footer__base { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 20px; padding-bottom: 28px; font-size: .8rem; opacity: .7; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
