/*
Theme Name: Nias Fashion
Theme URI: https://niasfashion.com
Author: Nias Fashion
Author URI: https://niasfashion.com
Description: Custom WooCommerce theme for Nias Fashion — premium baby clothing for newborns and little ones.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: nias-fashion
*/

:root {
  --color-bg: #FBF6EC;
  --color-surface: #FFFFFF;
  --color-pink: #FFE3C2;
  --color-pink-deep: #E2684B;
  --color-pink-deep-dark: #C6512F;
  --color-beige: #F3ECD9;
  --color-sage: #8FB5B6;
  --color-sage-dark: #5F8A8B;
  --color-lavender: #CDE0E2;
  --color-text: #16263F;
  --color-text-muted: #5B6B82;
  --color-border: #E3E0D3;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px rgba(22, 38, 63, 0.08);
  --container: 1240px;
  --font-heading: 'Catamaran', 'Segoe UI', sans-serif;
  --font-body: 'Catamaran', 'Segoe UI', sans-serif;
  --font-display: 'Pacifico', 'Catamaran', cursive;
  --ease: cubic-bezier(.16,1,.3,1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 15%, rgba(255,201,148,.35), transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(143,181,182,.22), transparent 35%),
    radial-gradient(circle at 50% 98%, rgba(205,224,226,.35), transparent 40%),
    var(--color-bg);
  background-attachment: fixed;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

::selection { background: var(--color-pink-deep); color: #fff; }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--color-pink-deep);
  outline-offset: 2px;
}

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

@media (max-width: 760px) {
  body { background-attachment: scroll; }
}

/* Scroll-reveal: JS adds .in-view to .reveal-section when it enters the viewport */
.reveal-section .section-head,
.reveal-section .category-card,
.reveal-section .benefit-card,
.reveal-section .woocommerce ul.products li.product,
.reveal-section .collection-banner,
.reveal-section .newsletter,
.reveal-section .social-strip {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal-section.in-view .section-head,
.reveal-section.in-view .category-card,
.reveal-section.in-view .benefit-card,
.reveal-section.in-view .woocommerce ul.products li.product,
.reveal-section.in-view .collection-banner,
.reveal-section.in-view .newsletter,
.reveal-section.in-view .social-strip {
  opacity: 1;
  transform: none;
}
.reveal-section .category-card:nth-child(2), .reveal-section .benefit-card:nth-child(2), .reveal-section .woocommerce ul.products li.product:nth-child(2) { transition-delay: .07s; }
.reveal-section .category-card:nth-child(3), .reveal-section .benefit-card:nth-child(3), .reveal-section .woocommerce ul.products li.product:nth-child(3) { transition-delay: .14s; }
.reveal-section .category-card:nth-child(4), .reveal-section .benefit-card:nth-child(4), .reveal-section .woocommerce ul.products li.product:nth-child(4) { transition-delay: .21s; }
.reveal-section .category-card:nth-child(5), .reveal-section .woocommerce ul.products li.product:nth-child(5) { transition-delay: .28s; }
.reveal-section .category-card:nth-child(6), .reveal-section .woocommerce ul.products li.product:nth-child(6) { transition-delay: .35s; }
.reveal-section .woocommerce ul.products li.product:nth-child(7) { transition-delay: .42s; }
.reveal-section .woocommerce ul.products li.product:nth-child(8) { transition-delay: .49s; }

@keyframes nfFloat { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(16px) } }
@keyframes nfFadeDown { from { opacity: 0; transform: translateY(-8px) } to { opacity: 1; transform: none } }
@keyframes nfPulse { 0%, 100% { transform: scale(1) } 50% { transform: scale(1.08) } }
@keyframes nfHeartBeat { 0% { transform: scale(1) } 35% { transform: scale(1.3) } 65% { transform: scale(.92) } 100% { transform: scale(1) } }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

a { color: var(--color-pink-deep-dark); text-decoration: none; }
a:hover { color: var(--color-pink-deep); }

img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-pink-deep), var(--color-pink-deep-dark));
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .2s var(--ease), box-shadow .2s ease, background .15s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.btn:hover::after { left: 130%; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(226,104,75,.35); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text);
}
.btn.btn-outline:hover { background: var(--color-text); color: #fff; box-shadow: 0 10px 22px rgba(22,38,63,.2); }
.btn.btn-sage { background: linear-gradient(135deg, var(--color-sage), var(--color-sage-dark)); }
.btn.btn-sage:hover { box-shadow: 0 10px 22px rgba(95,138,139,.35); }

/* Announcement bar */
.announcement-bar {
  background: linear-gradient(90deg, var(--color-text), #233654, var(--color-text));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  padding: 9px 0;
  overflow: hidden;
  white-space: nowrap;
}
.announcement-bar__track {
  display: inline-flex;
  animation: nfMarquee 16s linear infinite;
}
.announcement-bar__track span {
  padding: 0 40px;
  position: relative;
}
.announcement-bar__track span::after {
  content: '\2726';
  position: absolute;
  right: -4px;
  opacity: .5;
}
@keyframes nfMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .announcement-bar__track { animation: none; }
  .announcement-bar { text-align: center; }
  .announcement-bar__track span:nth-child(2) { display: none; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow .3s ease, background .3s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(22,38,63,.08);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding: 16px 24px;
}
.site-branding { display: flex; align-items: center; gap: 10px; }
.site-branding .logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: transform .4s var(--ease), background .3s ease;
}
.site-branding:hover .logo-mark { transform: rotate(-12deg) scale(1.08); background: var(--color-lavender); }
.site-branding .site-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--color-text);
  letter-spacing: .01em;
}
.site-branding .site-title em {
  font-style: normal;
  color: var(--color-pink-deep-dark);
}
.site-branding .site-description {
  display: block;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.main-navigation { justify-self: center; }
.main-navigation ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
  position: relative;
}
.main-navigation li { position: relative; }
.main-navigation a {
  color: var(--color-text);
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  padding-bottom: 4px;
  transition: color .2s ease;
}
.main-navigation a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--color-pink-deep);
  border-radius: 2px;
  transition: width .3s var(--ease);
}
.main-navigation a:hover { color: var(--color-pink-deep-dark); }
.main-navigation a:hover::after { width: 100%; }
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  border-radius: var(--radius-sm);
  padding: 10px;
  min-width: 190px;
  flex-direction: column;
  gap: 4px;
  z-index: 10;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease;
}
.main-navigation li:hover .sub-menu { display: flex; opacity: 1; transform: none; }
.main-navigation .sub-menu a { padding: 8px 10px; border-radius: 8px; display: block; }
.main-navigation .sub-menu a::after { display: none; }
.main-navigation .sub-menu a:hover { background: var(--color-pink); transform: translateX(2px); }

.header-actions { display: flex; align-items: center; gap: 16px; justify-self: end; }
.header-icon {
  position: relative;
  display: inline-flex;
  color: var(--color-text);
  font-size: 1.25rem;
  transition: transform .2s ease, color .2s ease;
}
.header-icon:hover { transform: translateY(-2px); color: var(--color-pink-deep-dark); }
.header-icon .count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--color-pink-deep);
  color: #fff;
  font-size: .62rem;
  font-weight: 700;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform .2s var(--ease);
}
.header-icon:hover .count { transform: scale(1.15); }
.search-toggle { transition: transform .2s ease; }
.search-toggle:hover { transform: scale(1.1); }
.header-search { display: none; }
.header-search.open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 16px 24px;
  animation: nfFadeDown .25s var(--ease);
}
.header-search form { display: flex; width: 100%; max-width: 480px; margin: 0 auto; gap: 8px; }
.header-search input[type="search"] {
  flex: 1;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-family: inherit;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text);
  cursor: pointer;
  transition: transform .3s var(--ease);
}
.site-header.nav-open .menu-toggle { transform: rotate(90deg); }

/* Hero slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-slider__track {
  position: relative;
  height: clamp(420px, 56vw, 620px);
}
.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  min-width: 0;
  background-size: 108%;
  background-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, background-size 7s ease-out;
}
.hero-slide.is-active { opacity: 1; visibility: visible; background-size: 118%; }
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(8,16,28,.78) 0%, rgba(8,16,28,.56) 38%, rgba(8,16,28,.24) 62%, rgba(8,16,28,.04) 82%);
}
/* grid items default to min-width:auto, so unbreakable content (a long
   button label, a wide heading word) can force this track past the
   viewport instead of wrapping — minmax(0, 1fr) makes it respect the
   container's actual width like a block element would. */
.hero-slide__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 24px;
}
.hero-slide__inner > div { max-width: 100%; width: 600px; min-width: 0; box-sizing: border-box; overflow: hidden; }
.hero-slide__inner h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  letter-spacing: -.01em;
  color: #fff;
  overflow-wrap: break-word;
}
.hero-slide__inner > div > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.hero-slide.is-active .hero-slide__inner > div > * { opacity: 1; transform: none; }
.hero-slide.is-active .hero-slide__inner > div > *:nth-child(1) { transition-delay: .1s; }
.hero-slide.is-active .hero-slide__inner > div > *:nth-child(2) { transition-delay: .22s; }
.hero-slide.is-active .hero-slide__inner > div > *:nth-child(3) { transition-delay: .34s; }
.hero-slide.is-active .hero-slide__inner > div > *:nth-child(4) { transition-delay: .46s; }
.hero-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(6px);
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 3;
  transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.hero-slider__arrow--prev { left: 20px; }
.hero-slider__arrow--next { right: 20px; }
.hero-slider__arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); box-shadow: 0 8px 18px rgba(22,38,63,.18); }
.hero-slider__dots {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.hero-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.6);
  cursor: pointer;
  padding: 0;
  transition: width .3s var(--ease), background .3s ease, transform .2s ease;
}
.hero-slider__dot:hover { transform: scale(1.3); }
.hero-slider__dot.is-active { background: var(--color-pink-deep); width: 22px; border-radius: 999px; }

.hero__eyebrow {
  display: inline-block;
  background: rgba(255,255,255,.92);
  color: var(--color-pink-deep-dark);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
}
.hero__eyebrow::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.8), transparent);
  animation: nfShimmer 3.2s ease-in-out infinite;
}
@keyframes nfShimmer { 0% { left: -60% } 100% { left: 140% } }
.hero-slide p.lead {
  font-size: 1.12rem;
  color: rgba(255,255,255,.88);
  max-width: 480px;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
}
.hero__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-slide .btn.btn-outline { border-color: #fff; color: #fff; }
.hero-slide .btn.btn-outline:hover { background: #fff; color: var(--color-text); }
@media (max-width: 760px) {
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(8,16,28,.5) 0%, rgba(8,16,28,.72) 55%, rgba(8,16,28,.8) 100%);
  }
}

.section-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 3;
  line-height: 0;
  pointer-events: none;
}
.section-wave svg { width: 100%; height: 60px; display: block; }

/* Contact page — info cards beside the form, both in plain surface cards */
.contact-layout { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.contact-aside { display: flex; flex-direction: column; gap: 16px; }
.contact-aside__card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 20px;
}
.contact-aside__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-pink);
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.contact-aside__card h3 { font-size: .95rem; margin: 0 0 4px; }
.contact-aside__card a { color: var(--color-text); font-weight: 600; transition: color .2s ease; }
.contact-aside__card a:hover { color: var(--color-pink-deep-dark); }
.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  padding: 32px;
}
.contact-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.contact-form label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: .95rem;
  background: var(--color-bg);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: 2px solid var(--color-pink-deep);
  outline-offset: 1px;
}
.contact-form textarea { margin-bottom: 20px; resize: vertical; }
.contact-form__error { color: #B23B4B; font-weight: 600; margin-bottom: 16px; }
.contact-form__success { color: var(--color-sage-dark); font-size: 1.05rem; }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form__row { grid-template-columns: 1fr; }
  .contact-form-card { padding: 22px; }
}


/* Section */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head p { color: var(--color-text-muted); }
.section-head h2 { position: relative; display: inline-block; }
.section-head h2::after {
  content: '';
  display: block;
  width: 70px;
  height: 10px;
  margin: 10px auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 70 10'%3E%3Cpath d='M2 8 Q 15 0, 25 6 T 50 4 T 68 7' stroke='%23D98CA3' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;
}

/* Trust bar */
.trust-bar { padding: 28px 0; }
.trust-bar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: .88rem;
  color: var(--color-text);
  transition: transform .2s var(--ease), color .2s ease;
}
a.trust-item:hover { transform: translateY(-2px); color: var(--color-pink-deep-dark); }
.trust-item__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  font-size: 1.1rem;
}

/* Section color-block rhythm */
.section--sage-tint { background: linear-gradient(180deg, rgba(143,181,182,.16), rgba(143,181,182,.03)); }
.section--lavender-tint { background: linear-gradient(180deg, rgba(205,224,226,.3), rgba(205,224,226,.05)); }

/* Category grid — a carousel track, 4 cards visible per row (see .nf-carousel) */
.category-grid {
  display: flex;
  gap: 24px;
}
.category-grid .category-card {
  flex: 0 0 calc(25% - 18px);
}

/* Generic horizontal carousel: wraps a scrollable track (.category-grid or
   WooCommerce's ul.products) with prev/next arrows. Touch devices can also
   just swipe — scroll-snap handles both input methods with no extra JS. */
.nf-carousel { position: relative; }
.nf-carousel .category-grid,
.nf-carousel .woocommerce ul.products {
  flex-wrap: nowrap;
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.nf-carousel .category-grid::-webkit-scrollbar,
.nf-carousel .woocommerce ul.products::-webkit-scrollbar {
  display: none;
}
.nf-carousel .category-grid > .category-card,
.nf-carousel .woocommerce ul.products > li.product {
  scroll-snap-align: start;
  flex: 0 0 calc(20% - 22px);
}
.nf-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  color: var(--color-text);
  font-size: 1rem;
  cursor: pointer;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.nf-carousel__arrow:hover {
  background: var(--color-pink-deep);
  color: #fff;
  transform: translateY(-50%) scale(1.08);
}
.nf-carousel__arrow--prev { left: -8px; }
.nf-carousel__arrow--next { right: -8px; }
@media (max-width: 1320px) {
  .nf-carousel__arrow--prev { left: 4px; }
  .nf-carousel__arrow--next { right: 4px; }
}
@media (max-width: 900px) {
  .nf-carousel .category-grid > .category-card,
  .nf-carousel .woocommerce ul.products > li.product {
    flex: 0 0 calc(50% - 16px);
  }
}
@media (max-width: 560px) {
  .nf-carousel .category-grid > .category-card,
  .nf-carousel .woocommerce ul.products > li.product {
    flex: 0 0 82%;
  }
  .nf-carousel__arrow { width: 38px; height: 38px; font-size: .9rem; }
}

/* Lookbook */
.lookbook-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.lookbook-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  min-height: 360px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  padding: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
  transition: background-size .6s var(--ease);
}
.lookbook-panel:hover { background-size: 112%; }
.lookbook-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(15,27,46,.8) 100%);
  z-index: -1;
}
.lookbook-panel__tag {
  display: inline-block;
  background: rgba(255,255,255,.85);
  color: var(--color-pink-deep-dark);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.lookbook-panel h3 {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 0 0 8px;
  position: relative;
  z-index: 1;
}
.lookbook-panel__cta {
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  position: relative;
  z-index: 1;
  transition: letter-spacing .2s ease;
}
.lookbook-panel:hover .lookbook-panel__cta { letter-spacing: .03em; }
@media (max-width: 760px) {
  .lookbook-grid { grid-template-columns: 1fr; }
  .lookbook-panel { min-height: 280px; }
}

/* Product showcase tabs */
.product-tabs__nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.product-tabs__btn {
  padding: 11px 24px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
  font-size: .92rem;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.product-tabs__btn:hover { transform: translateY(-2px); border-color: var(--color-pink-deep); }
.product-tabs__btn.is-active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.product-tabs__panel { display: none; }
.product-tabs__panel.is-active { display: block; animation: nfFadeUpIn .45s var(--ease); }

/* Promo strip — two large side-by-side CTA panels */
.promo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.promo-panel {
  border-radius: var(--radius);
  padding: 40px 36px;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.promo-panel--navy { background: linear-gradient(135deg, #16263F, #233654); color: #fff; }
.promo-panel--peach { background: linear-gradient(135deg, #FFE3C2, #FFD2A0); color: var(--color-text); }
.promo-panel span.eyebrow {
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .75;
  margin-bottom: 8px;
}
.promo-panel h3 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 10px;
  color: inherit;
}
.promo-panel p { margin: 0 0 20px; opacity: .85; max-width: 360px; }
.promo-panel .btn { align-self: flex-start; }
.promo-panel--navy .btn.btn-outline { border-color: #fff; color: #fff; }
.promo-panel--navy .btn.btn-outline:hover { background: #fff; color: var(--color-text); }
.promo-panel::after {
  content: '';
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  right: -60px;
  bottom: -80px;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 70%);
  z-index: -1;
}
@media (max-width: 760px) {
  .promo-strip { grid-template-columns: 1fr; }
}

/* Video spotlight */
.video-spotlight {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 44px;
  align-items: center;
}
.video-spotlight__frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.video-spotlight__frame iframe,
.video-spotlight__frame video {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: none;
}
.video-spotlight__content h2 { font-family: var(--font-display); }
@media (max-width: 900px) {
  .video-spotlight { grid-template-columns: 1fr; }
}
.category-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
  transition: transform .3s var(--ease), box-shadow .3s ease;
  display: block;
  position: relative;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 20px 36px rgba(226,104,75,.22); }
.category-card .media {
  aspect-ratio: 1/1;
  background: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  overflow: hidden;
}
.category-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.category-card:hover .media img { transform: scale(1.1) rotate(1deg); }
.category-card h3 { margin: 16px 0 2px; font-size: 1.05rem; }
.category-card span.count { color: var(--color-text-muted); font-size: .82rem; display: block; padding-bottom: 16px; }
.category-card::after {
  content: '\2192';
  position: absolute;
  bottom: 14px;
  right: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--color-pink-deep);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translate(8px, 8px);
  transition: opacity .25s ease, transform .25s ease;
}
.category-card:hover::after { opacity: 1; transform: none; }

/* Product grid (WooCommerce) */
/* WooCommerce's own stylesheet is disabled (inc/woocommerce.php) — everything
   below replaces it, since we can no longer rely on woocommerce.css/-layout.css. */

/* Flexbox + justify-content:center rather than CSS Grid: a trailing
   incomplete row (e.g. 16 products ÷ 4 columns = 4 full rows, or any count
   that doesn't divide evenly) centers that last row's cards instead of
   leaving them stuck at the left edge with a large empty gap, which is what
   grid's fixed column tracks always did. */
.woocommerce ul.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.woocommerce ul.products li.product {
  flex: 0 1 calc(25% - 21px);
  min-width: 190px;
  margin: 0;
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  box-shadow: none;
  padding: 0 0 16px;
  text-align: left;
  position: relative;
  list-style: none;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s ease, border-color .3s ease;
}
.woocommerce ul.products li.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(22,38,63,.1);
  border-color: transparent;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; color: inherit; }
.woocommerce ul.products li.product img {
  display: block;
  border-radius: 0;
  aspect-ratio: 1/1;
  object-fit: cover;
  margin: 0 0 14px;
  width: 100%;
  background: var(--color-bg);
  transition: transform .5s var(--ease);
}
.woocommerce ul.products li.product:hover img { transform: scale(1.04); }
.woocommerce ul.products li.product h2.woocommerce-loop-product__title {
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 14px 4px;
}
.woocommerce ul.products li.product .price { display: block; margin: 0 14px; color: var(--color-pink-deep-dark); font-weight: 700; }
.woocommerce ul.products li.product > a.button,
.woocommerce ul.products li.product > .added_to_cart {
  margin: 10px 14px 0;
}
.woocommerce .price del { color: var(--color-text-muted); font-weight: 400; opacity: .7; text-decoration: line-through; }
.woocommerce .price ins { text-decoration: none; }

.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-text);
  color: #fff;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .9rem;
  border: none;
  cursor: pointer;
  text-align: center;
}
.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #respond input#submit:hover,
.woocommerce input.button:hover {
  background: var(--color-pink-deep);
  color: #fff;
}
.woocommerce .button.disabled,
.woocommerce .button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.woocommerce span.onsale {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--color-sage-dark);
  color: #fff;
  border-radius: 999px;
  min-height: 2.8em;
  min-width: 2.8em;
  line-height: 2.8em;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  padding: 0 4px;
  animation: nfPulse 2.4s ease-in-out infinite;
}

.nf-new-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  background: var(--color-sage-dark);
  color: #fff;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 12px;
}

/* Star ratings */
.woocommerce .star-rating {
  overflow: hidden;
  position: relative;
  height: 1.1em;
  line-height: 1.1em;
  width: 5.4em;
  font-family: serif;
  margin: 4px 14px;
}
.woocommerce .star-rating::before {
  content: '\2605\2605\2605\2605\2605';
  color: var(--color-border);
  letter-spacing: .2em;
}
.woocommerce .star-rating span {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
}
.woocommerce .star-rating span::before {
  content: '\2605\2605\2605\2605\2605';
  color: var(--color-pink-deep);
  letter-spacing: .2em;
}

/* Notices */
.woocommerce-error, .woocommerce-message, .woocommerce-info {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow);
}
.woocommerce-error { background: #FBEAEA; color: #8A2E2E; }
.woocommerce-message { background: #E9F3E7; color: #2E5C2A; }
.woocommerce-info { background: var(--color-lavender); color: var(--color-text); }
.woocommerce-error a, .woocommerce-message a, .woocommerce-info a { color: inherit; text-decoration: underline; }

/* Forms */
.woocommerce form .form-row label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea,
.woocommerce table.shop_table input.input-text {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: .95rem;
  background: var(--color-surface);
}
.woocommerce form .form-row { margin-bottom: 16px; }
.woocommerce-input-wrapper { display: block; }

/* Generic select — covers the shop ordering dropdown, country/state selects,
   and anything else not already inside a .form-row. */
.woocommerce select,
select {
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23332B28' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center;
  appearance: none;
  -webkit-appearance: none;
  font-family: inherit;
  font-size: .9rem;
  color: var(--color-text);
  cursor: pointer;
}

.woocommerce-result-count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.woocommerce-result-count { color: var(--color-text-muted); font-size: .9rem; margin: 0; }
.woocommerce-ordering { margin: 0; }

/* Quantity stepper */
.woocommerce .quantity .qty {
  width: 70px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  text-align: center;
  font-family: inherit;
}
.rdt-wishlist-btn, .nf-wishlist-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  z-index: 2;
  transition: transform .2s var(--ease), color .2s ease;
}
.rdt-wishlist-btn:hover, .nf-wishlist-btn:hover { transform: scale(1.15); }
.nf-wishlist-btn.is-active { color: var(--color-pink-deep); animation: nfHeartBeat .4s ease; }

/* Why choose us */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: 0 18px 34px rgba(22,38,63,.14); }
.benefit-card .icon {
  font-size: 2rem;
  margin: 0 auto 12px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s var(--ease), background .3s ease;
}
.benefit-card:hover .icon { transform: scale(1.12) rotate(-8deg); background: var(--color-lavender); }

/* Collection banner */
.collection-banner {
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-lavender) 0%, var(--color-pink) 50%, var(--color-lavender) 100%);
  background-size: 200% 200%;
  animation: nfGradientShift 10s ease infinite;
  padding: 56px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.collection-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.2vw, 3rem);
}

/* Newsletter */
.newsletter {
  background: var(--color-text);
  color: #fff;
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before, .newsletter::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.08), transparent 70%);
  pointer-events: none;
}
.newsletter::before { width: 280px; height: 280px; top: -120px; right: -80px; animation: nfFloat 7s ease-in-out infinite; }
.newsletter::after { width: 220px; height: 220px; bottom: -100px; left: -60px; animation: nfFloat 9s ease-in-out infinite reverse; }
.newsletter > * { position: relative; z-index: 1; }
.collection-banner > * { position: relative; z-index: 1; }

@keyframes nfGradientShift { 0%, 100% { background-position: 0% 50% } 50% { background-position: 100% 50% } }
.newsletter h2 { color: #fff; }
.newsletter p { opacity: .85; max-width: 480px; margin: 0 auto 24px; }
.newsletter form { display: flex; gap: 10px; max-width: 420px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.newsletter input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
}
.newsletter .consent { font-size: .75rem; opacity: .7; margin-top: 10px; }

/* Social strip */
.social-strip { display: flex; justify-content: center; gap: 16px; }
.social-strip a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-pink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform .25s var(--ease), background .25s ease, box-shadow .25s ease;
}
.social-strip a:hover {
  transform: translateY(-4px) rotate(-6deg);
  background: var(--color-pink-deep);
  color: #fff;
  box-shadow: 0 10px 20px rgba(226,104,75,.3);
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--color-pink-deep);
  color: #fff;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 60;
  opacity: 0;
  transform: translateY(16px) scale(.8);
  pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), background .2s ease;
}
.back-to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-to-top:hover { background: var(--color-pink-deep-dark); transform: translateY(-3px); }

/* Footer */
.site-footer { position: relative; background: #0F1B2E; color: #D8E3E6; padding: 72px 0 0; }
.section-wave--footer { top: auto; bottom: 100%; margin-bottom: -1px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 32px; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #D8E3E6; transition: color .2s ease, padding-left .2s ease; display: inline-block; }
.site-footer a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; text-align: center; font-size: .85rem; color: #93A3B5; }

.footer-brand p { margin: 0 0 18px; color: #AEBBC9; font-size: .92rem; }
.footer-newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-newsletter input[type="email"] {
  flex: 1;
  min-width: 160px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-family: inherit;
}
.footer-newsletter input[type="email"]::placeholder { color: #8FA0B3; }
.footer-newsletter .btn { padding: 11px 22px; font-size: .85rem; white-space: nowrap; }
.footer-newsletter .consent { font-size: .72rem; color: #8FA0B3; margin: 10px 0 0; }
.footer-newsletter .consent input { margin-right: 6px; }
.footer-newsletter p:first-child { color: var(--color-sage); font-weight: 600; }

.footer-connect .social-strip--footer { justify-content: flex-start; gap: 12px; margin-bottom: 18px; }
.footer-connect .social-strip--footer a {
  width: 40px;
  height: 40px;
  font-size: 1rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  flex-shrink: 0;
}
.footer-connect .social-strip--footer a:hover { background: var(--color-pink-deep); border-color: var(--color-pink-deep); }

/* Cart & checkout tables */
.woocommerce table.shop_table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.woocommerce table.shop_table th {
  background: var(--color-pink);
  text-align: left;
  padding: 14px 16px;
  font-size: .85rem;
}
.woocommerce table.shop_table td {
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  vertical-align: middle;
}
.woocommerce table.shop_table td.product-thumbnail img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.woocommerce table.shop_table td.product-remove a {
  color: #B23B4B;
  font-weight: 700;
  text-decoration: none;
}
.woocommerce-cart-form__cart-item .variation { font-size: .82rem; color: var(--color-text-muted); margin: 0; }
.woocommerce-cart-form__cart-item .variation dt, .woocommerce-cart-form__cart-item .variation dd { display: inline; margin: 0; }

.cart-collaterals, .woocommerce-checkout-review-order {
  background: var(--color-surface);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.cart_totals table, table.woocommerce-checkout-review-order-table { width: 100%; border-collapse: collapse; }
.cart_totals table th, .cart_totals table td,
table.woocommerce-checkout-review-order-table th, table.woocommerce-checkout-review-order-table td {
  padding: 10px 0;
  border-top: 1px solid var(--color-border);
  text-align: left;
}
.cart_totals .order-total td, table.woocommerce-checkout-review-order-table .order-total td {
  font-weight: 700;
  color: var(--color-pink-deep-dark);
}

.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr; gap: 20px; }
.woocommerce-checkout .col2-set .col-1 { margin-bottom: 20px; }
.woocommerce-checkout #customer_details { margin-bottom: 32px; }
.woocommerce-checkout h3 { margin-top: 24px; }
#payment { background: var(--color-surface); border-radius: var(--radius); padding: 20px; margin-top: 20px; box-shadow: var(--shadow); }
#payment ul.payment_methods { list-style: none; margin: 0 0 16px; padding: 0; }
#payment ul.payment_methods li { margin-bottom: 10px; }
#payment .payment_box { background: var(--color-bg); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 8px; font-size: .88rem; }

/* My Account */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.woocommerce-MyAccount-navigation li a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--color-surface);
  box-shadow: var(--shadow);
  font-size: .88rem;
  font-weight: 600;
}
.woocommerce-MyAccount-navigation li.is-active a { background: var(--color-text); color: #fff; }
.woocommerce-MyAccount-content table { width: 100%; border-collapse: collapse; }
.woocommerce-MyAccount-content table th, .woocommerce-MyAccount-content table td { padding: 10px; border-top: 1px solid var(--color-border); text-align: left; }
.woocommerce-pagination { margin-top: 24px; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span.current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.woocommerce-pagination a:hover { background: var(--color-pink); border-color: var(--color-pink); }
.woocommerce-pagination span.current { background: var(--color-text); color: #fff; border-color: var(--color-text); }

/* Breadcrumbs */
.woocommerce-breadcrumb {
  font-size: .85rem;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}
.woocommerce-breadcrumb a { color: var(--color-text-muted); }

/* Page banner — one shared, plain title treatment for every page: shop,
   category archives, static pages, cart/checkout/account, 404, search. */
.page-banner {
  padding: 32px 0 20px;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 40px;
}
.page-banner > * { animation: nfFadeUpIn .5s var(--ease) both; }
@keyframes nfFadeUpIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }
.page-banner__breadcrumb { margin-bottom: 10px; }
.page-banner__breadcrumb .woocommerce-breadcrumb, .page-banner .woocommerce-breadcrumb { margin: 0; }
.page-banner__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
.page-banner__subtitle { color: var(--color-text-muted); margin: 8px 0 0; max-width: 560px; }

/* Shop layout with sidebar filters */
.shop-layout { display: grid; grid-template-columns: 240px 1fr; gap: 36px; align-items: start; }
.shop-sidebar { background: var(--color-surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.shop-sidebar__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.shop-sidebar__label { font-family: var(--font-heading); font-weight: 700; font-size: 1.05rem; }
.shop-sidebar__clear { font-size: .82rem; color: var(--color-text-muted); text-decoration: underline; }
.shop-sidebar__clear:hover { color: var(--color-pink-deep-dark); }
.shop-sidebar .widget { margin-bottom: 10px; border-bottom: 1px solid var(--color-border); padding-bottom: 14px; }
.shop-sidebar .widget:last-child { border-bottom: none; }
.shop-sidebar .widget-title {
  font-family: var(--font-heading);
  font-size: .95rem;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}
.shop-sidebar .widget-title::after {
  content: '\2303';
  display: inline-block;
  font-size: .85rem;
  color: var(--color-text-muted);
  transition: transform .25s ease;
}
.shop-sidebar .widget.is-collapsed .widget-title::after { transform: rotate(180deg); }
.shop-sidebar .widget > *:not(.widget-title) {
  overflow: hidden;
  max-height: 600px;
  transition: max-height .3s ease, opacity .2s ease;
  opacity: 1;
}
.shop-sidebar .widget.is-collapsed > *:not(.widget-title) {
  max-height: 0;
  opacity: 0;
  margin: 0;
}
.shop-sidebar ul { list-style: none; margin: 0; padding: 0; }
.shop-sidebar li { margin-bottom: 8px; font-size: .9rem; }
.shop-sidebar a { color: var(--color-text); font-weight: 500; transition: color .15s ease; }
.shop-sidebar a:hover { color: var(--color-pink-deep-dark); }
.shop-sidebar .wc-layered-nav-term.chosen a,
.shop-sidebar .cat-item.current-cat > a { color: var(--color-pink-deep-dark); font-weight: 700; }
.shop-sidebar .wc-layered-nav-rating-count,
.shop-sidebar li .count { color: var(--color-text-muted); font-weight: 400; font-size: .85em; }

/* Price filter widget — WooCommerce's bundled CSS is disabled sitewide
   (inc/woocommerce.php), which normally supplies the jQuery UI slider look.
   Without this the slider track/handles render with no size and are
   effectively invisible even though the widget's JS still runs fine. */
.price_slider_wrapper { margin-bottom: 6px; }
.price_slider {
  position: relative;
  height: 4px;
  margin: 22px 6px 26px;
  background: var(--color-border);
  border-radius: 999px;
  display: block !important;
}
.price_slider .ui-slider-range {
  position: absolute;
  top: 0;
  height: 100%;
  background: var(--color-pink-deep);
  border-radius: 999px;
}
.price_slider .ui-slider-handle {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-left: -8px;
  transform: translateY(-50%);
  background: var(--color-surface);
  border: 2px solid var(--color-pink-deep);
  border-radius: 50%;
  cursor: pointer;
  outline: none;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .15s ease;
}
.price_slider .ui-slider-handle:hover,
.price_slider .ui-slider-handle:focus {
  transform: translateY(-50%) scale(1.15);
}
.price_slider_amount {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.price_slider_amount .button { order: 2; padding: 7px 18px; font-size: .82rem; }
.price_slider_amount .price_label { order: 1; font-size: .82rem; color: var(--color-text-muted); }

/* Product details */
.woocommerce div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.woocommerce div.product div.images { position: relative; }
.woocommerce div.product div.images img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.woocommerce-product-gallery__trigger { display: none; }
/* WooCommerce's own gallery script sets this to 0 and fades it in once the
   flexslider/zoom JS finishes initializing; if that script doesn't run for
   any reason the image is left permanently invisible, so force it visible. */
.woocommerce-product-gallery { opacity: 1 !important; }
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper { display: flex; flex-direction: column; gap: 10px; }
.woocommerce div.product .summary { grid-column: 2; position: relative; }
.woocommerce div.product .summary .nf-wishlist-btn,
.woocommerce div.product .summary .nf-compare-btn {
  position: static;
  width: 46px;
  height: 46px;
  font-size: 1.15rem;
  margin: 0 0 0 10px;
}
.woocommerce div.product .summary .nf-compare-btn { color: var(--color-text-muted); }
.woocommerce div.product .summary .nf-compare-btn.is-active { color: var(--color-sage-dark); }
.woocommerce div.product form.cart + .nf-wishlist-btn { margin-left: 0; }

/* Compare button — paired with the wishlist heart on product cards */
.nf-compare-btn {
  position: absolute;
  top: 58px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  cursor: pointer;
  border: none;
  z-index: 2;
  color: var(--color-text-muted);
  transition: transform .2s var(--ease), color .2s ease;
}
.nf-compare-btn:hover { transform: scale(1.15); }
.nf-compare-btn.is-active { color: var(--color-sage-dark); }

/* Social share row — single product page */
.nf-social-share {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0;
}
.nf-social-share__label { font-size: .85rem; font-weight: 700; color: var(--color-text-muted); margin-right: 2px; }
.nf-social-share a,
.nf-social-share__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: .9rem;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s var(--ease);
}
.nf-social-share a:hover,
.nf-social-share__copy:hover { background: var(--color-pink-deep); color: #fff; transform: translateY(-2px); }
.nf-social-share__copy.is-copied { background: var(--color-sage-dark); color: #fff; }
.woocommerce div.product .summary .price { font-size: 1.4rem; color: var(--color-pink-deep-dark); font-weight: 700; display: block; margin: 10px 0; }
.woocommerce div.product .summary .price del { font-size: 1rem; opacity: .6; }
.woocommerce div.product .summary .stock { display: inline-block; margin: 10px 0; font-weight: 600; }
.woocommerce div.product .summary .stock.in-stock { color: var(--color-sage-dark); }
.woocommerce div.product .summary .stock.out-of-stock { color: #B23B4B; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--color-pink-deep-dark); }
.variations { width: 100%; margin: 16px 0; }
.variations tr { display: block; margin-bottom: 14px; }
.variations td { display: block; }
.variations label { font-weight: 700; font-size: .85rem; display: block; margin-bottom: 6px; }
.variations select { width: 100%; max-width: 320px; }
.woocommerce div.product form.cart { margin: 20px 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.single_variation_wrap { width: 100%; }
.woocommerce-variation-price { margin: 10px 0; }
.woocommerce-variation-add-to-cart { display: flex; align-items: center; gap: 12px; }
.size-guide-link { font-size: .85rem; margin-left: 10px; }
.nf-product-policy-note { margin-top: 18px; font-size: .88rem; }
.nf-product-policy-note p { margin: 6px 0; }

/* Product tabs */
.woocommerce-tabs { margin: 48px 0; grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { display: flex; gap: 8px; list-style: none; margin: 0 0 20px; padding: 0; border-bottom: 1px solid var(--color-border); }
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 10px 18px;
  color: var(--color-text-muted);
  font-weight: 700;
  border-bottom: 2px solid transparent;
}
.woocommerce-tabs ul.tabs li.active a { color: var(--color-pink-deep-dark); border-color: var(--color-pink-deep); }
.woocommerce-tabs .panel h2 { font-size: 1.3rem; }

/* Reviews tab */
.woocommerce-Reviews #comments { list-style: none; margin: 0 0 32px; padding: 0; max-width: 720px; }
.woocommerce-Reviews .commentlist { list-style: none; margin: 0; padding: 0; }
.woocommerce-Reviews .comment { margin-bottom: 18px; }
.woocommerce-Reviews .comment_container {
  display: flex;
  gap: 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px;
}
.woocommerce-Reviews .comment_container img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;
}
.woocommerce-Reviews .comment-text { flex: 1; min-width: 0; }
.woocommerce-Reviews .comment-text .star-rating { margin: 0 0 6px; }
.woocommerce-Reviews .comment-text p.meta {
  font-size: .82rem;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.woocommerce-Reviews .comment-text p.meta strong {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: .95rem;
  display: block;
}
.woocommerce-Reviews .description p { margin: 0; }
.woocommerce-noreviews { color: var(--color-text-muted); }

/* Review form */
#review_form_wrapper { max-width: 560px; }
#review_form #respond { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; }
#review_form #respond .comment-reply-title { font-family: var(--font-heading); font-size: 1.1rem; margin: 0 0 16px; display: block; }
#review_form #respond p.comment-form-rating { margin-bottom: 16px; }
#review_form #respond p.comment-form-rating label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
#review_form #respond .stars { display: flex; gap: 4px; font-size: 1.3rem; }
#review_form #respond .stars a {
  color: var(--color-border);
  transition: color .15s ease;
}
#review_form #respond .stars a:hover,
#review_form #respond .stars a:hover ~ a { color: var(--color-pink-deep); }
#review_form #respond .comment-form-author,
#review_form #respond .comment-form-email,
#review_form #respond .comment-form-comment { margin-bottom: 16px; }
#review_form #respond label { display: block; font-weight: 700; font-size: .85rem; margin-bottom: 6px; }
#review_form #respond input[type="text"],
#review_form #respond input[type="email"],
#review_form #respond textarea {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-family: inherit;
  font-size: .92rem;
  background: var(--color-bg);
}
#review_form #respond textarea { min-height: 110px; resize: vertical; }
#review_form #respond .form-submit { margin: 0; }

/* Related / upsell product sections reuse the same loop grid as .products */
.related.products, .upsells.products { grid-column: 1 / -1; margin-top: 48px; }
.related.products h2, .upsells.products h2 { margin-bottom: 20px; }

/* Product video */
.nf-product-video { grid-column: 1 / -1; }
.nf-product-video__frame {
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.nf-product-video__frame iframe,
.nf-product-video__frame video {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  display: block;
  border: none;
}

/* Pages: size guide table, policy content */
.table-scroll { overflow-x: auto; margin: 20px 0; }
.page-content table { width: 100%; min-width: 440px; border-collapse: collapse; margin: 0; }
.page-content th, .page-content td { border: 1px solid var(--color-border); padding: 10px 14px; text-align: left; }
.page-content th { background: var(--color-pink); }

/* Draft notice on policy pages */
.nf-draft-notice {
  background: var(--color-lavender);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: .85rem;
  margin-bottom: 24px;
}

.container { padding: 0 clamp(16px, 4vw, 24px); }

@media (max-width: 1000px) {
  .hero-slide__inner { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { order: 2; }
  .shop-main { order: 1; }
  .woocommerce div.product { grid-template-columns: 1fr; }
  .woocommerce div.product .summary { grid-column: 1; }
}

/* Collapse to the mobile nav well before desktop width — an 8-item menu
   with dropdowns has no room to breathe in a 3-column header on tablets. */
@media (max-width: 900px) {
  .site-header__inner { grid-template-columns: auto 1fr auto; }
  .main-navigation { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.nav-open .main-navigation {
    display: block;
    grid-column: 1 / -1;
    border-top: 1px solid var(--color-border);
    padding-top: 16px;
  }
  .site-header.nav-open .main-navigation ul { flex-direction: column; gap: 14px; }
  .main-navigation .sub-menu { position: static; box-shadow: none; padding-left: 14px; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}

@media (max-width: 480px) {
  .site-branding .site-description { display: none; }
  .site-branding .site-title { font-size: 1.2rem; }
  .site-branding .logo-mark { width: 32px; height: 32px; font-size: 1rem; }
  .hero-slide__inner { padding: 0 16px; }
  .hero-slide__inner h1 { font-size: 1.9rem; }
  .hero-slide p.lead { font-size: 1rem; }
  .hero-slider__arrow { width: 36px; height: 36px; }
  .hero-slider__arrow--prev { left: 10px; }
  .hero-slider__arrow--next { right: 10px; }
  .section { padding: 36px 0; }
  .collection-banner, .newsletter { padding: 32px 20px; }
  .newsletter input[type="email"] { min-width: 0; }
  .header-actions { gap: 10px; }
}
