/* Icon-only remove button */
.nhw-remove {
  background: transparent;
  border: 0;
  padding: 4px;
  color: #c53030;
  cursor: pointer;
  line-height: 1;
}
.nhw-remove:hover { color: #9b2c2c; }
.nhw-icon-trash { display: inline-block; vertical-align: middle; }
.nhw-addtocart,
.nhw-atc {
  padding: .6rem 1rem;
  border-radius: .5rem;
  background-color: #000;
  color: #fff;
  display: inline-block;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  font-family: 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

.nhw-addtocart:link,
.nhw-addtocart:visited,
.nhw-atc:link,
.nhw-atc:visited {
  color: #fff !important;
  text-decoration: none;
}

.nhw-addtocart:hover,
.nhw-addtocart:focus,
.nhw-atc:hover,
.nhw-atc:focus {
  color: #fff !important;
  transform: scale(1.03);
}

/* Arrow icon inside Order Now button */
.nhw-order-now__icon { display: inline-flex; margin-left: .5em; vertical-align: middle; }
.nhw-order-now__icon svg { width: 1.05em; height: 1.05em; fill: currentColor; display: inline-block; }

/* Out-of-stock variant (same button system with white/red treatment) */
.nhw-out-of-stock { display: grid; gap: 8px; justify-items: start; }
.nhw-out-of-stock__btn {
  background-color: #fff !important;
  color: #c53030 !important;
  border: 1px solid #c53030;
  display: inline-block !important;
  width: auto !important;
  justify-self: start;
  text-align: center;
  cursor: not-allowed;
  box-shadow: none;
}
.nhw-out-of-stock__btn:link,
.nhw-out-of-stock__btn:visited,
.nhw-out-of-stock__btn:hover,
.nhw-out-of-stock__btn:focus {
  background-color: #fff !important;
  color: #c53030 !important;
  transform: none;
}
.nhw-out-of-stock__msg {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.nhw-cart-list { display: grid; gap: .75rem; }
.nhw-cart-line { display: grid; grid-template-columns: 60px 1fr 120px 90px 100px 90px; gap: .5rem; align-items: center; }
.nhw-cart-line img { width: 60px; height: 60px; object-fit: cover; border-radius: .25rem; }
.nhw-summary { margin-top: 1rem; display: grid; gap: .25rem; }
.nhw-grand { font-weight: 700; }
.nhw-checkout-btn { display: inline-block; margin-top: .5rem; padding: .6rem 1rem; border-radius: .5rem; background: #111; color: #fff; text-decoration: none; }

/* Subtle member pricing notice */
.nhw-member-notice {
  background: #f0fff4;
  border: 1px solid #c6f6d5;
  color: #22543d;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  margin: 6px 0 8px;
}

/* Per-line CTA row (appears under qty/price) */
.nhw-line-cta-row { margin-top: 6px; }
.nhw-cart-info .nhw-line-cta-row { display: block; width: 100%; clear: both; }
.nhw-line-cta { font-size: 13px; color: #22543d; }
.nhw-line-cta .sep { color: #888; margin: 0 6px; }
.nhw-linklike { color: #0a66c2; text-decoration: underline; cursor: pointer; font-size: inherit; font-weight: 400; }
.nhw-line-cta a.nhw-linklike { font-size: inherit; font-weight: 400; }
.nhw-linklike:hover { color: #084e96; }

/* Totals CTA (drawer + page) */
.nhw-member-cta { background: #f8fafc; border: 1px dashed #cbd5e1; color: #0f172a; padding: 8px 10px; border-radius: 8px; margin: 8px 0; font-size: 14px; }

/* Checkout order CTA row under each item */
.nhw-order-cta { font-size: 13px; color: #22543d; padding: 4px 0 8px; border-bottom: 1px solid #f1f5f9; }
.nhw-order-cta .sep { color: #888; margin: 0 6px; }

/* Snackbar (full-width bottom) */
.nhw-snackbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  transform: translateY(100%);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none;
}
.nhw-snackbar.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.nhw-snackbar__content {
  max-width: 980px;
  margin: 0 auto;
  background: #111;
  color: #fff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nhw-snackbar__text { flex: 1; }
.nhw-snackbar__btn {
  color: #fff;
  background: #444;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
}
.nhw-snackbar__btn:hover { background: #666; }
.nhw-snackbar__close {
  background: transparent;
  color: #fff;
  border: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
@media (max-width: 600px){
  .nhw-snackbar__content { padding: 12px; gap: 10px; }
  .nhw-snackbar__btn { padding: 8px 10px; }
}

/* Header cart icon + count badge */
.nhw-cart-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.nhw-cart-icon__wrap {
  position: relative;
  display: inline-block;
  line-height: 1;
}
.nhw-cart-icon__glyph {
  font-size: 22px;
  line-height: 1;
}
.nhw-cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  border: 2px solid #fff; /* ring to separate from icon */
}
.nhw-cart-icon__label { margin-left: 6px; }

/* Right-side cart drawer */
body.nhw-cart-open { overflow: hidden; }
.nhw-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 9998;
}
.nhw-cart-overlay.is-open { opacity: 1; pointer-events: auto; }
.nhw-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 480px;
  max-width: calc(100% - 40px);
  background: #fff;
  box-shadow: -8px 0 24px rgba(0,0,0,.2);
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 10000;
  display: flex;
  flex-direction: column;
}
.nhw-cart-drawer.is-open { transform: translateX(0); }
.nhw-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.nhw-cart-drawer__title { font-weight: 700; font-size: 18px; }
.nhw-cart-drawer__close { background: transparent; border: 0; font-size: 22px; line-height: 1; cursor: pointer; }
.nhw-cart-drawer__body { overflow-y: auto; overflow-x: hidden; padding: 12px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; justify-content: flex-start; align-items: stretch; }
.nhw-cart-drawer__footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #eee;
  background: #fff;
}

/* Drawer-specific cart layout overrides */
.nhw-cart-drawer .nhw-cart-list { display: grid; gap: 12px; }
.nhw-cart-drawer .nhw-cart-line { display: grid; grid-template-columns: 66px 1fr; gap: 12px; align-items: start; }
.nhw-cart-drawer .nhw-cart-total { font-weight: 600; white-space: nowrap; }
.nhw-cart-drawer .nhw-cart-line img { width: 66px; height: 66px; object-fit: cover; border-radius: 6px; }
.nhw-cart-drawer .nhw-cart-title { font-weight: 600; line-height: 1.25; margin-bottom: 0; word-break: break-word; }
.nhw-cart-drawer .nhw-remove { background: transparent; border: 0; color: #c00; cursor: pointer; padding: 6px 8px; }
.nhw-cart-info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nhw-cart-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Title row with Remove aligned right */
.nhw-cart-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nhw-cart-title-row .nhw-cart-title { flex: 1; min-width: 0; }
.nhw-cart-title-row .nhw-remove { white-space: nowrap; }
.nhw-cart-left { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.nhw-unit { color: #666; font-size: 13px; display: block; }
.nhw-cart-drawer .nhw-summary { display: grid; gap: 6px; }
.nhw-summary-row { display: flex; align-items: center; justify-content: space-between; }
.nhw-summary-row--grand { font-weight: 700; }
.nhw-summary-label { color: #444; }
.nhw-summary-price { font-weight: 600; }
.nhw-cart-drawer .nhw-checkout-btn {
  display: block;
  text-align: center;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 4px;
}

/* Checkout page layout */
.nhw-checkout { width: 90%; max-width: 1200px; margin: 0 auto; padding: 16px; }
.nhw-checkout__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px){ .nhw-checkout__grid { grid-template-columns: 1fr; } }
.nhw-checkout__summary h2,
.nhw-checkout__form h2 { margin-top: 0; }
.nhw-checkout__form .nhw-checkout-form { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 18px; box-shadow: 0 2px 12px rgba(0,0,0,.04); }
.nhw-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
/* single full-width row */
.nhw-form-row--single { grid-template-columns: 1fr; }
@media (max-width: 600px){ .nhw-form-row { grid-template-columns: 1fr; } }
.nhw-checkout .nhw-form-row { gap: 16px; margin-bottom: 14px; }
.nhw-checkout .nhw-form-row--single { margin-bottom: 14px; }
.nhw-checkout .nhw-form-group label { margin-bottom: 8px; }
.nhw-checkout .nhw-terms { margin-top: 8px; margin-bottom: 12px; }
@media (max-width: 600px){ .nhw-checkout .nhw-form-row { gap: 12px; } }
.nhw-form-group label { display: block; font-weight: 600; margin-bottom: 6px; }
.nhw-form-group input[type=text],
.nhw-form-group input[type=email],
.nhw-form-group input[type=tel],
.nhw-form-group input[type=date] { width: 100%; border: 1px solid #ddd; border-radius: 6px; padding: 10px; font-size: 16px; }
.nhw-form-group input:focus { outline: none; border-color: #000; box-shadow: 0 0 0 2px rgba(0,0,0,.05); }
.nhw-terms label { display: inline-flex; gap: 8px; align-items: center; }
.nhw-btn { display: inline-block; padding: 10px 14px; border-radius: 8px; background: #000; color: #fff; font-weight: 700; border: 0; cursor: pointer; }
.nhw-btn[disabled] { opacity: .6; cursor: not-allowed; }
.nhw-field-error { color: #c00; font-size: 13px; margin-top: 4px; }

/* Login modal messages */
.nhw-login-msg { font-size: 14px; margin-top: 8px; }
.nhw-login-msg.is-error { color: #c00 !important; }
.nhw-login-msg.is-success { color: #065f46 !important; }

/* Order items (table-like, borderless) */
.nhw-order-items { display: grid; gap: 8px; }
.nhw-order-head, .nhw-order-row { display: grid; grid-template-columns: 1fr 110px 70px 120px; align-items: center; column-gap: 10px; }
.nhw-order-head { font-weight: 600; color: #666; }
.nhw-order-row { color: #222; }
.nhw-order-col--r { text-align: right; white-space: nowrap; }
.nhw-divider { height: 1px; background: #eee; margin: 12px 0; }

/* Stepper (qty controls) */
.nhw-stepper { display: grid; grid-template-columns: 28px auto 28px; align-items: center; border: 1px solid #000; border-radius: 6px; height: 25px; min-width: 96px; overflow: hidden; }
.nhw-stepper__btn { background: #000; color: #fff; border: 0; padding: 0; width: 28px; height: 100%; cursor: pointer; font-size: 14px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.nhw-stepper__btn:hover { background: #111; }
.nhw-stepper__val { text-align: center; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; }

/* Loader */
.nhw-cart-loader { min-height: 220px; display: flex; align-items: center; justify-content: center; }
.nhw-spinner { width: 28px; height: 28px; border: 3px solid #eee; border-top-color: #111; border-radius: 50%; animation: nhw-spin .8s linear infinite; }
@keyframes nhw-spin { to { transform: rotate(360deg); } }

/* Product card */
.nhw-card {
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}
.nhw-slider .nhw-card::after { content: ""; position: absolute; inset: 8px; border: 2px solid rgba(255,255,255,.65); border-radius: 12px; pointer-events: none; }
.nhw-card__image { text-align: center; }
.nhw-card__image img { display: block; max-width: 100%; height: auto; border-radius: 12px; margin: 0 auto; }
.nhw-card__body { display: flex; flex-direction: column; gap: 10px; }
.nhw-card__title { margin: 0; font-weight: 700; font-size: 22px; line-height: 1.25; }
.nhw-card__prices { display: flex; align-items: baseline; gap: 14px; }
.nhw-card__price .nhw-price-label { color: #666; font-size: 12px; margin-right: 6px; }
.nhw-card__price--retail .nhw-price-amount { font-weight: 600; }
.nhw-card__price--member .nhw-price-amount { font-weight: 700; }
.nhw-card__price--member { display: none !important; }
.nhw-card__promo { font-size: 14px; color: #22543d; display: none !important; }
.nhw-card__promo .sep { color: #888; margin: 0 6px; }
.nhw-card__actions { margin-top: 2px; }
.nhw-card__btn { display: block; text-align: center; width: 100%; }
.nhw-slider .nhw-card .nhw-card__stock-badge {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  z-index: 4 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  background: #fff !important;
  color: #c53030 !important;
  border: 1px solid #f0b9b9 !important;
  box-shadow: 0 6px 16px rgba(0,0,0,.12) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: 7px 11px !important;
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: .06em;
  pointer-events: none;
}
.nhw-slider .nhw-card a.nhw-order-now--disabled,
.nhw-slider .nhw-card a.nhw-order-now--disabled:link,
.nhw-slider .nhw-card a.nhw-order-now--disabled:visited,
.nhw-slider .nhw-card a.nhw-order-now--disabled:hover,
.nhw-slider .nhw-card a.nhw-order-now--disabled:focus {
  background: #d9dde4 !important;
  color: #6f7785 !important;
  border: 1px solid #c8ced8 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  pointer-events: none !important;
  cursor: not-allowed !important;
  transform: none !important;
  filter: grayscale(.2);
}

/* Product slider */
.nhw-slider { position: relative; width: 100%; }
.nhw-slider__viewport { overflow-x: auto; overflow-y: hidden; width: 100%; scroll-behavior: smooth; scroll-snap-type: x mandatory; -ms-overflow-style: none; scrollbar-width: none; }
.nhw-slider__viewport::-webkit-scrollbar { display: none; }
.nhw-slider__track {
  --per: 3;
  --gap: 16px;
  display: flex;
  gap: var(--gap);
  align-items: stretch;
}
.nhw-slide {
  min-height: 100%;
  scroll-snap-align: start;
  flex: 0 0 calc((100% - (var(--gap) * (var(--per) - 1))) / var(--per));
  min-width: calc((100% - (var(--gap) * (var(--per) - 1))) / var(--per));
}

/* Ensure equal-height cards inside slider without truncating content */
.nhw-slider .nhw-slide { display: flex; }
.nhw-slider .nhw-card { height: 100%; display: flex; flex-direction: column; }

/* Nav arrows */
.nhw-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,.65); color: #fff; border: 0; width: 36px; height: 36px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 5; }
.nhw-slider__nav:hover { background: rgba(0,0,0,.8); }
.nhw-slider__prev { left: 8px; }
.nhw-slider__next { right: 8px; }

/* Dots */
.nhw-slider__dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.nhw-slider__dot { width: 8px; height: 8px; border-radius: 999px; background: #d1d5db; border: 0; cursor: pointer; padding: 0; }
.nhw-slider__dot.is-active { background: #111; }

/* Responsive tweaks */
@media (max-width: 900px) {
  .nhw-slider__track { --per: 2; }
}
@media (max-width: 600px) {
  .nhw-slider__track { --per: 1; }
  .nhw-slider__nav { width: 30px; height: 30px; }
  .nhw-card { padding: 12px; }
  .nhw-card__title { font-size: 18px; }
  .nhw-card__btn { font-size: 16px; }
}
