/* ============================================================
   NEXOHERO theme — replicated from Shopify "Lemon-update-pro"
   Design tokens extracted from live site 2026-09-05
   ============================================================ */
:root {
  --nx-bg: 240 240 240;
  --nx-text: 26 26 26;
  --nx-accent: 240 196 23;         /* lemon yellow */
  --nx-white: 255 255 255;
  --nx-sale: 248 58 58;
  --nx-star: 255 183 74;
  --nx-border: rgba(26, 26, 26, 0.12);
  --nx-radius-btn: 3.75rem;
  --nx-radius-card: 0.75rem;
  --nx-header-h: 64px;
  --nx-container: 1400px;
  --nx-gap: 12px;
  --heading-font-family: 'Barlow', sans-serif;
  --text-font-family: 'Barlow', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: rgb(var(--nx-bg));
  color: rgb(var(--nx-text));
  font-family: var(--text-font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--heading-font-family);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

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

/* ---------- Buttons ---------- */
.nh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--nx-radius-btn);
  padding: 14px 32px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
  text-transform: none;
}
.nh-btn:hover { opacity: .88; }
.nh-btn--primary { background: rgb(var(--nx-text)); color: rgb(var(--nx-white)); }
.nh-btn--yellow { background: rgb(var(--nx-accent)); color: rgb(var(--nx-text)); }
.nh-btn--outline { background: transparent; color: rgb(var(--nx-text)); box-shadow: inset 0 0 0 1.5px rgb(var(--nx-text)); }
.nh-btn--sm { padding: 9px 20px; font-size: 13px; }
.nh-btn--lg { padding: 16px 40px; font-size: 16px; width: 100%; }

/* ---------- Announcement bar ---------- */
.nx-announce {
  background: rgb(var(--nx-text));
  color: rgb(var(--nx-white));
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  height: 36px;
  display: flex;
  align-items: center;
}
.nx-announce__track {
  display: inline-flex;
  gap: 48px;
  animation: nx-marquee 25s linear infinite;
  padding-left: 100%;
}
.nx-announce__track span { flex: none; }
@keyframes nx-marquee { to { transform: translateX(-100%); } }

/* ---------- Header ---------- */
.nx-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(var(--nx-bg));
  border-bottom: 1px solid var(--nx-border);
  height: var(--nx-header-h);
}
.nx-header__inner {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 16px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nx-header__menu-btn {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 5px; padding: 8px;
}
.nx-header__menu-btn span { width: 20px; height: 2px; background: rgb(var(--nx-text)); display: block; }
.nx-header__nav { display: flex; gap: 20px; align-items: center; }
.nx-header__nav a { font-size: 14.5px; font-weight: 600; }
.nx-header__nav a:hover { opacity: .65; }
.nx-header__logo {
  font-family: var(--heading-font-family);
  font-weight: 800;
  font-size: 21px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nx-header__spacer { flex: 1; }
.nx-header__actions { display: flex; gap: 14px; align-items: center; }
.nx-icon-btn {
  background: none; border: none; cursor: pointer; padding: 6px;
  color: rgb(var(--nx-text)); position: relative; display: inline-flex;
}
.nx-icon-btn svg { width: 22px; height: 22px; }
.nh-cart-count {
  position: absolute; top: -2px; right: -4px;
  background: rgb(var(--nx-accent)); color: rgb(var(--nx-text));
  font-size: 10px; font-weight: 700; min-width: 16px; height: 16px;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
}

/* mobile nav drawer */
.nx-drawer {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.4);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.nx-drawer.is-open { opacity: 1; pointer-events: auto; }
.nx-drawer__panel {
  position: absolute; top: 0; left: 0; bottom: 0;
  width: min(340px, 85vw);
  background: rgb(var(--nx-bg));
  padding: 24px;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.nx-drawer.is-open .nx-drawer__panel { transform: translateX(0); }
.nx-drawer__panel.r { left: auto; right: 0; transform: translateX(100%); }
.nx-drawer.is-open .nx-drawer__panel.r { transform: translateX(0); }
.nx-drawer__close { background: none; border: none; font-size: 26px; cursor: pointer; float: right; line-height: 1; }
.nx-drawer__links { clear: both; margin-top: 32px; display: flex; flex-direction: column; gap: 18px; }
.nx-drawer__links a { font-size: 17px; font-weight: 600; }

/* ---------- Hero slideshow ---------- */
.nx-hero {
  position: relative;
  background: linear-gradient(60deg, rgba(32,32,32,1), rgba(0,0,0,1) 97%);
  overflow: hidden;
}
.nx-hero__slide {
  display: none;
  position: relative;
}
.nx-hero__slide.is-active { display: block; animation: nx-fade .7s ease; }
@keyframes nx-fade { from { opacity: 0; } to { opacity: 1; } }
.nx-hero__slide img {
  width: 100%;
  max-height: 78vh;
  object-fit: cover;
}
.nx-hero__nav {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.nx-hero__dot {
  width: 34px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0;
}
.nx-hero__dot.is-active { background: rgb(var(--nx-white)); }
.nx-hero__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; background: rgba(255,255,255,.14); color: #fff;
  border: none; width: 42px; height: 42px; border-radius: 50%;
  cursor: pointer; font-size: 20px; display: flex; align-items: center; justify-content: center;
}
.nx-hero__arrow:hover { background: rgba(255,255,255,.28); }
.nx-hero__arrow.prev { left: 14px; }
.nx-hero__arrow.next { right: 14px; }

/* ---------- Media grid (category tiles) ---------- */
.nx-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--nx-gap);
  padding: var(--nx-gap) 16px;
  max-width: var(--nx-container);
  margin: 0 auto;
}
.nx-tile {
  position: relative;
  border-radius: var(--nx-radius-card);
  overflow: hidden;
  background: rgb(var(--nx-white));
  aspect-ratio: 1 / 1.08;
  display: flex; align-items: flex-end;
}
.nx-tile img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.nx-tile:hover img { transform: scale(1.04); }
.nx-tile__label {
  position: relative;
  z-index: 2;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,.55);
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,.45), transparent);
}
@media (max-width: 900px) {
  .nx-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section header ---------- */
.nx-section { padding: 56px 0; }
.nx-section-header { text-align: center; margin-bottom: 32px; }
.nx-subheading {
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; opacity: .6; margin: 0 0 8px;
}
.nx-section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .01em;
  margin: 0;
}
.nx-viewall { font-weight: 600; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product cards ---------- */
.nx-products {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--nx-gap);
}
@media (max-width: 1000px) { .nx-products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .nx-products { grid-template-columns: 1fr; } }

.nx-card {
  background: rgb(var(--nx-white));
  border-radius: var(--nx-radius-card);
  overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
}
.nx-card__media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f5f5f5;
}
.nx-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .3s ease, transform .4s ease;
}
.nx-card__media img.hover { opacity: 0; }
.nx-card:hover .nx-card__media img.hover { opacity: 1; }
.nx-card__quickadd {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  z-index: 3;
  opacity: 0; transform: translateY(6px);
  transition: all .2s ease;
}
.nx-card:hover .nx-card__quickadd { opacity: 1; transform: translateY(0); }
.nx-card__body { padding: 14px 16px 18px; }
.nx-card__title {
  font-size: 14.5px; font-weight: 600; line-height: 1.35;
  margin: 0 0 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nx-card__price { font-size: 15px; font-weight: 700; }
.nx-card__price .onsale-old { text-decoration: line-through; opacity: .5; font-weight: 500; margin-right: 6px; }
.nx-badge-sale {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgb(var(--nx-sale)); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 4px;
}

/* ---------- Discover banner (media_with_text) ---------- */
.nx-banner {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  min-height: 420px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(60deg, rgba(32,32,32,1), rgba(0,0,0,1) 97%);
}
.nx-banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: .92;
}
.nx-banner__content {
  position: relative; z-index: 2;
  padding: 48px 24px;
  max-width: 720px;
}
.nx-banner__title {
  font-size: clamp(30px, 4.4vw, 52px);
  font-weight: 800;
  margin: 0 0 10px;
  color: #fff;
}
.nx-banner__sub { font-size: 17px; font-weight: 500; opacity: .85; margin: 0 0 26px; }

/* ---------- Testimonials carousel ---------- */
.nx-press { background: rgb(var(--nx-bg)); }
.nx-press__track {
  display: flex;
  gap: var(--nx-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 16px 16px;
  max-width: var(--nx-container);
  margin: 0 auto;
}
.nx-press__track::-webkit-scrollbar { display: none; }
.nx-quote {
  flex: 0 0 min(420px, 84vw);
  scroll-snap-align: center;
  background: rgb(var(--nx-white));
  border-radius: var(--nx-radius-card);
  padding: 26px 26px 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.nx-quote__stars { color: rgb(var(--nx-star)); font-size: 17px; letter-spacing: 2px; }
.nx-quote blockquote {
  margin: 0; font-size: 14.5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.nx-quote__author { font-weight: 700; font-size: 14px; margin-top: auto; }
.nx-press__dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.nx-press__dot { width: 8px; height: 8px; border-radius: 50%; border: none; background: var(--nx-border); cursor: pointer; padding: 0; }
.nx-press__dot.is-active { background: rgb(var(--nx-text)); }

/* ---------- Video + About (media with text) ---------- */
.nx-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
  background: rgb(var(--nx-white));
}
@media (max-width: 860px) { .nx-about { grid-template-columns: 1fr; } }
.nx-about__media video, .nx-about__media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 320px;
}
.nx-about__content {
  padding: clamp(28px, 5vw, 64px);
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
}
.nx-about__title { font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0; }
.nx-about__text { font-size: 15.5px; opacity: .8; margin: 0; }
.nx-about__link { font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.nx-about__link:hover { color: rgb(var(--nx-accent)); filter: brightness(.75); }

/* ---------- Chat widget ---------- */
.nx-chat-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  background: rgb(var(--nx-text)); color: #fff;
  border-radius: 28px; padding: 12px 20px;
  font-weight: 700; font-size: 14px;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.28);
  cursor: pointer; border: none;
}
.nx-chat-btn:hover { opacity: .9; }
.nx-chat-panel {
  position: fixed; right: 20px; bottom: 76px; z-index: 61;
  width: min(340px, calc(100vw - 40px));
  background: rgb(var(--nx-white));
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0,0,0,.3);
  padding: 20px;
  display: none;
}
.nx-chat-panel.is-open { display: block; }
.nx-chat-panel h4 { margin: 0 0 4px; font-size: 16px; }
.nx-chat-panel p { font-size: 13px; opacity: .7; margin: 0 0 14px; }
.nx-chat-panel input, .nx-chat-panel textarea {
  width: 100%; border: 1px solid var(--nx-border); border-radius: 10px;
  padding: 10px 12px; font-family: inherit; font-size: 14px; margin-bottom: 10px;
  background: rgb(var(--nx-bg));
}
.nx-chat-panel textarea { min-height: 80px; resize: vertical; }

/* ---------- Footer ---------- */
.nx-footer {
  background: rgb(var(--nx-white));
  border-top: 1px solid var(--nx-border);
  margin-top: 40px;
}
.nx-footer__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding: 48px 16px 32px;
  max-width: var(--nx-container);
  margin: 0 auto;
}
@media (max-width: 800px) { .nx-footer__grid { grid-template-columns: repeat(2, 1fr); } }
.nx-footer h5 {
  font-size: 14px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; margin: 0 0 14px;
}
.nx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.nx-footer ul a { font-size: 14px; opacity: .75; }
.nx-footer ul a:hover { opacity: 1; text-decoration: underline; }
.nx-footer__about { font-size: 13.5px; opacity: .75; line-height: 1.6; margin: 0; }
.nx-newsletter { display: flex; gap: 8px; margin-top: 12px; }
.nx-newsletter input {
  flex: 1; border: 1px solid var(--nx-border); border-radius: var(--nx-radius-btn);
  padding: 11px 18px; font-family: inherit; font-size: 14px; min-width: 0;
  background: rgb(var(--nx-bg));
}
.nx-footer__bottom {
  border-top: 1px solid var(--nx-border);
  padding: 20px 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: var(--nx-container); margin: 0 auto;
  font-size: 13px; opacity: .7;
}
.nx-payicons { display: flex; gap: 6px; align-items: center; }
.nx-payicons span {
  border: 1px solid var(--nx-border); border-radius: 4px;
  padding: 3px 7px; font-size: 10.5px; font-weight: 700;
}

/* ---------- Blog list & single ---------- */
.nx-blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
@media (max-width: 900px) { .nx-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .nx-blog-grid { grid-template-columns: 1fr; } }
.nx-post-card {
  background: rgb(var(--nx-white));
  border-radius: var(--nx-radius-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.nx-post-card__img { aspect-ratio: 16/10; background: #eee; overflow: hidden; }
.nx-post-card__img img { width: 100%; height: 100%; object-fit: cover; }
.nx-post-card__body { padding: 16px 18px 20px; }
.nx-post-card__date { font-size: 12.5px; opacity: .55; margin-bottom: 6px; }
.nx-post-card__title { font-size: 16.5px; font-weight: 700; line-height: 1.3; margin: 0 0 8px; }
.nx-post-card__excerpt { font-size: 13.5px; opacity: .75; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.nx-article {
  max-width: 760px; margin: 0 auto; padding: 48px 16px;
}
.nx-article__title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin-bottom: 8px; }
.nx-article__meta { font-size: 13.5px; opacity: .6; margin-bottom: 32px; }
.nx-article__content { font-size: 16.5px; line-height: 1.75; }
.nx-article__content h2 { font-size: 26px; margin-top: 2em; }
.nx-article__content h3 { font-size: 20px; margin-top: 1.6em; }
.nx-article__content img { border-radius: 10px; margin: 24px 0; }
.nx-article__content a { text-decoration: underline; text-underline-offset: 3px; }
.nx-article__content blockquote {
  border-left: 3px solid rgb(var(--nx-accent));
  margin: 24px 0; padding: 8px 20px; background: rgb(var(--nx-white));
  border-radius: 0 10px 10px 0; font-style: italic;
}

/* ---------- Static pages ---------- */
.nx-page {
  max-width: 860px; margin: 0 auto; padding: 48px 16px;
}
.nx-page__title { font-size: clamp(26px, 4vw, 38px); font-weight: 800; margin-bottom: 24px; }
.nx-page__content { font-size: 15.5px; line-height: 1.75; }
.nx-page__content h2, .nx-page__content h3 { margin-top: 1.8em; }

/* ---------- WooCommerce overrides ---------- */
.nh-main { min-height: 60vh; padding: 32px 0 64px; }

.woocommerce ul.products li.product { background: rgb(var(--nx-white)); border-radius: var(--nx-radius-card); overflow: hidden; padding: 0 0 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 14.5px; font-weight: 600; padding: 12px 16px 4px; }
.woocommerce ul.products li.product .price { padding: 0 16px; font-weight: 700; color: rgb(var(--nx-text)) !important; }
.woocommerce span.onsale { background: rgb(var(--nx-sale)); border-radius: 4px; min-height: 0; line-height: 1.6; padding: 3px 9px; font-size: 11px; font-weight: 700; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce #respond input#submit, .woocommerce .cart .button, .woocommerce .checkout .button {
  background: rgb(var(--nx-text)) !important;
  color: #fff !important;
  border-radius: var(--nx-radius-btn) !important;
  font-weight: 700 !important;
  padding: 13px 28px !important;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { opacity: .85 !important; }
.woocommerce a.button.alt, .woocommerce button.button.alt {
  background: rgb(var(--nx-accent)) !important;
  color: rgb(var(--nx-text)) !important;
}
.woocommerce div.product .product_title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
.woocommerce div.product p.price { font-size: 24px; font-weight: 800; color: rgb(var(--nx-text)) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { font-weight: 700; }
.woocommerce-message, .woocommerce-info { border-top-color: rgb(var(--nx-accent)); }
.woocommerce-message::before, .woocommerce-info::before { color: rgb(var(--nx-accent)); }

/* pagination */
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  border-radius: 8px !important; margin: 0 3px;
}
.nx-pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.nx-pagination a, .nx-pagination span {
  padding: 9px 15px; border-radius: 10px; background: rgb(var(--nx-white));
  font-weight: 600; font-size: 14px;
}
.nx-pagination span.current { background: rgb(var(--nx-text)); color: #fff; }

/* utility */
.nx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nx-center { text-align: center; }
