/* Native commerce and editorial system. Load after rd-site / rd-exam.
 * Woodmart 8.6.4 + WooCommerce 11.2.0, classic templates and Cart blocks.
 * This module owns presentation, not form state, grid columns or calculations.
 * The home shell and third-party payment/consent interfaces are left alone.
 */

body.rd-brand-tu {
  --rd-c-bg: #141414;
  --rd-c-surface: #202020;
  --rd-c-soft: #25231f;
  --rd-c-border: #3d3934;
  --rd-c-control-border: #7b7266;
  --rd-c-ink: #f8f7f4;
  --rd-c-muted: #bcbab6;
  --rd-c-accent: #ff981f;
  --rd-c-hover: #ffb75d;
  --rd-c-on-accent: #171411;
  --rd-c-error: #ff9387;
  --rd-c-radius: 10px;
  --rd-c-button-radius: 7px;
  --rd-c-title-weight: 600;
}

body.rd-brand-exam {
  --rd-c-bg: #ffffff;
  --rd-c-surface: #ffffff;
  --rd-c-soft: #fff2f4;
  --rd-c-border: #e9dce0;
  --rd-c-control-border: #9d7f87;
  --rd-c-ink: #28252a;
  --rd-c-muted: #665d64;
  --rd-c-accent: #b91f40;
  --rd-c-hover: #951632;
  --rd-c-on-accent: #ffffff;
  --rd-c-error: #b91935;
  --rd-c-radius: 18px;
  --rd-c-button-radius: 10px;
  --rd-c-title-weight: 750;
}

/* Native tokens inherit through the page content, not the header or dialogs. */
body:is(.rd-brand-tu, .rd-brand-exam):is(.woocommerce-page, .woocommerce, .blog, .single-post, .category, .tag, .search-results, .search-no-results)
  .main-page-wrapper {
  --wd-form-height: 48px;
  --wd-form-bg: var(--rd-c-surface);
  --wd-form-brd-color: var(--rd-c-control-border);
  --wd-form-brd-color-focus: var(--rd-c-accent);
  --wd-form-brd-radius: var(--rd-c-button-radius);
  --btn-font-family: var(--rd-font);
  --btn-transform: none;
  --btn-accented-transform: none;
  --btn-accented-height: 48px;
  --btn-accented-bgcolor: var(--rd-c-accent);
  --btn-accented-bgcolor-hover: var(--rd-c-hover);
  --btn-accented-color: var(--rd-c-on-accent);
  --btn-accented-color-hover: var(--rd-c-on-accent);
  --btn-accented-brd-radius: var(--rd-c-button-radius);
  --btn-default-brd-radius: var(--rd-c-button-radius);
  --btn-default-color: var(--rd-c-ink);
  --btn-default-color-hover: var(--rd-c-ink);
  --btn-default-bgcolor: var(--rd-c-soft);
  --btn-default-bgcolor-hover: var(--rd-c-border);
  color: var(--rd-c-ink);
  background-color: var(--rd-c-bg);
}

body.rd-brand-tu:is(.woocommerce-page, .woocommerce, .blog, .single-post, .category, .tag, .search-results, .search-no-results)
  .main-page-wrapper {
  --color-gray-400: #aaa59f;
  --color-gray-500: #bcbab6;
  --color-gray-600: #bcbab6;
  --color-gray-700: #dedbd6;
  --color-gray-800: #f1eeea;
  --color-gray-900: #f8f7f4;
  --bgcolor-white: #202020;
  --bgcolor-gray-100: #202020;
  --bgcolor-gray-200: #25231f;
  --bgcolor-gray-300: #363431;
  --brdcolor-gray-200: #363431;
  --brdcolor-gray-300: #3d3934;
  --brdcolor-gray-400: #615a51;
}

/* Woodmart omits .container on product pages and Elementor Cart layouts.
 * Bound their shared main shell without replacing its responsive grids. */
body:is(.rd-brand-tu, .rd-brand-exam):is(.post-type-archive-product, .tax-product_cat, .tax-product_tag, .single-product, .woocommerce-cart, .woocommerce-checkout, .woocommerce-account, .blog, .single-post, .category, .tag, .search-results, .search-no-results)
  .main-page-wrapper > .wd-content-layout {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(18px, 2vw, 32px);
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-cart
  .main-page-wrapper > .wd-content-layout {
  max-width: 1280px;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-checkout
  .main-page-wrapper > .wd-content-layout {
  max-width: 1200px;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account
  .main-page-wrapper > .wd-content-layout {
  max-width: 1120px;
}

body:is(.rd-brand-tu, .rd-brand-exam):is(.blog, .single-post, .category, .tag)
  .main-page-wrapper > .wd-content-layout {
  max-width: 1280px;
}

/* Cart blocks share the bounded main shell; keep horizontal padding there. */
body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-cart .wp-block-woocommerce-cart,
body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-checkout .wp-block-woocommerce-checkout {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 56px) 0;
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 1200px;
}

/* Catalog: one quiet toolbar; clear photos and readable product names. */
body:is(.rd-brand-tu, .rd-brand-exam) .shop-loop-head {
  padding-block: 0 22px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rd-c-border);
  row-gap: 16px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-shop-tools {
  gap: 12px 24px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-result-count,
body:is(.rd-brand-tu, .rd-brand-exam) .wd-products-per-page {
  color: var(--rd-c-muted);
  font-size: 13px;
  line-height: 1.5;
}

body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-ordering select {
  color: var(--rd-c-ink);
  border-color: var(--rd-c-border);
  font-family: var(--rd-font);
  font-size: 14px;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-sidebar .widget {
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom-color: var(--rd-c-border);
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-sidebar .widget-title {
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-sidebar :is(.product-categories, .widget_layered_nav, .price_slider_amount) {
  color: var(--rd-c-muted);
  font-size: 13px;
  line-height: 1.7;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product .product-element-top {
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background-color: #fff;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product .product-image-link img {
  background-color: #fff;
  object-fit: contain;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product .wd-entities-title {
  margin-block: 15px 10px;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-transform: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product :is(.price, .price .amount) {
  color: var(--rd-c-accent);
  font-size: 17px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product :is(.woocommerce-price-suffix, .price del) {
  color: var(--rd-c-muted);
  font-size: 12px;
  font-weight: 400;
}

body.rd-brand-tu .wd-products .wd-product .product-wrapper {
  background: transparent;
  box-shadow: none;
}

body.rd-brand-exam .wd-products .wd-product .product-wrapper {
  padding: 14px;
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background: var(--rd-c-surface);
  box-shadow: none;
}

body.rd-brand-exam .wd-products .wd-product .product-element-top {
  border-color: transparent;
  border-radius: 10px;
}

/* Product: native gallery, a clear title, then the complete configuration. */
body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary .product_title {
  max-width: 25ch;
  margin-bottom: 20px;
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: var(--rd-c-title-weight);
  line-height: 1.2;
  letter-spacing: -0.045em;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-product-gallery {
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background: #fff;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-product-gallery__image img {
  background: #fff;
  object-fit: contain;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary-inner > .price {
  color: var(--rd-c-accent);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary-inner .woocommerce-price-suffix {
  color: var(--rd-c-muted);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-product-details__short-description {
  max-width: 65ch;
  color: var(--rd-c-muted);
  font-size: 15px;
  line-height: 1.75;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary form.cart {
  padding: 24px;
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background-color: var(--rd-c-soft);
}

body.rd-brand-tu.single-product .summary form.cart {
  background-color: var(--rd-c-surface);
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .variations :is(label, .label) {
  color: var(--rd-c-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .variations select {
  min-height: 48px;
  max-width: 100%;
  padding-inline: 14px 36px;
  border: 1px solid var(--rd-c-control-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 16px;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .reset_variations {
  color: var(--rd-c-muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-variation-description {
  color: var(--rd-c-ink);
  font-size: 14px;
  line-height: 1.7;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .product_meta {
  padding-top: 22px;
  border-top: 1px solid var(--rd-c-border);
  color: var(--rd-c-muted);
  font-size: 12px;
  line-height: 1.8;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-Tabs-panel {
  color: var(--rd-c-muted);
  font-size: 15px;
  line-height: 1.8;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .woocommerce-Tabs-panel :is(p, ul, ol) {
  max-width: 78ch;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-product .shop_attributes :is(th, td) {
  padding-block: 16px;
  border-color: var(--rd-c-border);
  color: var(--rd-c-ink);
  font-size: 14px;
  line-height: 1.6;
  text-transform: none;
}

/* Classic cart / checkout: purchase information gets a defined surface. */
body:is(.rd-brand-tu, .rd-brand-exam) .cart-content-wrapper {
  row-gap: 32px;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.cart_totals, .checkout-order-review) {
  padding: 28px;
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background-color: var(--rd-c-soft);
  box-shadow: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .checkout-order-review::before,
body:is(.rd-brand-tu, .rd-brand-exam) .checkout-order-review::after {
  background-image: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.cart_totals > h2, #order_review_heading, .woocommerce-billing-fields > h3, .woocommerce-additional-fields > h3, .woocommerce-shipping-fields > h3) {
  margin-bottom: 24px;
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 22px;
  font-weight: var(--rd-c-title-weight);
  line-height: 1.35;
  letter-spacing: -0.035em;
  text-align: start;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-cart-form .shop_table :is(th, td),
body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-checkout-review-order-table :is(th, td),
body:is(.rd-brand-tu, .rd-brand-exam) .cart_totals .shop_table :is(th, td) {
  border-color: var(--rd-c-border);
  color: var(--rd-c-ink);
  font-size: 14px;
  line-height: 1.65;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-cart-form .product-name a {
  color: var(--rd-c-ink);
  font-weight: 600;
}

body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-cart-form .variation,
body:is(.rd-brand-tu, .rd-brand-exam) .woocommerce-checkout-review-order-table .variation {
  color: var(--rd-c-muted);
  font-size: 12px;
  line-height: 1.6;
}

body:is(.rd-brand-tu, .rd-brand-exam) .checkout-order-review .wd-table-wrapper {
  padding-inline: 18px;
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  box-shadow: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .payment_methods .payment_box {
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  color: var(--rd-c-muted);
  font-size: 14px;
  line-height: 1.7;
  box-shadow: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .payment_methods > li > label {
  color: var(--rd-c-ink);
  font-size: 14px;
  font-weight: 600;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper) {
  color: var(--rd-c-muted);
  font-size: 12px;
  line-height: 1.75;
}

/* Native field geometry and validation remain owned by WooCommerce. */
body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper
  :is(.woocommerce-checkout, .woocommerce-cart-form, .woocommerce-form-login, .woocommerce-form-register, .woocommerce-EditAccountForm, .woocommerce-address-fields)
  :is(input.input-text, textarea.input-text, select) {
  border-color: var(--rd-c-control-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 16px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper .form-row label {
  color: var(--rd-c-ink);
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper .woocommerce-invalid .input-text,
body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper [aria-invalid="true"] {
  border-color: var(--rd-c-error);
}

body:is(.rd-brand-tu, .rd-brand-exam) .select2-container--default :is(.select2-selection--single, .select2-dropdown) {
  border-color: var(--rd-c-control-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  color: var(--rd-c-ink);
}

body:is(.rd-brand-tu, .rd-brand-exam) .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--rd-c-ink);
}

/* Woo Cart / Checkout blocks: colors and surfaces only, no layout replacement. */
body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-cart, .wc-block-checkout) {
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 15px;
  line-height: 1.6;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
  padding: 24px;
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background-color: var(--rd-c-soft);
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-product-name {
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-weight: 600;
  line-height: 1.5;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-components-product-metadata, .wc-block-components-product-details),
body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-product-price del {
  color: var(--rd-c-muted);
  font-size: 13px;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-cart-items__header, .wc-block-cart-item__wrap, .wc-block-components-totals-wrapper) {
  border-color: var(--rd-c-border);
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-components-totals-item, .wc-block-components-totals-footer-item) {
  color: var(--rd-c-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.6;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-components-text-input input, .wc-block-components-textarea, .wc-blocks-components-select__select) {
  border-color: var(--rd-c-control-border);
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: 16px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-blocks-components-select__container {
  border-radius: var(--rd-c-button-radius);
  background-color: var(--rd-c-surface);
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-components-text-input label, .wc-blocks-components-select__label) {
  color: var(--rd-c-muted);
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-text-input.has-error input,
body:is(.rd-brand-tu, .rd-brand-exam) .has-error .wc-blocks-components-select__select,
body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-textarea.has-error {
  border-color: var(--rd-c-error);
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-text-input.has-error label,
body:is(.rd-brand-tu, .rd-brand-exam) .has-error .wc-blocks-components-select__label,
body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-components-validation-error {
  color: var(--rd-c-error);
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
  min-height: 50px;
  border: 1px solid var(--rd-c-accent);
  border-radius: var(--rd-c-button-radius);
  background: var(--rd-c-accent);
  color: var(--rd-c-on-accent);
  font-family: var(--rd-font);
  font-weight: 650;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover {
  border-color: var(--rd-c-hover);
  background: var(--rd-c-hover);
  color: var(--rd-c-on-accent);
}

/* Empty states keep native directions and recommended products visible. */
body:is(.rd-brand-tu, .rd-brand-exam) :is(.cart-empty, .wc-block-cart__empty-cart__title) {
  max-width: 30ch;
  margin-inline: auto;
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: var(--rd-c-title-weight);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

body:is(.rd-brand-tu, .rd-brand-exam) .return-to-shop {
  margin-block: 28px 50px;
  text-align: center;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wp-block-woocommerce-empty-cart-block > :is(h1, h2) {
  margin-block: 40px 24px;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-grid__product {
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-grid__product-image {
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background: #fff;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wc-block-grid__product-title {
  color: var(--rd-c-ink);
  font-size: 15px;
  line-height: 1.5;
}

/* Account: separate sign-in, navigation and data without changing their tabs. */
body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account .wd-registration-page {
  padding-block: 12px 32px;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account #customer_login :is(.col-login, .col-register-text) {
  padding: clamp(22px, 3vw, 36px);
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background: var(--rd-c-surface);
}

body.rd-brand-exam.woocommerce-account #customer_login .col-register-text {
  background: var(--rd-c-soft);
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account .wd-login-title {
  color: var(--rd-c-ink);
  font-size: 26px;
  font-weight: var(--rd-c-title-weight);
  line-height: 1.3;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account .woocommerce-MyAccount-navigation a {
  color: var(--rd-c-ink);
  border-radius: var(--rd-c-button-radius);
  font-size: 14px;
  line-height: 1.5;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account .woocommerce-MyAccount-navigation .is-active > a {
  background-color: var(--rd-c-soft);
  color: var(--rd-c-accent);
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account .woocommerce-MyAccount-content {
  color: var(--rd-c-ink);
  font-size: 15px;
  line-height: 1.8;
}

body:is(.rd-brand-tu, .rd-brand-exam).woocommerce-account :is(.woocommerce-Address, .woocommerce-EditAccountForm fieldset) {
  border-color: var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background-color: var(--rd-c-surface);
}

/* Editorial: readable measures and typographic cards, not another sales grid. */
body:is(.rd-brand-tu, .rd-brand-exam):is(.blog, .category, .tag) .wd-post-inner {
  border: 1px solid var(--rd-c-border);
  border-radius: var(--rd-c-radius);
  background: var(--rd-c-surface);
  box-shadow: none;
}

body:is(.rd-brand-tu, .rd-brand-exam):is(.blog, .category, .tag) .wd-post-content {
  padding: 26px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .wd-post-title {
  color: var(--rd-c-ink);
  font-family: var(--rd-font);
  font-weight: var(--rd-c-title-weight);
  letter-spacing: -0.035em;
  text-transform: none;
}

body:is(.rd-brand-tu, .rd-brand-exam):is(.blog, .category, .tag) .wd-post-title {
  font-size: 22px;
  line-height: 1.4;
}

body:is(.rd-brand-tu, .rd-brand-exam) :is(.wd-post-meta, .wd-post-excerpt) {
  color: var(--rd-c-muted);
  line-height: 1.75;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-post .wd-post-title {
  max-width: 25ch;
  font-size: clamp(30px, 3.6vw, 48px);
  line-height: 1.2;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-post article .wd-entry-content {
  color: var(--rd-c-muted);
  font-size: 16px;
  line-height: 1.85;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-post article .wd-entry-content :is(p, ul, ol, blockquote) {
  max-width: 76ch;
}

body:is(.rd-brand-tu, .rd-brand-exam).single-post article .wd-entry-content :is(h2, h3, h4) {
  margin-top: 34px;
  color: var(--rd-c-ink);
  line-height: 1.35;
}

/* Feedback and keyboard access retain native show/hide/disabled behavior. */
body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner) {
  border-radius: var(--rd-c-button-radius);
  font-family: var(--rd-font);
  font-size: 14px;
  line-height: 1.65;
}

body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper :is(button, input, select, textarea, a):focus-visible {
  outline: 3px solid var(--rd-c-accent);
  outline-offset: 3px;
}

body:is(.rd-brand-tu, .rd-brand-exam) .main-page-wrapper :is(button:disabled, .single_add_to_cart_button.disabled, [aria-disabled="true"]) {
  opacity: 0.55;
}

@media (max-width: 1024px) {
  body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product .wd-entities-title {
    font-size: 14px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam) .wd-products .wd-product :is(.price, .price .amount) {
    font-size: 16px;
  }
}

@media (max-width: 768.98px) {
  body:is(.rd-brand-tu, .rd-brand-exam) .shop-loop-head {
    padding-bottom: 18px;
    margin-bottom: 22px;
    row-gap: 14px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam) .wd-shop-tools {
    gap: 10px 16px;
  }

  body.rd-brand-exam .wd-products .wd-product .product-wrapper {
    padding: 9px;
    border-radius: 12px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary .product_title {
    font-size: 28px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam).single-product .summary form.cart,
  body:is(.rd-brand-tu, .rd-brand-exam) :is(.cart_totals, .checkout-order-review, .wc-block-cart__sidebar, .wc-block-checkout__sidebar) {
    padding: 20px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam) .checkout-order-review .wd-table-wrapper {
    padding-inline: 12px;
  }

  body:is(.rd-brand-tu, .rd-brand-exam):is(.blog, .category, .tag) .wd-post-content {
    padding: 22px;
  }
}

/* Native comparison/favourites keep their own lists and actions. */
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .page-title {
  margin-bottom: 0;
  padding-block: 42px;
  background: var(--rd-tint);
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .page-title .entry-title {
  font-size: clamp(32px, 4vw, 48px);
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .main-page-wrapper > .wd-content-layout {
  max-width: 1280px;
  margin-inline: auto;
  padding: 44px clamp(18px, 2vw, 32px) 64px;
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 28px;
  border: 1px solid var(--rd-border);
  background: var(--rd-tint);
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block-title::before {
  color: var(--rd-accent);
  font-size: 56px;
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block-title {
  font-size: clamp(23px, 2.5vw, 30px);
  line-height: 1.4;
  color: var(--rd-ink);
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block-text {
  max-width: 58ch;
  color: var(--rd-muted);
  font-size: 16px;
  line-height: 1.8;
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block-btn {
  min-height: 48px;
  font-family: var(--rd-font);
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  border-radius: 6px;
}
body.rd-brand-exam.rd-utility-page .wd-empty-block {
  border-radius: 24px;
  background: #fff2f4;
}
body.rd-brand-exam.rd-utility-page .wd-empty-block-btn {
  border-radius: 999px;
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-compare-table {
  color: var(--rd-ink);
  font-size: 15px;
}
body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-compare-table :is(th, td) {
  border-color: var(--rd-border);
}
@media (max-width: 700px) {
  body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block {
    padding: 28px 20px;
  }
  body:is(.rd-brand-tu, .rd-brand-exam).rd-utility-page .wd-empty-block-text {
    font-size: 15px;
  }
}

/* The native show-everywhere consent manager keeps its animation and height.
 * Its fixed margin lifts it above Woodmart's 55px mobile navigation.
 */
@media (max-width: 1024px) {
  body:is(.rd-brand-tu, .rd-brand-exam).sticky-toolbar-on #cmplz-manage-consent .cmplz-manage-consent {
    margin-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
  body:is(.rd-brand-tu, .rd-brand-exam).sticky-toolbar-on:has(.wd-sticky-btn.wd-sticky-btn-shown) #cmplz-manage-consent .cmplz-manage-consent {
    margin-bottom: calc(72px + var(--wd-sticky-btn-height, 0px) + env(safe-area-inset-bottom, 0px));
  }
}

/* Open cart and language panels own their foreground; the consent banner stays independent. */
body:is(.rd-brand-tu, .rd-brand-exam):has(.cart-widget-side.wd-opened) #cmplz-manage-consent,
body.rd-brand-tu:has(.rd-footer-heading .gt_options.gt-open) #cmplz-manage-consent {
  display: none;
}
