/* VDM native WooCommerce: styles only, no theme template files are overwritten. */
body.vdm-wc-modern {
    --vdm-native-accent: #245b50;
    --vdm-native-on-accent: #fff;
    --vdm-native-ink: #172522;
    --vdm-native-muted: #586763;
    --vdm-native-border: #e1e7e4;
    --vdm-native-surface: #fff;
    --vdm-native-soft: #f5f7f6;
    --vdm-native-radius: 18px;
}
/* Classic archives, classic shortcodes and WooCommerce Product Collection. */
.vdm-wc-modern .woocommerce ul.products,
.vdm-wc-modern.woocommerce ul.products {
    display: grid; grid-template-columns: repeat(var(--vdm-native-cols, 4), minmax(0, 1fr));
    gap: 18px; padding: 0; margin: 0 0 32px;
}
.vdm-wc-modern .woocommerce ul.products::before,
.vdm-wc-modern .woocommerce ul.products::after,
.vdm-wc-modern.woocommerce ul.products::before,
.vdm-wc-modern.woocommerce ul.products::after { display: none; }
.vdm-wc-modern ul.products.columns-1 { --vdm-native-cols: 1; }
.vdm-wc-modern ul.products.columns-2 { --vdm-native-cols: 2; }
.vdm-wc-modern ul.products.columns-3 { --vdm-native-cols: 3; }
.vdm-wc-modern ul.products.columns-5 { --vdm-native-cols: 5; }
.vdm-wc-modern ul.products.columns-6 { --vdm-native-cols: 6; }
.vdm-wc-modern ul.products li.product,
.vdm-wc-modern .wc-block-product-template > li.wc-block-product,
.vdm-wc-modern .wc-block-grid__products > li.wc-block-grid__product {
    box-sizing: border-box; position: relative; display: flex; flex-direction: column;
    min-width: 0; padding: 14px; border: 1px solid var(--vdm-native-border);
    border-radius: var(--vdm-native-radius); background: var(--vdm-native-surface);
    color: var(--vdm-native-ink); text-align: left;
    box-shadow: 0 4px 18px rgba(23,37,34,.055); transition: box-shadow .18s, border-color .18s;
}
.vdm-wc-modern ul.products li.product { float: none; width: auto; margin: 0; }
.vdm-wc-modern .wc-block-product-template { gap: 18px; }
.vdm-wc-modern .wc-block-product-template > li.wc-block-product { gap: 10px; }
@media (hover:hover) {
    .vdm-wc-modern ul.products li.product:hover,
    .vdm-wc-modern .wc-block-product-template > li.wc-block-product:hover { box-shadow: 0 10px 24px rgba(23,37,34,.10); border-color: #cbd6d1; }
}
.vdm-wc-modern ul.products li.product a img,
.vdm-wc-modern .wc-block-product-template .wc-block-components-product-image img,
.vdm-wc-modern .wc-block-grid__product-image img {
    display: block; width: 100%; height: auto; aspect-ratio: 1 / 1;
    object-fit: contain; box-sizing: border-box; border-radius: 12px;
    background: var(--vdm-native-soft); margin: 0 0 10px;
}
.vdm-wc-modern .wc-block-product-template .wc-block-components-product-image { margin: 0; }
.vdm-wc-modern ul.products li.product .woocommerce-loop-product__title,
.vdm-wc-modern ul.products li.product .woocommerce-loop-category__title,
.vdm-wc-modern .wc-block-product-template .wp-block-post-title,
.vdm-wc-modern .wc-block-grid__product-title {
    font-family: inherit; font-size: clamp(15px, 1.5vw, 19px); font-weight: 700;
    line-height: 1.3; letter-spacing: -.015em; color: var(--vdm-native-ink);
    margin: 3px 0 7px; padding: 0; overflow-wrap: anywhere;
}
.vdm-wc-modern .wc-block-product-template .wp-block-post-title a { color: inherit; text-decoration: none; }
.vdm-wc-modern ul.products li.product .price,
.vdm-wc-modern .wc-block-product-template .wc-block-components-product-price,
.vdm-wc-modern .wc-block-grid__product-price { color: var(--vdm-native-accent); font-size: 17px; font-weight: 750; margin: 4px 0 10px; }
.vdm-wc-modern ul.products li.product .price del,
.vdm-wc-modern .wc-block-components-product-price del { font-size: .8em; color: var(--vdm-native-muted); font-weight: 400; }
.vdm-wc-modern ul.products li.product .price ins,
.vdm-wc-modern .wc-block-components-product-price ins { text-decoration: none; }
.vdm-wc-modern ul.products li.product .onsale,
.vdm-wc-modern .wc-block-product-template .wc-block-components-product-sale-badge,
.vdm-wc-modern.single-product span.onsale {
    background: var(--vdm-native-accent); color: var(--vdm-native-on-accent); border: 0;
    border-radius: 30px; min-height: 0; min-width: 0; padding: 7px 10px;
    font-size: 11px; line-height: 1.25; font-weight: 700; margin: 0;
}
.vdm-wc-modern ul.products li.product .onsale { top: 20px; right: 20px; left: auto; }
.vdm-wc-modern ul.products li.product .vdm-wc-native-action-box,
.vdm-wc-modern .wc-block-product-template .vdm-wc-native-action-box,
.vdm-wc-modern ul.products li.product > .button { margin-top: auto; }
/* Native single product: leave WooCommerce image gallery, reviews, tabs and hooks intact. */
.vdm-wc-modern.single-product .woocommerce div.product div.images,
.vdm-wc-modern.single-product.woocommerce div.product div.images,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-image-gallery,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-gallery {
    border-radius: var(--vdm-native-radius); box-sizing: border-box;
    background: var(--vdm-native-surface); padding: 14px;
    border: 1px solid var(--vdm-native-border); box-shadow: 0 4px 18px rgba(23,37,34,.055);
}
.vdm-wc-modern.single-product .woocommerce-product-gallery__image img,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-gallery img,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-image-gallery img {
    border-radius: 12px; object-fit: contain;
}
.vdm-wc-modern.single-product div.product div.summary {
    border: 1px solid var(--vdm-native-border); border-radius: var(--vdm-native-radius);
    background: var(--vdm-native-surface); padding: clamp(18px, 3vw, 32px); box-sizing: border-box;
    color: var(--vdm-native-ink); box-shadow: 0 4px 18px rgba(23,37,34,.055);
}
.vdm-wc-modern.single-product .product_title,
.vdm-wc-modern.single-product main h1.wp-block-post-title {
    font-family: inherit; font-weight: 750; font-size: clamp(27px, 4vw, 43px);
    letter-spacing: -.035em; line-height: 1.16; overflow-wrap: anywhere; margin-bottom: 15px;
}
.vdm-wc-modern.single-product div.summary > .price,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-price:not(.wc-block-product-template *) {
    color: var(--vdm-native-accent); font-size: clamp(22px, 3vw, 30px); font-weight: 750;
}
.vdm-wc-modern.single-product .woocommerce-product-details__short-description,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-summary { line-height: 1.65; color: var(--vdm-native-muted); }
.vdm-wc-modern.single-product .product_meta { border-top: 1px solid var(--vdm-native-border); padding-top: 16px; margin-top: 22px; font-size: 13px; line-height: 1.75; }
.vdm-wc-modern.single-product .product_meta > span { display: block; }
.vdm-wc-modern.single-product .woocommerce-tabs,
.vdm-wc-modern.single-product .wp-block-woocommerce-product-details { clear: both; padding: clamp(16px, 3vw, 28px); border: 1px solid var(--vdm-native-border); border-radius: var(--vdm-native-radius); background: var(--vdm-native-surface); box-sizing: border-box; margin-block: 24px; }
.vdm-wc-modern.single-product .woocommerce-tabs .panel { line-height: 1.7; }
/* Action layout shared by the two VDM flows; no styles target the checkout. */
.vdm-wc-native-action-box { box-sizing: border-box; min-width: 0; }
.vdm-wc-modern .vdm-wc-native-action-box { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.vdm-wc-modern.single-product .vdm-wc-native-action-box:not(.wc-block-product-template *):not(.products *) { background: var(--vdm-native-soft); padding: 16px; border: 1px solid var(--vdm-native-border); border-radius: 14px; margin-block: 18px; }
.vdm-wc-modern .vdm-wc-native-action-box [data-vdm-lista-single] { display: flex; flex-direction: column; gap: 10px; }
.vdm-wc-modern .vdm-wc-native-action-box .vdm-wc-presentation-picker,
.vdm-wc-modern .vdm-wc-native-action-box .vdm-wc-variant-picker { width: 100%; margin: 0; gap: 10px; }
.vdm-wc-modern .vdm-wc-native-action-box .vdm-wc-variant-field { flex: 1 1 125px; min-width: 0; }
.vdm-wc-modern .vdm-wc-native-action-box label { display: grid; gap: 5px; color: var(--vdm-native-ink); font-size: 13px; font-weight: 650; }
.vdm-wc-modern .vdm-wc-native-action-box select,
.vdm-wc-modern .vdm-wc-native-action-box input[type=number] { min-height: 44px; border: 1px solid #cbd6d1; border-radius: 9px; padding: 8px 10px; background: #fff; color: var(--vdm-native-ink); box-sizing: border-box; width: 100%; font: inherit; }
.vdm-wc-native-qty input { max-width: 125px; }
.vdm-wc-modern .vdm-wc-native-action-box .vdm-wc-presentation-photo { max-height: 160px; width: 100%; object-fit: contain; border-radius: 8px; }
.vdm-wc-modern .vdm-wc-native-product-action.button,
.vdm-wc-modern ul.products li.product > .button,
.vdm-wc-modern .wc-block-product-template .wp-block-button__link,
.vdm-wc-modern.single-product form.cart .single_add_to_cart_button {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; min-height: 46px;
    background: var(--vdm-native-accent) !important; color: var(--vdm-native-on-accent) !important;
    border: 1px solid transparent !important; border-radius: 10px !important;
    font: inherit; font-size: 14px; font-weight: 700; text-align: center; text-decoration: none !important;
    white-space: normal; line-height: 1.3; padding: 11px 12px; cursor: pointer; box-shadow: none;
}
.vdm-wc-modern.single-product form.cart .single_add_to_cart_button { width: auto; }
.vdm-wc-modern .vdm-wc-native-product-action:hover { filter: brightness(.93); }
.vdm-wc-modern .vdm-wc-native-action-box :is(button,a,input,select):focus-visible,
.vdm-wc-modern ul.products li.product a:focus-visible { outline: 2px solid var(--vdm-native-accent); outline-offset: 3px; }
.vdm-wc-modern .vdm-wc-native-note { font-size: 13px; color: var(--vdm-native-muted); padding: 10px; background: var(--vdm-native-soft); border-radius: 8px; }
@media (max-width: 900px) {
    .vdm-wc-modern ul.products:not(.columns-1) { --vdm-native-cols: 3; }
    .vdm-wc-modern ul.products.columns-2 { --vdm-native-cols: 2; }
}
@media (max-width: 600px) {
    .vdm-wc-modern ul.products:not(.columns-1) { --vdm-native-cols: 2; gap: 10px; }
    .vdm-wc-modern .wc-block-product-template { gap: 10px; }
    .vdm-wc-modern .wc-block-product-template.is-layout-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .vdm-wc-modern ul.products li.product, .vdm-wc-modern .wc-block-product-template > li.wc-block-product { padding: 9px; border-radius: 12px; }
    .vdm-wc-modern .vdm-wc-native-product-action.button { font-size: 12px; padding-inline: 6px; }
    .vdm-wc-modern.single-product div.product div.images, .vdm-wc-modern.single-product div.product div.summary { float: none; width: 100%; margin-bottom: 16px; }
    .vdm-wc-modern.single-product div.product div.summary { padding: 17px; }
    .vdm-wc-modern.single-product .vdm-wc-native-action-box:not(.products *):not(.wc-block-product-template *) { padding: 12px; }
    .vdm-wc-modern ul.products li.product .onsale { top: 12px; right: 12px; }
}
@media (prefers-reduced-motion:reduce) { .vdm-wc-modern ul.products li.product, .vdm-wc-modern .wc-block-product-template > li.wc-block-product { transition: none; } }
