/*
Theme Name: Northway Commerce
Theme URI: https://example.com/northway-commerce
Author: Codex
Author URI: https://openai.com/
Description: A clean, responsive WooCommerce storefront inspired by modern marketplace layouts.
Version: 2.1.1
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: northway-commerce
Tags: e-commerce, custom-logo, custom-menu, featured-images, full-width-template, threaded-comments, translation-ready
*/

:root {
  --nw-accent: #ef4b3f;
  --nw-accent-dark: #d83d33;
  --nw-ink: #17191c;
  --nw-muted: #666c75;
  --nw-line: #e5e7eb;
  --nw-surface: #ffffff;
  --nw-soft: #f5f6f7;
  --nw-highlight: #f5c84c;
  --nw-success: #16794a;
  --nw-container: 1280px;
  --nw-radius: 6px;
  --nw-shadow: 0 12px 35px rgba(22, 28, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--nw-ink);
  background: var(--nw-surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: var(--nw-accent);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  top: 8px;
  left: 8px;
  z-index: 100000;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #000;
  box-shadow: var(--nw-shadow);
}

.nw-container {
  width: min(calc(100% - 32px), var(--nw-container));
  margin-inline: auto;
}

.nw-main {
  min-height: 50vh;
}

/* Header */
.nw-topbar {
  background: #202225;
  color: #fff;
  font-size: 13px;
}

.nw-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nw-topbar p {
  margin: 0;
}

.nw-topbar__links {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nw-topbar a {
  color: #fff;
  opacity: 0.88;
}

.nw-topbar a:hover {
  opacity: 1;
  color: var(--nw-highlight);
}

.nw-header {
  background: #fff;
  border-bottom: 1px solid var(--nw-line);
}

.nw-header__main {
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(180px, 260px) 1fr auto;
  gap: 30px;
  align-items: center;
}

.nw-brand {
  min-width: 0;
}

.nw-brand .custom-logo {
  max-height: 52px;
  width: auto;
}

.nw-brand__name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--nw-ink);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.1;
}

.nw-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 4px;
  background: var(--nw-accent);
  position: relative;
  flex: 0 0 auto;
}

.nw-brand__mark::before,
.nw-brand__mark::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 3px;
}

.nw-brand__mark::before {
  width: 18px;
  height: 4px;
  left: 8px;
  top: 10px;
}

.nw-brand__mark::after {
  width: 11px;
  height: 4px;
  left: 8px;
  top: 20px;
}

.nw-search {
  position: relative;
}

.nw-search--centered {
  max-width: 620px;
  margin: 24px auto;
}

.nw-search form {
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid var(--nw-accent);
  border-radius: var(--nw-radius);
  overflow: hidden;
  background: #fff;
}

.nw-search input[type="search"] {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  border: 0;
  outline: 0;
  background: transparent;
}

.nw-search button {
  min-width: 52px;
  border: 0;
  background: var(--nw-accent);
  color: #fff;
}

.nw-search button:hover {
  background: var(--nw-accent-dark);
}

.nw-header__actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nw-action {
  min-width: 62px;
  height: 56px;
  padding: 4px 8px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: var(--nw-ink);
  border-radius: 4px;
  position: relative;
}

.nw-action:hover {
  background: var(--nw-soft);
  color: var(--nw-accent);
}

.nw-action .dashicons {
  width: 24px;
  height: 24px;
  font-size: 24px;
}

.nw-action__label {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.nw-cart-count {
  position: absolute;
  top: 2px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--nw-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.nw-mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--nw-line);
  border-radius: 4px;
  background: #fff;
  color: var(--nw-ink);
}

.nw-mobile-toggle .dashicons {
  font-size: 25px;
  width: 25px;
  height: 25px;
}

.nw-nav {
  background: #fff;
  border-bottom: 1px solid var(--nw-line);
}

.nw-nav__inner {
  min-height: 53px;
  display: flex;
  align-items: stretch;
  gap: 26px;
}

.nw-category-toggle {
  width: 246px;
  border: 0;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--nw-accent);
  color: #fff;
  font-weight: 700;
  text-align: left;
}

.nw-category-toggle .dashicons {
  margin-left: auto;
}

.nw-primary-menu {
  flex: 1;
  display: flex;
  align-items: center;
  min-width: 0;
}

.nw-primary-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-primary-menu>div>ul,
.nw-primary-menu>ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 30px;
}

.nw-primary-menu li {
  position: relative;
}

.nw-primary-menu a {
  display: flex;
  align-items: center;
  min-height: 52px;
  font-size: 14px;
  font-weight: 700;
}

.nw-primary-menu .current-menu-item>a {
  color: var(--nw-accent);
}

.nw-primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 50;
  display: none;
  min-width: 210px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--nw-line);
  box-shadow: var(--nw-shadow);
}

.nw-primary-menu li:hover>.sub-menu,
.nw-primary-menu li:focus-within>.sub-menu {
  display: block;
}

.nw-primary-menu .sub-menu a {
  min-height: 38px;
  padding: 0 15px;
  font-weight: 600;
}

.nw-nav__deal {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--nw-accent);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

/* Front page */
.nw-hero {
  background: var(--nw-soft);
  border-bottom: 1px solid var(--nw-line);
}

.nw-hero__layout {
  display: grid;
  grid-template-columns: 246px minmax(0, 1fr) 300px;
  min-height: 460px;
}

.nw-category-panel {
  margin: 0;
  padding: 13px 0;
  list-style: none;
  background: #fff;
  border-inline: 1px solid var(--nw-line);
}

.nw-category-panel li {
  margin: 0;
}

.nw-category-panel a {
  min-height: 43px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

.nw-category-panel a::after {
  content: "\203A";
  color: #a2a6ad;
  font-size: 20px;
  line-height: 1;
}

.nw-category-panel a:hover {
  background: #fff6f4;
}

.nw-hero__feature {
  position: relative;
  min-height: 460px;
  padding: clamp(42px, 6vw, 78px);
  overflow: hidden;
  display: flex;
  align-items: center;
  isolation: isolate;
  background: #e7eff0;
}

.nw-hero__feature::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--nw-hero-image);
  background-size: cover;
  background-position: center;
}

.nw-hero__feature::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(236, 244, 244, 0.98) 0%, rgba(236, 244, 244, 0.78) 49%, rgba(236, 244, 244, 0.06) 100%);
}

.nw-hero__visual {
  position: absolute;
  right: -55px;
  bottom: -90px;
  z-index: -1;
  width: 360px;
  aspect-ratio: 1;
  border: 42px solid rgba(239, 75, 63, 0.11);
  border-radius: 50%;
  box-shadow: inset 0 0 0 45px rgba(255, 255, 255, 0.45);
}

.nw-hero__content {
  max-width: 520px;
}

.nw-eyebrow {
  margin: 0 0 13px;
  color: var(--nw-accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nw-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.05;
  letter-spacing: 0;
}

.nw-hero__copy {
  max-width: 530px;
  margin: 0 0 27px;
  color: #4c525a;
  font-size: 17px;
}

.nw-button,
button.button,
a.button,
.wp-element-button,
input[type="submit"] {
  min-height: 44px;
  padding: 11px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--nw-accent);
  border-radius: 4px;
  background: var(--nw-accent);
  color: #fff;
  font-weight: 750;
  line-height: 1.2;
}

.nw-button:hover,
button.button:hover,
a.button:hover,
.wp-element-button:hover,
input[type="submit"]:hover {
  border-color: var(--nw-accent-dark);
  background: var(--nw-accent-dark);
  color: #fff;
}

.nw-button--dark {
  border-color: var(--nw-ink);
  background: var(--nw-ink);
}

.nw-hero__side {
  padding: 16px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  background: var(--nw-soft);
}

.nw-mini-promo {
  min-height: 190px;
  padding: 26px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  background: #f3dfcf;
}

.nw-mini-promo:nth-child(2) {
  background: #d9e8e4;
}

.nw-mini-promo::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  right: -48px;
  bottom: -55px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  box-shadow: 0 0 0 24px rgba(255, 255, 255, .2);
}

.nw-mini-promo span {
  color: var(--nw-accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.nw-mini-promo strong {
  max-width: 170px;
  margin: 5px 0 13px;
  font-size: 22px;
  line-height: 1.2;
}

.nw-mini-promo a {
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.nw-benefits {
  border-bottom: 1px solid var(--nw-line);
}

.nw-benefits__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.nw-benefit {
  min-height: 96px;
  padding: 20px 28px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-right: 1px solid var(--nw-line);
}

.nw-benefit:first-child {
  border-left: 1px solid var(--nw-line);
}

.nw-benefit .dashicons {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  color: var(--nw-accent);
  font-size: 34px;
}

.nw-benefit strong {
  display: block;
  font-size: 14px;
}

.nw-benefit span {
  display: block;
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-section {
  padding: 66px 0;
}

.nw-section--soft {
  background: var(--nw-soft);
}

.nw-section__head {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.nw-section__head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.nw-section__head p {
  margin: 7px 0 0;
  color: var(--nw-muted);
}

.nw-section__link {
  flex: 0 0 auto;
  border-bottom: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.nw-category-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
}

.nw-category-card {
  min-width: 0;
  text-align: center;
}

.nw-category-card__media {
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #edf0f1;
  border: 1px solid var(--nw-line);
  border-radius: 50%;
}

.nw-category-card:nth-child(2n) .nw-category-card__media {
  background: #f5e7df;
}

.nw-category-card:nth-child(3n) .nw-category-card__media {
  background: #e1eeea;
}

.nw-category-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.nw-category-card:hover img {
  transform: scale(1.06);
}

.nw-category-card__media .dashicons {
  width: 42px;
  height: 42px;
  color: #7a838c;
  font-size: 42px;
}

.nw-category-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
}

.nw-category-card small {
  color: var(--nw-muted);
  font-size: 12px;
}

.nw-offer {
  overflow: hidden;
  background: #253238;
  color: #fff;
}

.nw-offer__inner {
  min-height: 230px;
  padding: 42px clamp(28px, 6vw, 80px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
}

.nw-offer__inner::before {
  content: "";
  width: 310px;
  height: 310px;
  position: absolute;
  right: 8%;
  top: -145px;
  border: 55px solid rgba(245, 200, 76, .12);
  border-radius: 50%;
}

.nw-offer__copy {
  position: relative;
  max-width: 650px;
}

.nw-offer__copy span {
  color: var(--nw-highlight);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.nw-offer h2 {
  margin: 7px 0 8px;
  color: #fff;
  font-size: clamp(28px, 4vw, 43px);
  line-height: 1.1;
}

.nw-offer p {
  margin: 0;
  color: #d9dde0;
}

.nw-offer .nw-button {
  position: relative;
  flex: 0 0 auto;
  border-color: var(--nw-highlight);
  background: var(--nw-highlight);
  color: #202225;
}

/* WooCommerce product grids */
.woocommerce ul.products,
.woocommerce-page ul.products,
.nw-products {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
  display: none;
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
  position: relative;
  min-width: 0;
  padding: 0 0 16px;
  /* background: #fff; */
  /* border: 1px solid var(--nw-line); */
  border-radius: var(--nw-radius);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--nw-shadow);
}

.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1;
  margin: 0 0 16px;
  object-fit: cover;
  /* background: var(--nw-soft); */
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: 0;
  padding: 0 16px 6px;
  color: var(--nw-ink);
  font-size: 15px;
  line-height: 1.45;
}

.woocommerce ul.products li.product .star-rating {
  margin: 0 16px 8px;
  color: #e2a62b;
  font-size: 12px;
}

.woocommerce ul.products li.product .price {
  margin: 0;
  padding: 0 16px;
  color: var(--nw-accent);
  font-size: 16px;
  font-weight: 800;
}

.woocommerce ul.products li.product .price del {
  color: var(--nw-muted);
  font-size: 12px;
  opacity: .75;
}

.woocommerce ul.products li.product .button {
  width: calc(100% - 32px);
  margin: 14px 16px 0;
  font-size: 13px;
}

.woocommerce span.onsale {
  top: 12px;
  left: 12px;
  right: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 5px 9px;
  border-radius: 3px;
  background: var(--nw-accent);
  font-size: 11px;
  line-height: 1.2;
}

.woocommerce .woocommerce-result-count {
  color: var(--nw-muted);
}

.woocommerce .woocommerce-ordering select {
  min-height: 42px;
  padding: 0 38px 0 12px;
  border: 1px solid var(--nw-line);
  background: #fff;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0;
}

.woocommerce nav.woocommerce-pagination ul li {
  border: 0;
  margin: 0 3px;
}

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nw-line);
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  border-color: var(--nw-accent);
  background: var(--nw-accent);
  color: #fff;
}

/* Content */
.nw-page-header {
  padding: 50px 0;
  background: var(--nw-soft);
  border-bottom: 1px solid var(--nw-line);
}

.nw-page-header h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
}

.nw-breadcrumb {
  margin-top: 8px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-breadcrumb a {
  color: var(--nw-accent);
}

.nw-content-wrap {
  padding: 60px 0;
}

.nw-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 48px;
}

.nw-content-layout--full {
  grid-template-columns: 1fr;
}

.nw-entry {
  margin-bottom: 40px;
}

.nw-entry__thumb {
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: var(--nw-radius);
}

.nw-entry__thumb img {
  width: 100%;
  max-height: 540px;
  object-fit: cover;
}

.nw-entry__title {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 38px);
  line-height: 1.2;
}

.nw-entry__meta {
  margin-bottom: 18px;
  color: var(--nw-muted);
  font-size: 13px;
}

.nw-entry__content> :first-child {
  margin-top: 0;
}

.nw-entry__content> :last-child {
  margin-bottom: 0;
}

.nw-entry__content a {
  color: var(--nw-accent);
  text-decoration: underline;
}

.nw-entry__content blockquote {
  margin: 30px 0;
  padding: 18px 25px;
  border-left: 4px solid var(--nw-accent);
  background: var(--nw-soft);
  font-size: 18px;
}

.nw-entry__content table {
  width: 100%;
  border-collapse: collapse;
}

.nw-entry__content th,
.nw-entry__content td {
  padding: 10px;
  border: 1px solid var(--nw-line);
  text-align: left;
}

.nw-read-more {
  margin-top: 18px;
}

.nw-sidebar .widget {
  margin: 0 0 30px;
  padding: 24px;
  border: 1px solid var(--nw-line);
}

.nw-sidebar .widget-title {
  margin: 0 0 16px;
  font-size: 18px;
}

.nw-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid var(--nw-line);
}

.nw-sidebar li:last-child {
  border-bottom: 0;
}

.nw-sidebar input[type="search"] {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--nw-line);
}

.navigation.pagination {
  margin-top: 40px;
}

.nav-links {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.page-numbers {
  min-width: 40px;
  min-height: 40px;
  padding: 7px 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--nw-line);
}

.page-numbers.current {
  border-color: var(--nw-accent);
  background: var(--nw-accent);
  color: #fff;
}

.nw-empty {
  padding: 70px 20px;
  text-align: center;
  background: var(--nw-soft);
}

.nw-empty .dashicons {
  width: 54px;
  height: 54px;
  margin-bottom: 12px;
  color: var(--nw-muted);
  font-size: 54px;
}

.nw-empty h2 {
  margin: 0 0 8px;
}

/* Single product */
.woocommerce div.product {
  padding-top: 12px;
}

.woocommerce div.product div.images img {
  background: var(--nw-soft);
}

.woocommerce div.product .product_title {
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.12;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--nw-accent);
  font-size: 25px;
  font-weight: 800;
}

.woocommerce div.product form.cart .quantity .qty {
  min-height: 44px;
  border: 1px solid var(--nw-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding-left: 0;
  border-bottom: 1px solid var(--nw-line);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  margin: 0 4px 0 0;
  border: 0;
  border-radius: 0;
  background: var(--nw-soft);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  background: var(--nw-accent);
  color: #fff;
}

.woocommerce-message,
.woocommerce-info {
  border-top-color: var(--nw-accent);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--nw-accent);
}

/* Forms and comments */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
  max-width: 100%;
  padding: 10px 12px;
  border: 1px solid #cfd3d8;
  border-radius: 3px;
  background: #fff;
}

textarea {
  width: 100%;
}

.comment-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comment-body {
  margin-bottom: 20px;
  padding: 22px;
  background: var(--nw-soft);
}

.comment-meta {
  font-size: 13px;
}

/* Footer */
.nw-newsletter {
  background: var(--nw-accent);
  color: #fff;
}

.nw-newsletter__inner {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
}

.nw-newsletter h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 26px;
}

.nw-newsletter p {
  margin: 0;
  opacity: .88;
}

.nw-newsletter form {
  flex: 0 1 480px;
  display: grid;
  grid-template-columns: 1fr auto;
}

.nw-newsletter input[type="email"] {
  min-width: 0;
  height: 48px;
  padding: 0 15px;
  border: 0;
  border-radius: 4px 0 0 4px;
}

.nw-newsletter button {
  height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--nw-ink);
  color: #fff;
  font-weight: 800;
}

.nw-footer {
  background: #202225;
  color: #c8ccd1;
}

.nw-footer__grid {
  padding: 58px 0 44px;
  display: grid;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 45px;
}

.nw-footer__brand {
  max-width: 360px;
}

.nw-footer__brand .nw-brand__name {
  color: #fff;
}

.nw-footer__brand p {
  margin: 18px 0 0;
}

.nw-footer h2,
.nw-footer .widget-title {
  margin: 0 0 18px;
  color: #fff;
  font-size: 16px;
}

.nw-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nw-footer li {
  margin-bottom: 9px;
}

.nw-footer a {
  color: #c8ccd1;
}

.nw-footer a:hover {
  color: #fff;
}

.nw-footer__bottom {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid #383b3f;
  font-size: 13px;
}

.nw-footer__bottom p {
  margin: 0;
}

/* WordPress alignment */
.alignwide {
  width: min(110%, var(--nw-container));
  max-width: min(110%, var(--nw-container));
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption {
  max-width: 100%;
}

.wp-caption-text,
.gallery-caption {
  color: var(--nw-muted);
  font-size: 13px;
}

.sticky {
  position: relative;
}

.bypostauthor {
  display: block;
}

@media (max-width: 1100px) {
  .nw-header__main {
    grid-template-columns: 210px 1fr auto;
    gap: 18px;
  }

  .nw-hero__layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .nw-hero__side {
    display: none;
  }

  .nw-category-toggle {
    width: 220px;
  }

  .nw-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nw-benefits__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .nw-benefit:nth-child(3) {
    border-left: 1px solid var(--nw-line);
    border-top: 1px solid var(--nw-line);
  }

  .nw-benefit:nth-child(4) {
    border-top: 1px solid var(--nw-line);
  }

  .nw-footer__grid {
    grid-template-columns: 1.25fr repeat(2, 1fr);
  }

  .nw-footer__grid> :last-child {
    display: none;
  }
}

@media (max-width: 820px) {
  .nw-topbar__links {
    display: none;
  }

  .nw-topbar__inner {
    justify-content: center;
    text-align: center;
  }

  .nw-header__main {
    min-height: 74px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
  }

  .nw-brand__name {
    font-size: 22px;
  }

  .nw-brand__mark {
    width: 30px;
    height: 30px;
  }

  .nw-header .nw-search {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 0 0 14px;
  }

  .nw-action--account {
    display: none;
  }

  .nw-mobile-toggle {
    display: grid;
    place-items: center;
  }

  .nw-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999;
    padding: 90px 24px 30px;
    overflow-y: auto;
    background: #fff;
  }

  .menu-open .nw-nav {
    display: block;
  }

  .nw-nav__inner {
    width: 100%;
    min-height: 0;
    display: block;
  }

  .nw-category-toggle,
  .nw-nav__deal {
    display: none;
  }

  .nw-primary-menu>div>ul,
  .nw-primary-menu>ul {
    display: block;
  }

  .nw-primary-menu a {
    min-height: 48px;
    border-bottom: 1px solid var(--nw-line);
  }

  .nw-primary-menu .sub-menu {
    position: static;
    display: block;
    padding: 0 0 0 15px;
    border: 0;
    box-shadow: none;
  }

  .nw-hero__layout {
    display: block;
    min-height: 0;
  }

  .nw-category-panel {
    display: none;
  }

  .nw-hero__feature {
    min-height: 500px;
    padding: 48px 28px 76px;
    align-items: flex-end;
  }

  .nw-hero__feature::after {
    background: linear-gradient(0deg, rgba(236, 244, 244, 1) 0%, rgba(236, 244, 244, .75) 55%, rgba(236, 244, 244, .1) 100%);
  }

  .nw-hero h1 {
    font-size: clamp(37px, 11vw, 56px);
  }

  .nw-category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce ul.products,
  .woocommerce-page ul.products,
  .nw-products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .nw-content-layout {
    grid-template-columns: 1fr;
  }

  .nw-sidebar {
    border-top: 1px solid var(--nw-line);
    padding-top: 35px;
  }

  .nw-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .nw-footer__brand {
    grid-column: 1 / -1;
  }

  .nw-newsletter__inner {
    padding-block: 35px;
    display: block;
  }

  .nw-newsletter form {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  .nw-container {
    width: min(calc(100% - 24px), var(--nw-container));
  }

  .nw-brand .custom-logo {
    max-width: 165px;
    max-height: 42px;
  }

  .nw-action {
    min-width: 50px;
    padding-inline: 4px;
  }

  .nw-action__label {
    display: none;
  }

  .nw-cart-count {
    top: 5px;
    right: 2px;
  }

  .nw-benefits__grid {
    grid-template-columns: 1fr;
  }

  .nw-benefit,
  .nw-benefit:nth-child(3),
  .nw-benefit:nth-child(4) {
    border: 0;
    border-bottom: 1px solid var(--nw-line);
  }

  .nw-section {
    padding: 48px 0;
  }

  .nw-section__head {
    align-items: start;
  }

  .nw-section__head h2 {
    font-size: 24px;
  }

  .nw-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding-inline: 11px;
  }

  .woocommerce ul.products li.product .price {
    padding-inline: 11px;
  }

  .woocommerce ul.products li.product .button {
    width: calc(100% - 22px);
    margin-inline: 11px;
    padding-inline: 8px;
  }

  .nw-offer__inner {
    padding: 38px 24px;
    display: block;
  }

  .nw-offer .nw-button {
    margin-top: 24px;
  }

  .nw-page-header {
    padding: 35px 0;
  }

  .nw-content-wrap {
    padding: 42px 0;
  }

  .nw-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .nw-footer__brand {
    grid-column: auto;
  }

  .nw-footer__bottom {
    padding-block: 20px;
    display: block;
    text-align: center;
  }

  .nw-footer__bottom p+p {
    margin-top: 6px;
  }

  .nw-newsletter form {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nw-newsletter input[type="email"],
  .nw-newsletter button {
    width: 100%;
    border-radius: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}