:root {
  --nwmp-wine: #7d1025;
  --nwmp-wine-dark: #590b1c;
  --nwmp-rose: #f7dfe1;
  --nwmp-blush: #fff3f0;
  --nwmp-cream: #fffaf5;
  --nwmp-paper: #fffdf9;
  --nwmp-sage: #687960;
  --nwmp-sage-light: #edf1e8;
  --nwmp-ink: #17201c;
  --nwmp-muted: #626762;
  --nwmp-line: rgba(125,16,37,.12);
  --nwmp-shadow: 0 24px 70px rgba(58,37,31,.12);
  --nwmp-max: 1180px;
}

body.nwmp-commerce-page {
  margin: 0;
  background: linear-gradient(180deg,#fffaf6 0,#fff5f0 45%,#f4f6f1 100%);
  color: var(--nwmp-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Replace the generic WordPress/GeneratePress chrome on WooCommerce pages. */
body.nwmp-commerce-page .site-header,
body.nwmp-commerce-page #site-navigation,
body.nwmp-commerce-page .site-footer,
body.nwmp-commerce-page .widget-area,
body.nwmp-commerce-page .sidebar,
body.nwmp-commerce-page .footer-widgets {
  display: none !important;
}
body.nwmp-commerce-page #page,
body.nwmp-commerce-page .site,
body.nwmp-commerce-page .site-content,
body.nwmp-commerce-page .content-area,
body.nwmp-commerce-page .site-main {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.nwmp-commerce-page .inside-article {
  padding: 0 !important;
  background: transparent !important;
}

.nwmp-commerce-shell {
  width: min(calc(100% - 40px), var(--nwmp-max));
  margin-inline: auto;
}
.nwmp-commerce-header {
  position: relative;
  z-index: 50;
  background: rgba(255,253,249,.96);
  border-bottom: 1px solid var(--nwmp-line);
  backdrop-filter: blur(14px);
}
.nwmp-commerce-header__inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.nwmp-commerce-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none !important;
  color: var(--nwmp-wine-dark) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
}
.nwmp-commerce-brand__mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(145deg,#f2c6ca,#fff);
  border: 1px solid rgba(125,16,37,.18);
  font-family: serif;
  font-size: 16px;
}
.nwmp-commerce-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}
.nwmp-commerce-nav a {
  color: #4d514e !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
}
.nwmp-commerce-nav a:hover { color: var(--nwmp-wine) !important; }

/* Main WooCommerce canvas */
body.nwmp-commerce-page #primary {
  float: none !important;
  width: 100% !important;
}
body.nwmp-commerce-page main.site-main,
body.nwmp-commerce-page .woocommerce,
body.nwmp-commerce-page .wc-block-cart,
body.nwmp-commerce-page .wc-block-checkout {
  box-sizing: border-box;
}
body.nwmp-commerce-page main.site-main {
  width: min(calc(100% - 40px), var(--nwmp-max)) !important;
  margin: 0 auto !important;
  padding: 66px 0 92px !important;
}
body.nwmp-commerce-page .entry-header,
body.nwmp-commerce-page .woocommerce-products-header {
  margin: 0 0 30px;
}
body.nwmp-commerce-page .entry-title,
body.nwmp-commerce-page .woocommerce-products-header__title,
body.nwmp-commerce-page .woocommerce h1,
body.nwmp-commerce-page .woocommerce h2,
body.nwmp-commerce-page .woocommerce h3,
body.nwmp-commerce-page .wc-block-components-title {
  font-family: Georgia, "Times New Roman", serif !important;
  color: var(--nwmp-wine-dark) !important;
  letter-spacing: -.025em;
}
body.nwmp-commerce-page .entry-title,
body.nwmp-commerce-page .woocommerce-products-header__title {
  font-size: clamp(42px,5vw,64px) !important;
  line-height: 1.04;
}
body.nwmp-commerce-page a { color: var(--nwmp-wine); }
body.nwmp-commerce-page .woocommerce-breadcrumb {
  margin: 0 0 20px !important;
  color: #7a7e7a !important;
  font-size: 12px !important;
}
body.nwmp-commerce-page .woocommerce-breadcrumb a { color: #6b716d !important; }

/* Buttons */
body.nwmp-commerce-page .button,
body.nwmp-commerce-page button.button,
body.nwmp-commerce-page input.button,
body.nwmp-commerce-page .wc-block-components-button,
body.nwmp-commerce-page .wp-element-button,
body.nwmp-commerce-page .single_add_to_cart_button {
  min-height: 52px !important;
  border: 0 !important;
  border-radius: 14px !important;
  padding: 14px 24px !important;
  background: linear-gradient(135deg,var(--nwmp-wine),#981a33) !important;
  color: #fff !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 28px rgba(125,16,37,.18) !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
body.nwmp-commerce-page .button:hover,
body.nwmp-commerce-page .wc-block-components-button:hover,
body.nwmp-commerce-page .wp-element-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(125,16,37,.24) !important;
}

/* Shop */
body.post-type-archive-product.nwmp-commerce-page .woocommerce {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--nwmp-line);
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--nwmp-shadow);
}
body.nwmp-commerce-page .woocommerce-result-count { color: var(--nwmp-muted); }
body.nwmp-commerce-page .woocommerce-ordering select {
  min-height: 46px;
  border: 1px solid #ddd1d2;
  border-radius: 12px;
  background: #fff;
  padding: 0 38px 0 14px;
}
body.nwmp-commerce-page ul.products {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 24px !important;
  margin-top: 34px !important;
}
body.nwmp-commerce-page ul.products::before,
body.nwmp-commerce-page ul.products::after { display:none !important; }
body.nwmp-commerce-page ul.products li.product {
  width: auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 18px !important;
  background: #fff;
  border: 1px solid var(--nwmp-line);
  border-radius: 22px;
  box-shadow: 0 12px 34px rgba(56,43,38,.07);
}
body.nwmp-commerce-page ul.products li.product img {
  width: 100% !important;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 16px;
  margin: 0 0 18px !important;
}
body.nwmp-commerce-page ul.products li.product .woocommerce-loop-product__title {
  font-family: Georgia,"Times New Roman",serif;
  color: var(--nwmp-wine-dark);
  font-size: 23px !important;
  line-height: 1.12;
}
body.nwmp-commerce-page .price {
  color: var(--nwmp-wine) !important;
  font-family: Georgia,"Times New Roman",serif;
  font-size: 23px !important;
  font-weight: 700 !important;
}

/* Single product */
body.single-product.nwmp-commerce-page div.product {
  display: grid;
  grid-template-columns: minmax(0,1.05fr) minmax(340px,.95fr);
  gap: 52px;
  align-items: start;
  padding: 40px;
  border: 1px solid var(--nwmp-line);
  border-radius: 30px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--nwmp-shadow);
}
body.single-product.nwmp-commerce-page div.product::before,
body.single-product.nwmp-commerce-page div.product::after { display:none !important; }
body.single-product.nwmp-commerce-page div.product .images,
body.single-product.nwmp-commerce-page div.product .summary {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}
body.single-product.nwmp-commerce-page div.product .images img {
  border-radius: 22px;
  box-shadow: 0 16px 45px rgba(66,48,42,.11);
}
body.single-product.nwmp-commerce-page .product_title {
  font-size: clamp(40px,4.6vw,62px) !important;
  line-height: 1.02;
  margin: 0 0 14px !important;
}
body.single-product.nwmp-commerce-page .summary .price { font-size: 38px !important; }
body.single-product.nwmp-commerce-page form.cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 26px !important;
}
body.single-product.nwmp-commerce-page .quantity .qty {
  min-height: 52px;
  width: 72px;
  border: 1px solid #ddcfd2;
  border-radius: 12px;
  background:#fff;
}
body.single-product.nwmp-commerce-page .product_meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--nwmp-line);
  color: #777;
  font-size: 12px;
}
body.single-product.nwmp-commerce-page .woocommerce-tabs,
body.single-product.nwmp-commerce-page .related.products {
  grid-column: 1 / -1;
}

/* Cart + Checkout common card treatment */
body.nwmp-commerce-page .wc-block-cart,
body.nwmp-commerce-page .wc-block-checkout,
body.nwmp-commerce-page form.woocommerce-cart-form,
body.nwmp-commerce-page .cart-collaterals,
body.nwmp-commerce-page form.checkout.woocommerce-checkout {
  border-radius: 28px;
}
body.nwmp-commerce-page .wc-block-cart,
body.nwmp-commerce-page .wc-block-checkout {
  padding: 32px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--nwmp-line);
  box-shadow: var(--nwmp-shadow);
}
body.nwmp-commerce-page .wc-block-components-sidebar-layout {
  gap: 30px !important;
}
body.nwmp-commerce-page .wc-block-components-sidebar,
body.nwmp-commerce-page .wc-block-components-main {
  box-sizing: border-box;
}
body.nwmp-commerce-page .wc-block-components-sidebar {
  border-radius: 20px;
}
body.nwmp-commerce-page .wc-block-components-order-summary,
body.nwmp-commerce-page .wc-block-components-totals-wrapper,
body.nwmp-commerce-page .wc-block-checkout__payment-method,
body.nwmp-commerce-page .wc-block-components-address-form,
body.nwmp-commerce-page .wc-block-components-checkout-step {
  border-color: rgba(125,16,37,.10) !important;
}
body.nwmp-commerce-page .wc-block-components-text-input input,
body.nwmp-commerce-page .wc-block-components-combobox .wc-block-components-combobox-control input,
body.nwmp-commerce-page .input-text,
body.nwmp-commerce-page select,
body.nwmp-commerce-page textarea {
  border: 1px solid #d9cdcf !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.nwmp-commerce-page .wc-block-components-text-input input:focus,
body.nwmp-commerce-page .input-text:focus {
  border-color: var(--nwmp-wine) !important;
  outline: 2px solid rgba(125,16,37,.08) !important;
}
body.nwmp-commerce-page .wc-block-components-product-name {
  color: var(--nwmp-wine-dark) !important;
  font-weight: 800;
}
body.nwmp-commerce-page .wc-block-components-product-image img,
body.nwmp-commerce-page .wc-block-cart-item__image img {
  border-radius: 12px;
}
body.nwmp-commerce-page .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.nwmp-commerce-page .wc-block-components-totals-item__value {
  color: var(--nwmp-wine-dark);
}

/* Classic cart/checkout fallback */
body.nwmp-commerce-page .woocommerce-cart-form,
body.nwmp-commerce-page .cart_totals,
body.nwmp-commerce-page form.checkout.woocommerce-checkout,
body.nwmp-commerce-page .woocommerce-checkout-review-order {
  padding: 26px;
  background: #fff;
  border: 1px solid var(--nwmp-line);
  border-radius: 22px;
  box-shadow: 0 12px 36px rgba(56,43,38,.06);
}
body.nwmp-commerce-page table.shop_table {
  border: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0;
}
body.nwmp-commerce-page table.shop_table th,
body.nwmp-commerce-page table.shop_table td {
  border-color: rgba(125,16,37,.09) !important;
}
body.nwmp-commerce-page #payment {
  background: #fff7f5 !important;
  border-radius: 18px !important;
}

/* Notices */
body.nwmp-commerce-page .woocommerce-message,
body.nwmp-commerce-page .woocommerce-info,
body.nwmp-commerce-page .woocommerce-error,
body.nwmp-commerce-page .wc-block-components-notice-banner {
  border-radius: 15px !important;
  border: 1px solid var(--nwmp-line) !important;
  box-shadow: none !important;
}

.nwmp-commerce-footer {
  background: #17201c;
  color: #bec5c0;
  padding: 24px 0;
  font-size: 11px;
}
.nwmp-commerce-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nwmp-commerce-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}
.nwmp-commerce-footer a { color: #eef1ef !important; text-decoration: none; }

/* Order received / downloads */
body.nwmp-commerce-page .woocommerce-order,
body.nwmp-commerce-page .woocommerce-order-received .woocommerce {
  background:#fff;
  border:1px solid var(--nwmp-line);
  border-radius:28px;
  padding:32px;
  box-shadow:var(--nwmp-shadow);
}
body.nwmp-commerce-page .woocommerce-order-downloads a.button { margin-top:8px; }

@media (max-width: 900px) {
  .nwmp-commerce-shell,
  body.nwmp-commerce-page main.site-main { width: min(calc(100% - 28px),var(--nwmp-max)) !important; }
  .nwmp-commerce-nav { gap: 14px; }
  body.nwmp-commerce-page ul.products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body.single-product.nwmp-commerce-page div.product { grid-template-columns:1fr; gap:30px; padding:26px; }
}

@media (max-width: 640px) {
  .nwmp-commerce-shell,
  body.nwmp-commerce-page main.site-main { width: calc(100% - 20px) !important; }
  .nwmp-commerce-header__inner { min-height:68px; gap:12px; }
  .nwmp-commerce-brand { font-size:21px; }
  .nwmp-commerce-brand__mark { width:28px; height:28px; }
  .nwmp-commerce-nav a:not(:first-child) { display:none; }
  .nwmp-commerce-nav a { font-size:12px; }
  body.nwmp-commerce-page main.site-main { padding:38px 0 70px !important; }
  body.nwmp-commerce-page .entry-title,
  body.nwmp-commerce-page .woocommerce-products-header__title { font-size:40px !important; }
  body.nwmp-commerce-page ul.products { grid-template-columns:1fr; }
  body.post-type-archive-product.nwmp-commerce-page .woocommerce,
  body.nwmp-commerce-page .wc-block-cart,
  body.nwmp-commerce-page .wc-block-checkout { padding:18px; border-radius:20px; }
  body.single-product.nwmp-commerce-page div.product { padding:18px; border-radius:20px; }
  body.single-product.nwmp-commerce-page form.cart { align-items:stretch; flex-direction:column; }
  body.single-product.nwmp-commerce-page .quantity .qty { width:100%; }
  .nwmp-commerce-footer__inner { display:block; text-align:center; }
  .nwmp-commerce-footer nav { justify-content:center; margin-top:10px; }
}

/* -------------------------------------------------------------------------
   v1.8.2 — simplified NutritionWMP digital checkout, native Woo Blocks only
   ------------------------------------------------------------------------- */
body.nwmp-checkout-page .wc-block-components-address-form__address_2,
body.nwmp-checkout-page .wc-block-components-address-form__phone,
body.nwmp-checkout-page .wc-block-components-address-form__company,
body.nwmp-checkout-page .wc-block-checkout__add-note,
body.nwmp-checkout-page .wp-block-woocommerce-checkout-order-note-block,
body.nwmp-checkout-page #order_comments_field,
body.nwmp-checkout-page #billing_phone_field,
body.nwmp-checkout-page #billing_address_2_field,
body.nwmp-checkout-page #billing_company_field {
  display: none !important;
}

/* Native WooCommerce Terms & Conditions block. Do not override its checkbox
   input/label mechanics; WooCommerce owns the React state and validation. */
body.nwmp-checkout-page .wc-block-checkout__terms {
  margin: 24px 0 14px !important;
  padding: 16px 18px !important;
  border: 1px solid rgba(125,16,37,.16) !important;
  border-radius: 14px !important;
  background: #fff8f5 !important;
  color: #2f3933 !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
}
body.nwmp-checkout-page .wc-block-checkout__terms a {
  color: var(--nwmp-wine) !important;
  text-decoration: underline !important;
  font-weight: 700 !important;
}
body.nwmp-checkout-page .wc-block-checkout__terms .wc-block-components-checkbox {
  margin: 0 !important;
}

/* Keep the real WooCommerce action area visible. Validation can disable the
   button, but theme CSS must never remove it. */
body.nwmp-checkout-page .wp-block-woocommerce-checkout-actions-block,
body.nwmp-checkout-page .wc-block-checkout__actions,
body.nwmp-checkout-page .wc-block-checkout__actions_row {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
body.nwmp-checkout-page .wc-block-components-checkout-place-order-button {
  width: 100% !important;
  margin-top: 4px !important;
}

@media (max-width: 640px) {
  body.nwmp-checkout-page .wc-block-checkout__terms {
    margin-top: 18px !important;
    padding: 14px !important;
  }
}

