/*
 * NUEFELT v0.5.6 — Branding Alignment + Regression Fixes
 * Visual source of truth: approved NUEFELT × minimal apparel prototype.
 * This file is intentionally loaded after main.css so the branding layer can
 * evolve independently from commerce/layout logic.
 */

:root {
  --nf-brand: #ff625f;
  --nf-brand-dark: #e65250;
  --nf-black: #111111;
  --nf-white: #ffffff;
  --nf-text: #111111;
  --nf-muted: #6b6b6b;
  --nf-line: #e6e6e6;
  --nf-surface: #f6f6f6;
  --nf-surface-warm: #f5f3ef;
  --nf-max: 1440px;
  --nf-font: "Barlow", Arial, Helvetica, sans-serif;
}

html { background: var(--nf-white); }
body {
  color: var(--nf-text);
  background: var(--nf-white);
  font-family: var(--nf-font);
  line-height: 1.4;
  letter-spacing: 0;
}

/* ---------- Brand rhythm ---------- */
.announcement-bar {
  min-height: 34px;
  padding: 0 16px;
  background: var(--nf-black);
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
}

.header-row {
  height: 72px;
  gap: 42px;
}
.brand-logo__image { width: 46px; height: 46px; }
.desktop-nav { gap: 28px; }
.desktop-nav a {
  padding: 27px 0 24px;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .035em;
  line-height: 1;
  text-decoration: none;
  transition: color .18s ease, border-color .18s ease;
}
.desktop-nav a:hover,
.desktop-nav .current-menu-item > a,
.desktop-nav .current-menu-ancestor > a {
  border-bottom-color: var(--nf-brand);
  color: var(--nf-brand);
  text-decoration: none;
}
.header-actions { gap: 8px; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; }
.icon-button:hover { background: var(--nf-surface); }
.icon-button svg { width: 20px; height: 20px; stroke-width: 1.8; }
.cart-count { background: var(--nf-brand); }

.search-panel { border-color: var(--nf-line); }
.search-panel__inner { min-height: 52px; }
.product-search input {
  height: 48px;
  color: var(--nf-text);
  font-size: 14px;
}

/* ---------- Buttons / links ---------- */
.nf-button,
.woocommerce :where(.button, button.button, input.button),
.wp-element-button,
.wc-block-components-button:not(.is-link) {
  min-height: 48px;
  padding-inline: 26px;
  border-radius: 0 !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.nf-button,
.woocommerce :where(.button, button.button, input.button),
.wc-block-components-button:not(.is-link) {
  border-color: var(--nf-black) !important;
  background: var(--nf-black) !important;
  color: #fff !important;
}
.nf-button:hover,
.woocommerce :where(.button, button.button, input.button):hover,
.wc-block-components-button:not(.is-link):hover {
  border-color: #2b2b2b !important;
  background: #2b2b2b !important;
}
.nf-button--brand {
  border-color: var(--nf-brand) !important;
  background: var(--nf-brand) !important;
}
.nf-button--brand:hover {
  border-color: var(--nf-brand-dark) !important;
  background: var(--nf-brand-dark) !important;
}
.nf-button--light {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--nf-black) !important;
}
.text-link {
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 5px;
}
.eyebrow {
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}

/* ---------- Homepage ---------- */
.home-hero { min-height: 74vh; }
.home-hero__image { object-position: center 38%; }
.home-hero__overlay {
  background: linear-gradient(90deg, rgba(0,0,0,.56), rgba(0,0,0,.12) 58%, rgba(0,0,0,.02));
}
.home-hero__content { padding-bottom: 10vh; }
.home-hero h1 {
  max-width: 620px;
  margin-bottom: 20px;
  font-size: clamp(48px, 6.2vw, 86px);
  font-weight: 500;
  line-height: .96;
  letter-spacing: -.035em;
}
.home-hero p { max-width: 470px; margin-bottom: 28px; font-size: 17px; }
.home-section { padding: 72px 0; }
.home-section--compact { padding: 52px 0; }
.section-heading { gap: 20px; margin-bottom: 28px; }
.section-heading h2 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-heading p { margin-top: 7px; font-size: 14px; }
.category-card__label {
  padding: 10px 13px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
}
.brand-story { min-height: 620px; background: var(--nf-surface-warm); }
.brand-story__copy { padding: 64px; }
.brand-story__copy h2 {
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.035em;
}
.brand-story__copy p { color: #444; font-size: 16px; }
.newsletter-section { padding: 54px 0; background: #f3f3f3; }
.newsletter-grid h2 { font-size: 28px; font-weight: 500; }
.newsletter-form button { font-weight: 600; }

/* ---------- Product cards ---------- */
.nf-product-grid,
.shop-product-grid { gap: 28px 14px; }
.nf-product-card__image { background: #f2f2f2; }
.nf-product-card__meta { padding-top: 11px; }
.nf-product-card__eyebrow {
  margin-bottom: 4px;
  color: var(--nf-muted);
  font-size: 11px;
  letter-spacing: .02em;
}
.nf-product-card__title {
  min-height: 0;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.nf-product-card__price {
  min-height: 0;
  margin-bottom: 8px;
  font-size: 15px;
}
.nf-product-card__price del { margin-right: 6px; color: #8a8a8a; font-size: 12px; }
.nf-product-card__price ins { color: var(--nf-brand); font-weight: 600; }
.nf-product-badge {
  padding: 6px 8px;
  background: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
}
.nf-product-card:not(.is-sold-out) .nf-product-badge { background: var(--nf-brand); color: #fff; }
.nf-product-badge--sold-out { background: var(--nf-black) !important; color: #fff; }
.nf-wishlist { width: 36px; height: 36px; }
.nf-product-card__stock,
.nf-product-card__price--unavailable {
  color: #a34541;
  font-size: 12px;
}

/* ---------- Shop / Search ---------- */
.shop-breadcrumbs,
.nf-pdp-breadcrumbs { color: #686868; font-size: 11px; }
.shop-hero { padding-top: 38px; padding-bottom: 26px; }
.shop-hero h1,
.nf-search-page .search-heading h1 {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -.03em;
}
.shop-hero p { font-size: 14px; }
.shop-category-nav { gap: 30px; border-top: 1px solid var(--nf-line); border-bottom: 1px solid var(--nf-line); }
.shop-category-nav a {
  min-height: 0;
  padding: 17px 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}
.shop-category-nav a:hover,
.shop-category-nav a.is-active {
  border-bottom-color: var(--nf-brand);
  background: transparent;
  color: var(--nf-brand);
}
.shop-toolbar-wrap { background: rgba(255,255,255,.98); }
.shop-toolbar { min-height: 62px; }
.shop-toolbar__count { font-weight: 400; }
.shop-sort select { font-size: 12px; }
.shop-filter-group summary { font-size: 13px; }
.shop-size-list span { min-height: 42px; }
.shop-load-more { margin-top: 58px; }

/* ---------- PDP ---------- */
.nf-pdp-title {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -.03em;
}
.nf-pdp-price { font-size: 22px; }
.nf-pdp-price ins { color: var(--nf-brand); }
.nf-pdp-eyebrow { font-weight: 500; }
.nf-option-button {
  min-height: 43px;
  border-color: #aaa;
  font-size: 11px;
}
.nf-option-button.is-active { border-color: var(--nf-black); background: var(--nf-black); color: #fff; }
.nf-pdp .nf-add-to-cart { min-height: 52px; font-weight: 600 !important; letter-spacing: .035em; }
.nf-pdp-accordion-button { font-size: 13px; font-weight: 600; }

/* ---------- Forms / WooCommerce ---------- */
:where(.woocommerce, .wc-block-components-form) input:not([type="checkbox"]):not([type="radio"]),
:where(.woocommerce, .wc-block-components-form) select,
:where(.woocommerce, .wc-block-components-form) textarea {
  border-radius: 0 !important;
  border-color: #bcbcbc !important;
  background: #fff !important;
  box-shadow: none !important;
}
:where(.woocommerce, .wc-block-components-form) input:focus,
:where(.woocommerce, .wc-block-components-form) select:focus,
:where(.woocommerce, .wc-block-components-form) textarea:focus {
  border-color: var(--nf-black) !important;
  outline: 1px solid var(--nf-black);
  outline-offset: -1px;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.wc-block-components-notice-banner {
  border-radius: 0 !important;
  border-color: var(--nf-line) !important;
  background: #f7f7f7 !important;
  color: var(--nf-text) !important;
}

/* ---------- Cart / Checkout / Account ---------- */
.nf-page-heading,
.nf-commerce-page > h1,
.nf-cart-page .nf-page-heading,
.nf-checkout-page .nf-page-heading,
.nf-account-page .nf-page-heading {
  font-weight: 500;
  letter-spacing: -.03em;
}
.nf-cart-page .wc-block-components-sidebar,
.nf-checkout-page .wc-block-checkout__sidebar,
.nf-account-page .woocommerce-Address {
  border-color: var(--nf-line);
}
.nf-order-received-page .woocommerce-thankyou-order-received,
.nf-order-received-page .wp-block-woocommerce-order-confirmation-status {
  font-weight: 500;
  letter-spacing: -.035em;
}
.nf-account-page .woocommerce-MyAccount-navigation .is-active a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0 26px; border-color: var(--nf-line); }
.footer-grid { gap: 40px; }
.footer-column h2 {
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
}
.footer-column a,
.footer-column li { margin: 9px 0; color: #444; font-size: 13px; }
.footer-bottom { margin-top: 46px; color: #777; }

@media (max-width: 1000px) {
  .header-row { gap: 22px; }
  .desktop-nav { gap: 18px; }
  .brand-story__copy { padding: 46px 28px; }
}

@media (max-width: 782px) {
  .announcement-bar { min-height: 30px; font-size: 10px; }
  .header-row { height: 60px; gap: 10px; }
  .brand-logo__image { width: 38px; height: 38px; }
  .home-hero { min-height: 68vh; }
  .home-hero__content { padding-bottom: 7vh; }
  .home-hero h1 { font-size: 48px; }
  .home-hero p { font-size: 14px; }
  .home-section { padding: 50px 0; }
  .section-heading h2 { font-size: 25px; }
  .brand-story__copy { padding: 38px 20px; }
  .brand-story__copy h2 { font-size: 42px; }
  .nf-product-grid,
  .shop-product-grid { gap: 24px 8px; }
  .nf-product-card__title,
  .nf-product-card__price { font-size: 12px; }
  .shop-hero h1,
  .nf-search-page .search-heading h1 { font-size: 34px; }
  .footer-grid { gap: 28px 22px; }
}

/* =========================================================
   v0.5.6 — Branding regression fixes
   Keeps the v0.5.5 visual system while aligning sticky geometry and
   restoring WooCommerce empty-cart artwork safely.
   ========================================================= */

/* The branding pass changed the desktop header from 78px to 72px. Keep all
   sticky catalogue surfaces tied to the branded header dimensions. */
:root {
  --nf-branded-header-h: 72px;
  --nf-branded-shop-toolbar-h: 62px;
  --nf-wp-adminbar-h: 32px;
}

/* Sticky surfaces must be fully opaque. Product imagery scrolling beneath an
   rgba header looked like the header itself was broken. */
.site-header,
.shop-toolbar-wrap {
  background: #fff !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.site-header { z-index: 120; }
.shop-toolbar-wrap {
  top: var(--nf-branded-header-h) !important;
  z-index: 90;
}
.admin-bar .shop-toolbar-wrap {
  top: calc(var(--nf-wp-adminbar-h) + var(--nf-branded-header-h)) !important;
}
.shop-sidebar {
  top: calc(var(--nf-branded-header-h) + var(--nf-branded-shop-toolbar-h) + 20px) !important;
}
.admin-bar .shop-sidebar {
  top: calc(var(--nf-wp-adminbar-h) + var(--nf-branded-header-h) + var(--nf-branded-shop-toolbar-h) + 20px) !important;
}

/* Hero CTA is deliberately light on the dark photographic hero. Strengthen
   specificity so generic WooCommerce/button rules cannot repaint it black. */
.home-hero .nf-button.nf-button--light {
  border-color: #fff !important;
  background: #fff !important;
  color: var(--nf-black) !important;
}
.home-hero .nf-button.nf-button--light:hover {
  border-color: #f0f0f0 !important;
  background: #f0f0f0 !important;
  color: var(--nf-black) !important;
}

/* WooCommerce Blocks draws the empty-cart face with a pseudo-element whose
   implementation can change between versions. Render our own stable SVG face
   rather than resizing the block's mask/background and accidentally exposing
   a solid black square. */
.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 {
  content: "" !important;
  display: block !important;
  width: 76px !important;
  height: 76px !important;
  margin: 0 auto 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-color: transparent !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'%3E%3Ccircle cx='40' cy='40' r='36' fill='%23111111'/%3E%3Ccircle cx='29' cy='30' r='5' fill='white'/%3E%3Ccircle cx='52' cy='30' r='5' fill='white'/%3E%3Cpath d='M31 56c6-7 15-8 24-2' fill='none' stroke='white' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M20 42c-5 8-7 12-7 16a7 7 0 0 0 14 0c0-4-2-8-7-16Z' fill='white'/%3E%3C/svg%3E") !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  -webkit-mask: none !important;
  mask: none !important;
  box-shadow: none !important;
}
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon::after,
.nf-cart-page .wc-block-cart__empty-cart__title.with-empty-cart-icon:after {
  content: none !important;
  display: none !important;
}
.nf-cart-page .wp-block-woocommerce-empty-cart-block {
  padding-top: 10px !important;
  padding-bottom: 18px !important;
}
.nf-cart-page .wc-block-cart__empty-cart__title {
  margin-top: 0 !important;
  margin-bottom: 16px !important;
}
.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: 16px !important;
}

@media (max-width: 900px) {
  /* Below 900px the filter itself is a fixed drawer, so desktop sticky sidebar
     offsets must not override its absolute positioning. */
  .shop-sidebar,
  .admin-bar .shop-sidebar {
    top: auto !important;
  }
}

@media (max-width: 782px) {
  :root {
    --nf-branded-header-h: 60px;
    --nf-branded-shop-toolbar-h: 56px;
    --nf-wp-adminbar-h: 46px;
  }
  .shop-toolbar-wrap { top: var(--nf-branded-header-h) !important; }
  .admin-bar .shop-toolbar-wrap {
    top: calc(var(--nf-wp-adminbar-h) + var(--nf-branded-header-h)) !important;
  }
  .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: 62px !important;
    height: 62px !important;
    margin-bottom: 10px !important;
  }
}

@media (max-width: 600px) {
  /* WordPress' front-end admin bar stops being sticky at this width. */
  .admin-bar .shop-toolbar-wrap { top: var(--nf-branded-header-h) !important; }
}
