:root {
  --np-brown: #3a1708;
  --np-brown-soft: #54250c;
  --np-gold: #d99a22;
  --np-gold-light: #f0c66b;
  --np-ivory: #fff9ec;
  --np-cream: #f5ead4;
  --np-green: #275333;
  --np-ink: #241a14;
  --np-muted: #6f6258;
  --np-border: #e5d8c8;
  --np-radius-sm: 0.5rem;
  --np-radius-md: 1rem;
  --np-shadow: 0 0.75rem 2.5rem rgb(58 23 8 / 10%);
  --np-content: 75rem;
}

body {
  color: var(--np-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

h1,
h2,
h3,
.np-display {
  color: var(--np-brown);
  font-family: Georgia, "Times New Roman", serif;
  text-wrap: balance;
}

.np-brand-logo {
  display: block;
  width: clamp(4.5rem, 9vw, 7rem);
  height: auto;
}

:focus-visible {
  outline: 0.1875rem solid var(--np-gold);
  outline-offset: 0.1875rem;
}

.np-section {
  padding-block: clamp(2.5rem, 6vw, 5.5rem);
}

.np-eyebrow {
  margin-block: 0 0.75rem;
  color: var(--np-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.np-hero {
  overflow: hidden;
  max-width: none;
  padding-inline: max(1.25rem, calc((100vw - var(--np-content)) / 2));
  background: linear-gradient(120deg, var(--np-ivory), #f0d7a7);
}

.np-hero__columns {
  max-width: var(--np-content);
  margin: 0 auto;
}

.np-hero__title {
  max-width: 14ch;
  margin-block: 0 1rem;
  font-size: clamp(2.35rem, 6vw, 5.25rem);
  line-height: 0.98;
}

.np-hero__copy {
  max-width: 38rem;
  color: var(--np-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.np-actions {
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.np-button .wp-block-button__link {
  min-height: 2.75rem;
  padding: 0.8rem 1.25rem;
  border: 0.125rem solid var(--np-brown);
  border-radius: 999px;
  font-weight: 750;
}

.np-button--primary .wp-block-button__link {
  color: #fff;
  background: var(--np-brown);
}

.np-button--secondary .wp-block-button__link {
  color: var(--np-brown);
  background: transparent;
}

.np-hero__logo {
  max-width: 32rem;
  margin-inline: auto;
}

.np-hero__logo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
}

.np-trust {
  padding: 1rem max(1.25rem, calc((100vw - var(--np-content)) / 2));
  color: #fff;
  background: var(--np-brown);
}

.np-trust__grid {
  max-width: var(--np-content);
  margin: 0 auto;
}

.np-trust__item {
  padding: 0.4rem 1rem;
  text-align: center;
}

.np-trust__item p {
  margin: 0;
}

.np-categories,
.np-quality {
  max-width: var(--np-content);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

.np-section__title {
  margin-block: 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.np-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.875rem;
}

.np-category-card {
  display: flex;
  min-height: 10rem;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, #d6aa63, var(--np-brown-soft));
  border-radius: var(--np-radius-md);
  box-shadow: var(--np-shadow);
  text-decoration: none;
}

.np-category-card__name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 700;
}

.np-category-card__action {
  font-size: 1.5rem;
}

.np-quality {
  margin-block: 2rem;
  background: var(--np-cream);
  border-radius: var(--np-radius-md);
}

@media (min-width: 48rem) {
  .np-hero__columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
  }

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

  .np-category-card {
    min-height: 15rem;
  }
}

/*
 * Defer rendering work for lower-page sections while keeping the hero and
 * reassurance strip immediately available for first paint.
 */
.np-categories,
.np-quality {
  content-visibility: auto;
  contain-intrinsic-size: auto 50rem;
}

.home .entry-header,
.site-header .ast-site-title-wrap {
  display: none !important;
}

/* Keep keyboard focus visible across Astra, WooCommerce and custom controls. */
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 0.1875rem solid var(--np-gold);
  outline-offset: 0.1875rem;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }

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

.site-header {
  position: relative;
  z-index: 100;
  color: var(--np-ink);
  background: rgb(255 255 255 / 96%);
  border-bottom: 0.0625rem solid var(--np-border);
}

.site-header .site-branding img,
.site-header .custom-logo {
  width: clamp(4.25rem, 8vw, 6.5rem);
  max-height: 6.5rem;
  object-fit: contain;
}

.site-header .main-header-menu > .menu-item > .menu-link {
  min-height: 2.75rem;
  color: var(--np-ink);
  font-weight: 700;
}

.site-header .main-header-menu > .current-menu-item > .menu-link,
.site-header .main-header-menu > .menu-item > .menu-link:hover {
  color: var(--np-brown);
}

.site-header button,
.site-header .ast-header-search,
.site-header .ast-site-header-cart,
.site-header .ast-header-account-wrap {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

.site-footer {
  margin-top: clamp(3rem, 7vw, 6rem);
  color: var(--np-cream);
  background: var(--np-brown);
}

.site-footer .site-below-footer-wrap {
  color: var(--np-cream);
  background: var(--np-brown);
}

.site-footer a {
  color: var(--np-cream);
  text-decoration-thickness: 0.0625rem;
  text-underline-offset: 0.2em;
}

.site-footer a:hover {
  color: var(--np-gold-light);
}

.site-footer h2,
.site-footer h3,
.site-footer h4,
.site-footer .widget-title {
  color: #fff;
}

.site-footer .ast-footer-copyright,
.site-footer .ast-footer-copyright p {
  color: var(--np-cream);
}

.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce {
  max-width: var(--np-content);
  margin-inline: auto;
  padding: clamp(1.25rem, 4vw, 3rem);
}

.woocommerce-cart table.shop_table,
.woocommerce-checkout table.shop_table,
.woocommerce-account .woocommerce-MyAccount-content,
.wc-block-cart,
.wc-block-checkout {
  overflow: hidden;
  background: #fff;
  border: 0.0625rem solid var(--np-border);
  border-radius: var(--np-radius-md);
  box-shadow: var(--np-shadow);
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
  padding: 0.85rem;
  border-color: var(--np-border);
}

.woocommerce-cart .cart_totals,
.woocommerce-checkout #order_review,
.woocommerce-checkout .woocommerce-checkout-review-order,
.wc-block-components-totals-wrapper,
.wc-block-checkout__order-notes {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: var(--np-ivory);
  border: 0.0625rem solid var(--np-border);
  border-radius: var(--np-radius-md);
}

.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce-checkout #place_order,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  color: #fff;
  background: var(--np-brown);
  border: 0.125rem solid var(--np-brown);
  border-radius: 999px;
  font-weight: 800;
}

.woocommerce-checkout .form-row,
.woocommerce-account .form-row {
  margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label,
.woocommerce-account .form-row label,
.wc-block-components-text-input label {
  color: var(--np-ink);
  font-weight: 700;
}

.woocommerce-checkout input.input-text,
.woocommerce-checkout textarea,
.woocommerce-checkout select,
.woocommerce-account input.input-text,
.woocommerce-account textarea,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input {
  min-height: 2.75rem;
  color: var(--np-ink);
  background: #fff;
  border: 0.0625rem solid #9d8e82;
  border-radius: var(--np-radius-sm);
}

.woocommerce-checkout .woocommerce-invalid input.input-text,
.woocommerce-checkout .woocommerce-invalid select,
.woocommerce-checkout .woocommerce-invalid textarea,
.wc-block-components-validation-error input {
  border-color: #a52212;
  box-shadow: 0 0 0 0.125rem rgb(165 34 18 / 15%);
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  max-width: var(--np-content);
  margin: 1rem auto;
  padding: 1rem 1rem 1rem 3rem;
  color: var(--np-ink);
  background: var(--np-ivory);
  border: 0.0625rem solid var(--np-border);
  border-top: 0.25rem solid var(--np-gold);
  border-radius: var(--np-radius-sm);
}

.woocommerce-error {
  background: #fff2ef;
  border-top-color: #a52212;
}

.woocommerce-message {
  background: #eff8f0;
  border-top-color: var(--np-green);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  padding: 0.65rem 1rem;
  color: var(--np-brown);
  border: 0.0625rem solid var(--np-border);
  border-radius: 999px;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  color: #fff;
  background: var(--np-brown);
  border-color: var(--np-brown);
}

.woocommerce .required {
  color: #a52212;
  text-decoration: none;
}

.woocommerce form .show-password-input {
  min-width: 2.75rem;
  min-height: 2.75rem;
}

@media (min-width: 57rem) {
  .site-header {
    position: sticky;
    top: 0;
    backdrop-filter: blur(0.75rem);
  }

  .woocommerce-checkout form.checkout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(22rem, 0.85fr);
    gap: 2rem;
  }

  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review {
    grid-column: 2;
  }
}

@media (max-width: 56.999rem) {
  .site-header .ast-builder-grid-row {
    min-height: 4.5rem;
  }

  .woocommerce-cart table.shop_table_responsive tr td,
  .woocommerce-cart table.shop_table_responsive tr th {
    min-height: 2.75rem;
  }
}

@media (max-width: 47.999rem) {
  .np-hero__visual {
    max-width: 18rem;
    margin-inline: auto;
  }

  .np-trust__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .np-trust__item {
    min-width: 75%;
    scroll-snap-align: center;
  }
}

.woocommerce ul.products {
  gap: clamp(0.875rem, 2.5vw, 1.5rem);
}

.woocommerce ul.products li.product {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(0.75rem, 2vw, 1rem);
  overflow: hidden;
  background: #fff;
  border: 0.0625rem solid var(--np-border);
  border-radius: var(--np-radius-md);
  box-shadow: 0 0.4rem 1.5rem rgb(58 23 8 / 7%);
}

.woocommerce ul.products li.product a {
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  overflow: hidden;
  border-radius: calc(var(--np-radius-md) - 0.25rem);
}

.woocommerce ul.products li.product img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin: 0;
  object-fit: cover;
  background: var(--np-ivory);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin-block: 0.9rem 0.35rem;
  color: var(--np-brown);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.25;
}

.woocommerce ul.products li.product .price {
  margin-block: auto 0.75rem;
  color: var(--np-brown);
  font-size: 1rem;
  font-weight: 750;
}

.woocommerce ul.products li.product .price del {
  color: var(--np-muted);
  font-weight: 500;
  opacity: 0.78;
}

.woocommerce ul.products li.product .price ins {
  color: var(--np-green);
  text-decoration: none;
}

.woocommerce ul.products li.product .button,
.single-product .summary .single_add_to_cart_button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--np-brown);
  border: 0.125rem solid var(--np-brown);
  border-radius: 999px;
  font-weight: 750;
  line-height: 1.1;
}

.woocommerce ul.products li.product .button:hover,
.single-product .summary .single_add_to_cart_button:hover {
  color: var(--np-brown);
  background: var(--np-gold-light);
}

.woocommerce ul.products li.product .button:disabled,
.single-product .summary .single_add_to_cart_button:disabled,
.single-product .summary .single_add_to_cart_button.disabled {
  color: #fff;
  background: var(--np-muted);
  border-color: var(--np-muted);
  cursor: not-allowed;
  opacity: 0.7;
}

.woocommerce ul.products li.product.outofstock {
  opacity: 0.82;
}

.single-product div.product {
  display: grid;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.single-product div.product .woocommerce-product-gallery,
.single-product .summary {
  min-width: 0;
}

.single-product .summary {
  align-self: start;
}

.single-product .summary .product_title {
  margin-block: 0 0.75rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.03;
}

.single-product .summary .price {
  color: var(--np-brown);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 750;
}

.single-product .summary form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin-block: 1.25rem;
  padding-block: 1.25rem;
  border-block: 0.0625rem solid var(--np-border);
}

.single-product .summary form.variations_form {
  display: block;
}

.single-product .summary .variations {
  margin-bottom: 1rem;
}

.single-product .summary .variations th,
.single-product .summary .variations td {
  display: block;
  padding: 0.25rem 0;
  text-align: left;
}

.single-product .summary .variations select,
.single-product .summary input.qty {
  min-height: 2.75rem;
  border: 0.0625rem solid var(--np-border);
  border-radius: var(--np-radius-sm);
}

.single-product .summary .stock.in-stock {
  color: var(--np-green);
  font-weight: 700;
}

.single-product .summary .stock.out-of-stock,
.woocommerce-error {
  color: #8a1f11;
}

.single-product details {
  padding-block: 0.75rem;
  border-bottom: 0.0625rem solid var(--np-border);
}

.single-product details summary {
  min-height: 2.75rem;
  color: var(--np-brown);
  font-weight: 750;
  cursor: pointer;
}

.np-sticky-cart {
  position: fixed;
  z-index: 999;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem max(1rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  background: #fff;
  border-top: 0.0625rem solid var(--np-border);
  box-shadow: 0 -0.5rem 1.5rem rgb(58 23 8 / 13%);
}

.np-sticky-cart[hidden] {
  display: none;
}

.np-sticky-cart__label {
  overflow: hidden;
  color: var(--np-brown);
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.np-sticky-cart__button {
  min-width: 9rem;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  color: #fff;
  background: var(--np-brown);
  border: 0;
  border-radius: 999px;
  font-weight: 750;
}

.np-sticky-cart__button:disabled {
  background: var(--np-muted);
  cursor: not-allowed;
  opacity: 0.75;
}

@media (min-width: 48rem) {
  .single-product div.product {
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
  }

  .single-product .summary {
    position: sticky;
    top: 2rem;
  }

  .np-sticky-cart {
    display: none;
  }
}
