/* NORDAN homepage: responsive, minimal, semantic token-aware. */
/* The active WoodMart page template is a 12-col grid with a 9-col content cell. */
/* Home hero must meet WoodMart's header edge on desktop and mobile.
   Target page 587 only; leave category, product and account page spacing intact. */
body.home.page .wd-page-content.main-page-wrapper {
  padding-block-start:0!important;
  margin-block-start:0!important;
}
body.home.page #main-content.wd-content-layout,
body.home.page #main-content > .wd-content-area,
body.home.page #main-content > .wd-content-area > article.entry-content,
body.home.page #main-content > .wd-content-area > article.entry-content > .nd-home,
body.home.page .nd-home__hero {
  padding-block-start:0!important;
  margin-block-start:0!important;
}
body.home.page #main-content {row-gap:0;}
body.home.page .nd-home__hero {display:block;}
body.home.page .wd-content-layout.container{max-width:none!important;width:100%!important;margin-inline:0!important;padding-inline:0!important;--wd-container-w:100%!important}
body.home.page .wd-content-layout>.wd-content-area{grid-column:1/-1!important;--wd-col-lg:12!important;--wd-col-md:12!important;width:100%!important;max-width:none!important;padding-inline:0!important}
body.home.page .wd-content-area>article{width:100%;max-width:none;margin:0}
body.home.page .wd-page-content .nd-home{width:100%;max-width:none}
body.home.page .wd-content-layout{max-width:none;width:100%;margin:0;display:block}
body.home.page .wd-content-area{width:100%;max-width:none}
body.home.page .wd-content-area>.entry-content{max-width:none}
.nd-home{width:100%;color:var(--nd-text);background:var(--nd-bg)}
.nd-home__hero{position:relative;min-height:clamp(320px,32vw,565px);overflow:hidden;background:var(--nd-elevated,#192b43);color:#f4f8fe}
.nd-home__slides{position:relative;height:clamp(320px,32vw,565px)}
.nd-home__slide{position:absolute;inset:0;display:grid;grid-template-columns:1fr;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .35s ease,visibility .35s ease}
.nd-home__slide.is-active{opacity:1;visibility:visible;pointer-events:auto;z-index:1}
.nd-home__hero-media{position:absolute;inset:0;overflow:hidden}
.nd-home__hero-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,19,36,.2) 0%,rgba(8,19,36,.56) 52%,rgba(8,19,36,.84) 100%);pointer-events:none}
.nd-home__slide--left .nd-home__hero-media:after{transform:scaleX(-1)}
.nd-home__hero-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.nd-home__hero-content{position:relative;z-index:1;align-self:center;max-width:min(92%,1360px);width:100%;margin-inline:auto;padding:46px clamp(20px,5vw,70px);color:#f4f8fe}
.nd-home__slide--left .nd-home__hero-content{text-align:left}
.nd-home__eyebrow{display:block;font-family:inherit;font-size:clamp(11px,1vw,14px);font-weight:600;letter-spacing:.15em;color:#bcd6f4;direction:ltr;text-align:start;margin-bottom:16px}
.nd-home__slide--left .nd-home__eyebrow{text-align:left}
.nd-home__hero-content h1{max-width:650px;font-size:clamp(30px,3.3vw,58px);line-height:1.45;font-weight:800;color:#fff;margin:0 0 12px}
.nd-home__hero-content p{font-size:clamp(14px,1.25vw,18px);color:#e1ebf7;line-height:1.9;margin:0 0 25px}
.nd-home__cta{display:inline-flex;align-items:center;gap:12px;padding:12px 27px;border-radius:999px;background:#f7fbff;color:#153458;font-size:14px;font-weight:700;text-decoration:none}
.nd-home__cta:hover,.nd-home__cta:focus-visible{background:#dceeff;color:#153458}
.nd-home__nav{position:absolute;z-index:3;left:clamp(14px,3vw,46px);bottom:23px;display:flex;gap:8px;direction:ltr}
.nd-home__nav button{display:grid;place-items:center;width:43px;height:43px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:29px;line-height:1;cursor:pointer;backdrop-filter:blur(12px)}
.nd-home__nav button:is(:hover,:focus-visible){background:rgba(255,255,255,.3)}
.nd-home__dots{position:absolute;z-index:3;bottom:29px;right:50%;transform:translateX(50%);display:flex;gap:9px;align-items:center}
.nd-home__dots button{width:8px;height:8px;padding:0;border:0;border-radius:20px;background:rgba(255,255,255,.47);cursor:pointer}
.nd-home__dots button[aria-current=true]{width:25px;background:#fff}
.nd-home__categories{padding:clamp(30px,4.5vw,70px) 0 clamp(45px,5vw,80px);background:var(--nd-bg)}
.nd-home__wrap{width:min(100% - 32px,1260px);margin-inline:auto}
.nd-home__categories h2{margin:0 0 28px;text-align:center;color:var(--nd-text);font-size:clamp(21px,2.4vw,31px);font-weight:750}
.nd-home__category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,2.5vw,26px)}
.nd-home__category{display:flex;flex-direction:column;align-items:center;text-decoration:none;min-width:0;color:var(--nd-text);text-align:center}
.nd-home__category-art{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:1.55;background:var(--nd-bg-alt);border:1px solid var(--nd-border);border-radius:clamp(12px,1.5vw,22px);overflow:hidden;transition:border-color .2s}
.nd-home__category:hover .nd-home__category-art{border-color:var(--nd-primary)}
.nd-home__category-art img{display:block;width:100%;height:100%;object-fit:cover}
.nd-home__category-initial{font-family:Georgia,serif;font-size:clamp(65px,11vw,168px);font-weight:500;font-style:italic;line-height:1;color:var(--nd-primary);opacity:.2}
.nd-home__category-name{font-size:clamp(14px,1.35vw,20px);line-height:1.7;font-weight:750;color:var(--nd-text);padding-top:14px}
.nd-home__category-sub{font-size:clamp(11px,1vw,13px);line-height:1.5;color:var(--nd-text-secondary)}
.nd-home__category:focus-visible{outline:2px solid var(--nd-focus);outline-offset:4px}
@media(max-width:640px){.nd-home__hero,.nd-home__slides{min-height:390px;height:390px}.nd-home__hero-media:after{background:linear-gradient(0deg,rgba(8,19,36,.88),rgba(8,19,36,.25) 90%)}.nd-home__hero-content{align-self:end;padding:18px 20px 77px;max-width:100%}.nd-home__hero-content h1{font-size:28px}.nd-home__hero-content p{font-size:13px;margin-bottom:16px}.nd-home__cta{padding:10px 20px}.nd-home__nav{bottom:14px;left:14px}.nd-home__nav button{width:35px;height:35px;font-size:22px}.nd-home__dots{bottom:24px}.nd-home__category-grid{gap:9px}.nd-home__category-art{aspect-ratio:1;min-height:105px;border-radius:13px}.nd-home__category-name{font-size:13px;padding-top:9px}.nd-home__category-sub{font-size:10px}.nd-home__categories h2{margin-bottom:20px}}
@media(prefers-reduced-motion:reduce){.nd-home__slide,.nd-home__category-art{transition:none}}

/* Home categories: compact typography, balanced category objects. */
.nd-home__category-art{aspect-ratio:1.35}
.nd-home__category-art img{object-fit:contain;padding:clamp(8px,2vw,22px)}
.nd-home__category-sub{font-size:12px;line-height:1.55}
.nd-home__category-grid{margin-bottom:8px}
/* Native horizontal snap: only one card and 40px of the next in mobile. */
.nd-home-shelf{padding-block:24px 22px}
.nd-home-shelf__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.nd-home-shelf__head h2{font-size:clamp(19px,2vw,27px);font-weight:750;line-height:1.6;color:var(--nd-text);margin:0}
.nd-home-shelf__actions{display:flex;align-items:center;justify-content:flex-end;gap:clamp(7px,1.4vw,16px);flex-shrink:0}
.nd-home-shelf__view-all{white-space:nowrap;color:var(--nd-primary);font-size:13px;font-weight:700;text-decoration:none}
.nd-home-shelf__view-all:hover{color:var(--nd-text)}
.nd-home-shelf__arrows{display:flex;align-items:center;gap:6px;direction:rtl}
body.home .nd-home-shelf__arrow,
body.home .nd-home-shelf__arrow:is(:hover,:active,:focus){
 appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:none;
 width:36px;height:36px;min-height:36px;min-width:36px;padding:0;
 border:1px solid var(--nd-border);border-radius:50%;box-shadow:none;
 background:var(--nd-surface);color:var(--nd-text);cursor:pointer;
 line-height:1;transform:none;text-transform:none;
}
body.home .nd-home-shelf__arrow svg{display:block;width:18px;height:18px;flex-shrink:0;stroke:currentColor}
body.home .nd-home-shelf__arrow:hover:not(:disabled){color:var(--nd-primary);border-color:var(--nd-primary)}
body.home .nd-home-shelf__arrow:disabled{opacity:.35;cursor:default}
body.home .nd-home-shelf__arrow:focus-visible{outline:2px solid var(--nd-focus);outline-offset:3px}
.nd-home-shelf__arrows[data-no-overflow="true"]{visibility:hidden}
@media(max-width:640px){
 .nd-home-shelf__actions{gap:8px}
 .nd-home-shelf__view-all{font-size:11px}
 .nd-home-shelf__arrows{gap:4px}
 body.home .nd-home-shelf__arrow,
 body.home .nd-home-shelf__arrow:is(:hover,:active,:focus){
  width:32px;height:32px;min-width:32px;min-height:32px;
 }
 body.home .nd-home-shelf__arrow svg{width:16px;height:16px}
}

/* Keep horizontal swipe and arrow navigation, but do not paint native scrollbars. */
.nd-home-shelf__track{display:flex;direction:rtl;gap:12px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scroll-padding-inline:0;padding:0 0 12px;scrollbar-width:none;-ms-overflow-style:none}
.nd-home-shelf__track::-webkit-scrollbar{display:none;width:0;height:0}
.nd-home-shelf__track:focus-visible{outline:2px solid var(--nd-focus);outline-offset:3px}
.nd-home-shelf__item,.nd-home-shelf__all{flex:0 0 clamp(184px,19vw,232px);min-width:0;scroll-snap-align:start;border:1px solid var(--nd-border);border-radius:16px;background:var(--nd-surface);overflow:hidden;color:var(--nd-text)}
.nd-home-shelf__item{padding-bottom:18px}
.nd-home-shelf__image{display:block;aspect-ratio:1;background:var(--nd-bg-alt);overflow:hidden}
.nd-home-shelf__image img{display:block;width:100%;height:100%;object-fit:cover}
.nd-home-shelf__item h3{margin:12px 12px 8px;font-size:14px;line-height:1.65;font-weight:650;min-height:46px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nd-home-shelf__item h3 a{color:var(--nd-text);text-decoration:none}
.nd-home-shelf__price{text-align:center;margin:0 10px;color:var(--nd-primary);font-size:14px;font-weight:700;line-height:1.7}
.nd-home-shelf__price :is(.amount,.woocommerce-Price-amount){color:var(--nd-primary)}
.nd-home-shelf__all{display:flex;min-height:300px;align-items:center;justify-content:center;flex-direction:column;gap:13px;font-size:16px;font-weight:700;text-align:center;text-decoration:none}
.nd-home-shelf__all-icon{display:grid;place-items:center;width:48px;height:48px;border:1px solid var(--nd-border);border-radius:50%;font-size:24px;line-height:1;color:var(--nd-primary)}
.nd-home-shelf__all small{font-size:12px;color:var(--nd-text-secondary)}
.nd-home-shelf__all:hover{border-color:var(--nd-primary)}
.nd-home-about{margin-block:35px 65px;padding:clamp(20px,3vw,36px);border-radius:18px;border:1px solid var(--nd-border);background:var(--nd-bg-alt);--nd-about-collapse-height:125px}
.nd-home-about h2{font-size:clamp(20px,2.2vw,29px);color:var(--nd-text);margin:0 0 20px}
.nd-home-about__text{position:relative;font-size:14px;line-height:2.15;color:var(--nd-text-secondary)}
/* Text is never clipped without JavaScript; enhance only when overflow is detected. */
.nd-home-about.is-enhanced .nd-home-about__text:not(.is-open){max-height:var(--nd-about-collapse-height);overflow:hidden}
.nd-home-about__text.is-open{max-height:none}
.nd-home-about.is-enhanced .nd-home-about__text:not(.is-open)::after{content:"";position:absolute;inset-inline:0;bottom:0;height:35px;background:linear-gradient(transparent,var(--nd-bg-alt));pointer-events:none}
.nd-home-about__text a{color:var(--nd-primary);font-weight:650;text-decoration:underline;text-underline-offset:3px}
body.home .nd-home-about button.nd-home-about__more,
body.home .nd-home-about button.nd-home-about__more:is(:hover,:active,:focus){
 appearance:none;display:inline-flex;align-items:center;justify-content:center;gap:9px;
 width:auto;min-width:0;min-height:42px;margin-top:15px;padding:9px 17px;
 border:1px solid var(--nd-border);border-radius:999px;
 background:var(--nd-surface);background-image:none;box-shadow:none;
 color:var(--nd-primary);font-family:inherit;font-size:13px;font-weight:700;
 line-height:1.5;text-transform:none;letter-spacing:normal;cursor:pointer;
}
body.home .nd-home-about button.nd-home-about__more[hidden]{display:none!important}
body.home .nd-home-about button.nd-home-about__more:focus-visible{outline:2px solid var(--nd-focus);outline-offset:3px}
body.home .nd-home-about .nd-home-about__chevron{width:18px;height:18px;display:block;flex:none;stroke:currentColor;transition:transform .2s ease}
body.home .nd-home-about button.nd-home-about__more[aria-expanded="true"] .nd-home-about__chevron{transform:rotate(180deg)}
@media(prefers-reduced-motion:reduce){body.home .nd-home-about .nd-home-about__chevron{transition:none}}
@media(max-width:640px){
 .nd-home__category-name{font-size:12px;line-height:1.5;padding-top:8px}
 .nd-home__category-sub{font-size:9px;line-height:1.5}
 .nd-home__category-art{aspect-ratio:1}
 .nd-home__category-art img{padding:6px}
 .nd-home-shelf{padding-block:15px 18px}
 .nd-home-shelf__head{margin-bottom:12px}
 .nd-home-shelf__head h2{font-size:19px}
 .nd-home-shelf__track{gap:10px;scrollbar-width:none}
 .nd-home-shelf__track::-webkit-scrollbar{display:none}
 .nd-home-shelf__item,.nd-home-shelf__all{flex-basis:calc(100vw - 82px);max-width:360px}
 .nd-home-shelf__image{aspect-ratio:1.2}
 .nd-home-shelf__item h3{font-size:14px;min-height:0}
 .nd-home-shelf__all{min-height:270px}
 .nd-home-about{margin-block:24px 48px;padding:18px;--nd-about-collapse-height:112px}
}

/* NORDAN category showcase v2: background-free, uncropped, compact.
   Override only the three homepage category tiles; leave product cards untouched. */
.nd-home__categories .nd-home__category {
  background:transparent;
  box-shadow:none;
  border:0;
  padding:0;
  gap:0;
}
.nd-home__categories .nd-home__category-art,
.nd-home__categories .nd-home__category:hover .nd-home__category-art {
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:230px;
  height:clamp(135px,15vw,205px);
  aspect-ratio:auto;
  margin-inline:auto;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
  transition:none;
}
.nd-home__categories .nd-home__category-art > img {
  display:block;
  width:auto;
  height:auto;
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  object-position:center;
  padding:0;
  margin:0 auto;
  background:transparent;
  border:0;
  box-shadow:none;
  filter:none;
  transform:none;
}
.nd-home__categories .nd-home__category-name {
  font-size:clamp(14px,1.25vw,17px);
  line-height:1.55;
  padding-top:10px;
  font-weight:700;
}
.nd-home__categories .nd-home__category-sub {
  font-size:11px;
  line-height:1.5;
}
@media(max-width:640px) {
  .nd-home__categories .nd-home__category-art,
  .nd-home__categories .nd-home__category:hover .nd-home__category-art {
    max-width:116px;
    height:110px;
  }
  .nd-home__categories .nd-home__category-art > img {
    max-width:100%;
    max-height:100%;
    padding:0;
  }
  .nd-home__categories .nd-home__category-name {
    padding-top:7px;
    font-size:12px;
    line-height:1.5;
  }
  .nd-home__categories .nd-home__category-sub {
    font-size:9px;
  }
}


