/**
 * Digiwood 1.6.0 — twenty-pass secondary-page refinement.
 * Loaded after the main storefront stylesheet so these rules can reliably
 * normalize WoodMart wrappers without editing the parent theme.
 */

/* Pass 01 — secondary-page canvas, rhythm, and full-width parent reset. */
body.digiwood-enabled:not(.home) {
  --dw-secondary-max: 1760px;
  --dw-secondary-gutter: clamp(16px, 2.25vw, 40px);
  --dw-panel-radius: 12px;
  --dw-panel-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  background: #fff;
}
body.digiwood-enabled:not(.home) .main-page-wrapper {
  min-height: 54vh;
  padding-block: 0 40px;
  background: #fff;
}
body.digiwood-enabled:not(.home) .main-page-wrapper > .container,
body.digiwood-enabled:not(.home) .main-page-wrapper > .container-fluid,
body.digiwood-enabled:not(.home) .site-content,
body.digiwood-enabled:not(.home) .content-layout-wrapper,
body.digiwood-enabled:not(.home) .wd-content-layout,
body.digiwood-enabled:not(.home) .content-area {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
}
body.digiwood-enabled:not(.home) main.dw-container,
body.digiwood-enabled:not(.home) .dw-page-shell.dw-container,
body.digiwood-enabled:not(.home) .dw-commerce-page.dw-container,
body.digiwood-enabled:not(.home) .dw-blog-page.dw-container,
body.digiwood-enabled:not(.home) .dw-article-page.dw-container {
  width: min(calc(100% - (var(--dw-secondary-gutter) * 2)), var(--dw-secondary-max)) !important;
  max-width: var(--dw-secondary-max) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
}
body.digiwood-enabled:not(.home) .main-page-wrapper > .container > .row,
body.digiwood-enabled:not(.home) .content-layout-wrapper,
body.digiwood-enabled:not(.home) .wd-content-layout {
  margin-inline: 0 !important;
}
body.digiwood-enabled:not(.home) .site-content,
body.digiwood-enabled:not(.home) .content-area {
  padding-inline: 0 !important;
}
body.digiwood-enabled:not(.home) :where(h1, h2, h3, h4) {
  color: #23254e;
  letter-spacing: -.02em;
}
body.digiwood-enabled:not(.home) :where(input, select, textarea, button) {
  border-radius: 8px;
}

/* Pass 02 — restrained breadcrumb hierarchy. */
.dw-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin: 0 0 8px;
  overflow-x: auto;
  color: #81858b;
  font-size: 11px;
  white-space: nowrap;
  scrollbar-width: none;
}
.dw-breadcrumbs::-webkit-scrollbar { display: none; }
.dw-breadcrumbs a { color: #62666d !important; transition: color .18s; }
.dw-breadcrumbs a:hover { color: var(--dw-red) !important; }
.dw-breadcrumb-separator { color: #c0c2c5; }
.dw-breadcrumbs > span:last-child { color: #424750; }
.dw-breadcrumbs--page { margin-bottom: 12px; }

/* Pass 03 — secondary header balance and context persistence. */
body.digiwood-enabled:not(.home) .dw-announcement { min-height: 42px; font-size: 12px; }
body.digiwood-enabled:not(.home) .dw-header__main { min-height: 70px; }
body.digiwood-enabled:not(.home) .dw-header__nav { min-height: 42px; }
body.digiwood-enabled:not(.home) .dw-header.is-sticky {
  box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}
body.digiwood-enabled:not(.home) .dw-search input { background: #f0f0f1; }
body.digiwood-enabled:not(.home) .dw-search input:focus { background: #fff; }
body.digiwood-enabled:not(.home) .dw-primary-nav a { font-size: 11px; }

/* Pass 04 — full-width, three-column product presentation. */
body.dw-page-product .main-page-wrapper,
body.dw-page-product .product-page-wrapper,
body.dw-page-product .product-image-summary-wrap,
body.dw-page-product .product-image-summary-inner {
  width: 100% !important;
  max-width: none !important;
}
body.dw-page-product main.dw-commerce-page.dw-container {
  width: min(calc(100% - (var(--dw-secondary-gutter) * 2)), 1780px) !important;
  max-width: 1780px !important;
}
body.dw-page-product .single-product-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.dw-page-product .product-image-summary-wrap > .container,
body.dw-page-product .product-image-summary-wrap > .container-fluid,
body.dw-page-product .product-image-summary-wrap .container,
body.dw-page-product .product-image-summary-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.dw-page-product .product-image-summary,
body.dw-page-product .product-image-summary.dw-product-marketplace-grid {
  display: grid !important;
  grid-template-columns: minmax(390px, .94fr) minmax(400px, 1.08fr) minmax(330px, 380px) !important;
  gap: clamp(24px, 2.35vw, 44px) !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 18px 0 32px !important;
  align-items: start;
  border-bottom: 1px solid var(--dw-border);
}
body.dw-page-product .product-image-summary::before,
body.dw-page-product .product-image-summary::after { display: none !important; }
body.dw-page-product .product-images { grid-column: 1; min-width: 0; }
body.dw-page-product .summary { grid-column: 2; min-width: 0; }
body.dw-page-product .dw-seller-panel { grid-column: 3; min-width: 0; }

/* Pass 05 — product gallery clarity and image controls. */
body.dw-page-product .product-images {
  position: relative;
  padding: 0 !important;
  border: 0 !important;
  background: #fff;
}
body.dw-page-product .woocommerce-product-gallery {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
body.dw-page-product .woocommerce-product-gallery__wrapper {
  border: 0;
  border-radius: var(--dw-panel-radius);
  background: #fff;
}
body.dw-page-product .woocommerce-product-gallery__image {
  display: grid !important;
  place-items: center;
  min-height: clamp(410px, 39vw, 610px) !important;
  padding: clamp(12px, 2vw, 24px);
  border: 1px solid #f0f0f1 !important;
  border-radius: var(--dw-panel-radius) !important;
  background: #fff;
}
body.dw-page-product .woocommerce-product-gallery__image a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
body.dw-page-product .woocommerce-product-gallery__image img {
  width: 100% !important;
  max-width: 640px;
  max-height: 560px !important;
  margin: auto;
  object-fit: contain !important;
}
body.dw-page-product .woocommerce-product-gallery .flex-control-thumbs {
  display: flex !important;
  gap: 10px;
  margin: 14px 0 0 !important;
  padding: 2px 0 6px !important;
  overflow-x: auto;
  scrollbar-width: thin;
}
body.dw-page-product .woocommerce-product-gallery .flex-control-thumbs li {
  flex: 0 0 76px;
  width: 76px !important;
  height: 76px;
  padding: 5px !important;
  overflow: hidden;
  border: 1px solid var(--dw-border) !important;
  border-radius: 8px !important;
  background: #fff;
  transition: border-color .18s, box-shadow .18s;
}
body.dw-page-product .woocommerce-product-gallery .flex-control-thumbs li:has(img.flex-active) {
  border-color: #424750 !important;
  box-shadow: 0 0 0 1px #424750;
}
body.dw-page-product .woocommerce-product-gallery .flex-control-thumbs img {
  width: 100%; height: 100%; object-fit: contain; opacity: 1 !important;
}
.dw-product-media-badges {
  position: absolute;
  z-index: 4;
  top: 12px;
  inset-inline-start: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.dw-product-media-badges span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 14px;
  background: #fff;
  color: #ef4056;
  box-shadow: 0 1px 7px rgba(0,0,0,.08);
  font-size: 10px;
  font-weight: 800;
}
.dw-product-media-badges span.is-sale { background: var(--dw-red); color: #fff; }
.dw-product-media-badges .dw-icon { width: 14px; height: 14px; }

/* Pass 06 — product identity, title, and scan-friendly content. */
.dw-product-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 5px;
  color: #19bfd3;
  font-size: 11px;
  font-weight: 700;
}
.dw-product-eyebrow span { width: 1px; height: 13px; background: #e0e0e2; }
body.dw-page-product .summary > .product_title {
  margin: 8px 0 12px !important;
  color: #23254e;
  font-size: clamp(21px, 1.75vw, 29px) !important;
  font-weight: 800;
  line-height: 1.72 !important;
}
body.dw-page-product .summary > .woocommerce-product-details__short-description {
  margin: 14px 0 0;
  padding-top: 14px;
  border-top: 1px solid #f0f0f1;
  color: #62666d;
  font-size: 12px;
  line-height: 2;
}
.dw-product-identity {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 30px;
  margin: 0 0 4px;
  color: #19bfd3;
  font-size: 10px;
}
.dw-product-identity a,
.dw-product-identity > span { position: relative; }
.dw-product-identity a:not(:last-child)::after,
.dw-product-identity > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  inset-inline-end: -8px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #c0c2c5;
}
.dw-product-identity a span { display: inline-flex; align-items: center; gap: 4px; }
.dw-product-identity .dw-icon { width: 14px; height: 14px; color: #f9bc00; fill: #f9bc00; }
.dw-product-action-links {
  position: absolute;
  top: 18px;
  inset-inline-start: -48px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.dw-page-product .summary { position: relative; padding-top: 4px !important; }
.dw-product-action-links button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #424750;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.dw-product-action-links button:hover,
.dw-product-action-links button.is-active,
.dw-product-action-links button.is-done { background: #fff1f3; color: var(--dw-red); }
.dw-product-action-links button span { display: none; }
.dw-product-action-links .dw-icon { width: 21px; height: 21px; }

/* Pass 07 — product highlights, confidence, variants, and quantity. */
.dw-product-confidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}
.dw-product-confidence > div {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7f7f8;
  color: #62666d;
  font-size: 9px;
  line-height: 1.6;
}
.dw-product-confidence .dw-icon { flex: 0 0 17px; width: 17px; height: 17px; color: #00a049; }
.dw-product-confidence strong { color: #424750; }
.dw-product-highlights {
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}
.dw-product-highlights h2 { margin: 0 0 12px; font-size: 15px; }
.dw-product-highlights ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dw-product-highlights li {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f0f0f1;
}
.dw-product-highlights li span { color: #81858b; font-size: 9px; }
.dw-product-highlights li strong { color: #424750; font-size: 11px; line-height: 1.8; }
.dw-product-highlights > a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 12px;
  color: #19bfd3 !important;
  font-size: 11px;
  font-weight: 800;
}
.dw-product-highlights > a .dw-icon { width: 14px; height: 14px; }
body.dw-page-product form.variations_form .variations {
  width: 100%;
  margin: 0 0 10px;
}
body.dw-page-product form.variations_form .variations tr {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  margin-bottom: 12px;
}
body.dw-page-product form.variations_form .variations th,
body.dw-page-product form.variations_form .variations td { display: block; padding: 0; text-align: right; }
body.dw-page-product form.variations_form select {
  width: 100%;
  height: 46px;
  border: 1px solid var(--dw-border);
  background: #fff;
}
body.dw-page-product .quantity {
  display: inline-flex !important;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--dw-border) !important;
  border-radius: 8px !important;
  background: #fff;
}
body.dw-page-product .quantity input.qty {
  width: 40px !important;
  height: 46px !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  text-align: center;
}
.dw-quantity-step {
  display: grid;
  place-items: center;
  width: 34px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--dw-red);
  font-size: 21px;
  cursor: pointer;
}

/* Pass 08 — seller / purchase card hierarchy. */
body.dw-page-product .dw-seller-panel {
  position: sticky !important;
  top: 88px !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid #d7d7da !important;
  border-radius: var(--dw-panel-radius) !important;
  background: #f7f7f8 !important;
  box-shadow: var(--dw-panel-shadow) !important;
}
.dw-seller-panel__head { margin-bottom: 10px; }
.dw-seller-panel__head h2 { font-size: 15px; }
.dw-seller-panel__seller {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 55px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e2;
}
.dw-seller-panel__seller > .dw-icon {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 50%;
  background: #e6f4f6;
  color: #19bfd3;
}
.dw-seller-panel__seller div { display: grid; gap: 3px; }
.dw-seller-panel__seller strong { color: #424750; font-size: 12px; }
.dw-seller-panel__seller span { color: #00a049; font-size: 9px; }
.dw-seller-panel__row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  min-height: 46px;
  padding: 11px 0;
  border-bottom: 1px solid #e0e0e2;
  color: #424750;
  font-size: 10px;
  line-height: 1.75;
}
.dw-seller-panel__row .dw-icon { flex: 0 0 18px; width: 18px; height: 18px; color: #81858b; }
.dw-seller-panel__price { margin-top: 12px; padding-top: 0; border: 0; }
.dw-seller-panel__price strong { font-size: clamp(19px, 1.5vw, 23px); }
.dw-seller-panel__stock { margin: 8px 0 2px; }
.dw-seller-panel__purchase form.cart {
  display: grid !important;
  grid-template-columns: 94px minmax(0, 1fr) !important;
  gap: 8px !important;
  width: 100%;
  margin: 12px 0 0 !important;
}
.dw-seller-panel__purchase .single_add_to_cart_button {
  min-height: 48px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: var(--dw-red) !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.dw-seller-panel__purchase .single_add_to_cart_button:hover { background: var(--dw-red-dark) !important; }
.dw-buy-reassurance { display: grid; gap: 7px; margin-top: 10px; }
.dw-buy-reassurance span { display: flex; align-items: center; gap: 6px; color: #81858b; font-size: 9px; }
.dw-buy-reassurance .dw-icon { flex: 0 0 14px; width: 14px; height: 14px; }

/* Pass 09 — product assurances, section navigation, tabs, specs, reviews. */
.dw-product-assurances--five {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 4px 0 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--dw-border);
}
.dw-product-assurances--five > div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 58px;
  color: #62666d;
  text-align: center;
}
.dw-product-assurances--five .dw-icon { width: 31px; height: 31px; color: #a1a3a8; }
.dw-product-assurances--five strong { font-size: 10px; font-weight: 600; }
.dw-product-section-nav {
  position: sticky;
  top: 74px;
  z-index: 45;
  display: flex;
  gap: 26px;
  min-height: 58px;
  margin: 0 0 20px;
  padding: 0 18px;
  overflow-x: auto;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  white-space: nowrap;
}
.dw-product-section-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 56px;
  color: #62666d !important;
  font-size: 12px;
  font-weight: 700;
}
.dw-product-section-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  border-radius: 2px;
  background: transparent;
}
.dw-product-section-nav a.is-active,
.dw-product-section-nav a:hover { color: #23254e !important; }
.dw-product-section-nav a.is-active::after { background: var(--dw-red); }
body.dw-page-product .woocommerce-tabs {
  margin: 0 0 24px !important;
  padding: 0 !important;
  border: 1px solid var(--dw-border) !important;
  border-radius: var(--dw-panel-radius) !important;
  background: #fff;
}
body.dw-page-product .woocommerce-tabs > .tabs {
  display: none !important;
}
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel {
  display: block !important;
  margin: 0 !important;
  padding: clamp(22px, 3vw, 42px) !important;
  border-bottom: 1px solid var(--dw-border);
}
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel:last-child { border-bottom: 0; }
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child,
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel > h3:first-child {
  position: relative;
  margin: 0 0 24px !important;
  padding-bottom: 12px;
  font-size: 20px;
}
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel > h2:first-child::after,
body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel > h3:first-child::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: var(--dw-red);
}
body.dw-page-product .woocommerce-product-attributes {
  overflow: hidden;
  border: 0;
  border-radius: 10px;
}
body.dw-page-product .woocommerce-product-attributes tr:nth-child(odd) { background: #f7f7f8; }
body.dw-page-product .woocommerce-product-attributes th,
body.dw-page-product .woocommerce-product-attributes td {
  padding: 14px 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f0f1 !important;
  font-size: 11px;
  line-height: 1.85;
}
body.dw-page-product .woocommerce-product-attributes th { width: 27%; color: #81858b; font-weight: 500; }
body.dw-page-product .woocommerce-product-attributes td { color: #424750; }
body.dw-page-product #reviews #comments,
body.dw-page-product #review_form_wrapper {
  padding: 0;
  border: 0;
  background: transparent;
}
body.dw-page-product .commentlist > li {
  padding: 18px 0 !important;
  border-bottom: 1px solid #f0f0f1 !important;
}
.dw-product-questions { gap: clamp(20px, 3vw, 44px); }
.dw-question-list article { border-bottom: 1px solid #f0f0f1; }

/* Pass 10 — related products and product cards. */
body.dw-page-product .related.products,
body.dw-page-product .upsells.products {
  margin-top: 24px !important;
  padding: 20px 0 0 !important;
  border-top: 1px solid var(--dw-border);
}
body.dw-page-product .related.products > h2,
body.dw-page-product .upsells.products > h2 {
  margin: 0 0 18px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: 19px !important;
}
body.dw-page-product .related.products .products,
body.dw-page-product .upsells.products .products {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
}
body.digiwood-enabled .product-grid-item {
  position: relative;
  min-height: 100%;
  padding: 14px !important;
  border-inline-end: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
  background: #fff;
  transition: box-shadow .18s, transform .18s;
}
body.digiwood-enabled .product-grid-item:hover {
  z-index: 2;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px rgba(0,0,0,.10) !important;
}
body.digiwood-enabled .product-grid-item .product-element-top { margin-bottom: 12px; }
body.digiwood-enabled .product-grid-item .product-image-link img { aspect-ratio: 1 / 1; object-fit: contain; }
body.digiwood-enabled .product-grid-item .wd-entities-title {
  min-height: 48px;
  margin: 0 0 9px !important;
  overflow: hidden;
  color: #3f4064;
  font-size: 11px !important;
  font-weight: 600;
  line-height: 2.05 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
body.digiwood-enabled .product-grid-item .price {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  margin-top: auto;
  color: #3f4064 !important;
  font-size: 13px !important;
  font-weight: 800;
}
body.digiwood-enabled .product-grid-item .price del { order: 2; width: 100%; color: #a1a3a8; font-size: 9px; text-align: left; }
.dw-loop-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  color: #81858b;
  font-size: 9px;
}
.dw-loop-card-footer span { display: inline-flex; align-items: center; gap: 3px; }
.dw-loop-card-footer .dw-icon { width: 12px; height: 12px; color: #00a049; }

/* Pass 11 — category title, subcategory chips, and description. */
.dw-native-catalog { padding-top: 0; }
.dw-catalog-context {
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-catalog-context__title {
  min-height: 78px;
  padding: 16px 18px 8px;
}
.dw-catalog-context__title h1 {
  margin: 0 0 5px;
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.65;
}
.dw-catalog-context__title span { color: #81858b; font-size: 10px; }
.dw-category-chips {
  display: flex;
  gap: 18px;
  padding: 10px 18px 18px;
  overflow-x: auto;
  scrollbar-width: none;
}
.dw-category-chips::-webkit-scrollbar { display: none; }
.dw-category-chips a {
  flex: 0 0 92px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #424750;
  text-align: center;
  font-size: 10px;
  line-height: 1.65;
}
.dw-category-chips img {
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 1px solid #f0f0f1;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
}
.dw-catalog-context .term-description,
.dw-native-catalog > .term-description {
  max-height: 90px;
  margin: 0;
  padding: 0 18px 16px;
  overflow: hidden;
  color: #62666d;
  font-size: 11px;
  line-height: 2;
}
.dw-catalog-sort-note {
  min-height: 55px;
  padding: 0 10px;
  border-top: 1px solid #f0f0f1;
  background: #fff;
}
.dw-catalog-sort-note > .dw-icon { width: 18px; height: 18px; color: #424750; }
.dw-catalog-sort-note strong { color: #424750; font-size: 11px; }
.dw-catalog-sort-note a { min-height: 54px; }

/* Pass 12 — filter panel, active chips, and desktop catalog shell. */
.dw-native-catalog__layout,
.dw-search-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start;
}
.dw-native-filter,
.dw-search-filters {
  position: sticky;
  top: 86px;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}
.dw-native-filter__head { min-height: 60px; }
.dw-native-filter__head h2 { font-size: 16px; }
.dw-native-filter form > section {
  padding: 0 16px;
  border-bottom: 1px solid #f0f0f1;
}
.dw-native-filter form > section > h3 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  margin: 0;
  cursor: pointer;
  user-select: none;
}
.dw-native-filter form > section > h3::after {
  content: "⌄";
  color: #81858b;
  font-size: 17px;
  transition: transform .18s;
}
.dw-native-filter form > section.is-collapsed > h3::after { transform: rotate(180deg); }
.dw-native-filter form > section > :not(h3) { margin-bottom: 16px; }
.dw-native-filter form > section.is-collapsed > :not(h3) { display: none; }
.dw-native-filter__categories { max-height: 270px; }
.dw-native-filter__categories a { min-height: 37px; padding: 8px 7px; }
.dw-native-filter__categories a.is-active { background: transparent; color: var(--dw-red); }
.dw-native-filter__prices input { height: 44px; }
.dw-native-filter__switches { padding-block: 6px 14px !important; }
.dw-active-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  margin: 0 0 12px;
  padding: 7px 10px;
  overflow-x: auto;
  border: 1px solid var(--dw-border);
  border-radius: 9px;
  background: #fff;
  white-space: nowrap;
}
.dw-active-filters strong { margin-inline-end: 4px; color: #424750; font-size: 10px; }
.dw-active-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid #e0e0e2;
  border-radius: 16px;
  color: #62666d;
  font-size: 9px;
}
.dw-active-filters a { margin-inline-start: auto; color: var(--dw-red) !important; font-size: 10px; font-weight: 800; }
.dw-native-catalog__results {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-native-catalog__results .products[class*="wd-grid"] {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 0 !important;
  margin: 0 !important;
}

/* Pass 13 — pagination and no-result states. */
body.digiwood-enabled .woocommerce-pagination,
.dw-search-pagination,
.dw-blog-pagination {
  display: flex;
  justify-content: center;
  padding: 24px 14px;
  border-top: 1px solid #f0f0f1;
}
body.digiwood-enabled .woocommerce-pagination ul,
.dw-search-pagination .page-numbers,
.dw-blog-pagination .nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.digiwood-enabled .woocommerce-pagination li { border: 0 !important; }
body.digiwood-enabled .woocommerce-pagination a,
body.digiwood-enabled .woocommerce-pagination span,
.dw-search-pagination a,
.dw-search-pagination span,
.dw-blog-pagination a,
.dw-blog-pagination span {
  display: grid !important;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px !important;
  border: 0 !important;
  border-radius: 8px;
  background: transparent !important;
  color: #424750 !important;
  font-size: 11px;
}
body.digiwood-enabled .woocommerce-pagination .current,
.dw-search-pagination .current,
.dw-blog-pagination .current { background: var(--dw-red) !important; color: #fff !important; }
.dw-empty-guidance,
.dw-search-empty-state,
.dw-empty-cart-guidance {
  display: grid;
  justify-items: center;
  gap: 10px;
  min-height: 360px;
  padding: 44px 18px;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
  text-align: center;
}
.dw-empty-guidance > .dw-icon,
.dw-search-empty-state > .dw-icon,
.dw-empty-cart-guidance > .dw-icon {
  width: 72px;
  height: 72px;
  padding: 17px;
  border-radius: 50%;
  background: #f7f7f8;
  color: #a1a3a8;
}

/* Pass 14 — dedicated search page and contained search dropdown. */
body.dw-page-search .dw-search-backdrop { display: none !important; }
body.dw-page-search .dw-search.is-open { z-index: 1002; }
.dw-search-results {
  border-radius: 8px !important;
  box-shadow: 0 8px 30px rgba(0,0,0,.13) !important;
}
.dw-search-page { padding-top: 0; }
.dw-search-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 98px;
  margin-bottom: 12px;
  padding: 18px 20px;
}
.dw-search-page__header p { margin: 0 0 5px; color: #81858b; font-size: 10px; }
.dw-search-page__header h1 { margin: 0; font-size: clamp(20px, 2vw, 27px); }
.dw-search-page__header > strong { color: #81858b; font-size: 11px; }
.dw-search-page__query {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  margin-bottom: 14px;
  padding: 7px 9px 7px 7px;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  background: #fff;
}
.dw-search-page__query .dw-icon { width: 20px; height: 20px; color: #81858b; }
.dw-search-page__query input { height: 42px; border: 0; outline: 0; background: transparent; }
.dw-search-page__query button { min-width: 92px; height: 42px; border: 0; background: var(--dw-red); color: #fff; font-weight: 800; }
.dw-search-results-page { min-width: 0; }
.dw-search-sortbar { min-height: 58px; }
.dw-search-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 !important;
}
.dw-search-product-grid .dw-product-card {
  border: 0;
  border-inline-end: 1px solid #f0f0f1;
  border-bottom: 1px solid #f0f0f1;
  border-radius: 0;
}
.dw-search-category-results__grid a { min-height: 58px; }
.dw-search-result:focus-visible,
.dw-search-view-all:focus-visible { outline: 2px solid #19bfd3; outline-offset: 2px; }

/* Pass 15 — cart item cards and sticky order summary. */
body.dw-page-cart .dw-page-shell--commerce { padding-top: 0; }
body.dw-page-cart .dw-content-page--commerce,
body.dw-page-cart .dw-content-page--commerce > .entry-content { width: 100%; }
body.dw-page-cart .woocommerce {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 340px !important;
  gap: 18px !important;
  align-items: start;
}
body.dw-page-cart .woocommerce > .woocommerce-notices-wrapper,
body.dw-page-cart .woocommerce > .dw-cart-heading,
body.dw-page-cart .woocommerce > .dw-cart-secondary-actions,
body.dw-page-cart .woocommerce > .return-to-shop { grid-column: 1 / -1; }
body.dw-page-cart form.woocommerce-cart-form {
  grid-column: 1;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
body.dw-page-cart .cart-collaterals {
  grid-column: 2;
  position: sticky;
  top: 88px;
  width: 100% !important;
}
body.dw-page-cart .cart_totals {
  width: 100% !important;
  padding: 17px !important;
  border: 1px solid #d7d7da;
  border-radius: 12px;
  background: #fff;
}
.dw-cart-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  min-height: 105px;
  padding: 18px 0 14px;
  border-bottom: 1px solid #f0f0f1;
}
.dw-cart-heading h1 { margin: 0 0 6px; font-size: 25px; }
.dw-cart-heading p { margin: 0; color: #81858b; font-size: 10px; }
.dw-cart-tabs { display: flex; gap: 20px; }
.dw-cart-tabs span { position: relative; min-height: 38px; color: #81858b; font-size: 11px; font-weight: 700; }
.dw-cart-tabs span.is-active { color: #23254e; }
.dw-cart-tabs span.is-active::after {
  content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 2px; background: var(--dw-red);
}
body.dw-page-cart table.shop_table {
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}
body.dw-page-cart table.shop_table thead { display: none; }
body.dw-page-cart table.shop_table tr.cart_item {
  display: grid;
  grid-template-columns: 26px 150px minmax(0, 1fr) 120px 120px 120px;
  align-items: center;
  gap: 12px;
  min-height: 190px;
  padding: 18px;
  border-bottom: 1px solid #f0f0f1;
}
body.dw-page-cart table.shop_table tr.cart_item td {
  display: block;
  width: auto !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: right !important;
}
body.dw-page-cart td.product-thumbnail img {
  width: 140px !important;
  height: 140px !important;
  padding: 6px;
  object-fit: contain;
}
body.dw-page-cart td.product-name > a { color: #3f4064 !important; font-size: 12px; font-weight: 700; line-height: 2; }
.dw-cart-item-meta { display: grid; gap: 7px; margin-top: 10px; }
.dw-cart-item-meta span { display: flex; align-items: center; gap: 6px; color: #62666d; font-size: 9px; }
.dw-cart-item-meta .dw-icon { width: 15px; height: 15px; color: #81858b; }
body.dw-page-cart td.product-price,
body.dw-page-cart td.product-subtotal { color: #3f4064; font-size: 12px; font-weight: 800; }
body.dw-page-cart td.product-remove a {
  display: grid !important;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #a1a3a8 !important;
}
body.dw-page-cart tr:last-child td.actions { padding: 14px 18px !important; border: 0; }
body.dw-page-cart .coupon { display: flex; gap: 8px; }
body.dw-page-cart .coupon input { min-width: 190px; height: 44px; border: 1px solid var(--dw-border); }
body.dw-page-cart .coupon button,
body.dw-page-cart button[name="update_cart"] { min-height: 44px; }
.dw-order-summary-title { padding-bottom: 12px; border-bottom: 1px solid #f0f0f1; }
body.dw-page-cart .cart_totals h2:not(.dw-order-summary-title h2) { display: none; }
body.dw-page-cart .cart_totals table { margin: 8px 0 !important; border: 0; }
body.dw-page-cart .cart_totals th,
body.dw-page-cart .cart_totals td { padding: 12px 0 !important; border-bottom: 1px solid #f0f0f1 !important; font-size: 10px; }
body.dw-page-cart .wc-proceed-to-checkout a {
  min-height: 50px;
  border-radius: 8px;
  background: var(--dw-red) !important;
  font-size: 12px !important;
}
.dw-cart-service-note { margin: 14px; border-radius: 9px; }
.dw-cart-secondary-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 0 4px;
  color: #81858b;
  font-size: 9px;
}
.dw-cart-secondary-actions a,
.dw-cart-secondary-actions span { display: inline-flex; align-items: center; gap: 6px; }
.dw-cart-secondary-actions a { color: #19bfd3 !important; font-size: 11px; font-weight: 800; }
.dw-cart-secondary-actions .dw-icon { width: 15px; height: 15px; }

/* Pass 16 — checkout progression, forms, order review, and payment. */
body.dw-page-checkout .dw-content-page--commerce,
body.dw-page-checkout .dw-content-page--commerce > .entry-content { width: 100%; }
.dw-checkout-progress {
  width: min(100%, 760px);
  margin: 10px auto 26px;
  padding: 0;
}
.dw-checkout-progress > div span { width: 32px; height: 32px; }
.dw-checkout-progress > i { background: #e0e0e2; }
body.dw-page-checkout form.checkout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 18px;
  align-items: start;
}
body.dw-page-checkout #customer_details {
  grid-column: 1;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
body.dw-page-checkout #customer_details > div {
  width: 100%;
  padding: 20px;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
body.dw-page-checkout #order_review_heading,
body.dw-page-checkout #order_review {
  grid-column: 2;
}
body.dw-page-checkout #order_review_heading { display: none; }
body.dw-page-checkout #order_review {
  position: sticky;
  top: 88px;
  width: 100%;
  padding: 17px;
  border: 1px solid #d7d7da;
  border-radius: 12px;
  background: #fff;
}
.dw-checkout-section-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 70px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-checkout-section-heading > span {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #fff1f3;
  color: var(--dw-red);
  font-size: 13px;
  font-weight: 900;
}
.dw-checkout-section-heading h2 { margin: 0 0 4px; font-size: 15px; }
.dw-checkout-section-heading p { margin: 0; color: #81858b; font-size: 9px; }
.dw-checkout-section-heading--order { display: none; }
body.dw-page-checkout .form-row { margin-bottom: 16px !important; }
body.dw-page-checkout .form-row label { margin-bottom: 7px; color: #62666d; font-size: 10px; font-weight: 700; }
body.dw-page-checkout .input-text,
body.dw-page-checkout select,
body.dw-page-checkout .select2-selection {
  min-height: 46px !important;
  border: 1px solid var(--dw-border) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}
body.dw-page-checkout textarea.input-text { min-height: 110px !important; padding: 12px; }
body.dw-page-checkout #order_review table { margin: 0; border: 0; }
body.dw-page-checkout #order_review th,
body.dw-page-checkout #order_review td { padding: 12px 0 !important; border-bottom: 1px solid #f0f0f1 !important; font-size: 10px; }
body.dw-page-checkout #payment {
  margin-top: 12px;
  border-radius: 9px !important;
  background: #f7f7f8 !important;
}
body.dw-page-checkout #payment .payment_methods { padding: 12px !important; border-bottom: 1px solid #e0e0e2; }
body.dw-page-checkout #payment .place-order { padding: 12px !important; }
body.dw-page-checkout #place_order {
  width: 100%;
  min-height: 50px;
  border-radius: 8px;
  background: var(--dw-red) !important;
  font-size: 12px;
  font-weight: 900;
}
.dw-checkout-trust { border-radius: 8px; }

/* Pass 17 — account login, navigation, dashboard, orders, and addresses. */
body.dw-page-account .dw-content-page--commerce,
body.dw-page-account .dw-content-page--commerce > .entry-content { width: 100%; }
body.dw-page-account .woocommerce {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
body.dw-page-account .woocommerce > .woocommerce-notices-wrapper,
body.dw-page-account .woocommerce > .dw-login-intro,
body.dw-page-account .woocommerce > #customer_login { grid-column: 1 / -1; }
body.dw-page-account .woocommerce-MyAccount-navigation {
  position: sticky;
  top: 88px;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-account-intro {
  margin: 0 !important;
  padding: 16px !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f0f1 !important;
  border-radius: 0 !important;
  background: #fff !important;
}
.dw-account-intro > div { display: flex; align-items: center; gap: 8px; }
.dw-account-intro .dw-icon { width: 23px; height: 23px; color: #424750; }
.dw-account-intro p { margin: 8px 0 0; color: #81858b; font-size: 9px; line-height: 1.8; }
body.dw-page-account .woocommerce-MyAccount-navigation ul { margin: 0; padding: 6px 0; }
body.dw-page-account .woocommerce-MyAccount-navigation li { margin: 0; border: 0; }
body.dw-page-account .woocommerce-MyAccount-navigation a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-inline-start: 3px solid transparent;
  color: #62666d;
  font-size: 11px;
}
body.dw-page-account .woocommerce-MyAccount-navigation li.is-active a,
body.dw-page-account .woocommerce-MyAccount-navigation a:hover {
  border-inline-start-color: var(--dw-red);
  background: #fff1f3;
  color: var(--dw-red);
  font-weight: 800;
}
body.dw-page-account .woocommerce-MyAccount-content {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-account-content-heading {
  margin: -20px -20px 20px;
  padding: 18px 20px;
  border-bottom: 1px solid #f0f0f1;
}
.dw-account-content-heading > div { display: flex; align-items: center; gap: 12px; }
.dw-account-content-heading > div > span {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #f0f0f1; color: #424750;
}
.dw-account-content-heading .dw-icon { width: 22px; height: 22px; }
.dw-account-content-heading h1 { margin: 0 0 4px; font-size: 19px; }
.dw-account-content-heading p { margin: 0; color: #81858b; font-size: 9px; }
.dw-account-dashboard-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}
.dw-account-dashboard-cards > a {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  min-height: 86px;
  padding: 13px;
  border: 1px solid #e0e0e2;
  border-radius: 10px;
  transition: border-color .18s, box-shadow .18s;
}
.dw-account-dashboard-cards > a:hover { border-color: #c0c2c5; box-shadow: 0 3px 12px rgba(0,0,0,.05); }
.dw-account-dashboard-cards > a > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #f7f7f8; color: #424750; }
.dw-account-dashboard-cards > a > span .dw-icon { width: 21px; height: 21px; }
.dw-account-dashboard-cards > a > div { display: grid; gap: 5px; }
.dw-account-dashboard-cards strong { color: #424750; font-size: 11px; }
.dw-account-dashboard-cards small { color: #81858b; font-size: 9px; }
.dw-account-dashboard-cards > a > .dw-icon { width: 16px; height: 16px; color: #a1a3a8; }
body.dw-page-account table.shop_table {
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
}
body.dw-page-account table.shop_table th { background: #f7f7f8; color: #62666d; font-size: 10px; }
body.dw-page-account table.shop_table th,
body.dw-page-account table.shop_table td { padding: 13px !important; border-bottom: 1px solid #f0f0f1 !important; font-size: 10px; }
body.dw-page-account .woocommerce-Address { padding: 16px; border: 1px solid var(--dw-border); border-radius: 10px; }
body.dw-page-account #customer_login.dw-auth-shell { margin-top: 18px; }

/* Pass 18 — editorial, support, legal, and 404 pages. */
.dw-content-page:not(.dw-content-page--commerce),
.dw-blog-page__header,
.dw-article {
  border-color: var(--dw-border);
}
.dw-content-page:not(.dw-content-page--commerce) {
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 12px;
  background: #fff;
}
.dw-content-page__header {
  padding: clamp(24px, 4vw, 48px);
  border-bottom: 1px solid #f0f0f1;
  background: #f7f7f8;
}
.dw-content-page__header span { color: var(--dw-red); font-size: 10px; font-weight: 800; }
.dw-content-page__header h1 { margin: 8px 0 0; font-size: clamp(25px, 3vw, 38px); line-height: 1.5; }
.dw-support-document .entry-content {
  width: min(100%, 1120px);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 52px) !important;
  color: #424750;
  font-size: 13px;
  line-height: 2.15;
}
.dw-support-document .entry-content h2 {
  position: relative;
  margin: 36px 0 15px;
  padding-bottom: 10px;
  font-size: 20px;
}
.dw-support-document .entry-content h2::after {
  content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 52px; height: 3px; border-radius: 2px; background: var(--dw-red);
}
.dw-support-document .entry-content h3 { margin: 26px 0 12px; font-size: 16px; }
.dw-support-document .entry-content :where(ul, ol) { padding-inline-start: 22px; }
.dw-support-document .entry-content li { margin-bottom: 7px; }
.dw-support-document .entry-content blockquote {
  margin: 22px 0;
  padding: 16px 18px;
  border-inline-start: 4px solid #19bfd3;
  border-radius: 8px;
  background: #f7f7f8;
  color: #62666d;
}
.dw-support-document .entry-content table { overflow: hidden; border: 1px solid var(--dw-border); border-radius: 9px; }
.dw-support-document .entry-content th { background: #f7f7f8; }
.dw-support-document .entry-content th,
.dw-support-document .entry-content td { padding: 12px; border: 1px solid #f0f0f1; }
.dw-support-toc {
  float: inline-start;
  width: min(280px, 34%);
  margin: 0 0 22px 22px;
  padding: 15px;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  background: #fff;
}
.dw-support-toc strong { display: block; margin-bottom: 10px; font-size: 12px; }
.dw-support-toc a { display: block; padding: 6px 0; color: #62666d !important; font-size: 10px; line-height: 1.7; }
.dw-support-toc a:hover { color: var(--dw-red) !important; }
.dw-blog-page { padding-top: 0; }
.dw-blog-page__header { margin-bottom: 18px; padding: clamp(24px, 4vw, 44px); border: 1px solid var(--dw-border); border-radius: 12px; background: #f7f7f8; }
.dw-blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.dw-blog-card { overflow: hidden; border: 1px solid var(--dw-border); border-radius: 12px; background: #fff; transition: box-shadow .18s, transform .18s; }
.dw-blog-card:hover { transform: translateY(-2px); box-shadow: 0 7px 24px rgba(0,0,0,.08); }
.dw-blog-card__media { aspect-ratio: 16 / 9; overflow: hidden; }
.dw-blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.dw-blog-card:hover .dw-blog-card__media img { transform: scale(1.025); }
.dw-blog-card > div { padding: 16px; }
.dw-article { width: min(100%, 1240px); }
.dw-article > header { border-radius: 12px 12px 0 0; }
.dw-article__content { font-size: 14px; }
.dw-related-articles {
  width: min(100%, 1240px);
  margin: 22px auto 0;
  padding-top: 22px;
  border-top: 1px solid var(--dw-border);
}
.dw-related-articles h2 { margin: 0 0 15px; font-size: 19px; }
.dw-related-articles__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dw-related-articles__grid a { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 10px; align-items: center; min-height: 100px; padding: 10px; border: 1px solid var(--dw-border); border-radius: 10px; }
.dw-related-articles__grid img { width: 100px; height: 78px; border-radius: 7px; object-fit: cover; }
.dw-related-articles__grid strong { color: #424750; font-size: 11px; line-height: 1.85; }
body.dw-page-404 .dw-404 { width: min(100%, 900px); margin: 36px auto; border: 1px solid var(--dw-border); border-radius: 14px; background: #fff; }

/* Pass 19 — notices, validation, loaders, focus, and state feedback. */
body.digiwood-enabled .woocommerce-notices-wrapper:not(:empty) { margin: 0 0 14px; }
body.digiwood-enabled :where(.woocommerce-message, .woocommerce-info, .woocommerce-error) {
  position: relative;
  min-height: 52px;
  margin: 0 0 10px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--dw-border) !important;
  border-top: 0 !important;
  border-radius: 9px !important;
  background: #fff !important;
  color: #424750 !important;
  box-shadow: none !important;
  font-size: 10px;
  line-height: 1.9;
}
body.digiwood-enabled .woocommerce-message { border-inline-start: 4px solid #00a049 !important; }
body.digiwood-enabled .woocommerce-info { border-inline-start: 4px solid #19bfd3 !important; }
body.digiwood-enabled .woocommerce-error { border-inline-start: 4px solid var(--dw-red) !important; }
body.digiwood-enabled :where(.woocommerce-message, .woocommerce-info, .woocommerce-error)::before { display: none !important; }
body.digiwood-enabled :where(input, select, textarea, button, a):focus-visible {
  outline: 2px solid #19bfd3 !important;
  outline-offset: 2px;
}
body.digiwood-enabled :where(input, select, textarea).woocommerce-invalid,
body.digiwood-enabled .woocommerce-invalid :where(input, select, textarea) { border-color: var(--dw-red) !important; }
.dw-toast {
  position: fixed;
  z-index: 11000;
  inset-inline-end: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 260px;
  max-width: min(420px, calc(100vw - 32px));
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #23254e;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.dw-toast.is-visible { opacity: 1; transform: translateY(0); }
.dw-toast .dw-icon { flex: 0 0 20px; width: 20px; height: 20px; color: #6ee7a8; }
.dw-toast span { font-size: 10px; line-height: 1.8; }
.dw-card-add.is-loading,
.single_add_to_cart_button.loading { opacity: .65; pointer-events: none; }
.dw-card-add.is-loading .dw-icon { animation: dw-spin .65s linear infinite; }
@keyframes dw-spin { to { transform: rotate(360deg); } }

/* Pass 20 — responsive, mobile commerce, reduced motion, and print. */
@media (max-width: 1450px) {
  body.dw-page-product .product-image-summary,
  body.dw-page-product .product-image-summary.dw-product-marketplace-grid {
    grid-template-columns: minmax(350px, .9fr) minmax(370px, 1fr) minmax(310px, 350px) !important;
    gap: 24px !important;
  }
  body.dw-page-product .related.products .products,
  body.dw-page-product .upsells.products .products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; }
  .dw-native-catalog__results .products[class*="wd-grid"],
  .dw-search-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  body.dw-page-cart table.shop_table tr.cart_item { grid-template-columns: 24px 125px minmax(0, 1fr) 105px 100px 105px; }
}
@media (max-width: 1180px) {
  body.dw-page-product .product-image-summary,
  body.dw-page-product .product-image-summary.dw-product-marketplace-grid {
    grid-template-columns: minmax(340px, 42%) minmax(0, 1fr) !important;
  }
  body.dw-page-product .product-images { grid-column: 1; }
  body.dw-page-product .summary { grid-column: 2; }
  body.dw-page-product .dw-seller-panel {
    grid-column: 1 / -1;
    position: static !important;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
  }
  .dw-seller-panel__head,
  .dw-seller-panel__seller,
  .dw-seller-panel__price,
  .dw-seller-panel__stock,
  .dw-seller-panel__purchase,
  .dw-seller-panel .dw-buy-reassurance { grid-column: 1 / -1; }
  body.dw-page-product .related.products .products,
  body.dw-page-product .upsells.products .products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .dw-native-catalog__layout,
  .dw-search-layout { grid-template-columns: 240px minmax(0, 1fr) !important; }
  body.dw-page-cart .woocommerce { grid-template-columns: minmax(0, 1fr) 310px !important; }
  body.dw-page-cart table.shop_table tr.cart_item {
    grid-template-columns: 24px 110px minmax(0, 1fr) 96px;
  }
  body.dw-page-cart td.product-price { display: none !important; }
  body.dw-page-cart td.product-subtotal { grid-column: 4; }
  body.dw-page-checkout form.checkout { grid-template-columns: minmax(0, 1fr) 330px; }
}
@media (max-width: 900px) {
  body.digiwood-enabled:not(.home) {
    --dw-secondary-gutter: 10px;
  }
  body.digiwood-enabled:not(.home) .dw-announcement { display: none; }
  body.digiwood-enabled:not(.home) .main-page-wrapper { padding-bottom: 84px; }
  .dw-breadcrumbs { min-height: 40px; margin-bottom: 4px; font-size: 9px; }
  body.dw-page-product .product-image-summary,
  body.dw-page-product .product-image-summary.dw-product-marketplace-grid {
    display: block !important;
    padding-top: 6px !important;
  }
  body.dw-page-product .woocommerce-product-gallery__image { min-height: 330px !important; }
  body.dw-page-product .summary { padding-top: 18px !important; }
  .dw-product-action-links {
    position: static;
    flex-direction: row;
    margin: 4px 0 12px;
  }
  .dw-product-action-links button { width: auto; height: 34px; padding: 0 8px; border-radius: 7px; background: #f7f7f8; }
  .dw-product-action-links button span { display: inline; margin-inline-start: 5px; font-size: 9px; }
  .dw-product-action-links .dw-icon { width: 17px; height: 17px; }
  .dw-product-confidence { grid-template-columns: 1fr; }
  .dw-product-confidence > div { min-height: 42px; }
  body.dw-page-product .dw-seller-panel { display: block; margin-top: 16px !important; }
  .dw-product-assurances--five { grid-template-columns: repeat(5, 116px); justify-content: start; overflow-x: auto; }
  .dw-product-section-nav { top: 0; margin-inline: -2px; border-radius: 0; }
  body.dw-page-product .woocommerce-tabs .woocommerce-Tabs-panel { padding: 20px 14px !important; }
  body.dw-page-product .related.products .products,
  body.dw-page-product .upsells.products .products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .dw-native-catalog__layout,
  .dw-search-layout { display: block; }
  .dw-native-filter,
  .dw-search-filters {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 10050;
    width: min(88vw, 390px);
    max-height: none;
    border: 0;
    border-radius: 0;
    transform: translateX(110%);
  }
  .dw-native-filter.is-open,
  .dw-search-filters.is-open { transform: translateX(0); }
  .dw-native-catalog__results { border-radius: 10px; }
  .dw-native-catalog__results .products[class*="wd-grid"],
  .dw-search-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dw-search-page__header { min-height: 80px; padding: 14px; }
  .dw-search-page__query { grid-template-columns: 20px minmax(0,1fr) 72px; }
  body.dw-page-cart .woocommerce,
  body.dw-page-checkout form.checkout,
  body.dw-page-account .woocommerce { display: block !important; }
  body.dw-page-cart .cart-collaterals,
  body.dw-page-checkout #order_review,
  body.dw-page-account .woocommerce-MyAccount-navigation { position: static; margin-top: 14px; }
  body.dw-page-cart table.shop_table tr.cart_item {
    grid-template-columns: 22px 100px minmax(0, 1fr);
    min-height: 150px;
    gap: 9px;
    padding: 13px;
  }
  body.dw-page-cart td.product-thumbnail img { width: 96px !important; height: 110px !important; }
  body.dw-page-cart td.product-quantity,
  body.dw-page-cart td.product-subtotal { grid-column: 3; }
  body.dw-page-cart td.product-subtotal { margin-top: 6px; }
  body.dw-page-cart .coupon { width: 100%; }
  body.dw-page-cart .coupon input { min-width: 0; flex: 1; }
  .dw-cart-secondary-actions { align-items: flex-start; flex-direction: column; padding-block: 12px; }
  .dw-checkout-section-heading--order { display: flex; margin-top: 14px; }
  body.dw-page-checkout #order_review { margin-top: 0; }
  body.dw-page-account .woocommerce-MyAccount-navigation { margin-bottom: 12px; }
  .dw-account-mobile-select {
    display: flex;
    width: 100%;
    height: 46px;
    margin-bottom: 12px;
    padding: 0 12px;
    border: 1px solid var(--dw-border);
    background: #fff;
  }
  body.dw-page-account .woocommerce-MyAccount-navigation ul { display: none; }
  .dw-account-dashboard-cards { grid-template-columns: 1fr; }
  .dw-support-toc { float: none; width: 100%; margin: 0 0 20px; }
  .dw-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dw-related-articles__grid { grid-template-columns: 1fr; }
  .dw-toast { inset-inline: 12px; bottom: 76px; min-width: 0; }
}
@media (max-width: 600px) {
  body.dw-page-product .woocommerce-product-gallery__image { min-height: 280px !important; padding: 6px; }
  body.dw-page-product .woocommerce-product-gallery__image img { max-height: 330px !important; }
  body.dw-page-product .woocommerce-product-gallery .flex-control-thumbs li { flex-basis: 62px; width: 62px !important; height: 62px; }
  body.dw-page-product .summary > .product_title { font-size: 18px !important; line-height: 1.8 !important; }
  .dw-product-highlights ul { grid-template-columns: 1fr; }
  .dw-seller-panel__purchase form.cart { grid-template-columns: 88px minmax(0, 1fr) !important; }
  body.dw-page-product .related.products .products,
  body.dw-page-product .upsells.products .products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .dw-catalog-context__title { min-height: 68px; padding: 12px; }
  .dw-category-chips { padding-inline: 12px; }
  .dw-category-chips a { flex-basis: 76px; }
  .dw-category-chips img { width: 62px; height: 62px; }
  .dw-active-filters { margin-bottom: 8px; }
  .dw-native-catalog__results .product-grid-item,
  .dw-search-product-grid .dw-product-card { padding: 9px !important; }
  .dw-search-page__header { align-items: flex-start; flex-direction: column; }
  .dw-search-page__query button { min-width: 68px; }
  .dw-cart-heading { align-items: flex-start; flex-direction: column; min-height: 130px; }
  body.dw-page-cart table.shop_table tr.cart_item { grid-template-columns: 20px 82px minmax(0,1fr); }
  body.dw-page-cart td.product-thumbnail img { width: 80px !important; height: 96px !important; }
  body.dw-page-cart .coupon { flex-direction: column; }
  body.dw-page-cart .coupon button { width: 100%; }
  body.dw-page-checkout #customer_details > div,
  body.dw-page-checkout #order_review,
  body.dw-page-account .woocommerce-MyAccount-content { padding: 14px; }
  .dw-account-content-heading { margin: -14px -14px 16px; padding: 14px; }
  .dw-blog-grid { grid-template-columns: 1fr; }
  .dw-support-document .entry-content { padding: 20px 16px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .dw-header, .dw-footer, .dw-mobile-bottom, .dw-mobile-buybar, .dw-product-action-links, .dw-product-section-nav, .dw-native-filter, .dw-search-filters { display: none !important; }
  body.digiwood-enabled .main-page-wrapper { padding: 0 !important; }
  body.digiwood-enabled main.dw-container { width: 100% !important; max-width: none !important; }
}

/* Supplemental interaction surfaces used by passes 12, 17, 19, and 20. */
.dw-sort-sheet { position: fixed; inset: 0; z-index: 10070; display: none; }
.dw-sort-sheet.is-open { display: block; }
.dw-sort-sheet__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: rgba(0,0,0,.42); }
.dw-sort-sheet > section {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 74vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
  animation: dw-sheet-in .2s ease-out;
}
.dw-sort-sheet header { display: flex; align-items: center; justify-content: space-between; min-height: 58px; padding: 0 16px; border-bottom: 1px solid var(--dw-border); }
.dw-sort-sheet header strong { color: #23254e; font-size: 14px; }
.dw-sort-sheet header button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; background: transparent; color: #62666d; font-size: 25px; }
.dw-sort-sheet section > div { padding: 4px 16px 22px; }
.dw-sort-sheet section > div a { display: flex; align-items: center; min-height: 50px; border-bottom: 1px solid #f0f0f1; color: #424750 !important; font-size: 11px; }
.dw-sort-sheet section > div a.is-active { color: var(--dw-red) !important; font-weight: 900; }
.dw-sort-sheet section > div a.is-active::after { content: "✓"; margin-inline-start: auto; color: var(--dw-red); }
body.dw-sort-open { overflow: hidden; }
@keyframes dw-sheet-in { from { transform: translateY(100%); } to { transform: translateY(0); } }
.dw-table-scroll { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dw-table-scroll > table { min-width: 640px; }
.dw-mobile-bottom a.is-active { color: var(--dw-red) !important; font-weight: 800; }
.dw-mobile-bottom a.is-active .dw-icon { color: var(--dw-red); }
@media (min-width: 901px) {
  .dw-sort-sheet, .dw-account-mobile-select { display: none !important; }
}
.dw-search-category-rail {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 16px;
  overflow: hidden;
  border: 1px solid var(--dw-border);
  border-radius: 10px;
  background: #fff;
}
.dw-search-category-rail > strong { color: #424750; font-size: 11px; }
.dw-search-category-rail > div { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: none; }
.dw-search-category-rail > div::-webkit-scrollbar { display: none; }
.dw-search-category-rail a { flex: 0 0 78px; display: grid; justify-items: center; gap: 6px; color: #62666d !important; text-align: center; font-size: 9px; line-height: 1.6; }
.dw-search-category-rail img { width: 58px; height: 58px; padding: 4px; border: 1px solid #f0f0f1; border-radius: 50%; object-fit: contain; }
.dw-related-articles__placeholder { display: grid; place-items: center; width: 100px; height: 78px; border-radius: 7px; background: #f7f7f8; color: #a1a3a8; }
.dw-related-articles__placeholder .dw-icon { width: 28px; height: 28px; }
body.dw-page-404 .dw-error-page { padding: 0 0 48px; }
body.dw-page-404 .dw-error-card {
  width: min(100%, 920px);
  margin: 34px auto;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--dw-border);
  border-radius: 14px;
  background: #fff;
  text-align: center;
}
body.dw-page-404 .dw-error-card__visual { display: grid; justify-items: center; gap: 5px; color: #a1a3a8; }
body.dw-page-404 .dw-error-card__visual .dw-icon { width: 74px; height: 74px; padding: 17px; border-radius: 50%; background: #f7f7f8; }
body.dw-page-404 .dw-error-card__visual span { color: #ef4056; font-size: 40px; font-weight: 900; }
body.dw-page-404 .dw-error-card h1 { margin: 12px 0 8px; font-size: clamp(23px, 3vw, 34px); }
body.dw-page-404 .dw-error-card > p { width: min(100%, 620px); margin: 0 auto 20px; color: #81858b; font-size: 11px; line-height: 2; }
body.dw-page-404 .dw-error-search { width: min(100%, 620px); margin: 0 auto 18px; }
body.dw-page-404 .dw-error-search form { display: flex; gap: 8px; }
body.dw-page-404 .dw-error-search input { flex: 1; min-width: 0; height: 46px; border: 1px solid var(--dw-border); }
body.dw-page-404 .dw-error-search button { min-width: 92px; border: 0; background: var(--dw-red); color: #fff; }
body.dw-page-404 .dw-error-categories { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0 0 20px; }
body.dw-page-404 .dw-error-categories a { min-height: 34px; padding: 7px 11px; border: 1px solid var(--dw-border); border-radius: 17px; color: #62666d !important; font-size: 9px; }
body.dw-page-404 .dw-error-actions { display: flex; justify-content: center; gap: 9px; }
