/* ─── CSS Variables ─────────────────────────────────────────── */
:root {
  --np-navy: #0d2147;
  --np-navy-mid: #122a5a;
  --np-navy-light: #1a3a7a;
  --np-white: #ffffff;
  --np-off-white: #f4f6fa;
  --np-grey-light: #e8ecf3;
  --np-grey-text: #555e72;
  --np-body-text: #333d50;
  --np-accent: #0d2147;
  --np-bar-bg: #0d2147;
  --np-btn-bg: #0d2147;
  --np-btn-hover: #1a3a7a;
  --np-font-head: "IvyPresto Display", "Playfair Display", Georgia, serif;
  --np-font-body: "Poppins", sans-serif;
  --np-max-width: 1640px;
  --np-section-px: clamp(1rem, 5vw, 6rem);
  --np-radius: 12px;
}

/* ─── Reset & Base ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--np-font-body);
  color: var(--np-body-text);
  background: var(--np-white);
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  display: block;
}
a {
  text-decoration: none;
  color: inherit;
}

/* ─── IvyPresto fallback via @font-face (Google Fonts doesn't host it; we cascade gracefully) ── */
@font-face {
  font-family: "IvyPresto Display";
  src: local("IvyPresto Display");
  font-display: swap;
}

/* ─── Utility ───────────────────────────────────────────────── */
.np-container {
  width: 100%;
  max-width: var(--np-max-width);
  margin-inline: auto;
  padding-inline: var(--np-section-px);
}

/* ─── Top Bar ───────────────────────────────────────────────── */
.np-topbar {
  background: var(--np-bar-bg);
  color: var(--np-white);
  padding-block: 9px;
}
.np-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 3.5rem);
  flex-wrap: wrap;
}
.np-topbar__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.65rem, 1vw, 0.75rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.np-topbar__item svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ─── Header / Nav ──────────────────────────────────────────── */
.np-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--np-white);
  border-bottom: 1px solid var(--np-grey-light);
  transition: box-shadow 0.3s;
  padding-top: 10px;
    padding-bottom: 10px;
}
.np-header.np-scrolled {
  box-shadow: 0 2px 20px rgba(13, 33, 71, 0.1);
}
.np-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 1.5rem;
}
.np-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.np-logo__img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}
.np-logo__text {
  font-family: var(--np-font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--np-navy);
  text-transform: uppercase;
  line-height: 1.2;
}

/* SVG lotus placeholder */
.np-logo-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.np-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 2.5vw, 2.8rem);
}
body.woocommerce-cart, body.woocommerce-page.woocommerce-order-received{
  min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body.woocommerce-cart .np-container, body.woocommerce-page.woocommerce-order-received .np-container{
  flex:1;
}

@media (max-width: 860px) {
  .np-nav {
    display: none;
  }
}
.np-nav a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--np-body-text);
  letter-spacing: 0.02em;
  transition: color 0.2s;
  position: relative;
  text-decoration: none;
}
.np-nav a::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--np-navy);
  transition: width 0.25s;
}
.np-nav a:hover {
  color: var(--np-navy);
}
.np-nav a:hover::after {
  width: 100%;
}

.np-header__icons {
  display: flex;
  align-items: center;
  gap: 18px;
}
.np-header__icons button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--np-navy);
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.np-header__icons button:hover {
  opacity: 0.7;
}

/* Hamburger — hidden on desktop, shown only on mobile */
.np-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 861px) {
  .np-hamburger {
    display: none !important;
  }
  .np-mobile-menu {
    display: none !important;
  }
}
.np-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--np-navy);
  border-radius: 2px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.np-hamburger.np-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.np-hamburger.np-open span:nth-child(2) {
  opacity: 0;
}
.np-hamburger.np-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.np-mobile-menu {
  display: none;
  position: absolute;
  top: 90px;
  left: 0;
  right: 0;
  background: var(--np-white);
  border-bottom: 2px solid var(--np-navy);
  padding: 1.5rem 1.5rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 99;
}
.np-mobile-menu.np-open {
  display: flex;
}
.np-mobile-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: var(--np-navy);
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--np-grey-light);
  text-decoration: none;
}


/* ─── Footer ────────────────────────────────────────────────── */
.np-footer {
  background: var(--np-navy);
  color: rgba(255, 255, 255, 0.65);
}
.np-footer__top {
  padding-block: 1.6rem;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.np-footer__links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0;
  padding-block: 1.4rem;
}
.np-footer__links a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 0.3rem 1.2rem;
  transition: color 0.2s;
  position: relative;
  padding-right: 0;
}
.np-footer__links a:hover {
  color: var(--np-white);
}
.np-footer__links span {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
}
.logo-img{
  width: 100%;
    max-width: 100px!important;
}
img.header-icon {
    width: 22px;
}
img.pencil-bar-icon{
  width:20px;
  
}
.np-desktop-menu,
.np-mobile-nav {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.np-desktop-menu a,
.np-mobile-nav a {
    text-decoration: none;
}
.np-footer-menu {
    display: flex;
   
    list-style: none;
    margin: 0;
    
    justify-content: center;
}

.np-footer-menu a {
    text-decoration: none;
    border-right:1px solid #fff;
    padding-top:0;
    padding-bottom:0;
    padding-right:1.2rem;

}
.np-footer-menu li:last-child a{
    border-right:none;
    padding-right:0;
}
a.d-cart-icon {
    position: relative;
}
span.cart-count-bubble,span.wishlist-bubble {
    position: absolute;
    min-width: 20px;
    height: 20px;
    background: #f57590;
    border-radius: 999px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #000;
    top: -9px;
    right: -9px;
    border: 2px solid #fff;
    font-size: 12px;
    padding:0 6px;
}
.com-page{
  width:100%;
  max-width:900px;
  margin:0 auto;
  padding:2rem;
}
.entry-content p, .com-list li{
  margin-bottom: 1.6em;
}
.entry-header .entry-title {
    text-align: center;
    color: #0d2147;
    font-family: "Poppins", sans-serif;
    font-style: normal;
    font-size: 32px !important;
    font-weight: 400 !important;
}


    #searchOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.search-popup {
    width: 90%;
    max-width: 850px;
    background: #fff;
    padding: 35px;
    position: relative;
    border-radius: 4px;
    animation: popupFade 0.3s ease;
}

.search-popup form div label {
       display: flex;
    
}

.search-popup input[type="text"]{
       width: 80%;
    height: 50px;
    border: 1px solid #ddd;
    padding: 12px 16px;
    font-size: 16px;
    outline: none;
}

.search-popup input[type="submit"] {
    width: 150px;
    border: none;
    background: #0d2147;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    height: 50px;
}

#closeSearch {
     position: absolute;
    top: -18px;
    right: -18px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: none;
    background: #0d2147;
    color: white;
    font-size: 26px;
    cursor: pointer;
    line-height: 24px;
}
.relevanssi-live-search-results {
    position: static!important;
}

@keyframes popupFade {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
   .woocommerce form.register, .woocommerce form.login{
    background-color: #fff;
   }
/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .np-support__card {
    grid-template-columns: 1fr 1.6fr;
  }
}

@media (max-width: 860px) {
  .d-user-icon,.d-cart-icon{
    display:none!important;
  }
  .np-hamburger {
    display: flex;
  }
  .np-header {
    position: relative;
  }
    .search-popup input[type="text"]{width: 75%;}

  .np-hero__bg {
    background:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.82) 50%,
        rgba(255, 255, 255, 0.55) 100%
      ),
      url("https://images.unsplash.com/photo-1532187863486-abf9dbad1b69?w=1200&q=70")
        center/cover no-repeat;
  }

  .np-stats__inner {
    grid-template-columns: 1fr;
  }
  .np-stats__item:not(:last-child)::after {
    right: unset;
    bottom: 0;
    top: unset;
    left: 20%;
    right: 20%;
    width: auto;
    height: 1px;
  }

  .np-support__card {
    grid-template-columns: 1fr;
  }
  .np-support__img-wrap {
    height: 280px;
  }
  .np-mobile-nav{
    flex-flow:column;
  }
  .np-footer-menu{
    flex-wrap: wrap;
  }
  .np-footer__links a{
    padding-top:0;
    padding-bottom:0;
  }

}

@media (max-width: 600px) {
  .np-topbar__inner {
    gap: 0.7rem;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .np-topbar__inner::-webkit-scrollbar {
    display: none;
  }
  .np-hero__title {
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }
  .np-commitment__title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

/* ─── Animations ────────────────────────────────────────────── */
.np-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}
.np-fade-up.np-visible {
  opacity: 1;
  transform: none;
}
.np-fade-up:nth-child(2) {
  transition-delay: 0.1s;
}
.np-fade-up:nth-child(3) {
  transition-delay: 0.2s;
}
.np-fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* Counter animation */
.np-stats__number[data-target] {
  transition: none;
}


.np-mobile-duplicate{
  display:none;
}
/* Mobile auto-scroll */
@media (max-width: 767px) {
    .search-popup input[type="submit"]{width: 98px;}
    .search-popup input[type="text"]{width: 70%;}
    .search-popup{padding: 20px}
   .np-topbar {
    overflow: hidden;
    width: 100%;
  }

  .np-topbar__inner {
    display: flex;
    width: max-content;
    gap: 32px;
    animation: topbar-scroll 15s linear infinite;
  }

  .np-topbar__item {
    display: flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .np-mobile-duplicate {
    display: flex;
  }

  @keyframes topbar-scroll {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }
    .woocommerce-column.woocommerce-column--2.woocommerce-column--shipping-address.col-2{
      margin-top:20px;
  }
  form#searchform div {
    display: flex;
    flex-wrap:wrap;
  }
  .woocommerce-cart .wc-block-components-sidebar-layout.wc-block-cart.wp-block-woocommerce-filled-cart-block.is-mobile{
    flex-flow:column!important;
  }
  .woocommerce-cart .wc-block-components-sidebar-layout .wc-block-components-main, .wc-block-components-sidebar-layout .wc-block-components-sidebar{
    width:100%;
  }
}
.np-top-topbar {
    background: linear-gradient(129deg, #c3110f, #7d0302);
    color: var(--np-white);
    padding-block: 9px;
}

.npt-container {
    width: 100%;
    max-width: var(--np-max-width);
    margin-inline: auto;
    padding-inline: var(--np-section-px);
}

.npt-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1rem, 3vw, 3.5rem);
    flex-wrap: wrap;
    justify-content: center;
}

.npt-topbar__inner p {
    font-size: clamp(0.65rem, 1vw, 0.75rem);
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
}