/* NetShop home screen — mobile-first (design: docs/home_design_reference.jpeg) */

.ns-body {
  margin: 0;
  background: #fff;
  color: #111827;
  font-family: 'Noto Sans Bengali', -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.ns-body * { box-sizing: border-box; }
.ns-body img { max-width: 100%; height: auto; display: block; }
.ns-body a { text-decoration: none; color: inherit; }

.ns-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 14px 28px;
}

/* ---------------------------------------------------------------- icons */
.ns-ico {
  display: inline-block;
  background: currentColor;
  width: 22px;
  height: 22px;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex: 0 0 auto;
}
.ns-ico--search { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 2a8 8 0 105.29 14.01l4.35 4.35 1.41-1.41-4.35-4.35A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M10 2a8 8 0 105.29 14.01l4.35 4.35 1.41-1.41-4.35-4.35A8 8 0 0010 2zm0 2a6 6 0 110 12 6 6 0 010-12z'/%3E%3C/svg%3E"); }
.ns-ico--scan { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h6v2H5v4H3V3zm12 0h6v6h-2V5h-4V3zM3 15h2v4h4v2H3v-6zm16 0h2v6h-6v-2h4v-4zM7 7h10v10H7V7zm2 2v6h6V9H9z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M3 3h6v2H5v4H3V3zm12 0h6v6h-2V5h-4V3zM3 15h2v4h4v2H3v-6zm16 0h2v6h-6v-2h4v-4zM7 7h10v10H7V7zm2 2v6h6V9H9z'/%3E%3C/svg%3E"); }
.ns-ico--bell { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a6 6 0 00-6 6v3.1c0 .6-.2 1.2-.6 1.7L4 15h16l-1.4-2.2c-.4-.5-.6-1.1-.6-1.7V8a6 6 0 00-6-6zm0 20a3 3 0 002.8-2H9.2a3 3 0 002.8 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 2a6 6 0 00-6 6v3.1c0 .6-.2 1.2-.6 1.7L4 15h16l-1.4-2.2c-.4-.5-.6-1.1-.6-1.7V8a6 6 0 00-6-6zm0 20a3 3 0 002.8-2H9.2a3 3 0 002.8 2z'/%3E%3C/svg%3E"); }
.ns-ico--cart, .ns-ico--cart-lg { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18a2 2 0 100 4 2 2 0 000-4zm10 0a2 2 0 100 4 2 2 0 000-4zM6.2 6l1.6 7h9.2l1.8-7H6.2zM1 2h3.3l.7 3H21l-2.4 9.3H6.9l-.4 1.7H19v2H5a1 1 0 01-1-1.2L5 13 3.5 4H1V2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 18a2 2 0 100 4 2 2 0 000-4zm10 0a2 2 0 100 4 2 2 0 000-4zM6.2 6l1.6 7h9.2l1.8-7H6.2zM1 2h3.3l.7 3H21l-2.4 9.3H6.9l-.4 1.7H19v2H5a1 1 0 01-1-1.2L5 13 3.5 4H1V2z'/%3E%3C/svg%3E"); }
.ns-ico--cart-lg { width: 26px; height: 26px; }
.ns-ico--bolt { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13 2L4.5 13.5H11L9.5 22 19 10h-6.5L13 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M13 2L4.5 13.5H11L9.5 22 19 10h-6.5L13 2z'/%3E%3C/svg%3E"); }
.ns-ico--tag { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 11.5V4a1 1 0 00-1-1h-7.5a1 1 0 00-.7.3l-8.5 8.5a1 1 0 000 1.4l7 7a1 1 0 001.4 0l8.5-8.5a1 1 0 00.3-.7zM17 8a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M21 11.5V4a1 1 0 00-1-1h-7.5a1 1 0 00-.7.3l-8.5 8.5a1 1 0 000 1.4l7 7a1 1 0 001.4 0l8.5-8.5a1 1 0 00.3-.7zM17 8a1.5 1.5 0 110-3 1.5 1.5 0 010 3z'/%3E%3C/svg%3E"); }
.ns-ico--grid { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 4h7v7H4V4zm9 0h7v7h-7V4zM4 13h7v7H4v-7zm9 0h7v7h-7v-7z'/%3E%3C/svg%3E"); }
.ns-ico--phone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 1h10a2 2 0 012 2v18a2 2 0 01-2 2H7a2 2 0 01-2-2V3a2 2 0 012-2zm0 3v14h10V4H7zm5 15.2a1.3 1.3 0 100 2.6 1.3 1.3 0 000-2.6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 1h10a2 2 0 012 2v18a2 2 0 01-2 2H7a2 2 0 01-2-2V3a2 2 0 012-2zm0 3v14h10V4H7zm5 15.2a1.3 1.3 0 100 2.6 1.3 1.3 0 000-2.6z'/%3E%3C/svg%3E"); }
.ns-ico--laptop { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 5a1 1 0 011-1h14a1 1 0 011 1v10H4V5zm2 1v8h12V6H6zM2 17h20v1.5a1.5 1.5 0 01-1.5 1.5h-17A1.5 1.5 0 012 18.5V17z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M4 5a1 1 0 011-1h14a1 1 0 011 1v10H4V5zm2 1v8h12V6H6zM2 17h20v1.5a1.5 1.5 0 01-1.5 1.5h-17A1.5 1.5 0 012 18.5V17z'/%3E%3C/svg%3E"); }
.ns-ico--shirt { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 2l3 2 3-2 6 3.5-2.5 4.5L17 9v13H7V9l-1.5 1L3 5.5 9 2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M9 2l3 2 3-2 6 3.5-2.5 4.5L17 9v13H7V9l-1.5 1L3 5.5 9 2z'/%3E%3C/svg%3E"); }
.ns-ico--sofa { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 10V7a3 3 0 013-3h8a3 3 0 013 3v3a3 3 0 00-2 2.8V15H7v-2.2A3 3 0 005 10zm-3 1a2 2 0 014 0v5h12v-5a2 2 0 014 0v6a2 2 0 01-2 2H4a2 2 0 01-2-2v-6z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M5 10V7a3 3 0 013-3h8a3 3 0 013 3v3a3 3 0 00-2 2.8V15H7v-2.2A3 3 0 005 10zm-3 1a2 2 0 014 0v5h12v-5a2 2 0 014 0v6a2 2 0 01-2 2H4a2 2 0 01-2-2v-6z'/%3E%3C/svg%3E"); }
.ns-ico--headphone { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3a8 8 0 00-8 8v6a3 3 0 003 3h1a1 1 0 001-1v-6a1 1 0 00-1-1H6v-1a6 6 0 1112 0v1h-2a1 1 0 00-1 1v6a1 1 0 001 1h1a3 3 0 003-3v-6a8 8 0 00-8-8z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 3a8 8 0 00-8 8v6a3 3 0 003 3h1a1 1 0 001-1v-6a1 1 0 00-1-1H6v-1a6 6 0 1112 0v1h-2a1 1 0 00-1 1v6a1 1 0 001 1h1a3 3 0 003-3v-6a8 8 0 00-8-8z'/%3E%3C/svg%3E"); }
.ns-cat__circle .ns-ico { width: 30px; height: 30px; }
.ns-ico--heart { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21s-8-4.6-8-10.2A4.8 4.8 0 0112 7a4.8 4.8 0 018 3.8C20 16.4 12 21 12 21z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M12 21s-8-4.6-8-10.2A4.8 4.8 0 0112 7a4.8 4.8 0 018 3.8C20 16.4 12 21 12 21z'/%3E%3C/svg%3E"); }
.ns-ico--bag { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 7V6a5 5 0 0110 0v1h3l1 15H3L4 7h3zm2 0h6V6a3 3 0 00-6 0v1z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 7V6a5 5 0 0110 0v1h3l1 15H3L4 7h3zm2 0h6V6a3 3 0 00-6 0v1z'/%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------- header */
.ns-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 0 12px;
}
.ns-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ns-brand__bag {
  width: 38px; height: 38px; border-radius: 10px;
  background: #16a34a;
  -webkit-mask-image: none; mask-image: none;
  position: relative;
}
.ns-brand__bag::after {
  content: ''; position: absolute; inset: 7px;
  background: #fff;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 7V6a5 5 0 0110 0v1h3l1 15H3L4 7h3zm2 0h6V6a3 3 0 00-6 0v1z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M7 7V6a5 5 0 0110 0v1h3l1 15H3L4 7h3zm2 0h6V6a3 3 0 00-6 0v1z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
}
.ns-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ns-brand__text strong { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.1; }
.ns-brand__text small { font-size: 11px; color: #6b7280; }
.ns-header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ns-iconbtn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: #111827;
}
.ns-iconbtn:active { background: #f3f4f6; }
.ns-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}

/* ---------------------------------------------------------------- search */
.ns-search {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 12px 12px; margin-bottom: 14px;
  color: #6b7280; background: #fff;
}
.ns-search input[type="search"] {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 15px; color: #111827;
}
.ns-search input::placeholder { color: #9ca3af; }
.ns-search__scan { border: 0; background: transparent; padding: 0; color: #374151; cursor: pointer; }

/* ---------------------------------------------------------------- slider */
.ns-slider { position: relative; overflow: hidden; border-radius: 16px; margin-bottom: 18px; }
.ns-slider__track { display: flex; transition: transform .35s ease; }
.ns-slide {
  position: relative; flex: 0 0 100%;
  display: flex; align-items: center; gap: 10px;
  min-height: 180px; padding: 18px;
  background: linear-gradient(135deg, #d9f3e3 0%, #eef8f1 55%, #ffffff 100%);
}
.ns-slide__text { flex: 1 1 55%; min-width: 0; }
.ns-slide__text h2 { margin: 0 0 6px; font-size: 26px; line-height: 1.25; font-weight: 800; color: #0f172a; }
.ns-slide__text h2 em { font-style: normal; color: #16a34a; }
.ns-slide__text p { margin: 0 0 14px; font-size: 14px; color: #374151; }
.ns-slide__btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: #0f2e22; color: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: 14px; font-weight: 600;
}
.ns-slide__media { flex: 0 0 40%; display: grid; place-items: center; }
.ns-slide__media img { max-height: 150px; width: auto; object-fit: contain; }
.ns-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; }
.ns-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #cbd5e1; cursor: pointer; }
.ns-dot.is-active { background: #16a34a; width: 20px; border-radius: 4px; }

/* ------------------------------------------------------------ categories */
.ns-cats {
  display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 14px;
  scrollbar-width: none;
}
.ns-cats::-webkit-scrollbar { display: none; }
.ns-cat { flex: 0 0 auto; width: 78px; text-align: center; }
.ns-cat__circle {
  width: 62px; height: 62px; margin: 0 auto 6px;
  border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  background: #eef8f1; color: #16a34a;
}
.ns-cat__circle img { width: 62px; height: 62px; object-fit: cover; }
.ns-cat__circle--1 { background: #e8f1ff; color: #2563eb; }
.ns-cat__circle--2 { background: #ffe9ef; color: #ef4444; }
.ns-cat__circle--3 { background: #fff1e0; color: #f97316; }
.ns-cat__circle--4 { background: #f3e8ff; color: #8b5cf6; }
.ns-cat__circle--all { background: #f3f4f6; color: #4b5563; }
.ns-cat__name { font-size: 12.5px; color: #374151; line-height: 1.3; display: block; }

/* ------------------------------------------------------------ flash sale */
.ns-section { margin-bottom: 22px; }
.ns-flash {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fdeef0; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px;
}
.ns-flash__title { display: flex; align-items: center; gap: 8px; color: #ef4444; }
.ns-flash__title strong { font-size: 22px; font-weight: 800; color: #111827; }
.ns-flash__title strong span { color: #ef4444; }
.ns-flash__timer { display: flex; gap: 6px; margin-left: auto; }
.ns-flash__unit {
  background: #fff; border-radius: 8px; padding: 4px 8px; min-width: 46px;
  display: grid; place-items: center; line-height: 1.1;
}
.ns-flash__unit b { font-size: 18px; color: #ef4444; font-weight: 800; }
.ns-flash__unit small { font-size: 10px; color: #6b7280; }
.ns-flash__all { color: #ef4444; font-weight: 600; font-size: 13.5px; }

.ns-heading { display: flex; align-items: center; margin-bottom: 12px; }
.ns-heading h3 { margin: 0; font-size: 19px; font-weight: 800; }
.ns-heading a { margin-left: auto; color: #16a34a; font-weight: 600; font-size: 13.5px; }

/* ----------------------------------------------------------- product grid */
.ns-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.ns-card {
  border: 1px solid #eef0f3; border-radius: 12px; padding: 10px;
  background: #fff; display: flex; flex-direction: column;
}
.ns-card__media { position: relative; margin-bottom: 8px; }
.ns-card__thumb { display: block; aspect-ratio: 1 / 1; background: #f7f8fa; border-radius: 8px; overflow: hidden; }
.ns-card__thumb img { width: 100%; height: 100%; object-fit: contain; }
.ns-card__badge {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: #ef4444; color: #fff; font-size: 12px; font-weight: 700;
  padding: 3px 8px; border-radius: 6px;
}
.ns-card__wish {
  position: absolute; top: 4px; right: 4px; z-index: 2;
  width: 30px; height: 30px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .9); color: #9ca3af;
  display: grid; place-items: center; cursor: pointer;
}
.ns-card__wish.is-active { color: #ef4444; }
.ns-card__title {
  font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-bottom: 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ns-card__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ns-card__now, .ns-card__now .amount { color: #ef4444; font-size: 16.5px; font-weight: 800; }
.ns-card__was, .ns-card__was .amount { color: #9ca3af; font-size: 13px; text-decoration: line-through; font-weight: 500; }
.ns-card__price del, .ns-card__price ins { text-decoration: none; }
.ns-card__rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ns-stars {
  position: relative; font-size: 14px; letter-spacing: 1px;
  color: #e5e7eb; line-height: 1;
}
.ns-stars::before {
  content: '★★★★★'; position: absolute; inset: 0; width: var(--ns-stars, 0%);
  overflow: hidden; color: #f5a623; white-space: nowrap;
}
.ns-card__reviews { font-size: 12px; color: #6b7280; }
.ns-card__btn {
  margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #16a34a; color: #fff; border-radius: 8px; padding: 10px 8px;
  font-size: 14px; font-weight: 600; text-align: center;
}
.ns-card__btn:active { background: #128a3e; }
.ns-card__btn.loading { opacity: .7; }
.ns-card__btn.added::after { content: ' ✓'; }

.ns-empty { text-align: center; color: #6b7280; padding: 30px 0; }

/* ---------------------------------------------------------------- footer */
.ns-footer { border-top: 1px solid #eef0f3; padding-top: 16px; text-align: center; color: #6b7280; }
.ns-footer nav { display: flex; justify-content: center; gap: 18px; margin-bottom: 8px; }
.ns-footer nav a { color: #374151; font-size: 14px; font-weight: 600; }
.ns-footer p { margin: 0; font-size: 12.5px; }

/* Phones: the six category circles and the whole Flash Sale bar each fit one row. */
@media (max-width: 480px) {
  /* Six circles in one row: the long labels wrap inside their own column. */
  .ns-cats { gap: 2px; padding: 4px 0 12px; }
  .ns-cat { width: 58px; overflow: hidden; }
  .ns-cat__circle, .ns-cat__circle img { width: 50px; height: 50px; }
  .ns-cat__circle .ns-ico { width: 24px; height: 24px; }
  .ns-cat__name { font-size: 9.5px; line-height: 1.2; overflow-wrap: anywhere; }

  .ns-flash { flex-wrap: nowrap; gap: 6px; padding: 10px; }
  .ns-flash__title { gap: 5px; min-width: 0; }
  .ns-flash__title strong { font-size: 17px; }
  .ns-flash__title .ns-ico { width: 18px; height: 18px; }
  .ns-flash__timer { gap: 4px; }
  .ns-flash__unit { min-width: 34px; padding: 3px 4px; }
  .ns-flash__unit b { font-size: 15px; }
  .ns-flash__unit small { font-size: 9px; }
  .ns-flash__all { font-size: 11.5px; white-space: nowrap; }
}

/* Keeps the slide button on one line on small phones. */
@media (max-width: 420px) {
  .ns-slide { min-height: 168px; padding: 16px; }
  .ns-slide__text h2 { font-size: 23px; }
  .ns-slide__btn { padding: 9px 14px; font-size: 13px; gap: 6px; }
}

/* --------------------------------------------------------------- desktop */
@media (min-width: 768px) {
  .ns-wrap { padding: 16px 24px 40px; }
  .ns-slide { min-height: 300px; padding: 34px; }
  .ns-slide__text h2 { font-size: 40px; }
  .ns-slide__media img { max-height: 250px; }
  .ns-cat { width: 96px; }
  .ns-cat__circle, .ns-cat__circle img { width: 74px; height: 74px; }
}

@media (min-width: 1024px) {
  .ns-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1400px) {
  .ns-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

/* Woodmart's own header/footer are not used on this template. */
.ns-body .whb-header, .ns-body .website-wrapper > .wd-page-title, .ns-body .wd-footer { display: none; }

/* ------------------------------------------------------------------------
   Overrides: the Woodmart/WooCommerce stylesheets style every button and
   link on the page, so these repeat the design values with more weight.
   ------------------------------------------------------------------------ */
.ns-body .ns-dot,
.ns-body .ns-search__scan,
.ns-body .ns-card__wish {
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  font: inherit;
  line-height: 1;
  min-height: 0;
}
.ns-body .ns-dots .ns-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #cbd5e1;
}
.ns-body .ns-dots .ns-dot.is-active {
  width: 20px;
  border-radius: 4px;
  background: #16a34a;
}
.ns-body .ns-search__scan { width: 24px; height: 24px; background: transparent; color: #374151; }
.ns-body .ns-card__wish { width: 30px; height: 30px; background: rgba(255, 255, 255, .9); color: #9ca3af; padding: 0; }
.ns-body .ns-card__wish > a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: inherit;
  border-radius: 50%;
  /* The wishlist script writes "Add/Remove from wishlist" into the link. */
  font-size: 0;
  line-height: 0;
  overflow: hidden;
  white-space: nowrap;
}
.ns-body .ns-card__wish > a.added,
.ns-body .ns-card__wish.is-active { color: #ef4444; }
.ns-body .ns-card__wish .wd-action-text,
.ns-body .ns-card__wish .wd-action-icon { display: none; }

.ns-body .ns-slide__btn,
.ns-body .ns-slide__btn:hover,
.ns-body .ns-slide__btn:focus,
.ns-body .ns-card__btn,
.ns-body .ns-card__btn:hover,
.ns-body .ns-card__btn:focus {
  color: #fff;
  text-decoration: none;
  box-shadow: none;
}
.ns-body .ns-slide__btn:hover { background: #16311f; }
.ns-body .ns-card__btn:hover { background: #128a3e; }

/* Buttons sit on the card's bottom edge, so cards in a row line up. */
.ns-body .ns-card__btn { margin-top: auto; }
.ns-body .ns-card__price { margin-top: 2px; }

/* The theme adds its own margins to headings and paragraphs. */
.ns-body .ns-slide__text h2 { margin: 0 0 6px; }
.ns-body .ns-slide__text p { margin: 0 0 14px; }
.ns-body .ns-heading h3 { margin: 0; }
