/*
Theme Name: NaeemStore
Theme URI: https://naeemstore.pk/
Author: Naeem Store
Author URI: https://naeemstore.pk/
Description: Premium retail theme for Naeem Store — Har Zaroorat, Ek Dukaan. Big-brand e-commerce experience built on WooCommerce.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: naeemstore
Tags: e-commerce, woocommerce, responsive, custom-menu
*/

/* ============================================================
   NAEEMSTORE — Premium Retail Theme
   Design language: big-brand retail (Alfatah / Naheed / Daraz Mall)
   ============================================================ */

:root {
  --ns-teal: #008f78;
  --ns-teal-dark: #066e5c;
  --ns-teal-deep: #045a4b;
  --ns-teal-soft: #eef9f6;
  --ns-teal-faint: #f4fbfa;
  --ns-bg: #f8faf9;
  --ns-surface: #ffffff;
  --ns-text: #17312c;
  --ns-dim: #647872;
  --ns-muted: #8aa39c;
  --ns-border: #dce8e4;
  --ns-border-soft: #e9f1ee;
  --ns-sale: #9a4805;
  --ns-sale-bg: #fdf3e7;
  --ns-gold: #c9a227;
  --ns-radius: 10px;
  --ns-radius-lg: 14px;
  --ns-shadow: 0 12px 30px rgba(27, 77, 65, .10);
  --ns-shadow-sm: 0 4px 14px rgba(27, 77, 65, .08);
  --ns-shadow-lg: 0 20px 50px rgba(27, 77, 65, .14);
  --ns-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ns-max: 1280px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ns-font);
  background: var(--ns-bg);
  color: var(--ns-text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ns-teal-dark); text-decoration: none; }
a:hover { color: var(--ns-teal); }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 15px; }

/* ---------- Layout helpers ---------- */
.ns-container {
  width: 100%;
  max-width: var(--ns-max);
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.ns-section { padding: 34px 0; }
.ns-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 18px;
}
.ns-section-title h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.2px;
}
.ns-section-title h2 small {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ns-dim);
  letter-spacing: 0;
  margin-top: 2px;
}
.ns-view-all {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ns-teal-dark);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ns-view-all:hover { color: var(--ns-teal); }

/* ============================================================
   UTILITY STRIP
   ============================================================ */
.ns-utility {
  background: var(--ns-teal-deep);
  color: #e6f4f0;
  font-size: 12px;
}
.ns-utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.ns-utility-msg { font-weight: 500; letter-spacing: .2px; }
.ns-utility-links { display: flex; gap: 16px; }
.ns-utility-links a { color: #cde8e1; font-weight: 500; }
.ns-utility-links a:hover { color: #fff; }
@media (max-width: 719px) {
  .ns-utility-links { display: none; }
  .ns-utility-inner { justify-content: center; text-align: center; }
}

/* ============================================================
   HEADER
   ============================================================ */
.ns-header {
  background: var(--ns-surface);
  border-bottom: 1px solid var(--ns-border-soft);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 12px rgba(27, 77, 65, .05);
}
.ns-header-main {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
/* Hamburger */
.ns-hamburger {
  border: 0;
  background: var(--ns-teal-soft);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.ns-hamburger svg { width: 20px; height: 20px; stroke: var(--ns-teal-dark); }
.ns-hamburger:hover { background: #e2f2ed; }
/* Logo */
.ns-logo { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ns-logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ns-teal) 0%, var(--ns-teal-dark) 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  box-shadow: var(--ns-shadow-sm);
  position: relative;
  overflow: hidden;
}
.ns-logo-mark::after {
  content: "";
  position: absolute;
  inset: 6px 6px auto auto;
  width: 10px;
  height: 14px;
  border: 2px solid rgba(255,255,255,.85);
  border-bottom: 0;
  border-radius: 4px 4px 0 0;
  opacity: .55;
}
.ns-logo-text { line-height: 1.15; }
.ns-logo-name { font-size: 19px; font-weight: 800; letter-spacing: -.3px; color: #0d9387; }
.ns-logo-tag { font-size: 11px; color: var(--ns-dim); font-weight: 500; }
/* Search */
.ns-search { flex: 1 1 auto; display: none; }
.ns-search form { position: relative; }
.ns-search input[type="search"] {
  width: 100%;
  border: 2px solid var(--ns-border);
  border-radius: 999px;
  padding: 11px 48px 11px 18px;
  background: var(--ns-bg);
  outline: none;
  transition: border-color .2s, background .2s;
}
.ns-search input[type="search"]:focus { border-color: var(--ns-teal); background: #fff; }
.ns-search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  width: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--ns-teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ns-search button svg { width: 18px; height: 18px; stroke: #fff; }
.ns-search button:hover { background: var(--ns-teal-dark); }
/* Header actions */
.ns-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.ns-action {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ns-text);
  border: 0;
  background: transparent;
}
.ns-action:hover { background: var(--ns-teal-soft); color: var(--ns-teal-dark); }
.ns-action svg { width: 22px; height: 22px; }
.ns-action .ns-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ns-teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.ns-action-label { display: none; font-size: 11px; font-weight: 600; }
/* Mobile search toggle row */
.ns-mobile-search { display: block; padding: 0 16px 12px; }
/* Nav */
.ns-nav { background: var(--ns-surface); border-top: 1px solid var(--ns-border-soft); display: none; }
.ns-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 2px;
}
.ns-nav-list > li { position: relative; }
.ns-nav-list > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ns-text);
  white-space: nowrap;
}
.ns-nav-list > li > a:hover { color: var(--ns-teal-dark); background: var(--ns-teal-faint); }
.ns-nav-list > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .6;
}
/* Dropdown / mega menu */
.ns-nav-list .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--ns-border-soft);
  border-radius: 0 0 12px 12px;
  box-shadow: var(--ns-shadow-lg);
  list-style: none;
  margin: 0;
  padding: 8px;
  z-index: 300;
}
.ns-nav-list li:hover > .sub-menu, .ns-nav-list li:focus-within > .sub-menu { display: block; }
.ns-nav-list .sub-menu a {
  display: block;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ns-text);
  border-radius: 8px;
  white-space: nowrap;
}
.ns-nav-list .sub-menu a:hover { background: var(--ns-teal-soft); color: var(--ns-teal-dark); }
/* Shop by category button */
.ns-cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ns-teal);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 700;
  font-size: 14px;
  margin: 8px 0;
}
.ns-cat-toggle:hover { background: var(--ns-teal-dark); color: #fff; }
.ns-cat-toggle svg { width: 16px; height: 16px; stroke: #fff; }

@media (min-width: 720px) {
  .ns-search { display: block; }
  .ns-mobile-search { display: none; }
  .ns-action { width: auto; padding: 0 10px; gap: 6px; flex-direction: column; height: 48px; }
  .ns-action-label { display: block; }
  .ns-action svg { width: 21px; height: 21px; }
}
/* Hamburger + drawer hidden on desktop (720px+), mobile only */
@media (min-width: 720px) {
  button.ns-hamburger#nsDrawerOpen { display: none !important; visibility: hidden !important; }
  .ns-drawer, #nsDrawer, .ns-drawer-overlay, #nsDrawerOverlay { display: none !important; visibility: hidden !important; }
}
@media (min-width: 1040px) {
  .ns-nav { display: block; }
  .ns-header-main { gap: 22px; }
}

/* ============================================================
   MOBILE DRAWER MENU
   ============================================================ */
.ns-drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 40, 35, .5);
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  z-index: 400;
}
.ns-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: min(340px, 88vw);
  background: #fff;
  z-index: 401;
  transform: translateX(-102%);
  transition: transform .28s cubic-bezier(.32,.72,.35,1);
  display: flex; flex-direction: column;
  box-shadow: var(--ns-shadow-lg);
}
body.ns-drawer-open .ns-drawer { transform: none; }
body.ns-drawer-open .ns-drawer-overlay { opacity: 1; pointer-events: auto; }
body.ns-drawer-open { overflow: hidden; position: fixed; width: 100%; height: 100%; }
body.ns-drawer-open .ns-drawer-body { touch-action: pan-y; }
.ns-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px;
  background: linear-gradient(135deg, var(--ns-teal) 0%, var(--ns-teal-dark) 100%);
  color: #fff;
}
.ns-drawer-head strong { font-size: 16px; }
.ns-drawer-close {
  border: 0; background: rgba(255,255,255,.18);
  color: #fff; width: 34px; height: 34px; border-radius: 8px;
  font-size: 18px; line-height: 1;
}
.ns-drawer-body {
  overflow-y: auto;
  padding: 10px 0 90px;
  flex: 1;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.ns-drawer-lang {
  display: flex; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--ns-border-soft);
}
.ns-drawer-lang button {
  flex: 1; border: 1px solid var(--ns-border); background: #fff;
  border-radius: 8px; padding: 8px; font-size: 13px; font-weight: 600;
}
.ns-drawer-lang button.active { background: var(--ns-teal); border-color: var(--ns-teal); color: #fff; }
.ns-drawer-menu, .ns-drawer-menu ul { list-style: none; margin: 0; padding: 0; }
.ns-drawer-menu > li > a, .ns-drawer-menu > li > span {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 18px; font-size: 14.5px; font-weight: 600; color: var(--ns-text);
  border-bottom: 1px solid var(--ns-border-soft);
}
.ns-drawer-menu > li > a:hover { background: var(--ns-teal-faint); color: var(--ns-teal-dark); }
.ns-drawer-menu ul a {
  display: block; padding: 10px 18px 10px 34px;
  font-size: 13.5px; color: var(--ns-dim); border-bottom: 1px solid var(--ns-border-soft);
}
.ns-drawer-menu ul a:hover { color: var(--ns-teal-dark); background: var(--ns-teal-faint); }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.ns-hero { position: relative; margin-top: 16px; }
.ns-hero-track {
  position: relative;
  border-radius: var(--ns-radius-lg);
  overflow: hidden;
  box-shadow: var(--ns-shadow);
  background: linear-gradient(120deg, #0b5c4d, #083f36);
}
.ns-hero-slide {
  display: none;
  position: relative;
  min-height: 300px;
  align-items: stretch;
}
.ns-hero-slide.active { display: flex; animation: nsFade .5s ease; }
@keyframes nsFade { from { opacity: 0; } to { opacity: 1; } }
.ns-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.ns-hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,45,38,.88) 20%, rgba(4,45,38,.45) 55%, rgba(4,45,38,.05) 100%);
}
.ns-hero-content {
  position: relative; z-index: 2;
  padding: 34px 28px;
  color: #fff;
  max-width: 560px;
  display: flex; flex-direction: column; justify-content: center;
}
.ns-hero-kicker {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: #9be3d2; margin-bottom: 10px;
}
.ns-hero-content h2 {
  margin: 0 0 10px;
  font-size: 30px; font-weight: 800; letter-spacing: -.5px; line-height: 1.15;
}
.ns-hero-content p { margin: 0 0 20px; font-size: 14.5px; color: #d8efe9; max-width: 420px; }
.ns-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ns-teal-deep);
  font-weight: 700; font-size: 14.5px;
  padding: 12px 26px; border-radius: 999px;
  width: fit-content;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform .15s;
}
.ns-hero-cta:hover { transform: translateY(-2px); color: var(--ns-teal-deep); }
/* v134: Controls BELOW the banner */
.ns-hero-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:14px}
.ns-hero-nav {
  position: static; z-index: 3;
  transform: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: var(--ns-shadow-sm); cursor: pointer;
  flex-shrink: 0;
}
.ns-hero-nav svg { width: 18px; height: 18px; stroke: var(--ns-teal-deep); }
.ns-hero-nav:hover { background: #fff; }
/* v134: prev/next in controls row */

.ns-hero-dots {
  position: static; z-index: 3;
  display: flex; justify-content: center; gap: 8px; align-items: center;
}
.ns-hero-dots button {
  width: 9px; height: 9px; border-radius: 999px;
  border: 0; background: #cbd5d1;
  padding: 0; transition: all .25s; cursor: pointer;
}
.ns-hero-dots button.active { width: 28px; background: var(--ns-teal-deep); }
@media (min-width: 720px) {
  .ns-hero-slide { min-height: 360px; }
  .ns-hero-content h2 { font-size: 40px; }
  .ns-hero-content { padding: 48px; }
}
@media (min-width: 1040px) {
  .ns-hero-slide { min-height: 420px; }
  .ns-hero-content h2 { font-size: 48px; }
}

/* ============================================================
   CATEGORY SHOWCASE (professional tiles)
   ============================================================ */
.ns-cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.ns-cat-tile {
  position: relative;
  border-radius: var(--ns-radius);
  overflow: hidden;
  background: var(--ns-surface);
  box-shadow: var(--ns-shadow-sm);
  border: 1px solid var(--ns-border-soft);
  transition: transform .2s, box-shadow .2s;
  display: block;
}
.ns-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--ns-shadow); }
.ns-cat-tile-img {
  aspect-ratio: 4 / 3;
  background: var(--ns-teal-soft);
  overflow: hidden;
}
.ns-cat-tile-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ns-cat-tile:hover .ns-cat-tile-img img { transform: scale(1.06); }
.ns-cat-tile-body { padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; }
.ns-cat-tile-body strong { font-size: 14px; font-weight: 700; }
.ns-cat-tile-body span { font-size: 12px; color: var(--ns-dim); display: block; }
.ns-cat-tile-arrow {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ns-teal-soft); color: var(--ns-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
}
.ns-cat-tile-arrow svg { width: 15px; height: 15px; }
.ns-cat-tile:hover .ns-cat-tile-arrow { background: var(--ns-teal); color: #fff; }
@media (min-width: 720px) {
  .ns-cat-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
@media (min-width: 1040px) {
  .ns-cat-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

/* ============================================================
   PRODUCT SLIDER SECTIONS
   ============================================================ */
.ns-prod-slider { position: relative; }
.ns-prod-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc(50% - 6px);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 2px 10px;
  scroll-behavior: smooth;
}
.ns-prod-track::-webkit-scrollbar { display: none; }
.ns-prod-track > * { scroll-snap-align: start; }
.ns-slider-btn {
  display: none;
  position: absolute; top: 38%; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ns-border);
  background: #fff; box-shadow: var(--ns-shadow);
  align-items: center; justify-content: center;
}
.ns-slider-btn svg { width: 18px; height: 18px; stroke: var(--ns-teal-deep); }
.ns-slider-btn:hover { background: var(--ns-teal); border-color: var(--ns-teal); }
.ns-slider-btn:hover svg { stroke: #fff; }
.ns-slider-prev { left: -18px; }
.ns-slider-next { right: -18px; }
@media (min-width: 720px) {
  .ns-prod-track { grid-auto-columns: calc(33.333% - 11px); gap: 16px; }
}
@media (min-width: 1040px) {
  .ns-prod-track { grid-auto-columns: calc(20% - 16px); gap: 20px; }
  .ns-slider-btn { display: inline-flex; }
}

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.ns-card {
  background: var(--ns-surface);
  border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s;
  height: 100%;
}
.ns-card:hover { transform: translateY(-4px); box-shadow: var(--ns-shadow); }
.ns-card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fff;
  overflow: hidden;
}
.ns-card-media img {
  width: 100%; height: 100%; object-fit: contain;
  padding: 10px;
  transition: transform .35s;
}
.ns-card:hover .ns-card-media img { transform: scale(1.05); }
.ns-badge-off {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: var(--ns-sale); color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 9px; border-radius: 6px;
  letter-spacing: .3px;
}
.ns-badge-out {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(23,49,44,.85); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  letter-spacing: .5px;
}
.ns-card-wish {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.92);
  box-shadow: var(--ns-shadow-sm);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ns-dim);
}
.ns-card-wish svg { width: 16px; height: 16px; }
.ns-card-wish.active { color: #e0245e; }
.ns-card-wish.active svg { fill: #e0245e; }
.ns-card-body { padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.ns-card-brand { font-size: 11px; font-weight: 700; color: var(--ns-muted); text-transform: uppercase; letter-spacing: .6px; }
.ns-card-name {
  font-size: 13.5px; font-weight: 600; line-height: 1.35;
  min-height: 2.7em; margin: 0;
}
.ns-card-name a {
  color: var(--ns-text); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; max-height: 2.7em;
}
.ns-card-name a:hover { color: var(--ns-teal-dark); }
.ns-card-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ns-dim); }
.ns-stars { color: var(--ns-gold); letter-spacing: 1px; font-size: 12px; }
.ns-card-price { display: flex; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 4px; }
.ns-price { font-size: 16px; font-weight: 800; color: var(--ns-text); }
.ns-price-old { font-size: 12.5px; color: var(--ns-muted); text-decoration: line-through; }
/* Add to cart / stepper */
.ns-card-foot { padding: 0 12px 12px; }
.ns-add-btn {
  width: 100%; border: 0; border-radius: 8px;
  background: var(--ns-teal-soft); color: var(--ns-teal-deep);
  font-weight: 700; font-size: 13.5px; padding: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: background .2s;
}
.ns-add-btn svg { width: 16px; height: 16px; }
.ns-add-btn:hover { background: var(--ns-teal); color: #fff; }
.ns-stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--ns-teal); border-radius: 8px; padding: 4px;
}
.ns-stepper button {
  width: 34px; height: 32px; border: 0; border-radius: 6px;
  background: rgba(255,255,255,.18); color: #fff;
  font-size: 18px; font-weight: 700; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.ns-stepper button:hover { background: rgba(255,255,255,.32); }
.ns-stepper output { color: #fff; font-weight: 800; font-size: 14px; min-width: 30px; text-align: center; }

/* ============================================================
   PRODUCT GRID (archive pages)
   ============================================================ */
.ns-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 720px) { .ns-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1040px) { .ns-grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } }

/* ============================================================
   TRUST BADGES
   ============================================================ */
.ns-trust {
  background: var(--ns-surface);
  border-top: 1px solid var(--ns-border-soft);
  border-bottom: 1px solid var(--ns-border-soft);
}
.ns-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px;
  padding-top: 22px; padding-bottom: 22px;
}
.ns-trust-item { display: flex; gap: 12px; align-items: flex-start; }
.ns-trust-icon {
  width: 44px; height: 44px; border-radius: 12px; flex: 0 0 auto;
  background: var(--ns-teal-soft); color: var(--ns-teal-dark);
  display: inline-flex; align-items: center; justify-content: center;
}
.ns-trust-icon svg { width: 22px; height: 22px; }
.ns-trust-item strong { display: block; font-size: 13.5px; }
.ns-trust-item span { font-size: 12px; color: var(--ns-dim); }
@media (min-width: 720px) { .ns-trust-grid { grid-template-columns: repeat(4, 1fr); } }

/* ============================================================
   FOOTER
   ============================================================ */
.ns-footer { background: #0e2b26; color: #c8ddd7; margin-top: 20px; }
.ns-footer-top { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 0 30px; }
@media (max-width: 719px) {
  .ns-footer-brand { grid-column: 1 / -1; }
}
.ns-footer-brand p { font-size: 13.5px; color: #9dbdB4; max-width: 320px; }
.ns-footer h4 {
  color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 14px;
}
.ns-footer ul { list-style: none; margin: 0; padding: 0; }
.ns-footer ul li { margin-bottom: 9px; }
.ns-footer ul a { color: #a9c6bf; font-size: 13.5px; }
.ns-footer ul a:hover { color: #fff; }
.ns-footer .ns-logo-name { color: #fff; }
.ns-footer .ns-logo-tag { color: #8fb3aa; }
.ns-payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.ns-pay {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.14);
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 6px 12px; border-radius: 6px;
}
.ns-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 16px 0;
  display: flex; flex-direction: column; gap: 8px;
  align-items: center; text-align: center;
  font-size: 12.5px; color: #8fb3aa;
}
@media (min-width: 720px) {
  .ns-footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
  .ns-footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================================
   BREADCRUMB / ARCHIVE HEADER
   ============================================================ */
.ns-page-head {
  background: var(--ns-surface);
  border-bottom: 1px solid var(--ns-border-soft);
  padding: 22px 0 18px;
  margin-bottom: 22px;
}
.ns-page-head h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; letter-spacing: -.3px; }
.ns-breadcrumb { font-size: 12.5px; color: var(--ns-dim); }
.ns-breadcrumb a { color: var(--ns-teal-dark); font-weight: 600; }
.ns-result-count { font-size: 13px; color: var(--ns-dim); margin: 0 0 14px; }
.ns-pagination { display: flex; gap: 8px; justify-content: center; padding: 26px 0 10px; }
.ns-pagination a, .ns-pagination span {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ns-border); border-radius: 8px;
  font-size: 13.5px; font-weight: 600; color: var(--ns-text); background: #fff;
}
.ns-pagination a:hover { border-color: var(--ns-teal); color: var(--ns-teal-dark); }
.ns-pagination .current { background: var(--ns-teal); border-color: var(--ns-teal); color: #fff; }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.ns-product { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 8px 0 30px; }
.ns-product-gallery {
  background: #fff; border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); overflow: hidden;
  box-shadow: var(--ns-shadow-sm);
}
.ns-product-gallery .ns-main-img { aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; padding: 18px; }
.ns-product-gallery .ns-main-img img { max-height: 100%; object-fit: contain; }
.ns-product-info h1 { margin: 0 0 8px; font-size: 23px; font-weight: 800; letter-spacing: -.3px; line-height: 1.25; }
.ns-product-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--ns-teal-dark); }
.ns-product-price { display: flex; align-items: baseline; gap: 12px; margin: 14px 0; }
.ns-product-price .ns-price { font-size: 28px; }
.ns-product-price .ns-price-old { font-size: 16px; }
.ns-save-pill {
  background: var(--ns-sale-bg); color: var(--ns-sale);
  font-size: 12px; font-weight: 800; padding: 5px 12px; border-radius: 999px;
}
.ns-product-desc { font-size: 14px; color: var(--ns-dim); margin: 0 0 18px; }
.ns-buy-row { display: flex; gap: 12px; align-items: stretch; margin: 18px 0; flex-wrap: wrap; }
.ns-qty {
  display: inline-flex; align-items: center;
  border: 1.5px solid var(--ns-border); border-radius: 10px; overflow: hidden;
}
.ns-qty button {
  width: 40px; height: 46px; border: 0; background: var(--ns-bg);
  font-size: 18px; font-weight: 700; color: var(--ns-teal-dark);
}
.ns-qty button:hover { background: var(--ns-teal-soft); }
.ns-qty input {
  width: 52px; border: 0; text-align: center; font-weight: 800; font-size: 15px;
  background: transparent; outline: none;
}
.ns-buy-btn {
  flex: 1; min-width: 200px;
  border: 0; border-radius: 10px;
  background: linear-gradient(135deg, var(--ns-teal), var(--ns-teal-dark));
  color: #fff; font-size: 15px; font-weight: 800;
  padding: 14px 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  box-shadow: 0 10px 24px rgba(0,143,120,.28);
  transition: transform .15s, box-shadow .15s;
}
.ns-buy-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0,143,120,.34); color: #fff; }
.ns-buy-btn svg { width: 18px; height: 18px; stroke: #fff; }
.ns-product-meta { border-top: 1px solid var(--ns-border-soft); margin-top: 20px; padding-top: 16px; font-size: 13px; color: var(--ns-dim); }
.ns-product-meta div { margin-bottom: 8px; }
.ns-product-meta strong { color: var(--ns-text); font-weight: 700; }
.ns-related { margin-top: 10px; }
@media (min-width: 900px) {
  .ns-product { grid-template-columns: 1fr 1fr; gap: 44px; }
  .ns-product-info h1 { font-size: 30px; }
}

/* ============================================================
   WOOCOMMERCE COMPAT
   ============================================================ */
.woocommerce .woocommerce-breadcrumb { font-size: 12.5px; color: var(--ns-dim); margin-bottom: 14px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--ns-teal-dark); font-weight: 600; }
.woocommerce ul.products { list-style: none; margin: 0; padding: 0; }
.woocommerce span.onsale {
  background: var(--ns-sale); color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 6px;
  padding: 4px 9px; min-height: 0; line-height: 1.4;
}
.woocommerce .price { color: var(--ns-text); font-weight: 800; }
.woocommerce .price del { color: var(--ns-muted); font-weight: 500; margin-right: 8px; }
.woocommerce .price ins { text-decoration: none; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
  background: var(--ns-teal); color: #fff;
  border-radius: 8px; font-weight: 700; padding: 12px 22px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover { background: var(--ns-teal-dark); color: #fff; }
.woocommerce .quantity .qty { border: 1.5px solid var(--ns-border); border-radius: 8px; padding: 10px; }
.woocommerce-message, .woocommerce-info {
  border-top-color: var(--ns-teal); background: var(--ns-teal-soft); border-radius: 0 0 8px 8px;
}
.woocommerce-error { border-top-color: #c0392b; }

/* Stock */
.ns-in-stock { color: var(--ns-teal-dark); font-weight: 700; font-size: 13px; }
.ns-out-stock { color: #b0431f; font-weight: 700; font-size: 13px; }

/* Search results / 404 */
.ns-empty { text-align: center; padding: 60px 20px; }
.ns-empty h2 { font-size: 22px; margin: 0 0 10px; }
.ns-empty p { color: var(--ns-dim); }

/* Back to top */
.ns-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 250;
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: var(--ns-teal); color: #fff;
  box-shadow: var(--ns-shadow-lg);
  display: none; align-items: center; justify-content: center;
}
.ns-top.show { display: inline-flex; }
.ns-top svg { width: 20px; height: 20px; stroke: #fff; }

/* Screen reader */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.ns-cart-title-count { color: var(--ns-dim); font-weight: 600; font-size: 18px; }
.ns-cart-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 34px; }
.ns-cart-items { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.ns-cart-item {
  display: grid; grid-template-columns: 96px 1fr; gap: 14px;
  background: var(--ns-surface); border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); padding: 14px;
  box-shadow: var(--ns-shadow-sm); position: relative;
}
.ns-cart-item-media { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: var(--ns-teal-faint); }
.ns-cart-item-media img { width: 100%; height: 100%; object-fit: cover; }
.ns-cart-badge { position: absolute; top: 6px; left: 6px; }
.ns-badge-off {
  background: var(--ns-sale); color: #fff; font-size: 10.5px; font-weight: 800;
  padding: 3px 8px; border-radius: 6px; letter-spacing: .3px;
}
.ns-cart-item-brand { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--ns-teal-dark); margin-bottom: 2px; }
.ns-cart-item-name { margin: 0 0 6px; font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.ns-cart-item-name a { color: var(--ns-text); }
.ns-cart-item-name a:hover { color: var(--ns-teal-dark); }
.ns-cart-item .variation, .ns-cart-item dl.variation { font-size: 12.5px; color: var(--ns-dim); margin: 4px 0; }
.ns-cart-item .variation dt, .ns-cart-item dl.variation dt { font-weight: 700; }
.ns-cart-item-price { font-size: 13px; color: var(--ns-dim); margin-top: 6px; }
.ns-cart-item-price .amount { font-weight: 700; color: var(--ns-text); }
.ns-cart-item-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--ns-border-soft); padding-top: 12px; }
.ns-qty-cart button { width: 36px; height: 40px; }
.ns-qty-cart input { width: 46px; }
.ns-cart-item-subtotal { font-size: 16px; font-weight: 800; color: var(--ns-text); }
.ns-cart-remove {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; color: var(--ns-dim);
  border: 1px solid var(--ns-border); border-radius: 8px; padding: 8px 12px; background: #fff;
}
.ns-cart-remove:hover { color: #b0431f; border-color: #e8b4a0; background: #fdf6f3; }
.ns-cart-remove svg { width: 14px; height: 14px; }

.ns-cart-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding-top: 4px; }
.ns-coupon { display: flex; gap: 8px; flex-wrap: wrap; }
.ns-coupon .input-text {
  border: 1.5px solid var(--ns-border); border-radius: 8px; padding: 10px 14px; min-width: 180px;
}
.ns-update-cart.ns-update-pending { opacity: .65; }

.ns-cart-side { min-width: 0; }
.ns-ship-progress {
  background: var(--ns-surface); border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); padding: 16px; margin-bottom: 16px; box-shadow: var(--ns-shadow-sm);
}
.ns-ship-progress-text { margin: 0 0 10px; font-size: 13.5px; color: var(--ns-text); }
.ns-ship-progress-text strong { color: var(--ns-teal-dark); }
.ns-ship-progress-text.is-unlocked { color: var(--ns-teal-dark); font-weight: 700; }
.ns-ship-progress-bar { height: 8px; background: var(--ns-teal-soft); border-radius: 999px; overflow: hidden; }
.ns-ship-progress-bar span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ns-teal), var(--ns-teal-dark)); transition: width .4s ease; }

.ns-cart-collaterals .cart_totals {
  background: var(--ns-surface); border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); padding: 20px; box-shadow: var(--ns-shadow-sm);
  float: none; width: 100%;
}
.ns-cart-collaterals .cart_totals h2 { margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.ns-cart-collaterals table.shop_table { border: 0; margin: 0 0 16px; }
.ns-cart-collaterals table.shop_table th, .ns-cart-collaterals table.shop_table td { border: 0; border-top: 1px solid var(--ns-border-soft); padding: 10px 0; font-size: 14px; }
.ns-cart-collaterals table.shop_table tr:first-child th, .ns-cart-collaterals table.shop_table tr:first-child td { border-top: 0; }
.ns-cart-collaterals .order-total th, .ns-cart-collaterals .order-total td { font-size: 17px; font-weight: 800; }
.ns-saved-row th, .ns-saved-row td { color: var(--ns-teal-dark); }
.ns-saved-amount { font-weight: 800; color: var(--ns-teal-dark); }
.wc-proceed-to-checkout { padding: 0; }
.wc-proceed-to-checkout .checkout-button {
  display: block; width: 100%; text-align: center; margin: 0;
  background: linear-gradient(135deg, var(--ns-teal), var(--ns-teal-dark));
  font-size: 15.5px; font-weight: 800; padding: 15px; border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0,143,120,.28);
}
.wc-proceed-to-checkout .checkout-button:hover { transform: translateY(-1px); }
.ns-cross-sells { padding-bottom: 40px; }
.ns-cross-sells h2 { font-size: 19px; margin: 0 0 16px; }

@media (min-width: 900px) {
  .ns-cart-grid { grid-template-columns: 1fr 360px; align-items: start; }
  .ns-cart-side { position: sticky; top: 90px; }
  .ns-cart-item { grid-template-columns: 110px 1fr auto; }
  .ns-cart-item-media { width: 110px; height: 110px; }
  .ns-cart-item-actions { grid-column: auto; border-top: 0; padding-top: 0; flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.ns-checkout-grid { display: grid; grid-template-columns: 1fr; gap: 22px; padding-bottom: 40px; align-items: start; }
.ns-checkout-block {
  background: var(--ns-surface); border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); padding: 20px; margin-bottom: 18px; box-shadow: var(--ns-shadow-sm);
}
.ns-checkout-title { margin: 0 0 16px; font-size: 16.5px; font-weight: 800; letter-spacing: -.2px; }

/* WooCommerce form fields restyle */
.ns-checkout-form .form-row { margin-bottom: 14px; }
.ns-checkout-form .form-row label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ns-text); }
.ns-checkout-form .form-row label .required { color: #c0392b; }
.ns-checkout-form .form-row input.input-text, .ns-checkout-form .form-row textarea, .ns-checkout-form .form-row select {
  width: 100%; border: 1.5px solid var(--ns-border); border-radius: 8px;
  padding: 12px 14px; font-size: 14.5px; background: #fff; color: var(--ns-text);
}
.ns-checkout-form .form-row input.input-text:focus, .ns-checkout-form .form-row textarea:focus, .ns-checkout-form .form-row select:focus {
  outline: none; border-color: var(--ns-teal); box-shadow: 0 0 0 3px rgba(0,143,120,.12);
}
.ns-checkout-form .form-row .description { font-size: 12px; color: var(--ns-dim); margin-top: 4px; }
.ns-checkout-form .woocommerce-invalid input.input-text { border-color: #c0392b; }

/* Delivery + payment-type radio cards */
.ns-delivery-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.ns-delivery-card {
  display: block; border: 1.5px solid var(--ns-border); border-radius: 12px;
  padding: 14px 16px; cursor: pointer; background: #fff;
  transition: border-color .15s, box-shadow .15s, background .15s; position: relative;
}
.ns-delivery-card:hover { border-color: var(--ns-teal); }
.ns-delivery-card.is-checked {
  border-color: var(--ns-teal); background: var(--ns-teal-faint);
  box-shadow: 0 0 0 3px rgba(0,143,120,.12);
}
.ns-delivery-card input[type="radio"] {
  position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; accent-color: var(--ns-teal);
}
.ns-delivery-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding-right: 28px; }
.ns-delivery-name { font-weight: 800; font-size: 15px; }
.ns-delivery-badge {
  background: var(--ns-teal); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .8px; padding: 3px 9px; border-radius: 999px;
}
.ns-delivery-eta { display: block; font-size: 12.5px; color: var(--ns-dim); }
.ns-delivery-fee { display: block; font-size: 16px; font-weight: 800; color: var(--ns-teal-dark); margin-top: 4px; }
.ns-delivery-hint { display: block; font-size: 12px; color: var(--ns-sale); font-weight: 600; margin-top: 2px; }
.ns-delivery-note { display: block; font-size: 12.5px; color: var(--ns-dim); margin-top: 4px; }

/* Order review sidebar */
.ns-order-review {
  background: var(--ns-surface); border: 1px solid var(--ns-border-soft);
  border-radius: var(--ns-radius-lg); padding: 20px; box-shadow: var(--ns-shadow-sm);
}
.ns-order-review table.shop_table { border: 0; margin: 0 0 8px; font-size: 13.5px; }
.ns-order-review table.shop_table th, .ns-order-review table.shop_table td { border: 0; border-top: 1px solid var(--ns-border-soft); padding: 10px 0; }
.ns-order-review table.shop_table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .6px; color: var(--ns-dim); }
.ns-order-review .product-name { font-weight: 600; }
.ns-order-review .product-quantity { color: var(--ns-dim); }
.ns-order-review .order-total th, .ns-order-review .order-total td { font-size: 17px; font-weight: 800; }

/* Payment methods */
#payment.woocommerce-checkout-payment, .woocommerce-checkout-payment {
  background: transparent !important; border: 0 !important; border-radius: 0 !important;
}
.wc_payment_methods { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wc_payment_method {
  border: 1.5px solid var(--ns-border); border-radius: 12px; padding: 14px 16px; background: #fff;
}
.wc_payment_method > label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14.5px; cursor: pointer; margin: 0; }
.wc_payment_method > label img { max-height: 28px; }
.wc_payment_method input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ns-teal); }
.payment_box {
  background: var(--ns-teal-faint) !important; border-radius: 8px; margin: 12px 0 0 !important;
  padding: 14px !important; font-size: 13.5px; color: var(--ns-text);
}
.payment_box::before { display: none !important; }

/* Wallet box (advance gateway) */
.ns-wallet-label { font-weight: 700; font-size: 13.5px; margin: 0 0 10px; }
.ns-wallet-pills { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ns-wallet-pill {
  border: 1.5px solid var(--ns-border); border-radius: 999px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; background: #fff; transition: all .15s;
}
.ns-wallet-pill input { position: absolute; opacity: 0; pointer-events: none; }
.ns-wallet-pill.is-checked { border-color: var(--ns-teal); background: var(--ns-teal); color: #fff; }
.ns-account-box {
  border: 1px dashed var(--ns-teal); border-radius: 10px; padding: 14px; margin-bottom: 14px; background: #fff;
}
.ns-account-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ns-account-num { font-size: 20px; font-weight: 800; letter-spacing: 1px; color: var(--ns-text); }
.ns-account-name { font-size: 13px; color: var(--ns-dim); }
.ns-copy-btn {
  border: 1.5px solid var(--ns-teal); color: var(--ns-teal-dark); background: #fff;
  border-radius: 8px; padding: 8px 16px; font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.ns-copy-btn:hover { background: var(--ns-teal-soft); }
.ns-account-hint { font-size: 12.5px; color: var(--ns-dim); margin: 8px 0 0; }
.ns-receipt-field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.ns-receipt-field label .required { color: #c0392b; }
.ns-receipt-field input[type="file"] {
  display: block; width: 100%; font-size: 13px; border: 1.5px dashed var(--ns-border);
  border-radius: 8px; padding: 12px; background: #fff; cursor: pointer;
}
.ns-file-name { display: block; font-size: 12.5px; color: var(--ns-teal-dark); font-weight: 600; margin-top: 6px; }
.ns-receipt-hint { font-size: 12px; color: var(--ns-dim); margin: 6px 0 0; }
.ns-pickup-note p { margin: 0; font-size: 13.5px; }

/* Place order */
.woocommerce-checkout-payment .place-order { padding: 0; margin-top: 16px; }
#place_order, .woocommerce-checkout-payment #place_order {
  width: 100%; background: linear-gradient(135deg, var(--ns-teal), var(--ns-teal-dark));
  font-size: 16px; font-weight: 800; padding: 16px; border-radius: 10px; border: 0; color: #fff;
  box-shadow: 0 10px 24px rgba(0,143,120,.28); float: none; position: relative;
}
#place_order:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,143,120,.34); }
form.processing #place_order { opacity: .75; pointer-events: none; }
form.processing #place_order::after {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-left: 10px;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%;
  animation: ns-spin .7s linear infinite; vertical-align: -3px;
}
@keyframes ns-spin { to { transform: rotate(360deg); } }
.woocommerce-terms-and-conditions-wrapper { font-size: 12.5px; color: var(--ns-dim); margin-bottom: 12px; }

@media (min-width: 960px) {
  .ns-checkout-grid { grid-template-columns: 1fr 400px; }
  .ns-checkout-side { position: sticky; top: 90px; }
  .ns-delivery-cards { grid-template-columns: repeat(3, 1fr); }
  .ns-payment-type-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Thank-you page polish */
.woocommerce-order-received .woocommerce-order { background: #fff; border: 1px solid var(--ns-border-soft); border-radius: var(--ns-radius-lg); padding: 26px; box-shadow: var(--ns-shadow-sm); }
.woocommerce-order-received .woocommerce-notice--success { color: var(--ns-teal-dark); font-weight: 700; }

/* FIX: Product grid on archive pages - stronger specificity */
/* v143: Old-school flexbox - padding gutters, no calc, no gap */
.woocommerce ul.products.ns-grid,
ul.products.ns-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -6px !important;
  padding: 0 !important;
  direction: ltr !important;
  justify-content: flex-start !important;
}
/* v143: 50% width with padding gutters */
.woocommerce ul.products.ns-grid > *,
ul.products.ns-grid > * {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  margin: 0 !important;
  padding: 0 6px 12px !important;
  float: none !important;
  box-sizing: border-box !important;
}
/* v144: Removed conflicting width:100% rule */
@media (min-width: 720px) {
  .woocommerce ul.products.ns-grid,
  ul.products.ns-grid {
    gap: 16px !important;
  }
  .woocommerce ul.products.ns-grid li.product,
  ul.products.ns-grid li.product {
    flex: 0 0 calc(33.333% - 11px) !important;
    max-width: calc(33.333% - 11px) !important;
    width: calc(33.333% - 11px) !important;
  }
}
@media (min-width: 1040px) {
  .woocommerce ul.products.ns-grid,
  ul.products.ns-grid {
    gap: 20px !important;
  }
  .woocommerce ul.products.ns-grid li.product,
  ul.products.ns-grid li.product {
    flex: 0 0 calc(20% - 16px) !important;
    max-width: calc(20% - 16px) !important;
    width: calc(20% - 16px) !important;
  }
}
/* FIX: Card content should not be squeezed */
.ns-card-wrap { min-width: 0 !important; }
.ns-card { min-width: 0 !important; overflow: hidden; }
.ns-card-body { min-width: 0 !important; }
.ns-card-name, .ns-card-brand, .ns-card-price { overflow-wrap: break-word; word-wrap: break-word; }

/* ============================================================
   MOBILE BOTTOM NAVIGATION (app-style)
   ============================================================ */
.ns-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 9998;
  background: #fff;
  border-top: 1px solid var(--ns-border);
  box-shadow: 0 -2px 12px rgba(0,0,0,.08);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
@media (max-width: 719px) {
  .ns-bottom-nav { display: flex; }
  body { padding-bottom: 64px; }
}
.ns-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 2px;
  color: var(--ns-dim);
  text-decoration: none;
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.ns-bnav-item.active { color: var(--ns-teal); }
.ns-bnav-icon { position: relative; display: block; width: 24px; height: 24px; }
.ns-bnav-icon svg { width: 24px !important; height: 24px !important; max-width: 24px !important; max-height: 24px !important; display: block; }
.ns-bnav-count {
  position: absolute;
  top: -6px; right: -10px;
  background: var(--ns-teal);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.ns-bnav-count:empty { display: none; }

/* ============================================================
   VERTICAL CATEGORIES LIST
   ============================================================ */
.ns-cat-list { display: flex; flex-direction: column; gap: 10px; }
.ns-cat-row {
  display: flex; align-items: center; gap: 14px;
  background: #fff; border: 1px solid var(--ns-border-soft);
  border-radius: 12px; padding: 12px 14px;
  text-decoration: none; color: var(--ns-text);
}
.ns-cat-row:active { background: var(--ns-surface); }
.ns-cat-row-img {
  width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0;
  background: var(--ns-teal-soft); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ns-cat-row-img img { width: 100%; height: 100%; object-fit: cover; }
.ns-cat-row-placeholder {
  font-size: 22px; font-weight: 800; color: var(--ns-teal-deep);
}
.ns-cat-row-body { flex: 1; min-width: 0; }
.ns-cat-row-body strong { display: block; font-size: 15px; }
.ns-cat-row-body span { font-size: 12.5px; color: var(--ns-dim); }
.ns-cat-row-arrow { color: var(--ns-dim); flex-shrink: 0; }
.ns-cat-row-arrow svg { width: 20px; height: 20px; }

/* Drawer headings and counts */
.ns-drawer-heading > span {
  display: block; padding: 14px 18px 6px;
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .8px; color: var(--ns-dim);
}
.ns-drawer-count { font-size: 12px; color: var(--ns-dim); font-weight: 400; }

/* Category sliders: shown on ALL screens (v162 — desktop gets the same
   post-Trending category sliders as mobile; the v161 mobile-only hide is removed) */

/* ============================================================
   FIT-TO-SCREEN: Responsive for all display sizes
   ============================================================ */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
html, body { max-width: 100vw; overflow-x: hidden; }
body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; }
.ns-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }

/* Tablet (720px - 1039px) */
@media (min-width: 720px) and (max-width: 1039px) {
  .ns-container { padding: 0 20px; }

}

/* Desktop (1040px+) - FULL WIDTH */
@media (min-width: 1040px) {
  .ns-container { max-width: 100%; padding: 0 30px; }
}

/* Large desktop (1400px+) - FULL WIDTH */
@media (min-width: 1400px) {
  .ns-container { max-width: 100%; padding: 0 40px; }
}

/* Extra large (1800px+) */
@media (min-width: 1800px) {
}

/* Prevent horizontal scroll from any element (v161: .ns-header removed — its
   overflow-x:hidden clipped the live-search suggestions dropdown) */
.ns-hero, .ns-section, .ns-footer, main {
  max-width: 100vw;
  overflow-x: hidden;
}

/* ============================================================
   ALFATAH-STYLE DESKTOP: Full-width, edge-to-edge
   ============================================================ */
@media (min-width: 1040px) {
  /* Hero: full bleed, no padding, no radius */
  .ns-hero { padding: 0; margin: 0; max-width: 100vw; }
  .ns-hero .ns-container { max-width: 100%; padding: 0; }
  .ns-hero-slide { border-radius: 0; }
  .ns-hero img { width: 100%; height: auto; display: block; }
  
  /* Sections: full width with comfortable padding */
  .ns-section { padding: 30px 0; }
  .ns-section .ns-container { max-width: 100%; padding: 0 40px; }
  
  /* Section titles: larger, bolder (Alfatah style) */
  .ns-section-title h2 { font-size: 24px; font-weight: 800; }
  
  /* Product cards: clean, spacious */
  .ns-prod-track { gap: 20px; }
}

/* Hide language toggle on mobile */
@media (max-width: 719px) {
  .ns-drawer-lang { display: none !important; }
}

/* Big category cards */
.ns-cat-big-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ns-cat-big-card { text-decoration: none; color: var(--ns-text); }
.ns-cat-big-img {
  position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden;
  background: var(--ns-teal-soft); display: flex; align-items: center; justify-content: center;
}
.ns-cat-big-img img { width: 100%; height: 100%; object-fit: cover; }
.ns-cat-big-placeholder { font-size: 48px; font-weight: 800; color: var(--ns-teal-deep); }
.ns-cat-big-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  padding: 30px 12px 12px; color: #fff;
}
.ns-cat-big-overlay strong { display: block; font-size: 15px; }
.ns-cat-big-overlay span { font-size: 12px; opacity: 0.9; }

/* Actual N-bag logo */
.ns-logo-mark-img { width: 48px; height: 48px; object-fit: contain; flex-shrink: 0; }

/* Mobile header spacing fix */
@media (max-width: 719px) {
  .ns-header-main { padding: 10px 15px 6px; gap: 10px; }
  .ns-logo-mark-img { width: 40px; height: 40px; }
  .ns-logo-name { font-size: 17px; }
  .ns-logo-tag { font-size: 11px; }
  .ns-search, .ns-mobile-search { margin-top: 8px; padding: 0 15px 10px; }
}

/* Search toggle */
.ns-search-toggle { background: none; border: none; cursor: pointer; }
@media (max-width: 719px) {
  .ns-mobile-search { display: none; }
  .ns-mobile-search.open { display: block !important; }
}

/* Professional mobile header - no overflow */
@media (max-width: 719px) {
  .ns-header-main {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    overflow: hidden;
  }
  .ns-logo { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; }
  .ns-logo-text { min-width: 0; overflow: hidden; }
  .ns-logo-name { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ns-logo-tag { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ns-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 4px; }
  .ns-action { padding: 6px; min-width: 32px; display: flex; align-items: center; justify-content: center; }
  .ns-action svg { width: 20px; height: 20px; }
  .ns-action-label { display: none; }
  .ns-search-toggle { padding: 6px; }
}

/* Double image on hover (like React) */
.ns-card-media { position: relative; overflow: hidden; }
.ns-card-media .ns-card-img-hover {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 0.3s ease;
}
.ns-card:hover .ns-card-media .ns-card-img-hover { opacity: 1; }
@media (hover: none) {
  /* On touch devices, show a small indicator if there's a second image */
  .ns-card-media:has(.ns-card-img-hover)::after {
    content: '2'; position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,0.6); color: #fff; font-size: 11px;
    width: 22px; height: 22px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
}

.ns-drawer-sub a { padding-left: 32px !important; font-size: 13px; color: var(--ns-teal-deep); }

/* === Standard WooCommerce Gallery Fixes === */
/* Horizontal thumbnails */
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  gap: 8px !important;
  overflow-x: auto !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 12px 0 0 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li {
  list-style: none !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
.woocommerce-product-gallery .flex-control-thumbs li::before,
.woocommerce-product-gallery .flex-control-thumbs li::marker {
  display: none !important;
  content: none !important;
}
.woocommerce-product-gallery .flex-control-thumbs img {
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid var(--ns-border-soft, #dce8e4) !important;
}
/* Disable zoom trigger and lightbox */
.woocommerce-product-gallery__trigger {
  display: none !important;
}
.woocommerce-product-gallery__image a {
  pointer-events: none !important;
  cursor: default !important;
}

/* === Gallery Fix v55: Horizontal thumbnails, no navigation === */
ol.flex-control-nav, ul.flex-control-nav,
.woocommerce-product-gallery__nav, .product-thumbnails,
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  list-style: none !important;
  list-style-type: none !important;
  padding: 0 !important;
  margin: 12px 0 !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
}
ol.flex-control-nav li, ul.flex-control-nav li,
.product-thumbnails li,
.woocommerce-product-gallery .flex-control-thumbs li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 auto !important;
}
ol.flex-control-nav li::before, ul.flex-control-nav li::before,
ol.flex-control-nav li::marker, ul.flex-control-nav li::marker {
  display: none !important;
  content: none !important;
}
ol.flex-control-nav li img, ul.flex-control-nav li img,
.product-thumbnails img,
.woocommerce-product-gallery .flex-control-thumbs img {
  width: 60px !important;
  height: 60px !important;
  object-fit: cover !important;
  border-radius: 8px !important;
  border: 1px solid #e5e7eb !important;
  cursor: pointer !important;
}
/* Completely disable main image link navigation */
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image--placeholder a,
div.product .woocommerce-product-gallery a {
  pointer-events: none !important;
  cursor: default !important;
}
.woocommerce-product-gallery__trigger {
  display: none !important;
  visibility: hidden !important;
}

/* === Gallery v56: Wrap thumbnails, 5 per row === */
ol.flex-control-nav, ul.flex-control-nav,
.woocommerce-product-gallery__nav, .product-thumbnails,
.woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  justify-content: flex-start !important;
  overflow: visible !important;
  overflow-x: visible !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 8px 0 !important;
  list-style: none !important;
  margin: 12px 0 0 0 !important;
  white-space: normal !important;
}
ol.flex-control-nav li, ul.flex-control-nav li,
.product-thumbnails li,
.woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 calc(20% - 7px) !important;
  max-width: calc(20% - 7px) !important;
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
ol.flex-control-nav li img, ul.flex-control-nav li img,
.product-thumbnails img,
.woocommerce-product-gallery .flex-control-thumbs img {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 6px !important;
  border: 1px solid #e5e7eb !important;
  display: block !important;
  cursor: pointer !important;
}

/* === Professional Price Styling v57 === */
/* Sale price: Emerald green, bold, prominent */
.price, .ns-price, .ns-product-price .price {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}
.price ins, .ns-price ins {
  color: #059669 !important;
  font-weight: 800 !important;
  font-size: 20px !important;
  text-decoration: none !important;
  background: none !important;
}
.price del, .ns-price del {
  color: #9CA3AF !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  text-decoration: line-through !important;
  opacity: 1 !important;
}
/* Single product price larger */
.single-product .price ins, .single-product .ns-price ins {
  font-size: 24px !important;
}
.single-product .price del, .single-product .ns-price del {
  font-size: 17px !important;
}
/* -50% OFF Badge */
.onsale, .ns-badge-sale, .woocommerce-sale-badge {
  background: #ECFDF5 !important;
  color: #059669 !important;
  border: 1px solid #A7F3D0 !important;
  border-radius: 9999px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  line-height: 1.2 !important;
}

/* === FiboSearch styling === */
.ns-fibo-search .dgwt-wcas-search-wrapp {
  width: 100% !important;
  max-width: 100% !important;
}
.ns-fibo-search .dgwt-wcas-sf-wrapp input[type="search"] {
  width: 100% !important;
  border-radius: 8px !important;
  border: 1px solid var(--ns-border-soft, #dce8e4) !important;
  padding: 10px 14px !important;
  font-size: 15px !important;
}
/* Mobile: dropdown full width */
@media (max-width: 768px) {
  .dgwt-wcas-suggestions-wrapp {
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }
}

/* === Live Search === */
.ns-live-search { flex: 1 1 auto; width: 100%; max-width: 650px; margin: 0 auto; }
.ns-live-search-form { position: relative; display: flex; align-items: center; }
.ns-live-search-input {
  width: 100%; padding: 10px 44px 10px 14px; border-radius: 10px;
  border: 1px solid var(--ns-border-soft, #dce8e4); font-size: 15px; background: #fff;
}
.ns-live-search-form button[type="submit"] {
  position: absolute; right: 6px; background: none; border: none; cursor: pointer;
  color: var(--ns-teal, #008f78); padding: 8px;
}
.ns-live-results {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 9999;
  background: #fff; border: 1px solid var(--ns-border-soft, #dce8e4); border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12); max-height: 70vh; overflow-y: auto; margin-top: 4px;
}
.ns-live-row {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px;
  text-decoration: none; color: inherit; border-bottom: 1px solid #f0f0f0;
}
.ns-live-row:last-child { border-bottom: none; }
.ns-live-row:hover { background: #f8faf9; }
.ns-live-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; flex: 0 0 auto; }
.ns-live-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ns-live-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ns-live-price { font-size: 13px; }
/* Desktop: always visible. Mobile: hidden, toggled by icon */
@media (min-width: 768px) {
  .ns-live-search { display: block !important; }
  .ns-search-toggle { display: none !important; }
  .ns-mobile-search { display: none !important; }
}
@media (max-width: 767px) {
  .ns-live-search { display: none !important; }
}

/* === Search v60: Wider + accurate === */
.ns-live-search { flex: 1 1 auto !important; width: 100% !important; max-width: 850px !important; margin: 0 24px !important; }
.ns-live-search-form { width: 100% !important; }
.ns-live-search-input { width: 100% !important; }
.ns-live-results { left: 0 !important; right: 0 !important; width: 100% !important; box-sizing: border-box !important; }
.ns-live-thumb { width: 45px !important; height: 45px !important; border-radius: 8px !important; }
.ns-live-price del { color: #9CA3AF !important; margin-right: 6px; }
.ns-live-price ins { color: #059669 !important; font-weight: 700; text-decoration: none; }

/* === Search v61: Full width 850px === */
.ns-live-search { flex: 1 !important; width: 100% !important; max-width: 850px !important; }

/* === Search v62: 900px + strict prefix === */
.header-middle, .ns-live-search {
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: 800px !important;
  margin: 0 40px !important;
}
.ns-live-search-form, .ns-live-search-form form { width: 100% !important; }
.ns-live-results { width: 100% !important; left: 0 !important; right: 0 !important; }

/* === Search v63: Exact React spec === */
.ns-live-search { width: 100% !important; max-width: 800px !important; margin: 0 auto !important; flex: 1 1 auto !important; }
.ns-live-results { width: 100% !important; }
.ns-live-thumb { width: 45px !important; height: 45px !important; }
.ns-live-price ins { color: #059669 !important; font-weight: 800 !important; text-decoration: none !important; }
.ns-live-price del { color: #9CA3AF !important; }

/* === Search v65: Exact CSS fix === */
.ns-live-search {
  flex: 1 1 auto !important;
  max-width: 800px !important;
  width: 100% !important;
  margin: 0 30px !important;
  position: relative !important;
}
.ns-live-search form, .ns-live-search input {
  width: 100% !important;
}
.ns-live-results {
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

/* === Checkout v66: React-style 1-page layout === */
.ns-delivery-cards { display: grid; gap: 12px; margin: 16px 0; }
.ns-delivery-card {
  border: 2px solid var(--ns-border-soft, #dce8e4); border-radius: 12px;
  padding: 16px; cursor: pointer; display: block; width: 100%;
  box-sizing: border-box; transition: all 0.2s; background: #fff;
  position: relative; margin-bottom: 12px;
}
.ns-delivery-card > span { display: block; margin-bottom: 4px; }
.ns-delivery-card > span:last-child { margin-bottom: 0; }
.ns-delivery-card input[type="radio"] { width: 20px; height: 20px; accent-color: #059669; }
.ns-delivery-card.selected { border-color: #059669; box-shadow: 0 0 0 3px rgba(5,150,105,0.15); }
.ns-delivery-card.ns-express-card.selected {
  border-color: #059669; box-shadow: 0 0 16px rgba(5,150,105,0.3), 0 0 0 3px rgba(212,175,55,0.2);
}
.ns-delivery-badge {
  position: absolute; top: -10px; right: 12px; background: linear-gradient(135deg, #059669, #d4af37);
  color: #fff; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.ns-delivery-info { flex: 1; }
.ns-delivery-label { font-weight: 700; font-size: 16px; }
.ns-delivery-eta { font-size: 13px; color: #647872; }
.ns-delivery-fee { font-weight: 800; font-size: 18px; color: #059669; }
/* 2-column checkout */
@media (min-width: 900px) {
  .ns-checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
}
.ns-place-order-btn {
  width: 100%; padding: 16px; background: #059669 !important; color: #fff !important;
  font-size: 18px !important; font-weight: 800 !important; border: none !important;
  border-radius: 12px !important; cursor: pointer !important; text-transform: uppercase;
}
.ns-place-order-btn:hover { background: #047857 !important; }

/* === Mobile: Fix delivery card overflow (v71) === */
@media (max-width: 767px) {
  .ns-checkout-grid,
  .ns-container,
  .woocommerce-checkout {
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    box-sizing: border-box !important;
  }
  .ns-delivery-cards {
    width: 100% !important;
    max-width: 100% !important;
  }
  .ns-delivery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .ns-delivery-badge {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    display: inline-block !important;
    margin-bottom: 8px !important;
    max-width: 100% !important;
    white-space: normal !important;
    font-size: 10px !important;
  }
}

/* === v75: Comprehensive mobile checkout fix === */
@media (max-width: 767px) {
  /* Main wrapper - match cart page */
  .woocommerce-checkout,
  .ns-checkout-form,
  .ns-container,
  .ns-checkout-grid,
  .ns-checkout-main,
  .ns-checkout-side {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    overflow-x: hidden !important;
  }
  /* Single column on mobile */
  .ns-checkout-grid {
    display: block !important;
  }
  /* Delivery cards - no overflow */
  .ns-delivery-cards {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  .ns-delivery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: hidden !important;
    margin-bottom: 12px !important;
  }
  .ns-delivery-card > * {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  /* Payment cards too */
  .ns-payment-type-cards .ns-delivery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

/* === v76: Viewport overflow elimination === */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
}
.woocommerce-checkout,
.ns-checkout-form,
.ns-container,
.ns-checkout-grid,
.ns-checkout-main,
.ns-checkout-side,
.ns-checkout-block,
.ns-delivery-cards,
.woocommerce-billing-fields,
.woocommerce-additional-fields {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  min-width: 0 !important;
}
.woocommerce-checkout .form-row,
.woocommerce-billing-fields .form-row {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
@media (max-width: 767px) {
  .ns-delivery-card,
  .ns-payment-type-cards .ns-delivery-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}

/* === v81: Clean wallet box (no overlap) === */
.ns-wallet-box {
  width: 100% !important;
  box-sizing: border-box !important;
  display: block !important;
}
.ns-account-box {
  width: 100% !important;
  box-sizing: border-box !important;
  background: #f8faf9;
  border: 1px solid #dce8e4;
  border-radius: 10px;
  padding: 16px !important;
  margin: 12px 0 !important;
  display: block !important;
}
.ns-account-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.ns-account-num {
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: 1px !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.ns-account-name {
  font-size: 14px !important;
  color: #647872 !important;
  display: block !important;
}
.ns-copy-btn {
  flex-shrink: 0 !important;
  padding: 8px 16px !important;
  white-space: nowrap !important;
}
.ns-account-hint {
  margin-top: 12px !important;
  font-size: 13px !important;
  color: #647872 !important;
  display: block !important;
}



/* === v85: Clean professional delivery cards === */
.ns-delivery-cards {
  overflow: visible !important;
  padding-top: 14px !important;
}
.ns-delivery-card.has-badge {
  margin-top: 0 !important;
  overflow: visible !important;
  position: relative !important;
  padding-top: 22px !important;
}
.ns-delivery-badge-top {
  position: absolute !important;
  top: -13px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: linear-gradient(135deg, #059669 0%, #d4af37 100%) !important;
  color: #fff !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 5px 16px !important;
  border-radius: 999px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  white-space: nowrap !important;
  box-shadow: 0 3px 10px rgba(5,150,105,0.35) !important;
  z-index: 5 !important;
  line-height: 1.4 !important;
}
/* Clean card layout - no overlap */
.ns-delivery-card {
  display: block !important;
  padding: 18px !important;
}
.ns-delivery-card .ns-delivery-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
}
.ns-delivery-card .ns-delivery-name {
  font-size: 17px !important;
  font-weight: 800 !important;
}
.ns-delivery-card .ns-delivery-eta {
  font-size: 13px !important;
  color: #647872 !important;
  display: block !important;
  margin-bottom: 6px !important;
}
.ns-delivery-card .ns-delivery-fee {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #059669 !important;
  display: block !important;
  margin: 6px 0 !important;
}
.ns-delivery-card .ns-delivery-note,
.ns-delivery-card .ns-delivery-hint {
  font-size: 13px !important;
  color: #647872 !important;
  display: block !important;
  margin-top: 6px !important;
  line-height: 1.5 !important;
}
.ns-delivery-card input[type="radio"] {
  position: absolute !important;
  top: 18px !important;
  right: 18px !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
}

/* v110: Mini cart drawer */
.ns-drawer-overlay{position:fixed;inset:0;background:rgba(23,49,44,.5);z-index:9998;opacity:0;transition:opacity .25s}
.ns-drawer-overlay[hidden]{display:none}
.ns-drawer-overlay.show{opacity:1}
.ns-cart-drawer{position:fixed;top:0;right:0;height:100dvh;width:min(380px,92vw);background:#fff;z-index:9999;transform:translateX(105%);transition:transform .3s ease;display:flex;flex-direction:column;box-shadow:-8px 0 24px rgba(0,0,0,.12)}
.ns-cart-drawer.open{transform:translateX(0)}
.ns-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #dce8e4}
.ns-drawer-head h3{margin:0;font-size:18px;color:#17312c}
.ns-drawer-close{background:none;border:0;font-size:28px;line-height:1;color:#647872;cursor:pointer;padding:4px 8px}
.ns-drawer-body{flex:1;overflow-y:auto;padding:12px 16px}
.ns-drawer-items{list-style:none;margin:0;padding:0}
.ns-drawer-item{display:flex;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #f0f4f2}
.ns-drawer-thumb{width:56px;height:56px;flex:0 0 56px;border-radius:8px;overflow:hidden;background:#f8faf9}
.ns-drawer-thumb img{width:100%;height:100%;object-fit:cover}
.ns-drawer-info{flex:1;min-width:0}
.ns-drawer-name{font-size:14px;font-weight:600;color:#17312c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ns-drawer-meta{font-size:13px;color:#647872;margin-top:4px}
.ns-drawer-remove{background:none;border:0;font-size:22px;color:#9CA3AF;cursor:pointer;padding:4px 8px}
.ns-drawer-remove:hover{color:#c0392b}
.ns-drawer-empty{text-align:center;color:#647872;padding:40px 10px}
.ns-drawer-loading{text-align:center;color:#647872;padding:40px 10px}
.ns-drawer-foot{padding:14px 16px;border-top:1px solid #dce8e4;background:#f8faf9}
.ns-drawer-subtotal{display:flex;justify-content:space-between;margin-bottom:12px;color:#17312c;font-size:15px}
.ns-drawer-btn{display:block;text-align:center;padding:12px;border-radius:10px;font-weight:700;text-decoration:none;margin-top:8px}
.ns-drawer-view{background:#fff;color:#066e5c;border:1.5px solid #066e5c}
.ns-drawer-checkout{background:#066e5c;color:#fff}

/* v114: Phone registration */
.ns-register-form .ns-field-hint{display:block;font-size:12px;color:#647872;margin-top:4px}
.ns-register-form .optional{color:#647872;font-weight:400}

/* v119: Unified Sign In / Sign Up tabs */
.ns-auth-wrap{max-width:520px;margin:0 auto}
.ns-auth-tabs{display:flex;background:#eef4f2;border-radius:12px;padding:4px;margin-bottom:20px}
.ns-auth-tab{flex:1;border:0;background:transparent;padding:12px;font-size:16px;font-weight:700;color:#647872;border-radius:9px;cursor:pointer}
.ns-auth-tab.active{background:#066e5c;color:#fff;box-shadow:0 2px 8px rgba(6,110,92,.25)}
.ns-auth-panel{display:none}
.ns-auth-panel.active{display:block}
.ns-login-row{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.ns-auth-wrap .ns-field-hint{display:block;font-size:12px;color:#647872;margin-top:4px}
.ns-auth-wrap .optional{color:#647872;font-weight:400}

/* v121: Product reviews */
.ns-reviews-section #reviews h2{font-size:18px;margin:0 0 16px;color:#17312c}
.ns-reviews-section .commentlist{list-style:none;margin:0 0 20px;padding:0}
.ns-reviews-section .commentlist li{background:#f8faf9;border-radius:10px;padding:14px 16px;margin-bottom:12px}
.ns-reviews-section .comment-text .star-rating{color:#f5a623}
.ns-reviews-section #review_form_wrapper{border-top:1px solid #dce8e4;padding-top:20px;margin-top:20px}
.ns-reviews-section #review_form .comment-reply-title{font-size:16px;margin:0 0 12px}
.ns-reviews-section #review_form input[type="text"],
.ns-reviews-section #review_form input[type="email"],
.ns-reviews-section #review_form textarea{width:100%;border:1.5px solid #dce8e4;border-radius:10px;padding:10px 12px;font-size:14px}
.ns-reviews-section #review_form #submit{background:#066e5c;color:#fff;border:0;border-radius:10px;padding:12px 28px;font-weight:700;cursor:pointer}

/* v123: Floating WhatsApp button */
.ns-whatsapp-float{position:fixed;right:20px;bottom:20px;z-index:10000;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(37,211,102,.45);transition:transform .2s}
.ns-whatsapp-float:hover{transform:scale(1.08)}
@media (max-width:768px){
  /* Sit above the mobile bottom nav (nav z-index 9998) */
  .ns-whatsapp-float{right:14px;bottom:86px;width:52px;height:52px;z-index:10000}
}

/* v125: Order on WhatsApp button (cart page) */
.ns-wa-order-btn{display:flex;align-items:center;justify-content:center;gap:8px;background:#25D366;color:#fff;font-weight:700;font-size:16px;text-decoration:none;border-radius:10px;padding:14px 20px;margin-top:10px;transition:transform .15s}
.ns-wa-order-btn:hover{transform:scale(1.02);color:#fff}

/* v129: Image banner slides (React-style) */
/* v131: React-style banner tile - aspect-ratio 16/9 like the pictures */
.ns-hero-slide.ns-hero-banner{padding:0;overflow:hidden;min-height:0 !important;aspect-ratio:16/9;background:#0f0f0f}
.ns-hero-slide.active.ns-hero-banner{display:block}
.ns-hero-banner img{display:block;width:100%;height:100%;object-fit:contain;border-radius:var(--ns-radius-lg)}

/* v145: Fresh product grid - ns-products (zero conflicts) */
.woocommerce ul.products.ns-products,
ul.products.ns-products {
  display: flex !important;
  flex-wrap: wrap !important;
  margin: 0 -6px !important;
  padding: 0 !important;
  list-style: none !important;
}
.woocommerce ul.products.ns-products > li,
ul.products.ns-products > li {
  flex: 0 0 50% !important;
  max-width: 50% !important;
  width: 50% !important;
  margin: 0 !important;
  padding: 0 6px 12px !important;
  box-sizing: border-box !important;
}
@media (min-width: 720px) {
  .woocommerce ul.products.ns-products > li,
  ul.products.ns-products > li {
    flex: 0 0 33.333% !important;
    max-width: 33.333% !important;
    width: 33.333% !important;
  }
}
@media (min-width: 1040px) {
  .woocommerce ul.products.ns-products > li,
  ul.products.ns-products > li {
    flex: 0 0 20% !important;
    max-width: 20% !important;
    width: 20% !important;
  }
}

/* ============================================================
   SUB-CATEGORY PICKER (category archive with child categories)
   ============================================================ */
.ns-subcats { margin: 4px 0 20px; }
.ns-subcats-title { font-size: 15px; font-weight: 700; color: var(--ns-text); margin: 0 0 12px; }
.ns-subcats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ns-subcat-card { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; background: var(--ns-surface); border: 1px solid var(--ns-border-soft); border-radius: var(--ns-radius-lg); padding: 12px 8px 14px; box-shadow: var(--ns-shadow-sm); }
.ns-subcat-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; margin-bottom: 6px; }
.ns-subcat-letter { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; background: var(--ns-teal-soft); color: var(--ns-teal-dark); font-size: 34px; font-weight: 800; border-radius: 10px; margin-bottom: 6px; }
.ns-subcat-card strong { font-size: 13.5px; color: var(--ns-text); line-height: 1.3; }
.ns-subcat-card > span:last-child { font-size: 12px; color: var(--ns-dim); }
@media (max-width: 480px) {
  .ns-subcats-row { gap: 8px; }
  .ns-subcat-card { padding: 8px 6px 10px; }
  .ns-subcat-card strong { font-size: 12.5px; }
}

/* v149: keep the desktop categories dropdown on screen */
@media (min-width: 1040px) {
  .ns-nav-list .sub-menu { max-height: 70vh; overflow-y: auto; }
}

/* v150: drawer close button clearly highlighted + page behind drawer fully inert while menu is open */
.ns-drawer-close {
  background: #ffffff;
  color: #066e5c;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0,0,0,.28);
  opacity: 1;
}
body.ns-drawer-open .ns-drawer-overlay { pointer-events: none; }
body.ns-drawer-open .ns-header,
body.ns-drawer-open #nsMain,
body.ns-drawer-open .ns-footer,
body.ns-drawer-open .ns-bottom-nav,
body.ns-drawer-open .ns-whatsapp-float { pointer-events: none !important; }

/* v151: correct stacking - drawers on top, dim overlay below them, above page chrome */
.ns-drawer { z-index: 10002; }
.ns-cart-drawer { z-index: 10003; }
.ns-drawer-overlay { z-index: 10001; }
body.ns-drawer-open .ns-drawer { pointer-events: auto; }

/* v152: highlighted signup note under the checkout email field */
#billing_email_field .description {
  display: block; margin-top: 8px;
  background: #e6f4f1; border: 1px solid #008f78; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; line-height: 1.45;
  color: #066e5c; font-style: normal;
}

/* ===== v154: trust strip joined with footer — one professional block ===== */
.ns-trust { background: #0e2b26; border-top: none; border-bottom: none; }
.ns-trust-grid { gap: 20px 16px; padding-top: 26px; padding-bottom: 4px; }
.ns-trust-item { align-items: center; }
.ns-trust-icon { background: rgba(255,255,255,.09); color: #8fd8c6; }
.ns-trust-item strong { color: #ffffff; }
.ns-trust-item span { color: #9dbdb4; }
.ns-footer { margin-top: 0; }
.ns-footer-top { padding-top: 24px; }

/* ===== v155: trust strip moved below footer columns ===== */
.ns-trust { border-top: 1px solid rgba(255,255,255,.1); }
.ns-trust-grid { padding-top: 18px; padding-bottom: 20px; }
.ns-trust-item { align-items: flex-start; }

/* ===== v179: utility strip is a continuous right-to-left news ticker (never pauses) ===== */
/* ===== v180: homepage Deals & Discounts section (queries deals-discounts category) ===== */
.ns-ticker { display: block; flex: 1; min-width: 0; overflow: hidden; }
.ns-ticker-track { display: flex; width: max-content; animation: ns-ticker 30s linear infinite; will-change: transform; }
.ns-ticker-set { display: flex; align-items: center; }
.ns-ticker-item { white-space: nowrap; font-size: 12px; line-height: 18px; }
.ns-ticker-item::after { content: "\2022"; margin: 0 28px; opacity: .55; }
@keyframes ns-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 719px) { .ns-ticker-item { font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .ns-ticker-track { animation: none; } }

/* ===== v158: search suggestion group labels ===== */
.ns-live-group { padding: 8px 12px 4px; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--ns-teal-dark, #066e5c); }

/* ===== v159: search index rebuilds in background after product edits ===== */

/* ===== v160: live suggestions wired into the mobile search bar too ===== */

/* ===== v161: header no longer clips the search suggestions dropdown ===== */

/* ===== v162: homepage category sliders visible on desktop too (mobile-only hide removed) ===== */

/* ===== v163: desktop search — full width (logo to actions) + suggestions panel must paint ===== */
@media (min-width: 768px) {
  /* Width: remove the old 800px cap (v60-v65 stack) — bar stretches logo -> wishlist */
  .ns-live-search { max-width: none !important; flex: 1 1 auto !important; width: auto !important; margin: 0 24px !important; }
  /* Nothing in the header may clip the dropdown */
  .ns-header, .ns-header-main, .ns-header .ns-container { overflow: visible !important; }
  .ns-live-search { position: relative !important; }
  .ns-live-search form { position: relative !important; }
  /* Panel: fully re-specified so it always renders under the input when shown */
  .ns-live-search .ns-live-results {
    position: absolute !important; top: 100% !important; left: 0 !important; right: 0 !important;
    width: 100% !important; height: auto !important; max-height: 70vh !important;
    margin-top: 4px !important; opacity: 1 !important; visibility: visible !important;
    transform: none !important; clip: auto !important; clip-path: none !important;
    z-index: 99999 !important; overflow-y: auto !important; overflow-x: hidden !important;
    background: #fff !important;
  }
  .ns-live-search .ns-live-results:not([style*="none"]) { display: block !important; }
  .ns-live-search .ns-live-results { content-visibility: visible !important; pointer-events: auto !important; }
}

/* ===== v164: sticky header on scroll + back-to-top no longer hides behind WhatsApp ===== */
/* html/body overflow-x:hidden (v76) makes the page a scroll box and kills position:sticky.
   overflow-x:clip stops sideways scroll WITHOUT creating a scroll box, so the header sticks. */
html, body { overflow-x: clip !important; }
.ns-header { position: sticky !important; top: 0 !important; }
/* Back-to-top (teal arrow) sits ABOVE the WhatsApp float on desktop — never behind it */
@media (min-width: 720px) {
  .ns-top { right: 25px; bottom: 88px; }
}

/* ===== v165: categories page decent on desktop + homepage Shop by Category grid ===== */
@media (min-width: 720px) and (max-width: 1039px) {
  .ns-cat-big-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1040px) {
  .ns-cat-big-grid { grid-template-columns: repeat(4, 1fr); }
}
.ns-shopbycat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (min-width: 720px) { .ns-shopbycat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1040px) { .ns-shopbycat-grid { grid-template-columns: repeat(6, 1fr); } }
.ns-shopbycat-grid .ns-cat-big-overlay { padding: 26px 10px 10px; }
.ns-shopbycat-grid .ns-cat-big-overlay strong { font-size: 13.5px; }
.ns-shopbycat-grid .ns-cat-big-overlay span { font-size: 11px; }

/* ===== v166: Shop by Category becomes a paged slider (desktop: 5 per page, arrows move a full page) ===== */
.ns-cat-slider { position: relative; }
.ns-cat-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 6px);
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 4px 2px 10px; scroll-behavior: smooth;
}
.ns-cat-track::-webkit-scrollbar { display: none; }
.ns-cat-track > * { scroll-snap-align: start; }
@media (min-width: 720px) { .ns-cat-track { grid-auto-columns: calc(33.333% - 11px); gap: 16px; } }
@media (min-width: 1040px) { .ns-cat-track { grid-auto-columns: calc(20% - 16px); gap: 20px; } }
.ns-cat-track .ns-cat-big-overlay { padding: 26px 10px 10px; }
.ns-cat-track .ns-cat-big-overlay strong { font-size: 13.5px; }
.ns-cat-track .ns-cat-big-overlay span { font-size: 11px; }

/* ===== v167: Shop by Category slider shows ALL top-level categories (no 12 limit) ===== */

/* ===== v168: SOLD OUT badge on detail-page product image (out-of-stock) ===== */
.ns-product-gallery { position: relative; }
.ns-product-gallery .ns-badge-detail {
  position: absolute; top: 14px; left: 14px; z-index: 5;
  font-size: 12px; padding: 6px 12px;
}
.ns-product-gallery.ns-oos img { filter: grayscale(1); opacity: .55; }

/* ===== v169: highlight homepage Shop by Category band so it stands out from product sliders ===== */
.ns-shop-by-cat {
  background: linear-gradient(180deg, #b7e2d3 0%, #e3f4ed 100%) !important;
  border-top: 2px solid var(--ns-teal) !important;
  border-bottom: 2px solid var(--ns-teal) !important;
  padding: 28px 0 30px !important;
}
.ns-shop-by-cat .ns-section-title h2 {
  font-size: 24px;
  color: var(--ns-teal-deep);
  border-left: 4px solid var(--ns-teal);
  padding-left: 12px;
}
.ns-shop-by-cat .ns-view-all {
  background: var(--ns-teal-deep);
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
}
.ns-shop-by-cat .ns-view-all:hover { background: var(--ns-teal-dark); color: #fff; }
.ns-shop-by-cat .ns-cat-big-img {
  border: 2px solid #fff;
  box-shadow: 0 8px 22px rgba(27, 77, 65, .16);
}

/* ===== v170: highlight ALL homepage sections the same way; Shop by Category (darkened above) stays the most eye-catching ===== */
body.home .ns-section:not(.ns-shop-by-cat) {
  background: linear-gradient(180deg, #eef9f6 0%, #f8faf9 100%) !important;
  border-top: 1px solid var(--ns-border) !important;
  border-bottom: 1px solid var(--ns-border) !important;
}
body.home .ns-section:not(.ns-shop-by-cat) .ns-section-title h2 {
  color: var(--ns-teal-deep);
  border-left: 4px solid var(--ns-teal);
  padding-left: 12px;
}
body.home .ns-section:not(.ns-shop-by-cat) .ns-view-all {
  background: var(--ns-teal);
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
}
body.home .ns-section:not(.ns-shop-by-cat) .ns-view-all:hover { background: var(--ns-teal-dark); color: #fff; }

/* ===== v171: homepage showcase sliders now follow a fixed order set in front-page.php (Perfumes, Watches, Lotions & Moisturisers, Facial Care, Creams, Ladies Essentials); no CSS change in this version ===== */

/* ===== v172: homepage sliders show in-stock products only; variable-product sale badge uses variation prices (no fake -50%) ===== */

/* ===== v173: card stepper + Buy Now after Add to Cart (cart-app style); detail Buy Now button ===== */
.ns-card-foot.ns-has-stepper { display: flex; flex-direction: column; gap: 8px; }
.ns-card-stepper { display: flex; align-items: stretch; width: 100%; border: 1.5px solid var(--ns-border); border-radius: 8px; overflow: hidden; background: #fff; }
.ns-card-stepper button { flex: 0 0 44px; height: 38px; border: 0; background: var(--ns-bg); font-size: 19px; font-weight: 700; color: var(--ns-teal-dark); cursor: pointer; }
.ns-card-stepper button:hover { background: var(--ns-teal-soft); }
.ns-card-qty { flex: 1; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14.5px; color: var(--ns-text); }
.ns-card-buynow { display: block; width: 100%; text-align: center; padding: 10px; border-radius: 8px; border: 1.5px solid var(--ns-teal); background: #fff; color: var(--ns-teal-dark); font-weight: 800; font-size: 13.5px; text-decoration: none; box-sizing: border-box; }
.ns-card-buynow:hover { background: var(--ns-teal); color: #fff; }
.ns-buy-now-btn { flex: 1; min-width: 200px; border: 1.5px solid var(--ns-teal); border-radius: 10px; background: #fff; color: var(--ns-teal-dark); font-size: 15px; font-weight: 800; padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; }
.ns-buy-now-btn:hover { background: var(--ns-teal-soft); }

/* ===== v174: card shows Add to Cart + Buy Now together (artifact style) ===== */
.ns-card-two { display: flex; gap: 8px; }
.ns-card-two .ns-add-btn, .ns-card-two .ns-card-buynow-btn { flex: 1; width: auto; min-width: 0; padding: 10px 6px; }
.ns-card-buynow-btn { border: 1.5px solid var(--ns-teal); border-radius: 8px; background: #fff; color: var(--ns-teal-dark); font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ns-card-buynow-btn:hover { background: var(--ns-teal); color: #fff; }

/* ===== v175: artifact-style stacked card buttons (solid emerald Add, outline Buy Now) ===== */
.ns-card-stack { display: flex; flex-direction: column; gap: 8px; }
.ns-card-stack .ns-add-btn, .ns-card-stack .ns-card-buynow-btn { width: 100%; padding: 12px; font-size: 15px; border-radius: 10px; }
.ns-add-solid { background: #10b981; color: #fff; }
.ns-add-solid:hover { background: #059669; color: #fff; }
.ns-add-plus { font-size: 19px; font-weight: 700; line-height: 1; }
.ns-card-buynow-btn { border: 2px solid #10b981; background: #fff; color: #047857; font-weight: 800; font-size: 15px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ns-card-buynow-btn:hover { background: #ecfdf5; color: #047857; }
.ns-card-stepper { border: 1.5px solid #10b981; border-radius: 10px; }
.ns-card-stepper button { background: #ecfdf5; color: #047857; height: 46px; }
.ns-card-stepper button:hover { background: #d1fae5; }
.ns-card-qty { color: #047857; font-size: 16px; }
.ns-card-buynow { border: 2px solid #10b981; color: #047857; padding: 12px; font-size: 15px; border-radius: 10px; }
.ns-card-buynow:hover { background: #ecfdf5; color: #047857; }

/* ===== v176: footer Follow Us social pills ===== */

/* ===== v178: footer nesting fixed (pills removed, CC+About back in grid), icon-row socials, Shop column removed, 2-col footer links ===== */

/* ===== v182: Exclusive Deals section highlight (emerald title on the highlighted band) ===== */
.ns-exclusive-deals .ns-section-title h2{color:#047857;}
