:root {
  --nf-brand: #ff625f;
  --nf-black: #111111;
  --nf-white: #ffffff;
  --nf-text: #151515;
  --nf-muted: #6d6d6d;
  --nf-line: #e4e4e4;
  --nf-surface: #f5f5f5;
  --nf-max: 1440px;
  --nf-gutter: clamp(18px, 3vw, 42px);
  --nf-font: "Barlow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--nf-text);
  background: var(--nf-white);
  font-family: var(--nf-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.has-overlay { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.nf-container { width: min(calc(100% - (var(--nf-gutter) * 2)), var(--nf-max)); margin-inline: auto; }
.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:focus { width: auto; height: auto; clip: auto; padding: 12px 16px; margin: 8px; background: #fff; z-index: 9999; }

/* Header */
.announcement-bar {
  min-height: 32px; display: flex; align-items: center; justify-content: center;
  padding: 6px 16px; background: var(--nf-black); color: #fff;
  font-size: 11px; font-weight: 500; letter-spacing: .05em; text-align: center;
}
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--nf-line); }
.admin-bar .site-header { top: 32px; }
.header-row { height: 78px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand-logo { display: inline-flex; flex: 0 0 auto; }
.brand-logo__image { width: 48px; height: 48px; object-fit: cover; }
.desktop-nav { display: flex; align-items: center; gap: clamp(18px, 2.1vw, 34px); }
.desktop-nav a { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .045em; }
.desktop-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.header-actions { display: flex; align-items: center; gap: 5px; }
.icon-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; background: transparent; color: var(--nf-black); }
.icon-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 1px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: var(--nf-brand); color: #fff; font-size: 10px; font-weight: 700; }
.mobile-menu-trigger { display: none; }
.mobile-menu-trigger span { width: 20px; height: 1.5px; background: currentColor; display: block; margin: 2.5px 0; }
.search-panel { border-top: 1px solid var(--nf-line); background: #fff; }
.search-panel[hidden] { display: none; }
.search-panel__inner { min-height: 64px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 20px; }
.product-search { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; }
.product-search svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.product-search input { width: 100%; height: 48px; border: 0; outline: 0; font-size: 15px; }
.search-close { width: 42px; height: 42px; border: 0; background: transparent; font-size: 28px; font-weight: 300; }

/* Mobile drawer */
.mobile-drawer { position: fixed; inset: 0; z-index: 250; pointer-events: none; visibility: hidden; }
.mobile-drawer.is-open { pointer-events: auto; visibility: visible; }
.mobile-drawer__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.35); opacity: 0; transition: opacity .25s; }
.mobile-drawer.is-open .mobile-drawer__backdrop { opacity: 1; }
.mobile-drawer__panel { position: absolute; top: 0; left: 0; width: min(88vw, 390px); height: 100%; padding: 18px 20px 30px; background: #fff; transform: translateX(-100%); transition: transform .25s ease; }
.mobile-drawer.is-open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__head { height: 62px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--nf-line); }
.mobile-drawer__close { border: 0; background: none; font-size: 30px; font-weight: 300; }
.mobile-nav { display: grid; padding-top: 18px; }
.mobile-nav a { padding: 13px 0; border-bottom: 1px solid #efefef; font-size: 17px; font-weight: 600; }

/* Buttons / headings */
.eyebrow { margin-bottom: 9px; font-size: 11px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.nf-button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid var(--nf-black); background: var(--nf-black); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; transition: background-color .2s, color .2s; }
.nf-button:hover { background: #303030; }
.nf-button--light { border-color: #fff; background: #fff; color: var(--nf-black); }
.nf-button--light:hover { background: #ececec; }
.nf-button--brand { border-color: var(--nf-brand); background: var(--nf-brand); }
.text-link { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }

/* Homepage */
.home-hero { position: relative; min-height: min(790px, 78vh); display: flex; align-items: flex-end; overflow: hidden; background: linear-gradient(135deg, #242424 0%, #555 100%); color: #fff; }
.home-hero.has-image { background-image: var(--hero-image); background-size: cover; background-position: center 25%; }
.home-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.16) 58%, rgba(0,0,0,.02) 100%); }
.home-hero__content { position: relative; z-index: 2; padding-bottom: clamp(50px, 8vw, 100px); }
.home-hero h1 { max-width: 720px; margin: 0 0 18px; font-size: clamp(48px, 6.4vw, 92px); line-height: .94; letter-spacing: -.05em; }
.home-hero p { max-width: 480px; margin: 0 0 28px; font-size: 17px; }
.home-section { padding: 76px 0; }
.home-section--compact { padding: 54px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 3vw, 38px); line-height: 1; letter-spacing: -.035em; }
.section-heading p { margin: 8px 0 0; color: var(--nf-muted); font-size: 14px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.category-card { position: relative; min-width: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #ededed; }
.category-card img, .category-card__placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.category-card__placeholder { display: block; background: linear-gradient(145deg, #dadada, #f4f4f4); }
.category-card:hover img { transform: scale(1.025); }
.category-card__label { position: absolute; left: 16px; bottom: 16px; padding: 10px 12px; background: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; }

/* Product cards */
.nf-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 14px; }
.nf-product-card { position: relative; min-width: 0; }
.nf-product-card__image { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: #f0f0f0; }
.nf-product-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.nf-product-card:hover .nf-product-card__image img { transform: scale(1.018); }
.nf-product-badge { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 5px 8px; background: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.nf-wishlist { position: absolute; top: 9px; right: 9px; z-index: 3; width: 35px; height: 35px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); font-size: 20px; line-height: 1; }
.nf-wishlist.is-active { color: var(--nf-brand); }
.nf-product-card__meta { padding-top: 11px; }
.nf-product-card__eyebrow { margin-bottom: 4px; color: var(--nf-muted); font-size: 11px; text-transform: uppercase; }
.nf-product-card__title { min-height: 42px; margin: 0 0 5px; font-size: 14px; line-height: 1.45; font-weight: 600; }
.nf-product-card__price { min-height: 24px; font-size: 14px; }
.nf-product-card__price del { color: #858585; font-size: 12px; margin-right: 6px; }
.nf-product-card__price ins { color: var(--nf-black); font-weight: 600; text-decoration: none; }
.nf-product-options { min-height: 22px; display: flex; gap: 6px; align-items: center; margin-top: 7px; }
.nf-color-dot, .nf-pattern-dot { width: 15px; height: 15px; display: inline-block; border: 1px solid #bdbdbd; border-radius: 50%; }
.nf-color-dot { background: var(--dot-color); }
.nf-pattern-dot { background: repeating-linear-gradient(0deg, #eee 0 3px, #777 3px 5px); }

/* Brand story */
.brand-story { display: grid; grid-template-columns: 1.15fr .85fr; min-height: 650px; background: #f1f1f1; }
.brand-story__media { min-height: 540px; background: #e8e8e8; overflow: hidden; }
.brand-story__media img { width: 100%; height: 100%; object-fit: cover; }
.brand-story__copy { padding: clamp(38px, 6vw, 84px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; }
.brand-story__copy h2 { max-width: 650px; margin: 0 0 20px; font-size: clamp(42px, 5.4vw, 76px); line-height: .98; letter-spacing: -.05em; }
.brand-story__copy p { max-width: 480px; margin: 0 0 28px; color: #4b4b4b; }

/* Newsletter */
.newsletter-section { padding: 52px 0; background: #f4f4f4; }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: end; }
.newsletter-grid h2 { margin: 0 0 5px; font-size: 28px; }
.newsletter-grid p { margin: 0; color: var(--nf-muted); }
.newsletter-form { display: flex; border-bottom: 1px solid var(--nf-black); }
.newsletter-form input { flex: 1; min-width: 0; padding: 14px 0; border: 0; background: transparent; outline: 0; }
.newsletter-form button { border: 0; background: transparent; font-weight: 700; }

/* Footer */
.site-footer { padding: 52px 0 24px; border-top: 1px solid var(--nf-line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 44px; }
.footer-brand p { max-width: 280px; margin: 18px 0 0; color: var(--nf-muted); font-size: 13px; }
.footer-column h2 { margin: 0 0 14px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.footer-column a, .footer-column li { display: block; margin: 8px 0; color: #444; font-size: 13px; list-style: none; }
.footer-column ul { padding: 0; margin: 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--nf-line); color: #777; font-size: 11px; }

/* Generic / WooCommerce v0.1 shell */
.content-shell, .nuefelt-wc-shell { padding-top: 42px; padding-bottom: 72px; }
.prose-page { max-width: 900px; }
.entry-content { line-height: 1.8; }
.nuefelt-wc-shell .woocommerce-breadcrumb { color: var(--nf-muted); font-size: 12px; }
.nuefelt-wc-shell ul.products { margin-top: 28px; }
.nuefelt-wc-shell .button, .woocommerce .button, .woocommerce button.button, .woocommerce input.button {
  border-radius: 0 !important; background: var(--nf-black) !important; color: #fff !important; font-weight: 600 !important;
}

@media (max-width: 1080px) {
  .desktop-nav { gap: 16px; }
  .desktop-nav a:nth-child(n+5) { display: none; }
  .nf-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .announcement-bar { font-size: 10px; }
  .header-row { height: 62px; gap: 12px; }
  .brand-logo__image { width: 38px; height: 38px; }
  .desktop-nav, .desktop-action { display: none; }
  .mobile-menu-trigger { display: grid; }
  .header-actions { margin-left: auto; }
  .home-hero { min-height: 68vh; }
  .home-hero__content { padding-bottom: 46px; }
  .home-hero h1 { font-size: clamp(46px, 13vw, 64px); }
  .home-hero p { font-size: 14px; }
  .home-section { padding: 52px 0; }
  .home-section--compact { padding: 40px 0; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { font-size: 28px; }
  .category-grid { gap: 7px; }
  .category-card__label { left: 9px; bottom: 9px; padding: 7px 8px; font-size: 10px; }
  .nf-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 8px; }
  .nf-product-card__title { font-size: 12px; min-height: 36px; }
  .nf-product-card__price { font-size: 12px; }
  .nf-product-card__eyebrow { font-size: 10px; }
  .brand-story { grid-template-columns: 1fr; min-height: 0; }
  .brand-story__media { min-height: 62vw; max-height: 560px; }
  .brand-story__copy { padding: 38px 20px 44px; }
  .brand-story__copy h2 { font-size: 44px; }
  .newsletter-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px 22px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 480px) {
  .nf-container { width: min(calc(100% - 28px), var(--nf-max)); }
  .section-heading { gap: 14px; }
  .section-heading .text-link { white-space: nowrap; }
  .nf-wishlist { width: 31px; height: 31px; font-size: 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Shop / Product Archive — v0.2
   ========================================================= */
.shop-page { padding-bottom: 90px; }
.shop-breadcrumbs { padding-top: 20px; color: var(--nf-muted); font-size: 11px; }
.shop-breadcrumbs .woocommerce-breadcrumb { margin: 0; padding: 0; color: inherit; font-size: inherit; }
.shop-breadcrumbs .woocommerce-breadcrumb span { display: inline-block; padding: 0 8px; color: #aaa; }
.shop-hero { padding-top: 44px; padding-bottom: 30px; }
.shop-hero h1 { margin: 0; font-size: clamp(40px, 5vw, 72px); line-height: .95; letter-spacing: -.052em; }
.shop-hero p { max-width: 600px; margin: 16px 0 0; color: var(--nf-muted); font-size: 15px; }
.shop-category-nav { display: flex; gap: 8px; padding-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.shop-category-nav::-webkit-scrollbar { display: none; }
.shop-category-nav a { flex: 0 0 auto; min-height: 38px; display: inline-flex; align-items: center; padding: 0 15px; border: 1px solid var(--nf-line); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .035em; }
.shop-category-nav a:hover,.shop-category-nav a.is-active { border-color: var(--nf-black); background: var(--nf-black); color: #fff; }
.shop-stock-banner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; padding-top: 12px; padding-bottom: 12px; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.shop-stock-banner div { display: grid; gap: 2px; }
.shop-stock-banner strong { font-size: 13px; }
.shop-stock-banner span { color: var(--nf-muted); font-size: 12px; }
.shop-stock-banner__status { padding: 8px 10px; border: 1px solid var(--nf-line); color: var(--nf-text) !important; font-size: 10px !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.shop-toolbar-wrap { position: sticky; top: 111px; z-index: 45; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
.admin-bar .shop-toolbar-wrap { top: 143px; }
.shop-toolbar { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.shop-toolbar__count { font-size: 13px; font-weight: 600; }
.shop-toolbar__actions { display: flex; align-items: center; gap: 24px; }
.shop-sort { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.shop-sort span { color: var(--nf-muted); }
.shop-sort select { min-width: 170px; height: 40px; padding: 0 28px 0 10px; border: 0; border-bottom: 1px solid #aaa; background: #fff; color: var(--nf-text); outline: none; }
.shop-filter-trigger { display: none; min-height: 40px; align-items: center; gap: 10px; border: 0; background: transparent; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.shop-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; padding-top: 30px; }
.shop-filter-drawer { min-width: 0; }
.shop-sidebar { position: sticky; top: 195px; align-self: start; }
.admin-bar .shop-sidebar { top: 227px; }
.shop-sidebar__mobile-head { display: none; }
.shop-filter-form { border-top: 1px solid var(--nf-line); }
.shop-filter-group { border-bottom: 1px solid var(--nf-line); }
.shop-filter-group summary { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 700; }
.shop-filter-group summary::-webkit-details-marker { display: none; }
.shop-filter-group summary span { font-size: 20px; font-weight: 300; transition: transform .2s; }
.shop-filter-group[open] summary span { transform: rotate(45deg); }
.shop-filter-group__body { padding: 0 0 17px; }
.shop-check-list,.shop-radio-list { display: grid; gap: 9px; }
.shop-check-list label,.shop-radio-list label { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; cursor: pointer; font-size: 12px; }
.shop-check-list input,.shop-radio-list input { width: 15px; height: 15px; margin: 0; accent-color: var(--nf-black); }
.shop-check-list small { color: #9a9a9a; font-size: 10px; }
.shop-size-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.shop-size-list label { position: relative; min-width: 0; }
.shop-size-list input { position: absolute; opacity: 0; pointer-events: none; }
.shop-size-list span { min-height: 39px; display: grid; place-items: center; border: 1px solid #b9b9b9; cursor: pointer; font-size: 11px; font-weight: 600; }
.shop-size-list input:checked + span { border-color: var(--nf-black); background: var(--nf-black); color: #fff; }
.shop-color-list { display: flex; flex-wrap: wrap; gap: 12px; }
.shop-color-list label { display: grid; justify-items: center; gap: 5px; cursor: pointer; }
.shop-color-list input { position: absolute; opacity: 0; pointer-events: none; }
.shop-color-list label > span { width: 29px; height: 29px; display: block; border-radius: 50%; border: 1px solid #aaa; background: var(--filter-color); box-shadow: inset 0 0 0 3px #fff; }
.shop-color-list input:checked + span { outline: 2px solid var(--nf-black); outline-offset: 2px; }
.shop-color-list small { max-width: 48px; overflow: hidden; text-overflow: ellipsis; color: var(--nf-muted); font-size: 9px; white-space: nowrap; }
.shop-price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shop-price-fields label { display: grid; gap: 5px; color: var(--nf-muted); font-size: 10px; }
.shop-price-fields input { width: 100%; height: 40px; padding: 0 9px; border: 1px solid #bbb; outline: none; }
.shop-price-fields input:focus { border-color: var(--nf-black); }
.shop-filter-actions { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding-top: 18px; }
.shop-filter-actions > a { font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.shop-filter-actions .nf-button { min-height: 43px; padding-inline: 14px; }
.shop-results { min-width: 0; }
.shop-product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 12px; }
.shop-product-grid .nf-product-card__eyebrow { min-height: 16px; }
.shop-load-more { max-width: 420px; margin: 64px auto 0; text-align: center; }
.shop-load-more p { margin: 0 0 10px; color: var(--nf-muted); font-size: 12px; }
.shop-progress { height: 2px; margin-bottom: 22px; overflow: hidden; background: #dedede; }
.shop-progress span { height: 100%; display: block; background: var(--nf-black); transition: width .3s ease; }
.shop-load-more__button { min-width: 180px; }
.shop-load-more__button:disabled { opacity: .55; cursor: wait; }
.shop-load-more__error { margin-top: 12px !important; color: #a33 !important; }
.shop-empty { min-height: 420px; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; }
.shop-empty h2,.shop-empty p { margin: 0; }
.shop-empty p { color: var(--nf-muted); }

@media (max-width: 1220px) {
  .shop-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  body.shop-filter-open { overflow: hidden; }
  .shop-toolbar-wrap { top: 92px; }
  .admin-bar .shop-toolbar-wrap { top: 138px; }
  .shop-filter-trigger { display: inline-flex; }
  .shop-layout { display: block; padding-top: 22px; }
  .shop-filter-drawer { position: fixed; inset: 0; z-index: 260; visibility: hidden; pointer-events: none; }
  .shop-filter-drawer.is-open { visibility: visible; pointer-events: auto; }
  .shop-filter-backdrop { position: absolute; inset: 0; width: 100%; border: 0; background: rgba(0,0,0,.38); opacity: 0; transition: opacity .2s; }
  .shop-filter-drawer.is-open .shop-filter-backdrop { opacity: 1; }
  .shop-sidebar { position: absolute; top: auto; right: 0; bottom: 0; left: 0; width: 100%; max-height: min(88vh, 760px); overflow-y: auto; padding: 0 var(--nf-gutter) 22px; background: #fff; transform: translateY(100%); transition: transform .25s ease; }
  .admin-bar .shop-sidebar { top: auto; }
  .shop-filter-drawer.is-open .shop-sidebar { transform: translateY(0); }
  .shop-sidebar__mobile-head { min-height: 62px; position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--nf-line); background: #fff; }
  .shop-sidebar__mobile-head strong { font-size: 18px; }
  .shop-sidebar__mobile-head button { width: 42px; height: 42px; border: 0; background: none; font-size: 29px; font-weight: 300; }
  .shop-filter-actions { position: sticky; bottom: -22px; z-index: 3; margin-inline: calc(var(--nf-gutter) * -1); padding: 12px var(--nf-gutter) 22px; border-top: 1px solid var(--nf-line); background: #fff; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .nf-account-page:not(.logged-in) #customer_login { gap: 40px; }
}

@media (max-width: 760px) {
  .shop-page { padding-bottom: 58px; }
  .shop-breadcrumbs { padding-top: 14px; overflow-x: auto; white-space: nowrap; }
  .shop-hero { padding-top: 30px; padding-bottom: 22px; }
  .shop-hero h1 { font-size: 43px; }
  .shop-hero p { font-size: 13px; }
  .shop-category-nav { width: 100%; padding-left: var(--nf-gutter); padding-right: var(--nf-gutter); }
  .shop-stock-banner { align-items: flex-start; }
  .shop-stock-banner > div span { max-width: 220px; }
  .shop-toolbar-wrap { top: 92px; }
  .shop-toolbar { min-height: 56px; }
  .shop-toolbar__actions { gap: 11px; }
  .shop-sort span { display: none; }
  .shop-sort select { min-width: 118px; width: 118px; padding-left: 5px; font-size: 11px; }
  .shop-filter-trigger { padding: 0; }
  .shop-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 7px; }
  .shop-product-grid .nf-product-card__title,.shop-product-grid .nf-product-card__price { font-size: 12px; }
  .shop-load-more { margin-top: 48px; }
}
.nf-product-card__rating { margin-top: 5px; color: #555; font-size: 11px; }
.nf-product-card__rating > span { color: var(--nf-black); }
.nf-product-card__rating small { color: #8a8a8a; }

/* =========================================================
   Shop refinements — v0.2.1
   ========================================================= */
/* Backdrop exists only for the mobile filter drawer. Hiding it explicitly on
   desktop prevents the native button control from appearing as a tiny pill. */
.shop-filter-backdrop { display: none; }

.shop-results {
  position: relative;
  min-height: 360px;
  transition: opacity .18s ease;
}
.shop-results.is-loading {
  pointer-events: none;
}
.shop-results.is-loading::before {
  content: "";
  position: absolute;
  inset: -8px;
  z-index: 20;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(1px);
}
.shop-results.is-loading::after {
  content: "";
  position: absolute;
  top: 110px;
  left: 50%;
  z-index: 21;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border: 2px solid #d7d7d7;
  border-top-color: var(--nf-black);
  border-radius: 50%;
  animation: nf-shop-spin .7s linear infinite;
}
@keyframes nf-shop-spin { to { transform: rotate(360deg); } }

.shop-filter-error {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #d8a2a2;
  background: #fff7f7;
  color: #8c2d2d;
  font-size: 12px;
}
.shop-filter-actions .nf-button:disabled,
.shop-sort select:disabled {
  opacity: .55;
  cursor: wait;
}

@media (max-width: 900px) {
  .shop-filter-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: rgba(0,0,0,.38);
    appearance: none;
    opacity: 0;
    transition: opacity .2s;
  }
  .shop-filter-drawer.is-open .shop-filter-backdrop { opacity: 1; }
}

/* Sticky offsets must follow the sticky header height only. The announcement
   bar scrolls away, so including its height created a visible strip of product
   cards above the sticky toolbar in v0.2.0. */
.shop-toolbar-wrap { top: 78px; }
.admin-bar .shop-toolbar-wrap { top: 110px; }
.shop-sidebar { top: 154px; }
.admin-bar .shop-sidebar { top: 186px; }

@media (max-width: 782px) {
  .shop-toolbar-wrap { top: 62px; }
  .admin-bar .shop-toolbar-wrap { top: 108px; }
}

/* =========================================================
   Single Product — v0.3
   ========================================================= */
.nf-pdp { padding-bottom: 0; }
.nf-pdp-breadcrumbs { padding-top: 18px; padding-bottom: 18px; color: var(--nf-muted); font-size: 11px; border-bottom: 1px solid var(--nf-line); }
.nf-pdp-breadcrumbs .woocommerce-breadcrumb { margin: 0; color: inherit; font-size: inherit; }
.nf-pdp-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .72fr); gap: 42px; padding-top: 34px; padding-bottom: 38px; }
.nf-pdp-left { min-width: 0; }
.nf-pdp-gallery-shell { position: relative; }
.nf-pdp-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.nf-pdp-gallery__item { min-width: 0; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #f1f1f1; }
.nf-pdp-gallery__item a { display: block; width: 100%; height: 100%; }
.nf-pdp-gallery__item img { width: 100%; height: 100%; display: block; object-fit: cover; }
.nf-pdp-gallery-counter { display: none; }

.nf-pdp-panel { position: sticky; top: 98px; align-self: start; min-width: 0; padding: 2px 4px 22px; }
.admin-bar .nf-pdp-panel { top: 130px; }
.nf-pdp-eyebrow { margin-bottom: 10px; color: var(--nf-muted); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.nf-pdp-panel h1 { margin: 0 0 12px; font-size: clamp(27px, 2.3vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.nf-pdp-rating { display: flex; align-items: center; gap: 9px; min-height: 21px; margin-bottom: 15px; font-size: 12px; }
.nf-pdp-rating .star-rating { width: 5.4em; margin: 0; font-size: 12px; }
.nf-pdp-rating a { text-decoration: underline; text-underline-offset: 4px; }
.nf-pdp-price { margin-bottom: 6px; font-size: 23px; line-height: 1.3; }
.nf-pdp-price del { margin-right: 8px; color: #888; font-size: 15px; }
.nf-pdp-price ins { color: var(--nf-black); font-weight: 600; text-decoration: none; }
.nf-pdp-stock { min-height: 18px; margin-bottom: 18px; color: var(--nf-muted); font-size: 11px; }
.nf-pdp-stock .stock { margin: 0; }
.nf-pdp-short-description { margin-bottom: 18px; color: #555; font-size: 13px; line-height: 1.65; }
.nf-pdp-short-description > *:first-child { margin-top: 0; }
.nf-pdp-short-description > *:last-child { margin-bottom: 0; }

.nf-variation-selectors { border-top: 1px solid var(--nf-line); }
.nf-selector-block { padding: 19px 0 20px; border-bottom: 1px solid var(--nf-line); }
.nf-selector-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 13px; font-size: 12px; }
.nf-selector-head strong { font-weight: 600; }
.nf-size-guide-link { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--nf-text); font: inherit; font-weight: 600; cursor: pointer; }
.nf-option-list { display: flex; flex-wrap: wrap; gap: 7px; }
.nf-option-button { min-width: 47px; height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 13px; border: 1px solid #aaa; background: #fff; color: var(--nf-text); font: inherit; font-size: 11px; cursor: pointer; transition: border-color .15s, background .15s, color .15s, opacity .15s; }
.nf-option-button:hover { border-color: var(--nf-black); }
.nf-option-button.is-active { border-color: var(--nf-black); background: var(--nf-black); color: #fff; }
.nf-option-button.is-disabled { opacity: .28; text-decoration: line-through; cursor: not-allowed; }
.nf-option-list--color .nf-option-button { min-width: auto; height: 45px; padding: 3px; border-color: #bbb; }
.nf-option-list--color .nf-option-button > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nf-option-list--color .nf-option-button .nf-color-dot { width: 35px; height: 35px; display: block; border: 1px solid rgba(0,0,0,.08); background: var(--option-color); }
.nf-option-list--color .nf-option-button.is-active { padding: 2px; border: 2px solid var(--nf-black); background: #fff; }
.nf-native-variation-select { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.nf-reset-variations { display: inline-block; margin: 12px 0 2px; color: var(--nf-muted); font-size: 10px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.nf-pdp .reset_variations[style*="visibility: hidden"] { display: none !important; }
.nf-pdp .single_variation_wrap { margin-top: 12px; }
.nf-pdp .single_variation { min-height: 0; }
.nf-pdp .single_variation .woocommerce-variation-price,
.nf-pdp .single_variation .woocommerce-variation-availability { display: none; }
.nf-pdp .woocommerce-variation-description { margin: 8px 0 13px; color: var(--nf-muted); font-size: 12px; line-height: 1.6; }
.nf-pdp-purchase-row { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 8px; align-items: stretch; }
.nf-pdp-purchase-row .quantity { float: none !important; width: 100%; margin: 0 !important; }
.nf-pdp-purchase-row .qty { width: 100% !important; height: 52px; padding: 0 8px; border: 1px solid #aaa; border-radius: 0; background: #fff; text-align: center; }
.nf-pdp .nf-add-to-cart { width: 100%; min-height: 52px; margin: 0 !important; border-radius: 0 !important; background: var(--nf-black) !important; color: #fff !important; font-size: 12px !important; font-weight: 700 !important; text-transform: uppercase; letter-spacing: .045em; }
.nf-pdp .nf-add-to-cart.disabled { opacity: .35 !important; cursor: not-allowed; }
.nf-pdp-secondary-actions { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 9px; border: 1px solid #b7b7b7; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.nf-pdp-wishlist { width: 27px; height: 27px; padding: 0; border: 0; background: transparent; font-size: 21px; line-height: 1; cursor: pointer; }
.nf-pdp-wishlist.is-active { color: var(--nf-brand); }
.nf-pdp-delivery-note { display: grid; gap: 3px; margin-top: 15px; padding: 14px 15px; background: #f6f6f6; font-size: 11px; line-height: 1.45; }
.nf-pdp-delivery-note strong { font-size: 12px; }
.nf-pdp-delivery-note span { color: var(--nf-muted); }

.nf-pdp-description-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(340px, .72fr); gap: 42px; padding-bottom: 48px; }
.nf-pdp-description-column { min-width: 0; }
.nf-pdp-accordion { border-top: 1px solid var(--nf-line); }
.nf-pdp-accordion details { border-bottom: 1px solid var(--nf-line); }
.nf-pdp-accordion summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-size: 13px; font-weight: 600; }
.nf-pdp-accordion summary::-webkit-details-marker { display: none; }
.nf-pdp-accordion summary span { font-size: 21px; font-weight: 300; transition: transform .18s; }
.nf-pdp-accordion details[open] summary span { transform: rotate(45deg); }
.nf-pdp-accordion__content { padding: 0 0 22px; color: #555; font-size: 13px; line-height: 1.72; }
.nf-pdp-accordion__content > *:first-child { margin-top: 0; }
.nf-pdp-accordion__content > *:last-child { margin-bottom: 0; }
.nf-pdp-product-details .woocommerce-product-attributes { width: 100%; border-collapse: collapse; }
.nf-pdp-product-details .woocommerce-product-attributes th,
.nf-pdp-product-details .woocommerce-product-attributes td { padding: 10px 0; border-bottom: 1px solid #eee; background: transparent !important; text-align: left; font-size: 12px; }
.nf-pdp-product-details .woocommerce-product-attributes th { width: 34%; color: var(--nf-text); font-weight: 600; }
.nf-pdp-product-details .woocommerce-product-attributes p { margin: 0; }

.nf-pdp-similar { padding: 20px 0 72px; }
.nf-pdp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.nf-pdp-section-head h2 { margin: 0; font-size: 34px; letter-spacing: -.035em; }
.nf-pdp-section-head > a { font-size: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.nf-similar-layout { --nf-similar-width: 286px; display: grid; grid-template-columns: var(--nf-similar-width) minmax(0, 1fr); gap: 16px; align-items: start; overflow: hidden; }
.nf-similar-current { width: var(--nf-similar-width); min-width: 0; }
.nf-similar-scroll { min-width: 0; display: grid; grid-auto-flow: column; grid-auto-columns: var(--nf-similar-width); gap: 16px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; cursor: grab; user-select: none; touch-action: pan-y; }
.nf-similar-scroll::-webkit-scrollbar { display: none; }
.nf-similar-scroll.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.nf-similar-scroll .nf-product-card { scroll-snap-align: start; }
.nf-pdp-recommended { border-top: 1px solid var(--nf-line); }

/* Size guide: right drawer on desktop, nearly full-screen sheet on mobile. */
body.nf-size-guide-open { overflow: hidden; }
.nf-size-guide[hidden] { display: none !important; }
.nf-size-guide { position: fixed; inset: 0; z-index: 500; visibility: hidden; pointer-events: none; }
.nf-size-guide.is-open { visibility: visible; pointer-events: auto; }
.nf-size-guide__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .22s ease; }
.nf-size-guide.is-open .nf-size-guide__backdrop { opacity: 1; }
.nf-size-guide__panel { position: absolute; top: 0; right: 0; width: min(560px, 92vw); height: 100%; overflow-y: auto; padding: 0 18px 42px; background: #fff; transform: translateX(100%); transition: transform .24s ease; }
.nf-size-guide.is-open .nf-size-guide__panel { transform: translateX(0); }
.nf-size-guide__head { min-height: 66px; position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--nf-line); background: #fff; }
.nf-size-guide__head h2 { margin: 0; font-size: 17px; font-weight: 500; }
.nf-size-guide__head button { width: 40px; height: 40px; padding: 0; border: 0; background: transparent; font-size: 28px; font-weight: 300; cursor: pointer; }
.nf-size-guide__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin: 20px 0; padding: 3px; border-radius: 3px; background: #f2f2f2; }
.nf-size-guide__tabs button { min-height: 34px; border: 0; background: transparent; font: inherit; font-size: 12px; cursor: pointer; }
.nf-size-guide__tabs button.is-active { background: #fff; box-shadow: 0 1px 5px rgba(0,0,0,.12); }
.nf-size-guide__units { display: flex; gap: 42px; margin: 18px 0 20px; font-size: 12px; }
.nf-size-guide__units label { display: flex; align-items: center; gap: 8px; }
.nf-size-guide__units input { width: 18px; height: 18px; margin: 0; accent-color: var(--nf-black); }
.nf-size-guide__content table { width: 100%; border-collapse: collapse; font-size: 12px; }
.nf-size-guide__content th,.nf-size-guide__content td { padding: 11px 12px; border: 1px solid #ddd; text-align: left; }
.nf-size-guide__content th { background: #ddd; font-weight: 500; }
.nf-size-guide__content tr:nth-child(even) td { background: #f5f5f5; }
.nf-size-guide__notice { margin: 22px 0 0; padding: 13px 14px; background: #f7f7f7; color: var(--nf-muted); font-size: 11px; line-height: 1.55; }

.nf-mobile-cart-dock { display: none; }

@media (max-width: 1180px) {
  .nf-pdp-layout,.nf-pdp-description-grid { grid-template-columns: minmax(0, 1.18fr) minmax(330px, .82fr); gap: 25px; }
  .nf-similar-layout { --nf-similar-width: 240px; }
}

@media (max-width: 782px) {
  .nf-pdp-breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .nf-pdp-layout { display: flex; flex-direction: column; gap: 0; padding-top: 0; padding-bottom: 22px; }
  .nf-pdp-left { width: 100%; }
  .nf-pdp-gallery-shell { margin-inline: calc(var(--nf-gutter) * -1); }
  .nf-pdp-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-template-columns: none; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .nf-pdp-gallery::-webkit-scrollbar { display: none; }
  .nf-pdp-gallery__item { scroll-snap-align: start; aspect-ratio: 4 / 5; }
  .nf-pdp-gallery-counter { position: absolute; left: 50%; bottom: 14px; z-index: 2; display: inline-flex; min-width: 45px; height: 31px; align-items: center; justify-content: center; padding: 0 8px; transform: translateX(-50%); background: rgba(90,90,90,.88); color: #fff; font-size: 11px; font-weight: 600; }
  .nf-pdp-panel,.admin-bar .nf-pdp-panel { position: static; padding: 24px 0 8px; }
  .nf-pdp-panel h1 { font-size: 26px; }
  .nf-pdp-description-grid { display: block; padding-bottom: 30px; }
  .nf-pdp-short-description { display: none; }
  .nf-pdp-similar { padding-top: 8px; padding-bottom: 50px; }
  .nf-pdp-section-head h2 { font-size: 27px; }
  .nf-similar-layout { --nf-similar-width: 154px; grid-template-columns: var(--nf-similar-width) minmax(0, 1fr); gap: 10px; }
  .nf-similar-scroll { gap: 10px; grid-auto-columns: var(--nf-similar-width); }
  .nf-similar-layout .nf-product-card__title { min-height: 36px; font-size: 12px; }
  .nf-similar-layout .nf-product-card__eyebrow,.nf-similar-layout .nf-product-card__price { font-size: 11px; }
  .nf-similar-layout .nf-wishlist { display: none; }
  .nf-size-guide__panel { width: min(360px, calc(100% - 14px)); padding-inline: 16px; }
  .nf-mobile-cart-dock { position: fixed; right: 0; bottom: 0; left: 0; z-index: 180; display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 7px; padding: 9px 12px max(9px, env(safe-area-inset-bottom)); border-top: 1px solid var(--nf-line); background: rgba(255,255,255,.97); backdrop-filter: blur(10px); }
  .nf-mobile-cart-dock > button:first-child { min-height: 48px; padding: 0 12px; border: 0; background: var(--nf-black); color: #fff; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; }
  .nf-mobile-cart-dock > button:first-child del { color: #bbb; }
  .nf-mobile-cart-dock > button:first-child ins { color: #fff; text-decoration: none; }
  .nf-mobile-cart-dock > button:last-child { border: 1px solid var(--nf-black); background: #fff; font-size: 21px; }
  .single-product .site-footer { padding-bottom: 70px; }
}

@media (max-width: 480px) {
  .nf-selector-head { font-size: 11px; }
  .nf-option-button { min-width: 44px; padding-inline: 10px; }
  .nf-pdp-purchase-row { grid-template-columns: 72px minmax(0, 1fr); }
  .nf-pdp-section-head { align-items: center; }
  .nf-pdp-section-head h2 { font-size: 25px; }
}

/* WooCommerce success notice auto-dismiss transition. Errors are never hidden automatically. */
.woocommerce-message {
  transition: opacity .38s ease, transform .38s ease, max-height .38s ease, margin .38s ease, padding .38s ease, border-width .38s ease;
  transform-origin: top;
}
.woocommerce-message.nf-notice-is-hiding {
  max-height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-top-width: 0 !important;
  border-bottom-width: 0 !important;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-6px);
  pointer-events: none;
}

/* =========================================================
   Commerce UI — Cart / Checkout / Order / Account — v0.4
   WooCommerce remains the commerce engine.
   ========================================================= */
.nf-commerce-page { max-width: 1180px; padding-top: 42px; padding-bottom: 90px; }
.nf-commerce-article > .nf-page-heading { margin-bottom: 34px; }
.nf-page-heading h1 { margin: 0; font-size: clamp(36px, 4vw, 54px); line-height: 1; letter-spacing: -.045em; }
.nf-commerce-page .entry-content { line-height: 1.5; }
.nf-button--outline { background: #fff; color: var(--nf-black); }
.nf-button--outline:hover { background: var(--nf-surface); }

/* Shared commerce surfaces */
.nf-commerce-page :where(input, select, textarea) { border-radius: 0 !important; }
.nf-commerce-page :where(.wc-block-components-button, .button, button.button, input.button) {
  border-radius: 0 !important;
  box-shadow: none !important;
}
.nf-commerce-page :where(.wc-block-components-text-input input, .wc-block-components-combobox-control input, .input-text) {
  min-height: 48px;
  border-color: #bdbdbd !important;
  background: #fff !important;
}
.nf-commerce-page :where(.wc-block-components-text-input input:focus, .wc-block-components-combobox-control input:focus, .input-text:focus) {
  border-color: var(--nf-black) !important;
  box-shadow: 0 0 0 1px var(--nf-black) !important;
  outline: 0;
}
.nf-commerce-page :where(.wc-block-components-notice-banner, .woocommerce-message, .woocommerce-error, .woocommerce-info) {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* ------------------------- Cart ------------------------- */
.nf-cart-page .wp-block-woocommerce-cart { margin: 0; }
.nf-cart-page .wc-block-cart { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .75fr); gap: clamp(42px, 6vw, 86px); }
.nf-cart-page .wc-block-cart__main { width: auto; padding-right: 0; }
.nf-cart-page .wc-block-cart__sidebar { width: auto; margin: 0; }
.nf-cart-page .wc-block-cart-items { border-top: 1px solid var(--nf-line); border-spacing: 0; }
.nf-cart-page .wc-block-cart-items th { padding: 14px 0; color: var(--nf-muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.nf-cart-page .wc-block-cart-items td { padding-top: 24px !important; padding-bottom: 24px !important; border-bottom: 1px solid var(--nf-line) !important; }
.nf-cart-page .wc-block-cart-item__image { width: 110px; }
.nf-cart-page .wc-block-cart-item__image img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #f2f2f2; }
.nf-cart-page .wc-block-components-product-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.nf-cart-page .wc-block-components-product-metadata { color: var(--nf-muted); font-size: 12px; }
.nf-cart-page .wc-block-components-product-price { font-size: 13px; }
.nf-cart-page .wc-block-components-quantity-selector { border-radius: 0; border-color: #bdbdbd; }
.nf-cart-page .wc-block-components-quantity-selector input { font-size: 13px; }
.nf-cart-page .wc-block-cart-item__remove-link { color: var(--nf-text); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.nf-cart-page .wc-block-components-sidebar-layout .wc-block-components-main { padding-right: 0; }
.nf-cart-page .wc-block-components-sidebar { position: sticky; top: 132px; align-self: start; border-top: 1px solid var(--nf-line); }
.admin-bar.nf-cart-page .wc-block-components-sidebar { top: 164px; }
.nf-cart-page .wc-block-components-totals-wrapper { padding: 18px 0; border-color: var(--nf-line); }
.nf-cart-page .wc-block-components-totals-item { font-size: 13px; }
.nf-cart-page .wc-block-components-totals-footer-item { padding-top: 14px; font-size: 22px; }
.nf-cart-page .wc-block-cart__submit-button { min-height: 58px; background: var(--nf-black) !important; color: #fff !important; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .045em; }
.nf-cart-page .wc-block-cart__submit-button:hover { background: #2d2d2d !important; }
.nf-cart-page .wc-block-cart__empty-cart__title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }

/* Classic cart fallback */
.nf-cart-page .woocommerce-cart-form { width: 65%; float: left; padding-right: 48px; }
.nf-cart-page .cart-collaterals { width: 35%; float: right; }
.nf-cart-page .shop_table { border: 0 !important; border-radius: 0 !important; }
.nf-cart-page .shop_table th,.nf-cart-page .shop_table td { border-bottom: 1px solid var(--nf-line); padding: 18px 10px; }
.nf-cart-page .cart_totals { width: 100% !important; }

/* ----------------------- Checkout ----------------------- */
.nf-checkout-page .nf-commerce-page { max-width: 1280px; }
.nf-checkout-page .wp-block-woocommerce-checkout { margin: 0; }
.nf-checkout-page .wc-block-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: clamp(46px, 7vw, 100px); align-items: start; }
.nf-checkout-page .wc-block-checkout__main { width: auto; padding-right: 0; }
.nf-checkout-page .wc-block-checkout__sidebar { width: auto; margin: 0; position: sticky; top: 132px; }
.admin-bar.nf-checkout-page .wc-block-checkout__sidebar { top: 164px; }
.nf-checkout-page .wc-block-components-checkout-step { margin: 0 0 34px; padding: 0 0 34px; border-bottom: 1px solid var(--nf-line); }
.nf-checkout-page .wc-block-components-checkout-step__heading { margin-bottom: 18px; }
.nf-checkout-page .wc-block-components-title { font-size: 18px !important; font-weight: 600 !important; letter-spacing: -.015em; }
.nf-checkout-page .wc-block-components-checkout-step__description { color: var(--nf-muted); font-size: 12px; }
.nf-checkout-page .wc-block-components-address-form { gap: 12px; }
.nf-checkout-page .wc-block-components-radio-control__option { border: 1px solid var(--nf-line); border-radius: 0 !important; margin: 0 0 8px; padding: 16px 16px 16px 46px; }
.nf-checkout-page .wc-block-components-radio-control__option-checked { border-color: var(--nf-black); }
.nf-checkout-page .wc-block-components-checkout-place-order-button { min-height: 58px; border: 1px solid var(--nf-black) !important; background: var(--nf-black) !important; color: #fff !important; font-size: 13px; font-weight: 600; letter-spacing: .045em; text-transform: uppercase; }
.nf-checkout-page .wc-block-components-checkout-place-order-button:hover { background: #2c2c2c !important; }
.nf-checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary { border: 0; }
.nf-checkout-page .wc-block-checkout__sidebar .wc-block-components-order-summary__button-text { font-size: 14px; font-weight: 600; }
.nf-checkout-page .wc-block-components-order-summary-item { padding: 16px 0; }
.nf-checkout-page .wc-block-components-order-summary-item__image { width: 72px; }
.nf-checkout-page .wc-block-components-order-summary-item__image img { aspect-ratio: 4/5; object-fit: cover; }
.nf-checkout-page .wc-block-components-order-summary-item__description { padding-left: 12px; }
.nf-checkout-page .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-size: 12px; font-weight: 600; line-height: 1.3; }
.nf-checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-wrapper { padding: 17px 0; border-color: var(--nf-line); }
.nf-checkout-page .wc-block-checkout__sidebar .wc-block-components-totals-footer-item { font-size: 21px; }
body.nf-checkout-submitting .wc-block-components-checkout-place-order-button,
body.nf-checkout-submitting #place_order { opacity: .62; cursor: wait; }

/* Classic checkout fallback */
.nf-checkout-page form.checkout.woocommerce-checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); column-gap: 70px; }
.nf-checkout-page #customer_details { grid-column: 1; }
.nf-checkout-page #order_review_heading,.nf-checkout-page #order_review { grid-column: 2; }
.nf-checkout-page #order_review { align-self: start; }
.nf-checkout-page .woocommerce-billing-fields__field-wrapper,.nf-checkout-page .woocommerce-shipping-fields__field-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nf-checkout-page .form-row { width: 100% !important; margin: 0 !important; }
.nf-checkout-page .form-row-wide { grid-column: 1 / -1; }
.nf-checkout-page #place_order { width: 100%; min-height: 58px; }

/* ------------------- Order confirmation ------------------- */
.nf-order-received-page .nf-page-heading { display: none; }
.nf-order-received-page .nf-commerce-page { max-width: 980px; }
.nf-order-received-page :where(.woocommerce-order, .wp-block-woocommerce-order-confirmation-status) { padding-top: 10px; }
.nf-order-received-page .woocommerce-thankyou-order-received,
.nf-order-received-page .wp-block-woocommerce-order-confirmation-status { margin: 0 0 28px; font-size: clamp(34px, 5vw, 58px); font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.nf-order-received-page .woocommerce-order-overview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 0; margin: 0 0 40px; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.nf-order-received-page .woocommerce-order-overview li { margin: 0 !important; padding: 18px 18px 18px 0; border-right: 0 !important; color: var(--nf-muted); font-size: 11px; text-transform: uppercase; }
.nf-order-received-page .woocommerce-order-overview strong { display: block; margin-top: 6px; color: var(--nf-text); font-size: 14px; font-weight: 600; text-transform: none; }
.nf-order-received-page :where(.woocommerce-order-details, .woocommerce-customer-details, .wp-block-woocommerce-order-confirmation-totals-wrapper, .wp-block-woocommerce-order-confirmation-billing-address, .wp-block-woocommerce-order-confirmation-shipping-address) { margin-top: 34px; }
.nf-order-received-page :where(.woocommerce-order-details h2, .woocommerce-customer-details h2, [class*="wp-block-woocommerce-order-confirmation"] h2) { font-size: 20px; letter-spacing: -.02em; }
.nf-order-received-page .woocommerce-table { border: 0 !important; border-radius: 0 !important; }
.nf-order-received-page .woocommerce-table th,.nf-order-received-page .woocommerce-table td { padding: 16px 8px; border-bottom: 1px solid var(--nf-line); }
.nf-thankyou-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* ---------------------- My Account ---------------------- */
.nf-account-page .nf-commerce-page { max-width: 1180px; }

/*
 * Keep WooCommerce notices out of the account two-column flow.
 * WooCommerce can print notices (temporary password, errors, confirmations)
 * before the navigation. Without explicit placement those notices become the
 * first grid cell and push navigation/content into the wrong columns.
 */
.nf-account-page.logged-in .woocommerce {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  column-gap: clamp(42px, 6vw, 84px);
  row-gap: 28px;
  align-items: start;
}
.nf-account-page.logged-in .woocommerce > * { min-width: 0; }
.nf-account-page.logged-in .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) {
  grid-column: 1 / -1;
}
.nf-account-page.logged-in .woocommerce > .woocommerce-notices-wrapper:empty { display: none; }
.nf-account-page.logged-in .woocommerce > .woocommerce-MyAccount-navigation {
  grid-column: 1;
}
.nf-account-page.logged-in .woocommerce > .woocommerce-MyAccount-content {
  grid-column: 2;
  width: 100%;
}

.nf-account-page .woocommerce-MyAccount-navigation { position: sticky; top: 132px; border-top: 1px solid var(--nf-line); }
.admin-bar.nf-account-page .woocommerce-MyAccount-navigation { top: 164px; }
.nf-account-page .woocommerce-MyAccount-navigation ul { margin: 0; padding: 0; list-style: none; }
.nf-account-page .woocommerce-MyAccount-navigation li { margin: 0; border-bottom: 1px solid var(--nf-line); }
.nf-account-page .woocommerce-MyAccount-navigation a { min-height: 48px; display: flex; align-items: center; color: #4e4e4e; font-size: 13px; }
.nf-account-page .woocommerce-MyAccount-navigation .is-active a { color: var(--nf-black); font-weight: 700; }
.nf-account-page .woocommerce-MyAccount-content { min-width: 0; }
.nf-account-page .woocommerce-MyAccount-content > p:first-child { margin-top: 0; }

/* Account notices: full width, readable, and compatible with WC button markup. */
.nf-account-page :where(.woocommerce-info, .woocommerce-message, .woocommerce-error) {
  width: 100%;
  margin: 0 !important;
  padding: 16px 18px !important;
  border: 1px solid var(--nf-line) !important;
  border-top: 2px solid var(--nf-black) !important;
  background: #f7f7f7 !important;
  color: var(--nf-text) !important;
  line-height: 1.55;
  word-break: normal;
  overflow-wrap: break-word;
}
.nf-account-page :where(.woocommerce-info, .woocommerce-message, .woocommerce-error) .button {
  float: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 0 16px !important;
  padding: 0 18px !important;
  background: var(--nf-black) !important;
  color: #fff !important;
  border: 1px solid var(--nf-black) !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
.nf-account-page .woocommerce-orders-table,.nf-account-page .woocommerce-table { width: 100%; border: 0 !important; border-radius: 0 !important; border-collapse: collapse; }
.nf-account-page .woocommerce-orders-table th,.nf-account-page .woocommerce-orders-table td,.nf-account-page .woocommerce-table th,.nf-account-page .woocommerce-table td { padding: 15px 10px; border-bottom: 1px solid var(--nf-line); text-align: left; font-size: 13px; }
.nf-account-page .woocommerce-Address { padding: 20px; border: 1px solid var(--nf-line); }
.nf-account-page .woocommerce-Address-title h2 { font-size: 18px; }
.nf-account-page fieldset { margin-top: 24px; border: 0; padding: 0; }
.nf-account-page legend { margin-bottom: 15px; font-size: 18px; font-weight: 600; }
.nf-account-page .woocommerce-form-login,.nf-account-page .woocommerce-form-register { padding: 0 !important; border: 0 !important; border-radius: 0 !important; }

/* Logged-out account screen: neutralize WooCommerce's legacy .col-1/.col-2 floats. */
.nf-account-page:not(.logged-in) .woocommerce { display: block !important; }
.nf-account-page:not(.logged-in) #customer_login {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 8vw, 110px);
  width: 100%;
  align-items: start;
}
.nf-account-page:not(.logged-in) #customer_login::before,
.nf-account-page:not(.logged-in) #customer_login::after { display: none !important; content: none !important; }
.nf-account-page:not(.logged-in) #customer_login > .u-column1,
.nf-account-page:not(.logged-in) #customer_login > .u-column2,
.nf-account-page:not(.logged-in) #customer_login > .col-1,
.nf-account-page:not(.logged-in) #customer_login > .col-2 {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 28px 0 0 !important;
  border-top: 1px solid var(--nf-line);
}
.nf-account-page:not(.logged-in) #customer_login h2 {
  margin: 0 0 28px;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -.03em;
}
.nf-account-page:not(.logged-in) #customer_login .woocommerce-form-row,
.nf-account-page:not(.logged-in) #customer_login .form-row {
  float: none !important;
  width: 100% !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}
.nf-account-page:not(.logged-in) #customer_login label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 500;
}
.nf-account-page:not(.logged-in) #customer_login .input-text,
.nf-account-page:not(.logged-in) #customer_login input[type="email"],
.nf-account-page:not(.logged-in) #customer_login input[type="text"],
.nf-account-page:not(.logged-in) #customer_login input[type="password"] {
  width: 100% !important;
  min-height: 50px;
}
.nf-account-page:not(.logged-in) #customer_login .password-input {
  display: block;
  width: 100%;
  position: relative;
}
.nf-account-page:not(.logged-in) #customer_login .show-password-input {
  top: 50% !important;
  transform: translateY(-50%);
}
.nf-account-page:not(.logged-in) #customer_login .woocommerce-form-login__rememberme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 14px 0;
}
.nf-account-page:not(.logged-in) #customer_login .woocommerce-form-login__rememberme input { width: auto !important; }
.nf-account-page:not(.logged-in) #customer_login .woocommerce-form-login__submit,
.nf-account-page:not(.logged-in) #customer_login .woocommerce-form-register__submit {
  min-width: 120px;
  min-height: 48px;
}
.nf-account-page:not(.logged-in) #customer_login .woocommerce-LostPassword {
  margin-top: 16px;
  font-size: 13px;
}
.nf-account-page:not(.logged-in) #customer_login .woocommerce-privacy-policy-text {
  max-width: 520px;
  color: var(--nf-muted);
  font-size: 13px;
  line-height: 1.65;
}

.nf-account-nav-toggle { display: none; width: 100%; min-height: 50px; align-items: center; justify-content: space-between; padding: 0; border: 0; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); background: #fff; font-weight: 600; text-align: left; }

@media (max-width: 900px) {
  .nf-cart-page .wc-block-cart,
  .nf-checkout-page .wc-block-checkout { grid-template-columns: 1fr; gap: 34px; }
  .nf-cart-page .wc-block-components-sidebar,
  .nf-checkout-page .wc-block-checkout__sidebar { position: static; }
  .nf-checkout-page form.checkout.woocommerce-checkout { grid-template-columns: 1fr; }
  .nf-checkout-page #customer_details,.nf-checkout-page #order_review_heading,.nf-checkout-page #order_review { grid-column: 1; }
  .nf-cart-page .woocommerce-cart-form,.nf-cart-page .cart-collaterals { width: 100%; float: none; padding-right: 0; }
  .nf-account-page.logged-in .woocommerce { grid-template-columns: 180px minmax(0,1fr); column-gap: 32px; row-gap: 24px; }
}

@media (max-width: 900px) and (min-width: 761px) {
  .nf-account-page:not(.logged-in) #customer_login { gap: 40px; }
}

@media (max-width: 760px) {
  .nf-commerce-page { width: min(calc(100% - 28px), var(--nf-max)); padding-top: 28px; padding-bottom: 64px; }
  .nf-commerce-article > .nf-page-heading { margin-bottom: 24px; }
  .nf-page-heading h1 { font-size: 34px; }

  .nf-cart-page .wc-block-cart-items td { padding-top: 18px !important; padding-bottom: 18px !important; }
  .nf-cart-page .wc-block-cart-item__image { width: 82px; }
  .nf-cart-page .wc-block-cart-item__total { padding-left: 8px !important; }
  .nf-cart-page .wc-block-components-sidebar { padding-top: 6px; }

  .nf-checkout-page .wc-block-components-checkout-step { margin-bottom: 26px; padding-bottom: 26px; }
  .nf-checkout-page .wc-block-checkout__sidebar { padding-top: 2px; }
  .nf-checkout-page .wc-block-components-radio-control__option { padding-left: 44px; }
  .nf-checkout-page .woocommerce-billing-fields__field-wrapper,.nf-checkout-page .woocommerce-shipping-fields__field-wrapper { grid-template-columns: 1fr; }

  .nf-order-received-page .woocommerce-order-overview { grid-template-columns: 1fr 1fr; }
  .nf-thankyou-actions { display: grid; grid-template-columns: 1fr; }

  .nf-account-page.logged-in .woocommerce { display: block; }
  .nf-account-page.logged-in .woocommerce > :not(.woocommerce-MyAccount-navigation):not(.woocommerce-MyAccount-content) { width: 100%; margin-bottom: 18px; }
  .nf-account-page :where(.woocommerce-info, .woocommerce-message, .woocommerce-error) .button { margin: 10px 0 0 !important; }
  .nf-account-nav-toggle { display: flex; }
  .nf-account-page .woocommerce-MyAccount-navigation { display: none; position: static; margin-bottom: 24px; }
  .nf-account-page.nf-account-nav-open .woocommerce-MyAccount-navigation { display: block; }
  .nf-account-page .woocommerce-MyAccount-navigation a { min-height: 46px; }
  .nf-account-page:not(.logged-in) #customer_login { grid-template-columns: 1fr; gap: 40px; }
  .nf-account-page .woocommerce-orders-table thead { display: none; }
  .nf-account-page .woocommerce-orders-table tr { display: grid; padding: 14px 0; border-bottom: 1px solid var(--nf-line); }
  .nf-account-page .woocommerce-orders-table td { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; border: 0; }
  .nf-account-page .woocommerce-orders-table td::before { content: attr(data-title); color: var(--nf-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
}


/* =========================================================
   My Account polish — v0.4.3
   - neutralize legacy WooCommerce floats/widths
   - prevent account-page horizontal overflow
   - clean confirmation/empty-state notices
   - tighten account content rhythm
   ========================================================= */
body.nf-account-page {
  overflow-x: clip;
}

.nf-account-page .nf-commerce-page,
.nf-account-page .nf-commerce-article,
.nf-account-page .entry-content,
.nf-account-page .woocommerce,
.nf-account-page .woocommerce-MyAccount-content {
  min-width: 0;
  max-width: 100%;
}

/* WooCommerce classic account CSS still ships floats/percentage widths. */
.nf-account-page .woocommerce-MyAccount-navigation,
.nf-account-page .woocommerce-MyAccount-content {
  float: none !important;
}
.nf-account-page .woocommerce-MyAccount-navigation {
  width: 100% !important;
  max-width: 240px;
}
.nf-account-page .woocommerce-MyAccount-content {
  width: 100% !important;
}

/* Keep the readable account canvas compact rather than stretching edge-to-edge. */
.nf-account-page.logged-in .woocommerce {
  grid-template-columns: minmax(180px, 220px) minmax(0, 780px);
  justify-content: start;
  column-gap: clamp(44px, 6vw, 86px);
}
.nf-account-page .woocommerce-MyAccount-content {
  max-width: 780px;
}
.nf-account-page .nf-commerce-article > .nf-page-heading {
  margin-bottom: 28px;
}

/* Remove WooCommerce's absolutely positioned status icons. They were
   overlapping the first letter (e.g. AConfirmation / Noorder). */
.nf-account-page :where(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before,
.nf-account-page .woocommerce-notices-wrapper :where(.woocommerce-info, .woocommerce-message, .woocommerce-error)::before {
  display: none !important;
  content: none !important;
}

/* Account notices and empty states. */
.nf-account-page .woocommerce-info,
.nf-account-page .woocommerce-message {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 62px;
  padding: 16px 18px !important;
}
.nf-account-page .woocommerce-info .button,
.nf-account-page .woocommerce-message .button {
  order: 2;
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
}
.nf-account-page .woocommerce-error {
  padding-left: 18px !important;
}
.nf-account-page .woocommerce-error li {
  margin: 0;
}

/* Empty Orders screen: keep text and action clearly separated. */
.nf-account-page .woocommerce-MyAccount-content > .woocommerce-info {
  margin-top: 0 !important;
}

/* Tables should never create a page-level scrollbar. */
.nf-account-page .woocommerce-MyAccount-content .woocommerce-orders-table,
.nf-account-page .woocommerce-MyAccount-content .woocommerce-table {
  table-layout: auto;
  max-width: 100%;
}
.nf-account-page .woocommerce-MyAccount-content .woocommerce-orders-table-responsive,
.nf-account-page .woocommerce-MyAccount-content .woocommerce-table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 900px) {
  .nf-account-page.logged-in .woocommerce {
    grid-template-columns: 170px minmax(0, 1fr);
    column-gap: 30px;
  }
  .nf-account-page .woocommerce-MyAccount-navigation {
    max-width: 170px;
  }
  .nf-account-page .woocommerce-MyAccount-content {
    max-width: none;
  }
}

@media (max-width: 760px) {
  body.nf-account-page { overflow-x: hidden; }
  .nf-account-page .woocommerce-MyAccount-navigation {
    width: 100% !important;
    max-width: none;
  }
  .nf-account-page .woocommerce-MyAccount-content {
    width: 100% !important;
    max-width: none;
  }
  .nf-account-page .woocommerce-info,
  .nf-account-page .woocommerce-message {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    min-height: 0;
    padding: 15px 16px !important;
  }
  .nf-account-page .woocommerce-info .button,
  .nf-account-page .woocommerce-message .button {
    order: 2;
    width: max-content;
    max-width: 100%;
    margin: 0 !important;
  }
}

/* =========================================================
   My Account mobile navigation — v0.4.4
   - compact trigger in document flow
   - account navigation opens as a bottom sheet
   - navigation no longer pushes notices/orders downward
   ========================================================= */
.nf-account-nav-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .nf-account-page.logged-in .nf-commerce-article > .nf-page-heading {
    margin-bottom: 18px;
  }

  .nf-account-nav-toggle {
    display: flex;
    min-height: 48px;
    padding: 0 2px;
    margin: 0 0 20px;
    border-top: 1px solid var(--nf-line);
    border-bottom: 1px solid var(--nf-line);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    position: relative;
    z-index: 2;
  }

  .nf-account-nav-toggle > span:last-child {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    font-size: 0;
    position: relative;
  }

  .nf-account-nav-toggle > span:last-child::before,
  .nf-account-nav-toggle > span:last-child::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease;
  }

  .nf-account-nav-toggle > span:last-child::before {
    transform: translateX(-2.5px) rotate(45deg);
  }
  .nf-account-nav-toggle > span:last-child::after {
    transform: translateX(2.5px) rotate(-45deg);
  }

  .nf-account-page.nf-account-nav-open .nf-account-nav-toggle > span:last-child::before {
    transform: translateX(-2.5px) rotate(-45deg);
  }
  .nf-account-page.nf-account-nav-open .nf-account-nav-toggle > span:last-child::after {
    transform: translateX(2.5px) rotate(45deg);
  }

  .nf-account-page .woocommerce-MyAccount-navigation,
  .nf-account-page.nf-account-nav-open .woocommerce-MyAccount-navigation {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 121;
    width: 100% !important;
    max-width: none;
    max-height: min(72vh, 560px);
    overflow-y: auto;
    overscroll-behavior: contain;
    margin: 0;
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #111;
    box-shadow: 0 -16px 50px rgba(0,0,0,.12);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s ease;
  }

  .nf-account-page.nf-account-nav-open .woocommerce-MyAccount-navigation {
    transform: translateY(0);
    visibility: visible;
  }

  .nf-account-page .woocommerce-MyAccount-navigation::before {
    content: "Account menu";
    display: block;
    padding: 4px 0 14px;
    border-bottom: 1px solid var(--nf-line);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
  }

  .nf-account-page .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--nf-line);
  }

  .nf-account-page .woocommerce-MyAccount-navigation a {
    min-height: 50px;
    font-size: 14px;
  }

  .nf-account-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 120;
    border: 0;
    margin: 0;
    padding: 0;
    background: rgba(0,0,0,.35);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
  }

  .nf-account-page.nf-account-nav-open .nf-account-nav-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.nf-account-page.nf-account-nav-open {
    overflow: hidden;
  }

  .nf-account-page .woocommerce-MyAccount-content {
    margin-top: 0;
  }

  .nf-account-page .woocommerce-MyAccount-content > :where(.woocommerce-info, .woocommerce-message) {
    margin-top: 0 !important;
  }

  .nf-account-page .woocommerce-info,
  .nf-account-page .woocommerce-message {
    border-width: 1px;
    padding: 16px 14px !important;
    line-height: 1.5;
  }

  .nf-account-page .woocommerce-info .button,
  .nf-account-page .woocommerce-message .button {
    min-height: 40px;
    padding: 10px 14px !important;
    font-size: 12px;
  }
}

/* =========================================================
   Storefront polish & production hardening — v0.5.0
   ========================================================= */

/* Global keyboard focus treatment. Mouse users keep the clean visual style. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--nf-black);
  outline-offset: 3px;
}
.icon-button:focus-visible,
.nf-wishlist:focus-visible,
.nf-pdp-wishlist:focus-visible {
  outline-offset: 1px;
}

/* Native hidden state should always win over component display rules. */
[hidden] { display: none !important; }

/* Hero is now a real responsive image instead of a CSS background so the
   browser can prioritize it as the page LCP asset. */
.home-hero.has-image { background-image: none; }
.home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.home-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.home-hero__overlay { z-index: 1; }
.home-hero__content { z-index: 2; }

/* Product availability states. */
.nf-product-card.is-sold-out .nf-product-card__image img {
  filter: saturate(.72);
  opacity: .82;
}
.nf-product-badge--sold-out {
  background: var(--nf-black);
  color: #fff;
}
.nf-product-card__stock {
  margin-top: 5px;
  color: #8a3030;
  font-size: 11px;
  font-weight: 500;
}
.nf-variation-status {
  min-height: 0;
  margin: 10px 0 0;
  color: var(--nf-muted);
  font-size: 12px;
  line-height: 1.45;
}
.nf-variation-status[hidden] { display: none !important; }
.nf-variation-status[data-state="error"] { color: #9b2d2d; }
.nf-option-button.is-disabled {
  position: relative;
  opacity: .42;
  cursor: not-allowed;
}
.nf-option-button.is-disabled::after {
  content: "";
  position: absolute;
  inset: 50% 5px auto;
  height: 1px;
  background: currentColor;
  transform: rotate(-18deg);
}
.nf-mobile-cart-dock.is-unavailable > button:first-child,
.nf-mobile-cart-dock > button:first-child.is-unavailable,
.nf-mobile-cart-dock > button:first-child[disabled] {
  background: #8d8d8d;
  cursor: not-allowed;
}

/* Shared storefront notice styling outside the account-specific rules. */
.woocommerce-notices-wrapper:not(:empty) { width: 100%; }
body:not(.nf-account-page) :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  border-radius: 0;
  box-shadow: none;
}
.woocommerce-error { list-style: none; }

/* Reusable empty state used by Search/404-adjacent commerce states. */
.nf-empty-state {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: 48px 20px;
  text-align: center;
  border-top: 1px solid var(--nf-line);
}
.nf-empty-state__mark {
  width: 34px;
  height: 34px;
  border: 1px solid var(--nf-black);
  border-radius: 50%;
  position: relative;
}
.nf-empty-state__mark::before,
.nf-empty-state__mark::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: var(--nf-black);
}
.nf-empty-state__mark::before { transform: translate(-50%, -50%); }
.nf-empty-state__mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.nf-empty-state h2 {
  margin: 4px 0 0;
  font-size: clamp(26px, 3vw, 38px);
  letter-spacing: -.035em;
}
.nf-empty-state p {
  max-width: 480px;
  margin: 0 0 8px;
  color: var(--nf-muted);
  font-size: 14px;
}

/* WooCommerce Cart empty states — Blocks and classic shortcode. */
.nf-cart-page :where(.wp-block-woocommerce-empty-cart-block, .wc-block-cart__empty-cart__title + .wp-block-heading) {
  text-align: center;
}
.nf-cart-page .wp-block-woocommerce-empty-cart-block {
  min-height: 430px;
  padding: 50px 0;
}
.nf-cart-page .wc-block-cart__empty-cart__title,
.nf-cart-page .cart-empty.woocommerce-info {
  margin-top: 0;
}
.nf-cart-page .cart-empty.woocommerce-info {
  padding: 22px !important;
  border: 1px solid var(--nf-line);
  background: var(--nf-surface);
  text-align: center;
}
.nf-cart-page .return-to-shop { text-align: center; }
.nf-cart-page .return-to-shop .button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 1px solid var(--nf-black);
  background: var(--nf-black);
  color: #fff;
  text-transform: uppercase;
}

/* Search */
.nf-search-page { padding: 0 0 90px; }
.nf-search-hero {
  padding-top: clamp(52px, 7vw, 92px);
  padding-bottom: 36px;
  border-bottom: 1px solid var(--nf-line);
}
.nf-search-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}
.nf-search-hero > p {
  margin: 16px 0 0;
  color: var(--nf-muted);
  font-size: 13px;
}
.nf-search-page__form,
.nf-inline-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.nf-search-page__form {
  max-width: 680px;
  margin-top: 28px;
}
.nf-search-page__form input,
.nf-inline-search input {
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid #aaa;
  border-radius: 0;
  background: #fff;
}
.nf-search-results { padding-top: 38px; }
.nf-generic-results { display: grid; gap: 0; border-top: 1px solid var(--nf-line); }
.nf-generic-result { padding: 28px 0; border-bottom: 1px solid var(--nf-line); }
.nf-generic-result h2 { margin: 0 0 8px; font-size: 28px; }
.nf-generic-result p { max-width: 760px; margin: 0; color: var(--nf-muted); }

/* Pagination */
.nf-pagination { margin-top: 56px; }
.nf-pagination .nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nf-pagination .page-numbers {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid var(--nf-line);
  font-size: 12px;
}
.nf-pagination .page-numbers.current { border-color: var(--nf-black); background: var(--nf-black); color: #fff; }
.nf-pagination .prev,
.nf-pagination .next { width: auto; }

/* 404 */
.nf-error-page { padding: clamp(70px, 10vw, 150px) 0; }
.nf-error-page__inner {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) minmax(0, 1fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}
.nf-error-code {
  font-size: clamp(100px, 15vw, 220px);
  font-weight: 600;
  line-height: .72;
  letter-spacing: -.08em;
  color: #e7e7e7;
}
.nf-error-page h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: .95;
  letter-spacing: -.05em;
}
.nf-error-page p {
  max-width: 590px;
  margin: 0 0 28px;
  color: var(--nf-muted);
}
.nf-error-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.nf-error-page .nf-inline-search { max-width: 590px; }
.nf-inline-search button {
  min-width: 100px;
  border: 1px solid var(--nf-black);
  background: var(--nf-black);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Newsletter has no provider yet: disclose that instead of pretending success. */
.newsletter-form__status {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: var(--nf-muted);
  font-size: 11px;
}

/* Search / overlay transitions should not create layout shifts. */
.search-panel.is-open { animation: nf-fade-in .16s ease both; }
@keyframes nf-fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Defensive media sizing for dynamic content. */
.entry-content :where(img, video, iframe),
.woocommerce :where(img, video) { max-width: 100%; }
.entry-content iframe { width: 100%; }

@media (max-width: 760px) {
  .nf-search-page { padding-bottom: 60px; }
  .nf-search-hero { padding-top: 38px; padding-bottom: 28px; }
  .nf-search-hero h1 { font-size: 39px; }
  .nf-search-page__form { grid-template-columns: 1fr; }
  .nf-search-page__form .nf-button { width: 100%; }
  .nf-search-results { padding-top: 26px; }
  .nf-empty-state { min-height: 330px; padding-inline: 10px; }
  .nf-error-page { padding: 56px 0 70px; }
  .nf-error-page__inner { grid-template-columns: 1fr; gap: 28px; }
  .nf-error-code { font-size: 96px; }
  .nf-error-page h1 { font-size: 45px; }
  .nf-error-actions { display: grid; grid-template-columns: 1fr; }
  .nf-error-actions .nf-button { width: 100%; }
  .nf-error-page .nf-inline-search { grid-template-columns: 1fr; }
  .nf-inline-search button { min-height: 48px; }
}

/* Respect OS reduced-motion preferences. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Mobile drawer product search. */
.mobile-product-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  margin-top: 18px;
  border-bottom: 1px solid var(--nf-black);
}
.mobile-product-search input[type="search"] {
  min-width: 0;
  height: 46px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--nf-text);
  font-size: 14px;
}
.mobile-product-search button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}
.mobile-product-search svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =========================================================
   Storefront refinements — v0.5.1
   ========================================================= */

/* Keep one deliberate search close control. Chromium/WebKit adds a native
   cancel X to type=search inputs; the header already provides its own close. */
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal { display: none; width: 0; height: 0; }

/* Product cards with no usable price should not leave an empty price row and
   then drop the availability message far below the title. */
.nf-product-card__price--unavailable {
  min-height: 24px;
  display: flex;
  align-items: center;
  margin-top: 0;
  color: #8a3030;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.nf-product-card.is-unavailable .nf-product-card__meta {
  display: flex;
  min-height: 128px;
  flex-direction: column;
}
.nf-product-card.is-unavailable .nf-product-card__price--unavailable {
  margin-top: auto;
}

/* Empty cart: WooCommerce Blocks adds a large sad-face pseudo icon. For a
   fashion storefront this consumes too much first-screen space, so keep the
   empty message compact and bring “New in store” directly into view. */
.nf-cart-page .wp-block-woocommerce-empty-cart-block {
  min-height: 0;
  padding: 8px 0 28px;
}
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
  display: none !important;
  content: none !important;
}
.nf-cart-page .wc-block-cart__empty-cart__title {
  margin: 4px 0 24px !important;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
}
.nf-cart-page .wp-block-woocommerce-empty-cart-block > .wp-block-heading,
.nf-cart-page .wc-block-cart__empty-cart__title + .wp-block-heading {
  margin-top: 22px !important;
  margin-bottom: 22px !important;
  font-size: clamp(24px, 2.6vw, 34px);
}

/* WordPress' mobile admin bar becomes non-sticky on very small screens. Do
   not keep reserving its old 46px offset after it has scrolled away. */
@media (max-width: 600px) {
  .admin-bar .site-header { top: 0; }
  .admin-bar .shop-toolbar-wrap { top: 62px; }

  .nf-cart-page .wp-block-woocommerce-empty-cart-block { padding-top: 2px; }
  .nf-cart-page .wc-block-cart__empty-cart__title { margin-bottom: 18px !important; font-size: 28px; }
  .nf-cart-page .wp-block-woocommerce-empty-cart-block > .wp-block-heading,
  .nf-cart-page .wc-block-cart__empty-cart__title + .wp-block-heading {
    margin-top: 18px !important;
    margin-bottom: 16px !important;
    font-size: 24px;
  }

  .nf-product-card.is-unavailable .nf-product-card__meta { min-height: 116px; }
  .nf-product-card__price--unavailable { font-size: 10px; }
}

/* =========================================================
   Storefront refinements — v0.5.2
   ========================================================= */

/* Keep the native WooCommerce Blocks sad-face empty-cart mark, but reduce its
   footprint so the New in store products remain visible much sooner. */
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
  display: block !important;
  content: "" !important;
  width: 92px !important;
  height: 92px !important;
  margin: 0 auto 14px !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.nf-cart-page .wp-block-woocommerce-empty-cart-block {
  padding-top: 16px;
  padding-bottom: 22px;
}
.nf-cart-page .wc-block-cart__empty-cart__title {
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}

/* Unavailable/no-price products should read as one compact information group,
   rather than reserving an artificial card height and pushing status downward. */
.nf-product-card.is-unavailable .nf-product-card__meta {
  display: block;
  min-height: 0;
}
.nf-product-card.is-unavailable .nf-product-card__price--unavailable {
  min-height: 0;
  margin-top: 7px;
}
.nf-product-card__stock {
  margin-top: 3px;
}

@media (max-width: 600px) {
  .nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::before,
  .nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon:before {
    width: 68px !important;
    height: 68px !important;
    margin-bottom: 10px !important;
  }
  .nf-cart-page .wp-block-woocommerce-empty-cart-block {
    padding-top: 8px;
    padding-bottom: 18px;
  }
  .nf-product-card.is-unavailable .nf-product-card__meta { min-height: 0; }
  .nf-product-card.is-unavailable .nf-product-card__price--unavailable { margin-top: 5px; }
}

/* Tighter Shop/Search card rhythm: do not reserve a forced two-line title box
   when a product name only needs one line. */
.shop-product-grid .nf-product-card__meta,
.nf-search-product-grid .nf-product-card__meta {
  padding-top: 8px;
}
.shop-product-grid .nf-product-card__title,
.nf-search-product-grid .nf-product-card__title {
  min-height: 0;
  margin-bottom: 4px;
}
.shop-product-grid { row-gap: 28px; }

@media (max-width: 760px) {
  .shop-product-grid { row-gap: 22px; }
  .shop-product-grid .nf-product-card__meta,
  .nf-search-product-grid .nf-product-card__meta { padding-top: 7px; }
}

/* =========================================================
   Catalogue search — v0.5.4
   Search behaves like a retail PLP rather than a generic WP page.
   ========================================================= */
.nf-catalog-search__head {
  padding-top: 34px;
  padding-bottom: 24px;
}
.nf-catalog-search__head h1 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3.1vw, 44px);
  line-height: 1;
  letter-spacing: -.035em;
}
.nf-catalog-search__form {
  position: relative;
  max-width: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px 38px;
  align-items: center;
  border-bottom: 1px solid #777;
}
.nf-catalog-search__submit svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nf-catalog-search__form input[type="search"] {
  width: 100%;
  height: 48px;
  min-width: 0;
  padding: 0 12px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}
.nf-catalog-search__clear,
.nf-catalog-search__submit {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--nf-text);
  cursor: pointer;
}
.nf-catalog-search__clear {
  font-size: 22px;
  font-weight: 300;
}
.nf-catalog-search__clear[hidden] { display: none; }
.nf-catalog-search__meta {
  min-height: 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 13px;
  color: var(--nf-muted);
  font-size: 11px;
}
.nf-search-toolbar-wrap {
  position: sticky;
}
.nf-search-catalog-layout {
  padding-top: 24px;
}
.nf-catalog-search .shop-load-more {
  margin-top: 42px;
}

@media (max-width: 760px) {
  .nf-catalog-search__head {
    padding-top: 20px;
    padding-bottom: 12px;
  }
  .nf-catalog-search__head h1 {
    margin-bottom: 14px;
    font-size: 24px;
  }
  .nf-catalog-search__form {
    max-width: none;
    grid-template-columns: minmax(0, 1fr) 32px 32px;
  }
  .nf-catalog-search__form input[type="search"] {
    height: 42px;
    padding-inline: 9px;
    font-size: 13px;
  }
  .nf-catalog-search__clear,
  .nf-catalog-search__submit {
    width: 32px;
    height: 36px;
  }
  .nf-catalog-search__meta {
    min-height: 30px;
    padding-top: 9px;
    font-size: 10px;
  }
  .nf-search-catalog-layout { padding-top: 14px; }
  .nf-catalog-search .shop-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 7px;
  }
}
