/* ==========================================================================
   WEAR WING — "Maison" design layer (v2 · total look)
   Ivory-paper minimalism: vast whitespace, hairline rules, oversized
   editorial serif, squared quiet buttons, borderless product tiles,
   monochrome ink with bronze as a rare accent.

   Loads after wearwing/home-3.css; site-fixes.css stays last.

   NOTE ON BACKGROUNDS: script.js's "Image to Background Image" handler
   moves every .bg-img to its PARENT's CSS background and hides the <img>.
   All image motion targets the wrapper that carries the visible background
   (.ww-hero-bg, .ww-banner-bg, .bg-overlay) — never .bg-img itself.

   All motion respects prefers-reduced-motion and degrades gracefully
   without JavaScript (html.ww-js gates every scroll reveal).
   ========================================================================== */

:root {
  --ww-paper: #fdfcfa;
  --ww-ivory: #f6f3ee;
  --ww-sand: #f7f2eb;
  --ww-hairline: #e8e4dd;
  --ww-ink: var(--color-dark, #1e1d23);
  --ww-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ww-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ww-dur: 0.9s;
  --ww-section: clamp(72px, 11vw, 150px);
}

/* --------------------------------------------------------------------------
   0 · Micro-component polish (applies site-wide)
   -------------------------------------------------------------------------- */

/* Every product image sits on the ivory mat, so a slow/missing thumbnail
   shows a clean tinted panel instead of a raw white box or broken icon. */
.product-default .product-img,
.product-default figure.product-img,
.category-3 .category-item .category-img,
.ww-story .ww-story-media {
  background: var(--ww-ivory);
}

/* Scroll-to-top: a quiet ink circle rather than a heavy bronze square. */
.go-top {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ww-ink) !important;
  color: #fff !important;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(30, 29, 35, 0.18);
  transition: background 0.35s var(--ww-ease), transform 0.35s var(--ww-ease);
}

.go-top:hover {
  background: var(--color-primary) !important;
  transform: translateY(-3px);
}

.go-top i {
  font-size: 15px;
}

/* Header cart / wishlist count badge — small, quiet, circular. */
.header .badge[data-role="count"] {
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  border-radius: 999px;
  padding: 0 4px;
}

::selection {
  background: rgba(var(--color-primary-rgb), 0.85);
  color: #fff;
}

html {
  scroll-behavior: smooth;
}

/* Paper ground for the whole storefront (leave the legacy dark-cookie
   variant alone) */
body:not([data-background-color='dark']) {
  background: var(--ww-paper);
}

/* --------------------------------------------------------------------------
   1 · Typography — editorial scale, quiet color
   -------------------------------------------------------------------------- */
h1, h2, h3, .h1, .h2, .h3 {
  letter-spacing: 0.01em;
}

.section-title .sub-title {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  display: inline-block;
}

.section-title .title {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.12;
  color: var(--ww-ink);
}

.section-title.title-center .title {
  max-width: 760px;
}

/* Hairline accent instead of the old bar */
.section-title .line.line-2 {
  height: 1px;
  width: 44px;
  background: rgba(var(--color-primary-rgb), 0.7);
}

/* --------------------------------------------------------------------------
   2 · Buttons — squared, assured, ink-first
   -------------------------------------------------------------------------- */
.btn:not(.btn-icon):not(.video-btn) {
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

.btn.btn-lg {
  padding: 18px 44px;
}

/* Squared corners everywhere in the storefront — even where blades
   hardcode rounded-pill (bootstrap's utility is !important) */
.btn.rounded-pill:not(.btn-icon) {
  border-radius: 2px !important;
}

/* Primary CTA: ink block, bronze on hover; retire the white sweep */
.btn-primary {
  background-color: var(--ww-ink);
  border-color: var(--ww-ink);
}

.btn-primary::before,
.btn-primary::after {
  display: none;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Understated text CTA: label + sliding underline */
.ww-btn-line {
  position: relative;
  display: inline-block;
  padding-bottom: 6px;
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ww-ink);
}

.ww-btn-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform 0.5s var(--ww-ease);
}

.ww-btn-line:hover {
  color: var(--color-primary);
}

.ww-btn-line:hover::after {
  transform: scaleX(0.55);
}

.ww-btn-line.ww-btn-line-light {
  color: #fff;
}

.ww-btn-line.ww-btn-line-light:hover {
  color: rgba(255, 255, 255, 0.75);
}

/* --------------------------------------------------------------------------
   3 · Header — ONE clean row on paper (no double header)
   -------------------------------------------------------------------------- */
.ww-header.header-fixed {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1010;
  background: transparent;
}

/* Slim promo ribbon (optional, single line) */
.ww-announce {
  background: var(--ww-ink);
  color: #fff;
  text-align: center;
}
.ww-announce p {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 9px 0;
}

/* ---- Desktop single bar ---- */
.ww-bar {
  background: var(--ww-paper);
  border-bottom: 1px solid var(--ww-hairline);
  transition: box-shadow 0.45s var(--ww-ease);
}

.ww-bar-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
  gap: 24px;
}

.ww-bar-left {
  justify-self: start;
}

.ww-logo img {
  max-height: 34px;
  width: auto;
}

/* Primary nav — centered, wide-tracked, sliding underline */
.ww-bar-center {
  justify-self: center;
}
/* Scoped to .ww-bar: the same nav is cloned into the mobile drawer by
   script.js, where it must fall back to the theme's vertical menu styles. */
.ww-bar .ww-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ww-bar .ww-nav > .nav-item {
  position: relative;
}
.ww-bar .ww-nav > .nav-item > .nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ww-ink);
  padding: 6px 0;
}
.ww-bar .ww-nav > .nav-item > .nav-link i {
  font-size: 11px;
  opacity: 0.6;
}
.ww-bar .ww-nav > .nav-item > .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.4s var(--ww-ease);
}
.ww-bar .ww-nav > .nav-item > .nav-link:hover::after,
.ww-bar .ww-nav > .nav-item > .nav-link.active::after {
  transform: scaleX(1);
}

/* Nav dropdown (menu items with children) */
.ww-bar .ww-nav .submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 210px;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  background: var(--ww-paper);
  border: 1px solid var(--ww-hairline);
  box-shadow: 0 20px 50px rgba(30, 29, 35, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ww-ease), transform 0.3s var(--ww-ease);
  z-index: 20;
}
.ww-bar .ww-nav .nav-item.has-submenu:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ww-bar .ww-nav .submenu .nav-link {
  display: block;
  padding: 8px 22px;
  font-family: var(--font-family-body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--color-gray-2);
}
.ww-bar .ww-nav .submenu .nav-link:hover {
  color: var(--ww-ink);
  background: var(--ww-ivory);
}

/* ---- Right utility cluster ---- */
.ww-bar-right {
  justify-self: end;
}
.ww-utils {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ww-util {
  position: relative;
  display: flex;
  align-items: center;
}

.ww-util-text > a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-ink);
}
.ww-util-text > a i {
  font-size: 10px;
  opacity: 0.6;
}
.ww-util-text + .ww-util:not(.ww-util-text) {
  margin-left: 6px;
  padding-left: 6px;
  border-left: 1px solid var(--ww-hairline);
}

.ww-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--ww-ink);
  border-radius: 50%;
  font-size: 17px;
  transition: background 0.3s var(--ww-ease), color 0.3s var(--ww-ease);
}
.ww-icon-btn:hover {
  background: var(--ww-ivory);
  color: var(--color-primary);
}

.ww-has-badge {
  position: relative;
}
.ww-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-family-body);
  font-size: 9px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: 999px;
}
.ww-badge:empty,
.ww-badge[data-count="0"] {
  display: none;
}

/* Utility hover dropdowns (language / currency / account) */
.ww-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 160px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--ww-paper);
  border: 1px solid var(--ww-hairline);
  box-shadow: 0 20px 50px rgba(30, 29, 35, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ww-ease), transform 0.3s var(--ww-ease);
  z-index: 30;
}
.ww-dropdown-right {
  left: auto;
  right: 0;
  transform: translateY(8px);
}
.ww-util:hover > .ww-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.ww-util:hover > .ww-dropdown-right {
  transform: translateY(0);
}
.ww-dropdown a {
  display: block;
  padding: 8px 18px;
  font-family: var(--font-family-body);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--color-gray-2);
  white-space: nowrap;
}
.ww-dropdown a:hover {
  color: var(--ww-ink);
  background: var(--ww-ivory);
}

/* Cart drawer — slide-in bag panel (body markup loaded by cart.js) */
body.ww-drawer-lock {
  overflow: hidden;
}

.ww-cart-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  width: 420px;
  max-width: 92vw;
  display: flex;
  flex-direction: column;
  background: var(--ww-paper);
  border-left: 1px solid var(--ww-hairline);
  box-shadow: -24px 0 60px rgba(30, 29, 35, 0.14);
  transform: translateX(102%);
  transition: transform 0.45s var(--ww-ease);
  z-index: 1080;
}
.ww-cart-drawer.is-open {
  transform: translateX(0);
}
[dir='rtl'] .ww-cart-drawer {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 1px solid var(--ww-hairline);
  box-shadow: 24px 0 60px rgba(30, 29, 35, 0.14);
  transform: translateX(-102%);
}
[dir='rtl'] .ww-cart-drawer.is-open {
  transform: translateX(0);
}
.ww-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--ww-hairline);
}
.ww-cart-drawer__title {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ww-ink);
}
.ww-cart-drawer__close {
  background: none;
  border: 0;
  padding: 0 4px;
  font-size: 26px;
  line-height: 1;
  color: var(--ww-ink);
  cursor: pointer;
}
.ww-cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px 28px;
}
.ww-cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(30, 29, 35, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ww-ease);
  z-index: 1070;
}
.ww-cart-drawer-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.ww-drawer-shipping {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 12px;
  padding-top: 14px;
  border-top: 1px solid var(--ww-hairline);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-gray-2);
}

/* Predictive results inside the search overlay */
.ww-search-results {
  width: 100%;
  max-width: 720px;
  margin: 28px auto 0;
}
.ww-search-results__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ww-search-results__list li + li {
  border-top: 1px solid var(--ww-hairline);
}
.ww-search-results__list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 4px;
}
.ww-search-results__list img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  flex-shrink: 0;
}
.ww-search-results__meta {
  min-width: 0;
}
.ww-search-results__title {
  display: block;
  font-size: 14px;
  color: var(--ww-ink);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ww-search-results__price {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-gray-2);
}
.ww-search-results__all {
  display: inline-block;
  margin-top: 16px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-ink);
  border-bottom: 1px solid currentColor;
}
.ww-search-empty {
  margin: 28px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-gray-2);
}

/* Payment trust row (footer + checkout) */
.ww-payment-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  padding: 20px 0 4px;
}
.ww-payment-trust__label {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--color-gray-2);
}
.ww-payment-trust__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.ww-payment-trust__list li {
  padding: 4px 12px;
  border: 1px solid var(--ww-hairline);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ww-ink);
}

/* Sticky elevation (script.js adds .is-sticky at scrollTop >= 80) */
.ww-bar.is-sticky {
  box-shadow: 0 1px 0 var(--ww-hairline), 0 14px 40px rgba(30, 29, 35, 0.07);
}

/* ---- Mobile bar ---- */
.ww-mobile-bar {
  background: var(--ww-paper);
  border-bottom: 1px solid var(--ww-hairline);
  transition: box-shadow 0.45s var(--ww-ease);
}
.ww-mobile-bar.is-sticky {
  box-shadow: 0 1px 0 var(--ww-hairline), 0 12px 30px rgba(30, 29, 35, 0.07);
}
.ww-mobile-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 64px;
}
.ww-mobile-logo {
  justify-self: center;
}
.ww-mobile-logo img {
  max-height: 28px;
  width: auto;
}
.ww-mobile-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 2px;
}
.ww-burger {
  justify-self: start;
  width: 40px;
  height: 40px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  background: transparent;
  padding: 0;
}
.ww-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ww-ink);
  transition: transform 0.3s var(--ww-ease), opacity 0.3s var(--ww-ease);
}
body.menu-active .ww-burger span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.menu-active .ww-burger span:nth-child(2) {
  opacity: 0;
}
body.menu-active .ww-burger span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Legacy background rule kept for any lingering .mobile-navbar users */
.mobile-navbar {
  background: var(--ww-paper);
}

/* ---- Mobile drawer nav (script.js clones .mobile-nav into the drawer) ---- */
.mobile-menu .ww-nav {
  display: block;
  width: 100%;
  margin: 0;
  padding: 6px 0;
  list-style: none;
}
.mobile-menu .ww-nav .nav-item {
  display: block;
  position: static;
}
.mobile-menu .ww-nav .nav-link {
  display: block;
  padding: 15px 24px;
  font-family: var(--font-family-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ww-ink);
  border-bottom: 1px solid var(--ww-hairline);
}
.mobile-menu .ww-nav .nav-link:hover,
.mobile-menu .ww-nav .nav-link.active {
  color: var(--color-primary);
}
.mobile-menu .ww-nav .nav-link i {
  display: none;
}
.mobile-menu .ww-nav .nav-link::after {
  display: none;
}
/* Submenus render inline in the drawer */
.mobile-menu .ww-nav .submenu {
  position: static;
  transform: none;
  opacity: 1;
  visibility: visible;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: var(--ww-ivory);
}
.mobile-menu .ww-nav .submenu .nav-link {
  padding-left: 40px;
  text-transform: none;
  letter-spacing: 0.04em;
  font-weight: 500;
  color: var(--color-gray-2);
}

/* --------------------------------------------------------------------------
   4 · Hero — a full editorial opening
   .ww-hero-bg carries the background post-swap; Ken Burns lands on it.
   -------------------------------------------------------------------------- */
.home-slider.home-slider-3 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(92vh, 980px);
  padding: 200px 0 170px;
}

.home-slider.home-slider-3 .ww-hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  will-change: transform;
}

/* Ken Burns: one slow 30s breath that settles */
html.ww-js .home-slider.home-slider-3 .ww-hero-bg {
  animation: ww-kenburns 30s var(--ww-ease) 1 forwards;
}

@keyframes ww-kenburns {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

/* Paper scrim: type always sits confidently on the admin image */
.home-slider.home-slider-3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(253, 252, 250, 0.96) 0%,
    rgba(253, 252, 250, 0.72) 46%,
    rgba(253, 252, 250, 0.12) 100%
  );
}

.home-slider-3 .slider-content .ww-hero-overline {
  display: inline-block;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 26px;
}

.home-slider-3 .slider-content .title {
  font-size: clamp(2.9rem, 6.2vw, 5.5rem);
  line-height: 1.02;
  color: var(--ww-ink);
  margin-bottom: 26px;
}

.home-slider-3 .slider-content .text-lg {
  max-width: 460px;
  color: var(--color-gray-2);
  font-size: 15px;
  line-height: 1.9;
}

/* Price pair: quiet, not shouty */
.home-slider-3 .slider-content .product-price .h2 {
  font-family: var(--font-family-body);
  font-weight: 700;
  font-size: 22px;
  color: var(--ww-ink);
}

.home-slider-3 .slider-content .product-price .h3 {
  font-family: var(--font-family-body);
  font-weight: 400;
  font-size: 15px;
  color: var(--color-gray-1);
}

/* Hero product rail: bare tiles, hairline focus line */
.product-default-3 {
  border: 0 !important;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.product-default-3 .product-img::before {
  content: none;
}

.product-default-3 .product-details {
  padding-top: 12px;
}

.product-default-3 .product-title {
  font-family: var(--font-family-base);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.product-default-3 .line {
  height: 1px;
  background: var(--ww-hairline);
}

.product-default-3.slick-current .line {
  background: var(--color-primary);
  box-shadow: none;
}

/* Pre-existing theme bug (also on prod): slick sizes hero slides wider
   than small viewports, so the 640px slider-content clips at the screen
   edge. Wrap the copy within the visible viewport instead. */
@media (max-width: 767px) {
  .home-slider-3 .slider-content {
    max-width: calc(100vw - 48px);
  }
}

/* --------------------------------------------------------------------------
   5 · Scroll-reveal system (gated on html.ww-js; no-JS sees everything)
   -------------------------------------------------------------------------- */
html.ww-js .ww-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--ww-dur) var(--ww-ease-out),
    transform var(--ww-dur) var(--ww-ease-out);
  transition-delay: var(--ww-delay, 0s);
  will-change: opacity, transform;
}

html.ww-js .ww-reveal.ww-in {
  opacity: 1;
  transform: none;
}

/* Image unveil: clip from bottom, slight settle */
html.ww-js .ww-img-reveal {
  clip-path: inset(12% 0 0 0);
  opacity: 0;
  transform: translateY(24px) scale(1.02);
  transition:
    clip-path 1.1s var(--ww-ease-out),
    opacity 1.1s var(--ww-ease-out),
    transform 1.1s var(--ww-ease-out);
  transition-delay: var(--ww-delay, 0s);
}

html.ww-js .ww-img-reveal.ww-in {
  clip-path: inset(0 0 0 0);
  opacity: 1;
  transform: none;
}

/* Stagger helper: children inherit incremental delays (set by luxe.js) */
html.ww-js .ww-stagger > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity var(--ww-dur) var(--ww-ease-out),
    transform var(--ww-dur) var(--ww-ease-out);
  transition-delay: var(--ww-delay, 0s);
}

html.ww-js .ww-stagger.ww-in > * {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   6 · Product tiles — borderless, gallery-like
   transition keeps visibility (default/hover crossfade) and filter
   (lazysizes blur-up) so neither snaps.
   -------------------------------------------------------------------------- */
.product-default {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
}

.product-default .product-img {
  background: var(--ww-ivory);
  border-radius: 0;
}

.product-default .product-img img {
  transition: transform 1.4s var(--ww-ease), opacity 0.6s ease,
    visibility 0.6s ease, filter 300ms;
}

.product-default:hover .product-img img {
  transform: scale(1.06);
}

.product-default .product-title,
.product-default .product-title a {
  font-family: var(--font-family-base);
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--ww-ink);
}

.product-default .product-price .new-price {
  font-family: var(--font-family-body);
  font-weight: 600;
  font-size: 14px;
  color: var(--ww-ink);
}

.product-default .product-price .old-price {
  font-size: 13px;
}

/* Quick actions: squared ghosts that fill with ink */
.product-default .btn-icon-group .btn-icon {
  width: 42px;
  height: 42px;
  border-radius: 2px !important;
  background: rgba(253, 252, 250, 0.96);
  border: 1px solid var(--ww-hairline);
  box-shadow: none;
  color: var(--ww-ink);
  backdrop-filter: blur(6px);
  transition: transform 0.35s var(--ww-ease), background 0.35s var(--ww-ease),
    color 0.35s var(--ww-ease), border-color 0.35s var(--ww-ease);
}

.product-default .btn-icon-group .btn-icon:hover {
  background: var(--ww-ink);
  border-color: var(--ww-ink);
  color: #fff;
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   7 · Banner collection — full-bleed editorial tiles
   .ww-banner-bg carries the background after script.js's swap.
   -------------------------------------------------------------------------- */
.banner-collection .banner-sm {
  overflow: hidden;
}

.banner-collection .banner-sm .ww-banner-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform 1.6s var(--ww-ease);
}

.banner-collection a:hover .banner-sm .ww-banner-bg {
  transform: scale(1.05);
}

.banner-collection .banner-content .title {
  font-family: var(--font-family-base);
}

.banner-collection .banner-content .text-decoration-underline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-underline-offset: 6px;
  transition: color 0.35s ease;
}

.banner-collection a:hover .banner-content .text-decoration-underline {
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   8 · Categories — clean gallery tiles (arch retired)
   -------------------------------------------------------------------------- */
.category-3 .category-item {
  border: 0 !important;
  border-radius: 0;
  padding: 0 0 22px;
  background: transparent;
  transition: none;
  box-shadow: none !important;
}

.category-3 .category-item:hover {
  transform: none;
  box-shadow: none !important;
}

.category-3 .category-item .category-img {
  border-radius: 0;
  overflow: hidden;
  background: var(--ww-ivory);
  margin-bottom: 18px;
}

/* Editorial 3:4 crop instead of the square */
.category-3 .category-item .category-img.ratio-1-1::before {
  padding-bottom: 133%;
}

.category-3 .category-item .category-img img {
  transition: transform 1.4s var(--ww-ease), filter 300ms;
}

.category-3 .category-item:hover .category-img img {
  transform: scale(1.07);
}

.category-3 .category-item h3 {
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ww-ink);
  transition: color 0.3s ease;
}

.category-3 .category-item:hover h3 {
  color: var(--color-primary);
}

.category-3 .category-item .line {
  display: none;
}

.category-3 .category-item .color-medium {
  font-size: 11px;
  letter-spacing: 0.12em;
}

/* --------------------------------------------------------------------------
   9 · Flash section — framed ivory pause
   -------------------------------------------------------------------------- */
.new-product.bg-color {
  background: var(--ww-ivory) !important;
  border-top: 1px solid var(--ww-hairline);
  border-bottom: 1px solid var(--ww-hairline);
}

.new-product .product-countdown .count {
  background: transparent;
  border: 1px solid var(--ww-hairline);
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   10 · Tabs — quiet underline navigation
   (.target = fancyHover's sliding pill from plugins.js; retired)
   -------------------------------------------------------------------------- */
.popular-product .tabs-navigation .target {
  display: none;
}

.popular-product .nav-tabs .nav-link {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 10px 2px;
  margin-inline: 20px;
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gray-2);
  position: relative;
}

.popular-product .nav-tabs .nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.45s var(--ww-ease);
}

.popular-product .nav-tabs .nav-link.active,
.popular-product .nav-tabs .nav-link:hover {
  color: var(--ww-ink);
}

.popular-product .nav-tabs .nav-link.active::after,
.popular-product .nav-tabs .nav-link:hover::after {
  transform: scaleX(1);
}

/* --------------------------------------------------------------------------
   11 · Video banner — the cinematic pause
   -------------------------------------------------------------------------- */
.video-banner {
  isolation: isolate;
  overflow: hidden;
}

.video-banner.video-banner-2 {
  padding-top: clamp(120px, 16vw, 220px);
  padding-bottom: clamp(90px, 13vw, 190px);
}

.video-banner.video-banner-2 .bg-overlay::before {
  background: linear-gradient(
    180deg,
    rgba(30, 29, 35, 0.6),
    rgba(30, 29, 35, 0.38)
  );
}

/* Oversize the parallax layer so translateY never exposes edge gaps */
@media (min-width: 992px) {
  .video-banner .bg-overlay[data-ww-parallax] {
    height: calc(100% + 80px);
    top: -40px;
    will-change: transform;
  }
}

.video-banner .content .title {
  font-size: clamp(2rem, 3.6vw, 3.2rem);
  line-height: 1.15;
}

.video-banner .video-btn {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible; /* .btn base sets hidden — would clip the pulse ring */
  transition: background 0.4s ease, transform 0.4s var(--ww-ease);
}

.video-banner .video-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.06);
}

html.ww-js .video-banner .video-btn::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  animation: ww-pulse 2.6s var(--ww-ease) infinite;
}

@keyframes ww-pulse {
  0%   { transform: scale(1); opacity: 0.9; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* --------------------------------------------------------------------------
   12 · Philosophy — the voice, framed by hairlines on paper
   -------------------------------------------------------------------------- */
.ww-philosophy {
  background: var(--ww-paper);
  border-top: 1px solid var(--ww-hairline);
  padding: var(--ww-section) 0;
  text-align: center;
}

.ww-philosophy .ww-overline {
  display: inline-block;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.48em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 30px;
}

/* Overlines are small — deepen tenant primaries toward ink for contrast */
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ww-philosophy .ww-overline,
  .home-slider-3 .slider-content .ww-hero-overline {
    color: color-mix(in srgb, var(--color-primary) 70%, var(--ww-ink));
  }
}

.ww-philosophy .ww-statement {
  font-family: var(--font-family-base);
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.25;
  color: var(--ww-ink);
  max-width: 980px;
  margin: 0 auto 44px;
}

/* --------------------------------------------------------------------------
   13 · Story split — WEAR / WING chapters
   -------------------------------------------------------------------------- */
.ww-story {
  padding: var(--ww-section) 0;
}

.ww-story .ww-story-media {
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--ww-ivory);
}

.ww-story .ww-story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4 / 5;
  transition: transform 1.6s var(--ww-ease), filter 300ms;
}

.ww-story .ww-story-media:hover img {
  transform: scale(1.05);
}

.ww-story .ww-chapter-no {
  font-family: var(--font-family-base);
  font-size: 14px;
  letter-spacing: 0.34em;
  color: var(--color-primary);
  display: block;
  margin-bottom: 16px;
}

.ww-story .ww-chapter-title {
  font-family: var(--font-family-base);
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  color: var(--ww-ink);
  margin-bottom: 20px;
}

.ww-story .ww-chapter-text {
  max-width: 430px;
  color: var(--color-gray-2);
  line-height: 1.9;
  margin-bottom: 30px;
}

.ww-story .ww-story-block + .ww-story-block {
  margin-top: clamp(64px, 9vw, 130px);
}

/* --------------------------------------------------------------------------
   14 · Marquee — the signature before the footer
   -------------------------------------------------------------------------- */
.ww-marquee {
  overflow: hidden;
  padding: clamp(44px, 7vw, 84px) 0;
  border-top: 1px solid var(--ww-hairline);
  background: var(--ww-paper);
  white-space: nowrap;
}

.ww-marquee .ww-marquee-track {
  display: inline-flex;
  gap: 3.5rem;
  padding-inline-start: 3.5rem;
}

html.ww-js .ww-marquee .ww-marquee-track {
  animation: ww-marquee 72s linear infinite;
  will-change: transform;
}

/* Pragmatic WCAG 2.2.2 mitigation: pause on hover / keyboard focus */
.ww-marquee:hover .ww-marquee-track,
.ww-marquee:focus-within .ww-marquee-track {
  animation-play-state: paused;
}

.ww-marquee .ww-marquee-track span {
  font-family: var(--font-family-base);
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  color: rgba(var(--color-primary-rgb), 0.28); /* fallback: no text-stroke */
}

@supports (-webkit-text-stroke: 1px black) {
  .ww-marquee .ww-marquee-track span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(var(--color-primary-rgb), 0.5);
  }

  .ww-marquee .ww-marquee-track span:nth-child(even) {
    color: var(--ww-ink);
    -webkit-text-stroke: 0;
  }
}

@keyframes ww-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* RTL variant: the track overflows leftward under direction:rtl, so the
   loop must travel the other way (wired up in styles.blade.php RTL block) */
@keyframes ww-marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(50%); }
}

/* --------------------------------------------------------------------------
   15 · Services (featured) row — a thin, confident line
   -------------------------------------------------------------------------- */
.featured.featured-2 {
  border-top: 1px solid var(--ww-hairline);
  background: var(--ww-paper);
}

.featured.featured-2 .featured-item .icon {
  font-size: 24px;
  color: var(--ww-ink);
}

.featured.featured-2 .featured-item h5 {
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ww-ink);
}

.featured.featured-2 .featured-item .text-sm {
  color: var(--color-gray-1);
}

/* --------------------------------------------------------------------------
   16 · Footer — editorial, paper, hairlines
   -------------------------------------------------------------------------- */
.ww-footer.footer-area {
  background: var(--ww-paper);
  border-top: 1px solid var(--ww-hairline);
}
.ww-footer .footer-top {
  padding: clamp(56px, 7vw, 90px) 0 clamp(40px, 5vw, 64px);
}

/* Newsletter strip — headline + inline field, split row */
.ww-footer-news {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: clamp(40px, 5vw, 64px);
  margin-bottom: clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--ww-hairline);
}
.ww-footer-overline {
  display: inline-block;
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
  .ww-footer-overline {
    color: color-mix(in srgb, var(--color-primary) 72%, var(--ww-ink));
  }
}
.ww-footer-news-title {
  font-family: var(--font-family-base);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--ww-ink);
  margin: 0;
  max-width: 18ch;
}
.ww-footer-news-text {
  color: var(--color-gray-2);
  margin: 10px 0 0;
  max-width: 44ch;
}
.ww-footer-form {
  flex: 1 1 380px;
  max-width: 460px;
}
.ww-footer-input {
  display: flex;
  border: 1px solid var(--ww-hairline);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}
.ww-footer-input input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0 18px;
  height: 54px;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: var(--ww-ink);
}
.ww-footer-input input:focus {
  outline: none;
}
.ww-footer-input .btn {
  border-radius: 0 !important;
  padding: 0 30px;
  white-space: nowrap;
}
.ww-footer-privacy {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--color-gray-1);
  letter-spacing: 0.02em;
}
.ww-footer-privacy a {
  color: var(--color-gray-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Columns grid */
.ww-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: 48px;
}
.ww-footer-logo img {
  max-height: 34px;
  width: auto;
  margin-bottom: 22px;
}
.ww-footer-about {
  color: var(--color-gray-2);
  line-height: 1.8;
  max-width: 42ch;
  margin-bottom: 24px;
}
.ww-footer-social {
  display: flex;
  gap: 10px;
}
.ww-footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--ww-hairline);
  border-radius: 50%;
  color: var(--ww-ink);
  font-size: 15px;
  transition: background 0.3s var(--ww-ease), color 0.3s var(--ww-ease), border-color 0.3s var(--ww-ease);
}
.ww-footer-social a:hover {
  background: var(--ww-ink);
  border-color: var(--ww-ink);
  color: #fff;
}
.ww-footer-heading {
  font-family: var(--font-family-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ww-ink);
  margin-bottom: 22px;
}
.ww-footer-links,
.ww-footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ww-footer-links li,
.ww-footer-contact li {
  margin-bottom: 12px;
}
.ww-footer-links a,
.ww-footer-contact a,
.ww-footer-contact li {
  color: var(--color-gray-2);
  font-size: 14px;
  line-height: 1.6;
  transition: color 0.3s ease;
}
.ww-footer-links a:hover,
.ww-footer-contact a:hover {
  color: var(--color-primary);
}

/* Bottom copyright bar */
.ww-footer .copy-right-area {
  border-top: 1px solid var(--ww-hairline);
}
.ww-footer-bottom {
  padding: 26px 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--color-gray-1);
}

@media (max-width: 991px) {
  .ww-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px 32px;
  }
  .ww-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575px) {
  .ww-footer-news {
    flex-direction: column;
    align-items: stretch;
  }
  .ww-footer-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .ww-footer-input {
    flex-direction: column;
  }
  .ww-footer-input .btn {
    padding: 14px 0;
  }
}

/* --------------------------------------------------------------------------
   17 · Inner-page chrome — every page opens like an editorial
   -------------------------------------------------------------------------- */
.page-title-area {
  position: relative;
  isolation: isolate;
  background: var(--ww-ivory);
  border-bottom: 1px solid var(--ww-hairline);
  border-radius: 0;
  padding: 170px 0 56px;
}

/* Paper scrim over the admin breadcrumb image (script.js swaps .bg-img
   onto the section background) */
.page-title-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    90deg,
    rgba(253, 252, 250, 0.94) 0%,
    rgba(253, 252, 250, 0.62) 55%,
    rgba(253, 252, 250, 0.25) 100%
  );
}

.page-title-area .container {
  position: relative;
  z-index: 1;
}

.page-title-area .content h2 {
  font-family: var(--font-family-base);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: var(--ww-ink);
  margin-bottom: 10px;
}

.page-title-area .breadcrumb {
  margin: 0;
}

.page-title-area .breadcrumb .breadcrumb-item,
.page-title-area .breadcrumb .breadcrumb-item a {
  font-family: var(--font-family-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gray-2);
}

.page-title-area .breadcrumb .breadcrumb-item a:hover {
  color: var(--color-primary);
}

@media (max-width: 991px) {
  .page-title-area {
    padding: 120px 0 40px;
  }
}

/* Forms — squared, hairline, calm focus */
.form-control,
.form-select,
input[type="text"].form-control,
input[type="email"].form-control,
textarea.form-control {
  border-radius: 2px;
  border-color: var(--ww-hairline);
  background-color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: rgba(var(--color-primary-rgb), 0.6);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.08);
}

label.form-label,
.form-group label {
  font-family: var(--font-family-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ww-ink);
}

/* Pagination — quiet numerals */
.pagination .page-link {
  border-radius: 2px !important;
  border-color: var(--ww-hairline);
  color: var(--ww-ink);
  font-size: 13px;
}

.pagination .page-item.active .page-link {
  background: var(--ww-ink);
  border-color: var(--ww-ink);
  color: #fff;
}

.pagination .page-link:hover {
  background: var(--ww-ivory);
  color: var(--ww-ink);
}

/* Quick-view / custom modals — paper panel */
.custom-modal .modal-content {
  border-radius: 0;
  border: 1px solid var(--ww-hairline);
  background: var(--ww-paper);
}

.custom-modal .close_modal_btn {
  border-radius: 0;
}

/* Cards & generic panels on inner pages */
.card {
  border-radius: 0;
  border-color: var(--ww-hairline);
}

/* Tables (cart, orders) — hairline rows */
.table > :not(caption) > * > * {
  border-bottom-color: var(--ww-hairline);
}

/* --------------------------------------------------------------------------
   18 · Motion & context guards
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  html.ww-js .home-slider.home-slider-3 .ww-hero-bg {
    animation: none;
  }

  /* .product-thumb is absolute-bottom — the big bottom padding is its
     reserved space (mirrors home-3.css's mobile values) */
  .home-slider.home-slider-3 {
    min-height: 0;
    padding: 150px 0 340px;
  }
}

@media (max-width: 575px) {
  .home-slider.home-slider-3 {
    padding: 140px 0 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  html.ww-js .ww-reveal,
  html.ww-js .ww-img-reveal,
  html.ww-js .ww-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  html.ww-js .home-slider.home-slider-3 .ww-hero-bg,
  html.ww-js .ww-marquee .ww-marquee-track,
  html.ww-js .video-banner .video-btn::before {
    animation: none !important;
  }

  .product-default .product-img img,
  .banner-collection .banner-sm .ww-banner-bg,
  .category-3 .category-item .category-img img,
  .ww-story .ww-story-media img {
    transition: none !important;
  }
}
