.commerce-preview-page {
  background: #f3f6f7;
  color: #14232b;
}

/* Approved Dovryx production-v1 header logo. */
.brand .dovryx-brand-logo {
  display: block;
  width: clamp(142px, 13vw, 178px);
  height: auto;
  max-width: 42vw;
}

@media (max-width: 480px) {
  .brand .dovryx-brand-logo {
    width: 132px;
    max-width: 44vw;
  }
}

.commerce-shell {
  min-height: 68vh;
  padding-top: 3rem;
}

.commerce-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.commerce-heading h1 {
  margin: 0.4rem 0 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

.commerce-content {
  max-width: 1180px;
}

.commerce-content .woocommerce {
  width: 100%;
}

.commerce-content a {
  color: #006f88;
}

.commerce-content .button,
.commerce-content button,
.commerce-content input[type="submit"] {
  min-height: 44px;
  padding: 0.72rem 1rem;
  border: 1px solid #087f9b;
  border-radius: 6px;
  background: #087f9b;
  color: #fff;
  font: inherit;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.commerce-content .button:hover,
.commerce-content button:hover,
.commerce-content input[type="submit"]:hover {
  border-color: #065f74;
  background: #065f74;
  color: #fff;
}

.commerce-content input,
.commerce-content select,
.commerce-content textarea {
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b8c6cd;
  border-radius: 4px;
  background: #fff;
}

.commerce-content input[type="checkbox"],
.commerce-content input[type="radio"] {
  min-height: 0;
  padding: 0;
}

.commerce-content label {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.commerce-content .woocommerce-info,
.commerce-content .woocommerce-message,
.commerce-content .woocommerce-error {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #b7d4dc;
  border-left: 4px solid #087f9b;
  border-radius: 6px;
  background: #fff;
  color: #24404d;
  list-style: none;
}

.woocommerce-shop .commerce-content .products {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-shop .commerce-content .product {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid #cbd7dc;
  border-radius: 8px;
  background: #fff;
}

.woocommerce-shop .commerce-content .product img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.woocommerce-shop .woocommerce-loop-product__title {
  margin: 1rem 0 0.4rem;
  font-size: 1.15rem;
  line-height: 1.3;
}

.woocommerce-shop .woocommerce-result-count {
  margin: 0 0 1rem;
  color: #536b78;
}

.woocommerce-shop .woocommerce-ordering {
  margin: 0 0 1.25rem;
}

.woocommerce-shop .woocommerce-no-products-found {
  max-width: 760px;
}

.dovryx-empty-state {
  max-width: 760px;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid #b7d4dc;
  border-left: 4px solid #087f9b;
  border-radius: 8px;
  background: #fff;
  color: #24404d;
}

.dovryx-empty-state__label {
  margin: 0 0 0.65rem;
  color: #087f9b;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dovryx-empty-state h2 {
  margin: 0;
  color: #14232b;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  line-height: 1.08;
}

.dovryx-empty-state > p:not(.dovryx-empty-state__label) {
  max-width: 58ch;
  margin: 1rem 0 0;
  color: #536b78;
  line-height: 1.65;
}

.dovryx-empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.commerce-content .dovryx-empty-state .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  white-space: nowrap;
}

.commerce-content .dovryx-empty-state .dovryx-button-secondary {
  border-color: #9fb5bf;
  background: #fff;
  color: #18576a;
}

.commerce-content .dovryx-empty-state .dovryx-button-secondary:hover {
  border-color: #087f9b;
  background: #e9f3f5;
  color: #065f74;
}

.commerce-content .dovryx-empty-state .button:focus-visible {
  outline: 3px solid rgba(8, 127, 156, 0.35);
  outline-offset: 3px;
}

.woocommerce-cart .dovryx-cart-empty-state {
  margin-inline: auto;
}

.woocommerce-account.logged-in .commerce-content .woocommerce {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.woocommerce-account.logged-in .commerce-content .woocommerce::before,
.woocommerce-account.logged-in .commerce-content .woocommerce::after {
  display: none;
  content: none;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  float: none;
  width: auto;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-navigation {
  grid-column: 1;
  grid-row: 1;
}

.woocommerce-account.logged-in .woocommerce-MyAccount-content {
  grid-column: 2;
  grid-row: 1;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a {
  display: block;
  padding: 0.72rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #24404d;
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a {
  border-color: #b7d4dc;
  background: #e9f3f5;
  color: #065f74;
}

.woocommerce-account .woocommerce-MyAccount-content {
  min-width: 0;
}

.woocommerce-account .woocommerce-form-login {
  max-width: 540px;
  padding: 1.4rem;
  border: 1px solid #cbd7dc;
  border-radius: 8px;
  background: #fff;
}

.woocommerce-account .woocommerce-form-row input:not([type="checkbox"]),
.woocommerce-account .woocommerce-form-row textarea {
  width: 100%;
}

.woocommerce-account .woocommerce-form-login__rememberme {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block {
  max-width: 760px;
  margin-inline: auto;
}

.woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading {
  margin-top: 1.5rem;
  font-size: 2rem;
  line-height: 1.1;
}

.woocommerce-checkout .wc-block-checkout,
.woocommerce-cart .wc-block-cart {
  width: 100%;
  max-width: 1100px;
  margin-inline: auto;
}

.product-page .product-price .amount {
  color: inherit;
}

.product-page .product-actions .button.disabled,
.product-page .purchase-button.disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.product-page .woocommerce-product-database-copy {
  max-width: 760px;
  color: #536b78;
}

.product-page .woocommerce-product-database-copy p:last-child {
  margin-bottom: 0;
}

.product-page .model-note {
  margin-top: 0.7rem;
  color: #536b78;
  font-size: 0.92rem;
}

.product-page .product-specs dd {
  overflow-wrap: anywhere;
}

.product-page .driver-evidence code {
  overflow-wrap: anywhere;
}

.product-page .gallery-thumbs.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (prefers-color-scheme: dark) {
  .commerce-preview-page {
    background: #10191f;
    color: #edf5f7;
  }

  .commerce-content input,
  .commerce-content select,
  .commerce-content textarea {
    border-color: #42545e;
    background: #17242b;
    color: #edf5f7;
  }

  .dovryx-empty-state {
    border-color: #43525a;
    border-left-color: #71c3d3;
    background: #17242b;
    color: #edf5f7;
  }

  .dovryx-empty-state__label,
  .dovryx-empty-state h2 {
    color: #edf5f7;
  }

  .dovryx-empty-state > p:not(.dovryx-empty-state__label) {
    color: #b8c7cd;
  }

  .commerce-content .dovryx-empty-state .dovryx-button-secondary {
    border-color: #607681;
    background: #17242b;
    color: #d9eef2;
  }

  .commerce-content .dovryx-empty-state .dovryx-button-secondary:hover {
    border-color: #71c3d3;
    background: #26383f;
    color: #fff;
  }
}

@media (max-width: 640px) {
  .commerce-shell {
    padding-top: 2rem;
  }

  .commerce-heading h1 {
    font-size: 2.35rem;
  }

  .woocommerce-shop .commerce-content .products,
  .woocommerce-account.logged-in .commerce-content .woocommerce {
    grid-template-columns: 1fr;
  }

  .woocommerce-account.logged-in .commerce-content .woocommerce {
    gap: 1.25rem;
  }

  .woocommerce-account.logged-in .woocommerce-MyAccount-navigation,
  .woocommerce-account.logged-in .woocommerce-MyAccount-content {
    grid-column: 1;
    grid-row: auto;
  }

  .woocommerce-account .woocommerce-MyAccount-navigation ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .woocommerce-account .woocommerce-MyAccount-navigation a {
    height: 100%;
  }

  .woocommerce-account .woocommerce-form-login {
    padding: 1rem;
  }

  .woocommerce-cart .wp-block-woocommerce-empty-cart-block > .wp-block-heading {
    font-size: 1.7rem;
  }

  .dovryx-empty-state {
    padding: 1.25rem;
  }

  .dovryx-empty-state__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .commerce-content .dovryx-empty-state .button {
    width: 100%;
  }
}

/*
 * v0.5.5 checkout order-summary reflow.
 *
 * The parent theme's generic `.price` hero rule also matches WooCommerce
 * Blocks' order-summary price element. At checkout it turns a compact amount
 * into a 36px, margin-bearing flex item, forcing the 48px image, description
 * and total wider than the available mobile and narrow-sidebar columns.
 * Reset only WooCommerce block prices on Cart/Checkout, keep the description
 * shrinkable, and preserve a 44px minimum target for the final action.
 */
.woocommerce-cart .wc-block-components-product-price,
.woocommerce-checkout .wc-block-components-product-price {
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
}

.woocommerce-checkout .wc-block-components-order-summary__content,
.woocommerce-checkout .wc-block-components-order-summary-item {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.woocommerce-checkout .wc-block-components-order-summary-item__image {
  flex: 0 0 48px;
}

.woocommerce-checkout .wc-block-components-order-summary-item__description {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
}

.woocommerce-checkout .wc-block-components-order-summary-item__total-price {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
}

.woocommerce-checkout .wc-block-cart-item__total-price-and-sale-badge-wrapper,
.woocommerce-checkout .wc-block-components-order-summary-item__total-price .wc-block-components-product-price {
  width: auto;
  min-width: 0;
}

.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 44px !important;
}

/* v0.4.3 UI hierarchy candidate */
.menu-button {
  min-width: 44px;
  min-height: 44px;
}

.page-jump-nav {
  display: flex;
  gap: 8px;
  margin: 24px clamp(22px, 5vw, 76px) 0;
  padding: 10px;
  overflow-x: auto;
  border: 1px solid #cbd5da;
  border-radius: 8px;
  background: rgba(251, 252, 253, .96);
  scrollbar-width: thin;
}

.page-jump-nav.compact {
  margin: 24px 0 0;
  flex-wrap: wrap;
  overflow: visible;
}

.page-jump-nav a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 6px;
  color: #31505d;
  font-size: 13px;
  font-weight: 780;
}

.page-jump-nav a:hover,
.page-jump-nav a:focus-visible {
  color: #065f74;
  background: #e9f3f5;
}

.page-jump-nav a:focus-visible,
.content-disclosure summary:focus-visible {
  outline: 3px solid rgba(8, 127, 156, .35);
  outline-offset: 2px;
}

.content-disclosure {
  border: 1px solid #cbd5da;
  border-radius: 8px;
  background: #fbfcfd;
}

.content-disclosure summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 12px 18px;
  color: #18576a;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.content-disclosure summary::-webkit-details-marker {
  display: none;
}

.content-disclosure summary::after {
  content: "+";
  margin-left: 18px;
  font-size: 22px;
  line-height: 1;
}

.content-disclosure[open] summary {
  border-bottom: 1px solid #cbd5da;
}

.content-disclosure[open] summary::after {
  content: "-";
}

.content-disclosure .proof-grid,
.content-disclosure .driver-evidence,
.content-disclosure .support-matrix {
  margin: 0;
  border: 0;
  border-radius: 0;
}

.compatibility-hero-checker {
  grid-template-columns: minmax(300px, .56fr) minmax(0, 1.44fr);
  gap: clamp(34px, 5vw, 72px);
  align-items: start;
  min-height: auto;
  padding-top: clamp(36px, 4vw, 56px);
  padding-bottom: clamp(42px, 5vw, 68px);
}

.compatibility-hero-checker > * {
  min-width: 0;
}

.compatibility-hero-checker .compatibility-hero-copy {
  position: sticky;
  top: 96px;
}

.compatibility-hero-checker .compatibility-hero-copy h1 {
  font-size: clamp(42px, 4.2vw, 56px);
}

.compatibility-hero-checker .compatibility-hero-facts {
  border: 1px solid #cbd5da;
  border-radius: 8px;
  background: #fbfcfd;
  overflow: hidden;
}

.compatibility-hero-checker .compatibility-checker {
  grid-template-columns: 1fr;
  align-self: start;
}

.compatibility-hero-checker .checker-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
}

.compatibility-hero-checker .checker-note,
.compatibility-hero-checker .checker-form fieldset:first-of-type,
.compatibility-hero-checker .checker-button {
  grid-column: 1 / -1;
}

.compatibility-hero-checker .checker-note {
  margin: 0;
  color: #5d6972;
  font-size: 14px;
}

.compatibility-hero-checker .choice-grid label > span {
  min-height: 70px;
  padding: 12px 14px;
}

.compatibility-hero-checker .checker-result {
  min-height: 0;
  padding: 24px clamp(22px, 3vw, 34px);
  border-top: 1px solid #cbd5da;
  border-left: 0;
}

.compatibility-hero-checker .checker-result h3 {
  font-size: clamp(26px, 2.8vw, 36px);
}

.product-page .product-actions {
  order: 1;
}

.product-page .tested-scope {
  order: 2;
  margin-top: 22px;
}

.product-page .buy-checks {
  order: 3;
}

.product-page .purchase-reminder {
  order: 4;
}

.product-page .product-assurance {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-trust {
  border-top: 1px solid #cbd5da;
}

.product-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 30px;
}

.product-trust-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid #cbd5da;
  border-radius: 8px;
  background: #fbfcfd;
}

.product-trust-card-wide {
  grid-column: 1 / -1;
}

.product-trust-card > span {
  display: block;
  margin-bottom: 10px;
  color: #3b8190;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.product-trust-card > strong {
  display: block;
  color: #172127;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.15;
}

.product-trust-card > p {
  margin: 12px 0 0;
  color: #526169;
}

.product-trust-card > a {
  display: inline-block;
  min-height: 44px;
  margin-top: 14px;
  padding: 11px 0;
  color: #176e7e;
  font-weight: 700;
}

.product-document-details {
  margin-top: 18px;
  border-top: 1px solid #cbd5da;
}

.product-document-details summary {
  min-height: 48px;
  padding: 14px 36px 14px 0;
  color: #176e7e;
  font-weight: 750;
  cursor: pointer;
}

.product-document-details ul {
  margin: 0 0 14px;
  padding-left: 20px;
}

.product-document-details p {
  margin: 0;
  color: #526169;
}

@media (prefers-color-scheme: dark) {
  .page-jump-nav,
  .content-disclosure,
  .compatibility-hero-checker .compatibility-hero-facts {
    color: #e6ecef;
    border-color: #43525a;
    background: #172127;
  }

  .page-jump-nav a {
    color: #c2d0d6;
  }

  .page-jump-nav a:hover,
  .page-jump-nav a:focus-visible {
    color: #e6f7fa;
    background: #26383f;
  }

  .content-disclosure summary {
    color: #71c3d3;
  }

  .content-disclosure[open] summary,
  .compatibility-hero-checker .checker-result {
    border-color: #43525a;
  }

  .compatibility-hero-checker .checker-note {
    color: #a7b2b8;
  }

  .product-trust-card {
    border-color: #43525a;
    background: #172127;
  }

  .product-trust-card > strong {
    color: #e6ecef;
  }

  .product-trust-card > p,
  .product-document-details p {
    color: #a7b2b8;
  }

  .product-document-details {
    border-color: #43525a;
  }
}

.product-page .product-buy h1 {
  font-size: clamp(42px, 4.4vw, 64px);
  line-height: 0.98;
}

@media (max-width: 1040px) {
  .compatibility-hero-checker {
    grid-template-columns: 1fr;
  }

  .compatibility-hero-checker .compatibility-hero-copy {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-page .product-buy {
    order: -1;
  }

  .product-page .product-gallery {
    order: 2;
  }

  .compatibility-hero-checker .checker-form {
    grid-template-columns: 1fr;
  }

  .compatibility-hero-checker .checker-form fieldset,
  .compatibility-hero-checker .checker-button {
    grid-column: 1;
  }

  .product-page .product-assurance,
  .product-trust-grid {
    grid-template-columns: 1fr;
  }

  .product-trust-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .page-jump-nav {
    margin-inline: 18px;
  }

  .page-jump-nav.compact {
    margin-inline: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .product-page .product-hero {
    gap: 34px;
    padding-top: 32px;
  }

  .product-page .product-buy h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .product-page .product-gallery .gallery-main {
    min-height: 280px;
  }

  .product-page .product-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .compatibility-hero-checker {
    gap: 30px;
    padding-top: 34px;
  }

  .compatibility-hero-checker .compatibility-hero-copy h1 {
    font-size: 40px;
    line-height: 1.02;
  }

  .compatibility-hero-checker .compatibility-hero-facts {
    display: none;
  }

  .compatibility-hero-checker .checker-form,
  .compatibility-hero-checker .checker-result {
    padding: 20px;
  }

  .content-disclosure summary {
    min-height: 52px;
  }
}

/*
 * v0.5.4 mobile cart reflow.
 *
 * WooCommerce 10.9.4 gives the compact cart row two explicit fixed tracks
 * while the product cell spans into a third and the total creates an implicit
 * fourth track. Inside the Dovryx mobile page padding that produces a 48px
 * overflow at 360px and an 18px overflow at 390px. Define the three visible
 * columns explicitly and keep the product copy shrinkable.
 */
@media (max-width: 640px) {
  .woocommerce-cart .wc-block-cart,
  .woocommerce-cart .wc-block-cart__main,
  .woocommerce-cart table.wc-block-cart-items,
  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .woocommerce-cart table.wc-block-cart-items {
    table-layout: fixed;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row {
    grid-template-columns: 72px minmax(0, 1fr) max-content;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image {
    grid-column: 1;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product {
    grid-column: 2 / 3;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .woocommerce-cart table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total {
    grid-column: 3;
    width: auto;
    min-width: 0;
  }
}
