/* ==========================================================================
   New Zosha — Custom styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --nz-bg: #ffffff;
  --nz-bg-alt: #f0ede6;
  --nz-text: #011502;
  --nz-text-light: #011502;
  --nz-border: #e0ddd6;
  --nz-accent: #011502;
  --nz-white: #ffffff;

  /* Typography */
  --nz-font-heading: "Inter", "Helvetica Neue", Arial, sans-serif;
  --nz-font-body: "Inter", "Helvetica Neue", Arial, sans-serif;
  /* Spacing */
  --nz-section-gap: clamp(60px, 8vw, 120px);
  --nz-container-max: 1400px;
  --nz-container-padding: clamp(20px, 4vw, 60px);
}

/* --------------------------------------------------------------------------
   2. Base / Reset overrides
   -------------------------------------------------------------------------- */
body {
  background-color: var(--nz-bg);
  color: var(--nz-text);
  font-family: var(--nz-font-body);
  font-size: 16px;
  line-height: 1.56;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--nz-font-heading);
  font-weight: 500;
  letter-spacing: normal;
  text-transform: uppercase;
  line-height: 1;
  color: var(--nz-text);
}

h4 { letter-spacing: 0.1em; font-weight: 400; }

p {
  font-size: 14px;
  line-height: 1.56;
  color: var(--nz-text);
}

/* --------------------------------------------------------------------------
   4. Links & Buttons
   -------------------------------------------------------------------------- */
a {
  color: var(--nz-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* CTA button — outlined (WPS style: white bg, wipe hover) */
.nz-btn {
  display: inline-block;
  padding: 8px 15px;
  border: 0.8px solid var(--nz-text);
  color: var(--nz-text);
  font-family: var(--nz-font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.125em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  background: var(--nz-white, #fff);
  position: relative;
  overflow: hidden;
  z-index: 0;
}

.nz-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  transform: scaleY(0);
  transform-origin: center top;
  transition: transform 0.3s ease;
  z-index: -1;
}

.nz-btn:hover::before {
  transform: scaleY(1);
  transform-origin: center bottom;
}

/* CTA button — filled */
.nz-btn--filled {
  background: var(--nz-text);
  color: var(--nz-white);
}

.nz-btn--filled:hover {
  background: transparent;
  color: var(--nz-text);
}

/* Text link with arrow */
.nz-link {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--nz-text);
  padding-bottom: 2px;
}

/* --------------------------------------------------------------------------
   5. Layout helpers
   -------------------------------------------------------------------------- */
.nz-container {
  max-width: var(--nz-container-max);
  margin: 0 auto;
  padding: 0 var(--nz-container-padding);
}

.nz-section {
  padding: var(--nz-section-gap) 0;
}

.nz-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nz-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.nz-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 991px) {
  .nz-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .nz-grid-2 { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 575px) {
  .nz-grid-2 { grid-template-columns: 1fr; }
  .nz-grid-3 { grid-template-columns: 1fr; }
  .nz-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   6a. Homepage: hide page title, full-width content
   -------------------------------------------------------------------------- */
body.home .entry-header,
body.home .hero-section,
body.home [data-hero] {
  display: none !important;
}

/* Full-width homepage content — remove ALL container constraints */
body.home .site-main > article > .entry-content {
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.home .ct-container,
body.home .ct-container-full {
  max-width: 100% !important;
  padding: 0 !important;
}

/* Override Gutenberg constrained layout on homepage — force full-width */
body.home .entry-content.is-layout-constrained > * {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* Restore container padding for inner sections that need it */
body.home .nz-container {
  max-width: var(--nz-container-max) !important;
  margin: 0 auto !important;
  padding: 0 var(--nz-container-padding);
}

/* --------------------------------------------------------------------------
   6b. WC archive pages — header, sticky bar, disable sticky header
   -------------------------------------------------------------------------- */


/* Disable Blocksy sticky header on WC archives — breadcrumb bar is sticky instead */
body.post-type-archive-product .ct-sticky-container > *,
body.tax-product_cat .ct-sticky-container > * {
  position: relative !important;
}

/* Archive header — title + description (WPS-style, left-aligned) */
.nz-archive-header {
  padding: 48px 0 24px;
  text-align: left !important;
  max-width: 1440px;
}

.nz-archive-title {
  font-family: var(--nz-font-heading);
  font-size: 30px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--nz-text);
  margin-bottom: 12px;
}

.nz-archive-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--nz-text-light);
  text-align: left;
  max-height: 3.4em; /* ~2 lines */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.nz-archive-desc::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2em;
  background: linear-gradient(transparent, var(--nz-bg));
  pointer-events: none;
  transition: opacity 0.3s;
}

.nz-archive-desc.is-expanded {
  max-height: 1000px;
}

.nz-archive-desc.is-expanded::after {
  opacity: 0;
}

.nz-archive-desc p {
  margin-bottom: 8px;
}

.nz-archive-desc p:last-child {
  margin-bottom: 0;
}

/* Shared toggle button style */
.nz-toggle-btn {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nz-text);
  background: none;
  border: none;
  border-bottom: 1px solid var(--nz-text);
  cursor: pointer;
  padding: 0 0 2px;
  font-family: var(--nz-font-body);
  transition: opacity 0.2s;
}
.nz-toggle-btn:hover {
  opacity: 0.6;
}

.nz-archive-desc-toggle {
  margin-top: 8px;
}

/* Sticky breadcrumb + sort/filter bar */
.nz-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nz-bg);
  padding: 14px 0;
  margin-bottom: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Breadcrumbs */
.nz-breadcrumbs {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--nz-text-light);
  margin-bottom: 0;
}

.nz-breadcrumbs a {
  color: var(--nz-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.nz-breadcrumbs a:hover {
  color: var(--nz-text);
}

.nz-breadcrumbs__sep {
  margin: 0 4px;
  opacity: 0.4;
}

/* Woo listing top — hide (contents moved to .nz-sticky-bar__actions by JS) */
.nz-sticky-bar .woo-listing-top {
  display: contents;
}

.nz-sticky-bar .woo-listing-top .woocommerce-result-count {
  display: none;
}

/* Right side: sorting + filter icon grouped */
.nz-sticky-bar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Sort icon wrapper */
.nz-sort-icon {
  display: flex;
  align-items: center;
  color: var(--nz-text);
  position: relative;
  overflow: hidden;
}

/* Ordering select — invisible, overlaid on sort icon only */
.nz-sticky-bar .woocommerce-ordering,
.nz-sticky-bar .fibofilters-ordering {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.nz-sticky-bar .woocommerce-ordering select,
.nz-sticky-bar .fibofilters-ordering select {
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin-left: auto;
}

/* Filter icon button (cloned from FiboFilters "All filters") */
.nz-filter-icon {
  display: flex;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: var(--nz-text);
}

.nz-filter-icon svg,
.nz-sort-icon svg {
  width: 18px;
  height: 18px;
}

/* Utility: hide elements via class (used by JS instead of inline styles) */
.nz-hidden {
  display: none !important;
}

/* Hide FiboFilters bars */
.fibofilters-horizontal-filters-container {
  display: none !important;
}
.fibofilters-mobile-filters-container {
  position: fixed !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* FiboFilters — site colors (must override inline FiboFilters styles) */
body {
  --fibofilters--colors--base: #011502 !important;
  --fibofilters--colors--link: #011502 !important;
}

/* FiboFilters button "Voir X produits" */
.fibofilters-offcanvas-btn,
.fibofilters-mobile-overlay__footer .fibofilters-button {
  background-color: var(--nz-text) !important;
}

/* FiboFilters: force all UI elements to site colors */
.fibofilters-offcanvas-header,
.fibofilters-offcanvas-header *,
.fibofilters-offcanvas-close,
.fibofilters-offcanvas-close *,
.fibofilters-offcanvas-clear,
.fibofilters-mobile-overlay__header,
.fibofilters-mobile-overlay__header *,
.fibofilters-mobile-overlay__header-close,
.fibofilters-mobile-overlay__header-clear,
.fibofilters-applied-filter,
.fibofilters-applied-filter *,
.fibofilters-block__headline-box svg path,
.fibofilters-block__headline svg path {
  color: var(--nz-text) !important;
  stroke: var(--nz-text) !important;
}

/* FiboFilters checkbox + radio: black border (non-selected only) */
.fibofilters-item:not(.fibofilters-selected) > .fibofilters-item__interactive > .fibofilters-item__control,
.fibofilters-item:not(.fibofilters-selected) > .fibofilters-collapser-container > .fibofilters-item__interactive > .fibofilters-item__control {
  box-shadow: inset 0 0 0 1px var(--nz-text) !important;
}

/* FiboFilters radio selected: black fill + white checkmark */
.fibofilters-item--radio.fibofilters-selected > .fibofilters-item__interactive > .fibofilters-item__control {
  background: var(--nz-text) !important;
  box-shadow: none !important;
}
.fibofilters-item--radio.fibofilters-selected > .fibofilters-item__interactive > .fibofilters-item__control::after {
  content: '' !important;
  display: block !important;
  width: 5px !important;
  height: 9px !important;
  border: solid #fff !important;
  border-width: 0 2px 2px 0 !important;
  transform: translate(-50%, -55%) rotate(45deg) !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
}

/* FiboFilters color/button items */
.fibofilters-item--button {
  box-shadow: inset 0 0 0 1px var(--nz-text) !important;
}
.fibofilters-item--button:hover {
  box-shadow: inset 0 0 0 2px var(--nz-text) !important;
}

/* SEO text block (after products) — centered, collapsible */
.nz-seo-text {
  padding: 60px 0 40px;
  border-top: 1px solid var(--nz-border);
  margin-top: 60px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--nz-text-light);
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.nz-seo-text__inner {
  max-height: 6.4em; /* ~3.5 lines at 1.8 line-height */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
}

.nz-seo-text__inner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(transparent, var(--nz-bg));
  pointer-events: none;
  transition: opacity 0.3s;
}

.nz-seo-text.is-expanded .nz-seo-text__inner {
  max-height: none;
}

.nz-seo-text.is-expanded .nz-seo-text__inner::after {
  opacity: 0;
}

.nz-seo-text__toggle {
  margin-top: 16px;
}

.nz-seo-text p {
  margin-bottom: 12px;
}

.nz-seo-text h2 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  text-transform: none;
  color: var(--nz-text);
}

.nz-seo-text h3 {
  font-size: 18px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 12px;
  text-transform: none;
  color: var(--nz-text);
}

.nz-seo-text h2:first-child,
.nz-seo-text h3:first-child,
.nz-seo-text__inner h2:first-child,
.nz-seo-text__inner h3:first-child {
  margin-top: 0;
}

@media (max-width: 767px) {
  .nz-archive-header {
    padding: 28px 0 16px;
  }

  .nz-archive-title {
    font-size: 21px;
  }

  .nz-sticky-bar {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nz-sticky-bar .woo-listing-top {
    margin: 0;
  }

  /* Mobile: sort icon visible, select overlaid transparently on top */
  .nz-sticky-bar__actions .nz-sort-icon {
    display: flex;
  }

  .nz-seo-text {
    padding: 40px 0 24px;
    margin-top: 40px;
  }

  .nz-seo-text__inner {
    max-height: 5.4em; /* ~3 lines mobile */
  }
}

/* --------------------------------------------------------------------------
   6c. Announcement bar (surmenu)
   -------------------------------------------------------------------------- */
.nz-announcement-bar {
  background: var(--nz-bg-alt);
  text-align: center;
  padding: 10px 20px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-family: var(--nz-font-heading);
  border-bottom: 1px solid var(--nz-border);
  position: relative;
  z-index: 101;
  overflow: hidden;
  min-height: 38px;
}

.nz-announcement-bar__slide {
  opacity: 0;
  transition: opacity 0.5s ease;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  white-space: nowrap;
  pointer-events: none;
}

.nz-announcement-bar__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.nz-announcement-bar a,
.nz-announcement-bar a:hover {
  color: var(--nz-text);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.nz-announcement-bar a::before,
.nz-announcement-bar a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--nz-text);
  display: block;
}

.nz-announcement-bar a::before {
  transform: scaleX(0);
  transform-origin: left center;
}

.nz-announcement-bar a::after {
  transform-origin: right center;
}

.nz-announcement-bar a:hover::before,
.nz-announcement-bar a:hover::after {
  transition: transform 1.1s cubic-bezier(0.19, 1, 0.22, 1);
  transform: scaleX(0);
}

.nz-announcement-bar a:hover::before {
  transform: scaleX(1);
  transition-delay: 0.25s;
}

/* --------------------------------------------------------------------------
   5b. Mega Menu (WPS-style)
   -------------------------------------------------------------------------- */

/* Overlay behind mega panel — starts below header, not full page */
.nz-mega-overlay {
  position: fixed;
  top: var(--nz-header-bottom, 110px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.nz-mega-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Container for all mega panels — flows after header, zero height */
.nz-mega-container {
  position: relative;
  z-index: 100;
  height: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

/* Individual mega panel */
.nz-mega-panel {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--nz-bg);
  border-bottom: 1px solid var(--nz-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.nz-mega-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nz-mega-panel__inner {
  display: grid;
  grid-template-columns: 200px 200px 1fr;
  gap: 40px;
  max-width: var(--nz-container-max);
  margin: 0 auto;
  padding: 36px var(--nz-container-padding);
}

/* Col 1: category links — simple vertical list like WPS */
.nz-mega-panel__cats {
  display: flex;
  flex-direction: column;
}

.nz-mega-panel__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nz-mega-panel__list li {
  margin-bottom: 6px;
}

.nz-mega-panel__list li a {
  font-size: 14px;
  color: var(--nz-text);
  text-decoration: none;
  transition: opacity 0.2s, font-weight 0.15s;
}

.nz-mega-panel__list li a:hover {
  opacity: 0.6;
}

/* Bold the hovered left item that has subs (like WPS "Footwear") */
.nz-mega-panel__list li.is-sub-active a {
  font-weight: 600;
  opacity: 1;
}

.nz-mega-panel__all-item {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--nz-border);
}

.nz-mega-panel__all-item a {
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px !important;
}

/* Col 2: sub-subcategories — hidden by default, shown on hover via JS */
.nz-mega-panel__subs {
  min-height: 0;
}

.nz-mega-panel__sublist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: none;
}

.nz-mega-panel__sublist.is-active {
  display: block;
}

.nz-mega-panel__sublist li {
  margin-bottom: 6px;
}

.nz-mega-panel__sublist li a {
  font-size: 14px;
  color: var(--nz-text);
  text-decoration: none;
  transition: opacity 0.2s;
}

.nz-mega-panel__sublist li a:hover {
  opacity: 0.6;
}

/* Col 3: featured product images — large, editorial style like WPS */
.nz-mega-panel__featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.nz-mega-panel__product {
  display: block;
  text-decoration: none;
  overflow: hidden;
}

.nz-mega-panel__product img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
}

.nz-mega-panel__product:hover img {
  transform: scale(1.03);
  opacity: 0.92;
}

.nz-mega-panel__featured-wrap {
  display: flex;
  flex-direction: column;
}

.nz-mega-panel__featured-title {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--nz-text);
}

.nz-mega-panel__product-name {
  font-size: 13px;
  font-weight: 400;
  margin-top: 8px;
  color: var(--nz-text);
}

.nz-mega-panel__product-price {
  font-size: 13px;
  color: var(--nz-text-light);
  margin-top: 2px;
}

/* Mobile: full-width stacked panel */
@media (max-width: 999px) {
  .nz-mega-container,
  .nz-mega-overlay {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Header overrides (Blocksy)
   -------------------------------------------------------------------------- */
header[data-id="type-1"] {
  position: relative;
  z-index: 101;
  background: var(--nz-bg) !important;
  border-bottom: none !important;
  box-shadow: none !important;
  transition: transform 0.3s ease;
}

/* Sticky header — #header needed to beat Blocksy's #header { position: relative } */
#header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  border-bottom: 1px solid var(--nz-border) !important;
  animation: nz-slideDown 0.3s ease;
}

@keyframes nz-slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Mega container follows sticky header */
.nz-mega-container.is-sticky {
  position: fixed;
  top: var(--nz-header-bottom, 70px);
  left: 0;
  right: 0;
}

/* Sticky spacer (prevents content jump) */
.nz-sticky-spacer {
  display: block;
}

/* Logo text styling */
.site-title {
  font-family: var(--nz-font-heading);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Nav links */
[data-id="menu"] .menu > li > a {
  font-size: 13px !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  color: var(--nz-text) !important;
}

/* Mega menu trigger items — prevent cursor flicker between items */
[data-id="menu"] .menu > li[data-mega-menu] {
  cursor: pointer;
}
[data-id="menu"] .menu > li[data-mega-menu] > a {
  cursor: pointer;
  pointer-events: auto;
}

/* Hide dropdown arrows on all top-level parent menu items (desktop) */
@media (min-width: 768px) {
  [data-id="menu"] .menu > li > a > .ct-toggle-dropdown-desktop {
    display: none !important;
  }
}

/* Hide Blocksy native dropdown on mega menu items */
[data-id="menu"] .menu > li[data-mega-menu] > .sub-menu {
  display: none !important;
}

/* Menu responsive — reduce spacing at narrower viewports */
@media (max-width: 1400px) {
  [data-id="menu"] .menu > li > a {
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
  }
}

/* Cart & search icons */
.ct-header-cart,
.ct-header-search {
  color: var(--nz-text) !important;
}

/* --------------------------------------------------------------------------
   7. Hero section
   -------------------------------------------------------------------------- */
.nz-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 85vh;
  max-height: 900px;
  min-height: 450px;
  overflow: hidden;
}

.nz-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nz-hero__overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  color: var(--nz-white);
  background: rgba(0, 0, 0, 0.25);
  padding: 48px 64px;
  backdrop-filter: blur(2px);
}

.nz-hero__overlay h1 {
  color: var(--nz-white);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  margin-bottom: 12px;
}

.nz-hero__overlay p {
  color: var(--nz-white);
  font-size: 18px;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  max-width: none;
}

.nz-hero__overlay .nz-btn {
  background: var(--nz-white);
  color: var(--nz-text);
  border-color: var(--nz-text);
}
/* hover handled by .nz-btn::before wipe */

@media (max-width: 1024px) {
  .nz-hero {
    height: 70vh;
    min-height: 400px;
  }
}

@media (max-width: 767px) {
  /* Mobile FP: spacing */
  .single-product .entry-summary .product_title {
    margin-bottom: 0 !important;
  }
  .single-product .entry-summary .price {
    margin-top: 4px !important;
  }
  .single-product .entry-summary .grc-product-summary {
    display: none !important;
  }
  .single-product .entry-summary .alma-product-eligibility {
    margin-bottom: 20px !important;
    max-width: 70% !important;
  }
  .single-product .nz-desc-toggle {
    margin-bottom: 20px !important;
  }

  .nz-hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    height: auto;
    max-height: none;
    min-height: auto;
  }
  .nz-hero__img {
    height: 50vh;
    min-height: 250px;
  }
  .nz-hero__overlay {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    padding: 24px 20px;
    top: auto;
    bottom: 50%;
    left: 50%;
    transform: translate(-50%, 50%);
  }
  .nz-hero__overlay h1 {
    font-size: clamp(28px, 8vw, 42px);
    line-height: 1.15;
  }
  .nz-hero__overlay p {
    font-size: 16px;
  }

  /* Announcement bar — smaller on mobile */
  .nz-announcement-bar {
    padding: 6px 12px;
    font-size: 10px;
    min-height: 30px;
  }

  /* Header icons — reduce gap between search & cart */
  header[data-id="type-1"] [data-column="end"] {
    gap: 8px !important;
  }

  /* Center logo on mobile — remove Blocksy margin offset */
  header[data-id="type-1"] .site-branding {
    margin: 0 !important;
    display: flex;
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   8. Section headers
   -------------------------------------------------------------------------- */
.nz-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.nz-section-header__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nz-text-light);
  margin-bottom: 8px;
  display: block;
}

.nz-section-header h2 {
  margin-bottom: 12px;
}

.nz-section-header p {
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. Product cards (WooCommerce overrides)
   -------------------------------------------------------------------------- */
.wc-block-grid__product,
.woocommerce ul.products li.product {
  text-align: left;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.wc-block-grid__product-image img,
.woocommerce ul.products li.product a img {
  border-radius: 8px !important;
  transition: opacity 0.3s ease;
}

.wc-block-grid__product:hover img,
.woocommerce ul.products li.product:hover a img {
  opacity: 0.9;
}

/* Product card: title + price tight under image (WPS-style) */
.woocommerce ul.products li.product figure,
.related.products .flexy-item figure,
.upsells.products .flexy-item figure {
  margin-bottom: 8px !important;
}

/* Prevent layout shift in related/upsell sliders.
   Blocksy flexy collapses off-screen items to 1px and transitions min-height
   over 0.2s when sliding — this causes visible price pop-in.
   Override: keep all items at full height, no height transitions. */
.related.products [data-flexy] .flexy-items > *,
.upsells.products [data-flexy] .flexy-items > * {
  height: auto !important;
  min-height: 0 !important;
  transition: none !important;
}

.related.products .flexy-view,
.upsells.products .flexy-view {
  height: auto !important;
  transition: none !important;
}

.woocommerce ul.products li.product .grc-category-stars,
.related.products .grc-category-stars,
.upsells.products .grc-category-stars {
  display: none !important;
}

.wc-block-grid__product-title,
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.related.products .woocommerce-loop-product__title,
.upsells.products .woocommerce-loop-product__title {
  font-family: var(--nz-font-heading) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 0.08em !important;
  text-transform: none !important;
  color: var(--nz-text) !important;
  margin: 0 !important;
  padding: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4 !important;
}

.wc-block-grid__product-price,
.woocommerce ul.products li.product .price,
.related.products .price,
.upsells.products .price {
  font-size: 13px !important;
  color: var(--nz-text-light) !important;
  font-weight: 400 !important;
  margin: 2px 0 0 !important;
  line-height: 1.4 !important;
  min-height: 1.4em;
}

/* Reduce spacing between product rows */
.woocommerce ul.products {
  row-gap: 24px !important;
}

/* Wishlist heart: selected = red fill, white bg */
.ct-wishlist-button-archive[data-button-state="active"],
.ct-wishlist-button-single[data-button-state="active"] {
  background-color: #fff !important;
}
.ct-wishlist-button-archive[data-button-state="active"] svg,
.ct-wishlist-button-single[data-button-state="active"] svg {
  color: #c25b5b !important;
}
.ct-wishlist-button-archive[data-button-state="active"] svg .ct-heart-fill,
.ct-wishlist-button-single[data-button-state="active"] svg .ct-heart-fill {
  fill: #c25b5b !important;
}

/* Prevent heart SVG from being clipped at sub-pixel zoom levels */
.ct-wishlist-button-archive svg,
.ct-wishlist-button-single svg {
  overflow: visible !important;
}

/* Prevent heart button from being clipped by product card */
.woocommerce ul.products li.product .ct-media-container,
.woocommerce ul.products li.product a.ct-media-container,
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .ct-image-container {
  overflow: visible !important;
}
/* FP wishlist button */
.single-product .entry-summary {
  overflow: visible !important;
}

/* Remove default WC buttons on product cards */
.woocommerce ul.products li.product .button,
.wc-block-grid__product .wp-block-button {
  display: none !important;
}

/* --------------------------------------------------------------------------
   9b. Single product page — WPS-style gallery grid (desktop only)
   -------------------------------------------------------------------------- */
/* Desktop: WPS-style product image grid */
@media (min-width: 768px) {
  /* Product block: padding on edges, capped on large screens */
  .single-product .product-entry-wrapper {
    max-width: none;
    padding-left: var(--nz-container-padding);
    padding-right: var(--nz-container-padding);
    gap: 60px;
  }

  .single-product .product-entry-wrapper > .summary.entry-summary {
    margin-left: 0;
  }

  @media (min-width: 1600px) {
    .single-product .product-entry-wrapper {
      max-width: 1400px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 0;
      padding-right: 0;
    }
  }

  /* Hide Blocksy flexy gallery on desktop */
  .single-product .woocommerce-product-gallery {
    display: none !important;
  }

  /* Title-price spacing + padding above title */
  .single-product .entry-summary .product_title {
    padding-top: 25px;
    margin-bottom: 0 !important;
  }

  .single-product .grc-product-summary {
    margin: 0 !important;
  }

  .single-product .entry-summary .price {
    margin-top: 10px;
  }

  /* Custom image grid: 2 columns */
  .nz-pdp-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 40px;
    flex: 1 1 60%;
  }

  /* Summary: sticky, takes 40% */
  .single-product .summary.entry-summary {
    flex: 0 1 40%;
    min-width: 320px;
    position: sticky;
    top: 50px;
    align-self: start;
    margin-top: 40px;
  }

  .nz-pdp-gallery__item a {
    display: block;
    cursor: zoom-in;
  }

  .nz-pdp-gallery__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 4px;
    display: block;
  }
}

/* Hide captions in lightbox */
.pswp__caption,
.pswp__caption__center {
  display: none !important;
}

/* Single product: hide quantity selector */
.single-product .quantity {
  display: none !important;
}

/* Single product: full-width add to cart button */
.single-product .single_add_to_cart_button {
  width: 100%;
}

/* SUMO points: move below wishlist, match wishlist style */
.single-product .price .simpleshopmessage,
.single-product .price .simpleshopmessage + br {
  display: none;
}

/* Alma widget: light beige background, half width */
.single-product .alma-product-eligibility {
  background-color: #f7f4ef;
  border-radius: 4px;
  padding: 2px;
  max-width: 50%;
}

.single-product .entry-summary #ppcp-recaptcha-v2-container {
  margin: 0 !important;
}

/* Hide Alma duplicate inside cart form (keep the one under price via hook) */
.single-product .ct-product-add-to-cart .alma-product-eligibility {
  display: none !important;
}

.single-product .nz-sumo-points {
  font-size: 13px;
  color: var(--nz-text);
  margin-top: 4px;
  text-align: center;
}

/* Out of stock block */
.nz-out-of-stock {
  margin-top: 16px;
}

.nz-out-of-stock .out-of-stock {
  color: #c00;
  font-size: 13px;
  margin-bottom: 12px;
}

.nz-out-of-stock .button {
  width: 100%;
  text-align: center;
}

/* Hide "En stock" but keep "Rupture de stock" visible */
.single-product .stock.in-stock {
  display: none;
}

/* Short description: collapsible "Lire plus" */
.single-product .woocommerce-product-details__short-description {
  font-size: 14px;
  line-height: 1.6;
  max-height: 9em; /* ~5 lines */
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s ease;
  margin-bottom: 0 !important;
}

.single-product .woocommerce-product-details__short-description::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3em;
  background: linear-gradient(transparent, var(--nz-bg));
  pointer-events: none;
  transition: opacity 0.3s;
}

.single-product .woocommerce-product-details__short-description.is-expanded {
  max-height: 1000px;
}

.single-product .woocommerce-product-details__short-description p {
  margin-bottom: 8px;
}

.single-product .woocommerce-product-details__short-description p:last-child {
  margin-bottom: 0;
}

.single-product .woocommerce-product-details__short-description.is-expanded::after {
  opacity: 0;
}

.nz-desc-toggle {
  margin-top: 2px;
}

/* Tabs/description: same container width as product images+summary */
.single-product .woocommerce-tabs,
.single-product .ct-product-additional-info {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--nz-container-padding);
  padding-right: var(--nz-container-padding);
}

@media (min-width: 1600px) {
  .single-product .woocommerce-tabs,
  .single-product .ct-product-additional-info {
    padding-left: 0;
    padding-right: 0;
  }
}

/* Related/upsell products: same container as category page */
.single-product .related.products,
.single-product .upsells.products {
  max-width: 1900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 40px;
  margin-top: 50px !important;
}

@media (min-width: 768px) {
  .single-product .related.products,
  .single-product .upsells.products {
    padding: 0 60px 60px;
  }
}

/* Space between tabs/description and first product block */
.single-product .woocommerce-tabs {
  margin-bottom: 50px !important;
}

.single-product .related.products ul.products li.product a img,
.single-product .upsells.products ul.products li.product a img {
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

/* SUMO message below tabs/description — hide (keep the one under add-to-cart) */
.single-product .rs_message_for_single_product {
  display: none !important;
}

/* Mobile: hide custom grid, keep Blocksy gallery */
@media (max-width: 767px) {
  .nz-pdp-gallery {
    display: none;
  }

  /* Mobile FP: add padding to images and content (not flush to edges) */
  .single-product .summary.entry-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile FP: reduce space above title and between title/price */
  .single-product .entry-summary .product_title {
    margin-top: 8px;
  }

  .single-product .entry-summary .price {
    margin-top: 4px;
  }

  .single-product .woocommerce-product-gallery {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile FP: space between reassurance and breadcrumb */
  .single-product .ct-product-additional-info,
  .single-product .nz-reassurance {
    margin-bottom: 16px;
  }

  .single-product .ct-breadcrumbs {
    margin-top: 16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Mobile FP: SAG badge — move up so it doesn't overlap sticky nav */
  .grc-widget-product-summary {
    margin-bottom: 60px !important;
  }

  /* Mobile: wishlist heart bottom-right to avoid badge overlap */
  .ct-woo-card-extra {
    top: auto !important;
    bottom: 8px !important;
    right: 8px !important;
  }
}

/* --------------------------------------------------------------------------
   10. Feature cards — landscape grid (WPS-style)
   -------------------------------------------------------------------------- */

/* Grid container: 2 columns desktop, slider mobile */
.nz-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 1fr;
  gap: 20px;
  padding: 0 60px;
}

/* Override WP group defaults on homepage */
body.home .nz-feature-grid {
  max-width: none !important;
  margin: 0 !important;
}

/* Remove WP flow-layout margins on grid children */
.nz-feature-grid > * {
  margin: 0 !important;
}

/* Shared card base */
.nz-feature-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

/* --- Image variant --- */
.nz-feature-card--image {
  aspect-ratio: 16/9;
}

.nz-feature-card--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

.nz-feature-card--image:hover img {
  transform: scale(1.03);
}

.nz-feature-card--image .nz-feature-card__content {
  position: absolute;
  bottom: 32px;
  left: 32px;
  color: var(--nz-white);
  z-index: 2;
}

.nz-feature-card--image .nz-feature-card__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
  opacity: 0.85;
}

.nz-feature-card--image .nz-feature-card__content h3 {
  color: var(--nz-white);
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 14px;
}

.nz-feature-card--image .nz-feature-card__content .nz-btn {
  border-color: var(--nz-text);
  color: var(--nz-text);
  background: var(--nz-white);
}

/* --- Text variant (beige bg, centered) --- */
.nz-feature-card--text {
  background: var(--nz-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nz-feature-card--text .nz-feature-card__content {
  text-align: center;
  padding: clamp(24px, 3vw, 48px);
  max-width: 560px;
}

.nz-feature-card--text .nz-feature-card__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
  color: var(--nz-text);
}

.nz-feature-card--text .nz-feature-card__content h3 {
  color: var(--nz-text);
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 12px;
}

.nz-feature-card--text .nz-feature-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--nz-text);
  margin-bottom: 20px;
}

.nz-feature-card--text .nz-feature-card__content .nz-btn {
  border-color: var(--nz-text);
  color: var(--nz-text);
  background: var(--nz-white);
}

/* hover handled by .nz-btn::before wipe */

/* --- Banner variant (full-width, text bottom-right) --- */
.nz-feature-card--banner {
  grid-column: 1 / -1;
  /* Same height as 16:9 cards at half-width → 32:9 at full-width */
  aspect-ratio: 32/9;
}

/* Standalone banner (outside grid) — needs its own padding + spacing */
body.home .entry-content .nz-feature-card--banner {
  margin: 20px 60px 0 !important;
  max-width: calc(100% - 120px) !important;
}

/* When inside grid, margin is handled by grid padding */
.nz-feature-grid .nz-feature-card--banner {
  margin: 0 !important;
}

.nz-feature-card--banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.6s ease;
}

.nz-feature-card--banner:hover img {
  transform: scale(1.03);
}

.nz-feature-card--banner .nz-feature-card__content {
  position: absolute;
  bottom: 32px;
  right: 40px;
  text-align: right;
  color: var(--nz-white);
  z-index: 2;
}

.nz-feature-card--banner .nz-feature-card__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
  opacity: 0.85;
}

.nz-feature-card--banner .nz-feature-card__content h3 {
  color: var(--nz-white);
  font-size: clamp(22px, 2.5vw, 32px);
  margin-bottom: 14px;
}

.nz-feature-card--banner .nz-feature-card__content .nz-btn {
  border-color: var(--nz-text);
  color: var(--nz-text);
  background: var(--nz-white);
}
/* hover handled by .nz-btn::before wipe */

/* --- Mobile: horizontal slider --- */
@media (max-width: 767px) {
  .nz-feature-grid {
    display: flex;
    overflow-x: auto;
    scroll-padding-left: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 16px;
    padding: 0 20px;
    scroll-snap-type: x mandatory;
  }
  .nz-feature-grid::-webkit-scrollbar { display: none; }
  .nz-feature-grid .nz-feature-card {
    flex: 0 0 80vw;
    scroll-snap-align: start;
  }
  .nz-feature-grid .nz-feature-card:first-child {
    margin-left: 20px !important;
  }
  .nz-feature-card--image { aspect-ratio: 16/9; }
  .nz-feature-card--text { min-height: 250px; }
  body.home .entry-content .nz-feature-card--banner { aspect-ratio: 16/9; margin: 16px 20px 0 !important; max-width: calc(100% - 40px) !important; }
  .nz-feature-grid .nz-feature-card--banner { margin: 0 !important; }
}

/* --------------------------------------------------------------------------
   11. Full-width image banner
   -------------------------------------------------------------------------- */
.nz-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.nz-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.nz-banner__content {
  position: absolute;
  bottom: 60px;
  left: var(--nz-container-padding);
  color: var(--nz-white);
}

/* --------------------------------------------------------------------------
   12. Press / logos bar
   -------------------------------------------------------------------------- */
.nz-press {
  text-align: center;
  padding: 60px 0;
}

.nz-press__label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--nz-text-light);
  margin-bottom: 30px;
  display: block;
}

.nz-press__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(30px, 5vw, 80px);
  flex-wrap: wrap;
}

.nz-press__logos img {
  height: 60px;
  width: auto;
  transition: opacity 0.3s ease;
}

.nz-press__logos img:hover {
  opacity: 1;
}

@media (max-width: 767px) {
  .nz-press {
    overflow: hidden;
  }
  .nz-press__logos {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 60px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nz-press__logos::-webkit-scrollbar { display: none; }
  .nz-press__logos img {
    flex-shrink: 0;
    height: 60px;
  }
}

/* --------------------------------------------------------------------------
   13. Newsletter section
   -------------------------------------------------------------------------- */
body.home .entry-content.is-layout-constrained > .nz-newsletter {
  max-width: var(--nz-container-max) !important;
  margin: 0 auto !important;
}

.nz-newsletter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  padding: 60px var(--nz-container-padding);
}

.nz-newsletter h2 {
  font-size: 30px;
  font-weight: 400;
  margin-bottom: 15px;
}

.nz-newsletter p {
  font-size: 16px;
  color: var(--nz-text);
}

.nz-newsletter__form {
  display: flex;
  align-items: center;
  border: 1px solid var(--nz-border);
}

.nz-newsletter__input {
  padding: 12px 20px;
  border: none;
  background: transparent;
  font-size: 16px;
  font-family: var(--nz-font-body);
  min-width: 220px;
  outline: none;
  color: var(--nz-text);
}

.nz-newsletter__input::placeholder {
  color: var(--nz-text-light);
}

button.nz-newsletter__submit[type="submit"] {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border: none;
  border-left: 1px solid var(--nz-border);
  background: transparent;
  cursor: pointer;
  color: var(--nz-text);
  transition: opacity 0.2s ease;
  padding: 0;
}

button.nz-newsletter__submit[type="submit"]:hover {
  opacity: 0.6;
  background: transparent;
}

/* --------------------------------------------------------------------------
   14. Custom footer (WPS-style)
   -------------------------------------------------------------------------- */

/* Hide default Blocksy footer */
footer.ct-footer [data-row] {
  display: none !important;
}

.nz-footer {
  background: var(--nz-bg-alt);
  padding: 60px 60px 40px;
  border-top: 1px solid var(--nz-border);
}

.nz-footer__columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1260px;
  margin: 0 auto;
  margin-bottom: 60px;
}

.nz-footer__title {
  font-family: var(--nz-font-heading);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--nz-text);
}

.nz-footer__toggle {
  display: none;
}

.nz-footer__links ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex !important;
  flex-direction: column !important;
}

.nz-footer__links ul li {
  display: block !important;
  margin-bottom: 10px;
}

.nz-footer__links ul li a {
  font-size: 14px;
  color: var(--nz-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.nz-footer__links ul li a:hover {
  opacity: 0.6;
}

.nz-footer__bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--nz-border);
}

.nz-footer__bottom .nz-footer__socials {
  grid-column: 2;
}

.nz-footer__bottom .nz-footer__copyright {
  grid-column: 3;
  text-align: right;
}

.nz-footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nz-footer__social {
  color: var(--nz-text);
  display: flex;
  align-items: center;
}

.nz-footer__social:hover {
  opacity: 0.6;
}

.nz-footer__copyright {
  font-size: 13px;
  color: var(--nz-text);
}

/* Mobile: accordion footer */
@media (max-width: 767px) {
  .nz-footer {
    padding: 40px 20px 30px;
  }

  .nz-footer__columns {
    grid-template-columns: 1fr;
    gap: 0;
    margin-bottom: 30px;
  }

  .nz-footer__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 16px 0;
    margin-bottom: 0;
    border-bottom: 1px solid var(--nz-border);
  }

  .nz-footer__toggle {
    display: inline;
    font-size: 18px;
    font-weight: 300;
  }

  .nz-footer__links {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nz-footer__links.is-open {
    max-height: 300px;
  }

  .nz-footer__links ul {
    padding: 12px 0;
  }
}

/* --------------------------------------------------------------------------
   15. Personalized / story section
   -------------------------------------------------------------------------- */
.nz-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.nz-story__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nz-story__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(32px, 5vw, 64px);
  background: var(--nz-bg-alt);
}

.nz-story__content h3 {
  line-height: 1.2;
  margin-bottom: 16px;
}

.nz-story__content p {
  margin-bottom: 24px;
  max-width: 480px;
}

@media (max-width: 767px) {
  .nz-story {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   16. Lifestyle gallery (Instagram-style grid)
   -------------------------------------------------------------------------- */
.nz-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 4px;
}

.nz-gallery__item {
  overflow: hidden;
  aspect-ratio: 1;
}

.nz-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.nz-gallery__item:hover img {
  transform: scale(1.05);
}

/* Span 2 rows for featured item */
.nz-gallery__item--tall {
  grid-row: span 2;
  aspect-ratio: auto;
}

@media (max-width: 575px) {
  .nz-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   16b. Best sellers — horizontal carousel on homepage
   -------------------------------------------------------------------------- */
body.home .nz-bestsellers {
  padding: 80px 0 0;
  overflow: hidden !important;
  position: relative;
}

/* Carousel header: title left + SHOP NOW right */
body.home .nz-bestsellers .nz-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0 60px;
  margin-bottom: 32px;
}

body.home .nz-bestsellers .nz-carousel-header h4 {
  text-align: left;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 4px;
  padding-left: 0;
}

body.home .nz-bestsellers .nz-carousel-header p {
  text-align: left;
  margin-bottom: 0;
}

.nz-carousel-shopnow {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nz-text);
  border-bottom: 1px solid var(--nz-text);
  padding-bottom: 2px;
  white-space: nowrap;
  margin-top: 8px;
}

.nz-carousel-shopnow:hover {
  opacity: 0.7;
}

/* Fallback for non-JS heading styles */
body.home .nz-bestsellers h4 {
  text-align: left;
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 4px;
  padding-left: 60px;
}

body.home .nz-bestsellers > p {
  text-align: left;
  margin-bottom: 32px;
  padding-left: 60px;
}

body.home .nz-bestsellers .woocommerce {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-padding-left: 60px;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100% !important;
}

body.home .nz-bestsellers .woocommerce::-webkit-scrollbar {
  display: none;
}

/* Carousel: horizontal flex layout */
body.home .nz-bestsellers .woocommerce ul.products {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 24px !important;
  padding-left: 60px;
  padding-right: 60px;
  padding-bottom: 16px;
  width: max-content !important;
}

body.home .nz-bestsellers .woocommerce ul.products li.product {
  flex: 0 0 380px !important;
  min-width: 280px;
  width: 380px !important;
  margin: 0 !important;
}

body.home .nz-bestsellers .woocommerce ul.products li.product a img {
  aspect-ratio: 4/5;
  object-fit: cover;
  background: var(--nz-bg-alt);
  border-radius: 8px;
}

/* Product info: "Name — Price" on one line, hide categories */
body.home .nz-bestsellers .woocommerce ul.products li.product .woocommerce-loop-category__title,
body.home .nz-bestsellers .woocommerce ul.products li.product .posted_in,
body.home .nz-bestsellers .woocommerce ul.products li.product .product-categories {
  display: none !important;
}

/* Hide star ratings, categories, add-to-cart on homepage */
body.home .nz-bestsellers .star-rating,
body.home .nz-bestsellers .entry-meta,
body.home .nz-bestsellers .meta-categories,
body.home .nz-bestsellers .button.add_to_cart_button,
body.home .nz-bestsellers .added_to_cart {
  display: none !important;
}

/* Product info: title + color — price (2 lines, WPS-style) */
.nz-product-info {
  padding: 8px 0 10px;
}

.nz-product-name {
  display: block;
  font-family: var(--nz-font-heading);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--nz-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nz-product-price-line {
  display: block;
  font-size: 13px;
  color: var(--nz-text-light);
  margin-top: 2px;
}

.nz-product-color {
  color: var(--nz-text-light);
}

.nz-product-dash {
  color: var(--nz-text-light);
  font-weight: 300;
}

.nz-product-price {
  color: var(--nz-text-light);
  white-space: nowrap;
}

/* Hide default title/price that Blocksy might still render */
body.home .nz-bestsellers .woocommerce-loop-product__title,
body.home .nz-bestsellers li.product > .price {
  display: none !important;
}

@media (max-width: 767px) {
  body.home .nz-bestsellers .nz-carousel-header {
    padding: 0 20px;
  }
  body.home .nz-bestsellers h4,
  body.home .nz-bestsellers > p {
    padding-left: 20px;
  }
  body.home .nz-bestsellers .woocommerce {
    scroll-snap-type: x mandatory;
    scroll-padding-left: 20px;
  }
  body.home .nz-bestsellers .woocommerce ul.products {
    padding-left: 20px;
    padding-right: 20px;
    gap: 10px !important;
  }
  body.home .nz-bestsellers .woocommerce ul.products li.product {
    flex: 0 0 calc((100vw - 60px) / 2.2) !important;
    min-width: 150px;
    scroll-snap-align: none;
  }
  /* Snap every 2 products */
  body.home .nz-bestsellers .woocommerce ul.products li.product:nth-child(odd) {
    scroll-snap-align: start;
    width: 55vw !important;
  }
}

/* Carousel arrows */
.nz-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px !important;
  max-width: 48px !important;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--nz-bg);
  color: var(--nz-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nz-bestsellers:hover .nz-carousel-arrow {
  opacity: 1;
  visibility: visible;
}

.nz-carousel-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  background: var(--nz-white);
}

.nz-carousel-arrow--prev {
  left: 32px;
}

.nz-carousel-arrow--next {
  right: 32px;
}

@media (max-width: 767px) {
  .nz-carousel-arrow {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   16c. Reviews badge
   -------------------------------------------------------------------------- */
.nz-reviews-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 60px 0;
  font-family: var(--nz-font-body);
  font-size: 14px;
  color: var(--nz-text);
}

.nz-reviews-badge__icon {
  display: flex;
  align-items: center;
}

.nz-reviews-badge__score {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.nz-reviews-badge__stars {
  display: flex;
  align-items: center;
  gap: 1px;
  color: var(--nz-text);
}

.nz-reviews-badge__sep {
  color: var(--nz-border);
  margin: 0 4px;
}

.nz-reviews-badge__text {
  color: var(--nz-text-light);
  font-size: 13px;
}

.nz-reviews-badge__verified {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--nz-text);
}

@media (max-width: 767px) {
  .nz-reviews-badge {
    flex-wrap: wrap;
    gap: 4px 8px;
    padding: 40px 20px;
    font-size: 12px;
  }
  .nz-reviews-badge__score {
    font-size: 18px;
  }
}

/* --------------------------------------------------------------------------
   17. WooCommerce misc overrides
   -------------------------------------------------------------------------- */

/* Breadcrumbs */
.woocommerce .woocommerce-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nz-text-light);
}


/* Add to cart button */
.single_add_to_cart_button,
.woocommerce .button.alt {
  background: var(--nz-text) !important;
  color: var(--nz-white) !important;
  border-radius: 0 !important;
  font-size: 12px !important;
  letter-spacing: 0.15em !important;
  text-transform: uppercase !important;
  padding: 16px 40px !important;
  font-weight: 400 !important;
  transition: opacity 0.3s ease !important;
}

.single_add_to_cart_button:hover,
.woocommerce .button.alt:hover {
  opacity: 0.85 !important;
}

/* Remove rounded borders everywhere */
.woocommerce input,
.woocommerce select,
.woocommerce textarea,
.woocommerce .quantity .qty {
  border-radius: 0 !important;
}

/* Shop / archive pages — container padding (Blocksy sets 0 for homepage) */
body.woocommerce-page:not(.home) .ct-container {
  padding: 0 var(--nz-container-padding);
}

/* --------------------------------------------------------------------------
   18. Gutenberg block overrides
   -------------------------------------------------------------------------- */

/* Cover block — make text uppercase */
.wp-block-cover .wp-block-cover__inner-container h2,
.wp-block-cover .wp-block-cover__inner-container h3 {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Columns block — remove gap for edge-to-edge */
.wp-block-columns.nz-no-gap {
  gap: 0 !important;
}

/* Group block used as section */
.wp-block-group.nz-section {
  padding-top: var(--nz-section-gap);
  padding-bottom: var(--nz-section-gap);
}

/* Separator — thin line */
.wp-block-separator {
  border-top: 1px solid var(--nz-border) !important;
  opacity: 1 !important;
}

/* --------------------------------------------------------------------------
   19. Animations (subtle)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .nz-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }

  .nz-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------------------------------------
   20. Single blog post
   -------------------------------------------------------------------------- */

/* Title */
.single-post .hero-section h1.page-title {
  font-family: 'Lora', serif;
  font-weight: 700;
}

/* Content headings */
.single-post .entry-content h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
  line-height: 1.19;
  margin-top: 34px;
  margin-bottom: 16px;
}

.single-post .entry-content h3 {
  font-family: 'Lora', serif;
  font-weight: 700;
  line-height: 1.19;
  margin-top: 25px;
  margin-bottom: 13px;
}

/* Content body */
.single-post .entry-content {
  font-size: 17px;
  line-height: 1.62;
}

.single-post .entry-content p {
  margin-bottom: 24px;
}

.single-post .entry-content figure {
  margin: 32px 0;
}

.single-post .entry-content figure img {
  border-radius: 4px;
}

/* Hide featured image figcaption */
.single-post .ct-featured-image figcaption {
  display: none;
}

/* Mobile */
@media (max-width: 689px) {
  .single-post .entry-content {
    padding-left: 20px;
    padding-right: 20px;
  }

  .single-post .entry-content h2 {
    font-size: 26px;
  }

  .single-post .entry-content h3 {
    font-size: 22px;
  }
}

/* Related posts headings in Lora */
.single-post .ct-related-posts-container h2 {
  font-family: 'Lora', serif;
  font-weight: 700;
}
