/* Scoped to the existing shop/category archives. Header, checkout and product-detail layouts retain their own styles. */
.v40-shop-upgrade {--v40-ink:#123b33;--v40-text:#334b44;--v40-green:#06443b;--v40-lime:#d0ed54;--v40-border:#dce5df;--v40-soft:#f5f7f3;}
.v40-shop-upgrade #main-content {color:var(--v40-text);}
.v40-shop-upgrade .v40-shop-intro {width:100%;max-width:100%;margin:0 0 24px;text-align:left;font-family:inherit;}
.v40-shop-upgrade .v40-shop-title-replaced {margin:0!important;}
.v40-shop-upgrade .v40-shop-hero {display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px 0 24px;}
.v40-shop-upgrade .v40-shop-eyebrow {display:block;color:var(--v40-green);font-size:12px;font-weight:700;letter-spacing:1.4px;margin-bottom:10px;}
.v40-shop-upgrade .v40-shop-hero h1 {font-family:inherit;font-size:clamp(30px,3.6vw,46px);font-weight:700;letter-spacing:-1.5px;line-height:1.12;color:var(--v40-ink);margin:0 0 12px;text-transform:none;}
.v40-shop-upgrade .v40-shop-hero p {max-width:650px;font-size:16px;line-height:1.65;color:var(--v40-text);margin:0;}
.v40-shop-upgrade .v40-shop-help {display:inline-flex;align-items:center;justify-content:center;gap:20px;flex-shrink:0;border:1px solid var(--v40-border);border-radius:10px;padding:13px 18px;min-height:46px;color:var(--v40-green);font-size:14px;font-weight:650;text-decoration:none;background:white;}
.v40-shop-upgrade .v40-shop-categories {display:flex;flex-wrap:wrap;gap:8px;padding:0 0 20px;}
.v40-shop-upgrade .v40-shop-category {display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--v40-border);border-radius:9px;padding:11px 15px;min-height:44px;color:var(--v40-ink);background:white;font-size:14px;line-height:1.35;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s;}
.v40-shop-upgrade .v40-shop-category.is-active {background:var(--v40-green);border-color:var(--v40-green);color:white;}
.v40-shop-upgrade .v40-shop-category:hover:not(.is-active),.v40-shop-upgrade .v40-shop-help:hover {background:var(--v40-soft);border-color:var(--v40-green);}
.v40-shop-upgrade .v40-shop-offer {display:flex;justify-content:space-between;align-items:center;gap:24px;border:1px solid var(--v40-border);border-radius:14px;padding:20px 24px;background:var(--v40-soft);}
.v40-shop-upgrade .v40-shop-offer>div:first-child {display:flex;flex-direction:column;gap:5px;}
.v40-shop-upgrade .v40-shop-offer-tag {font-size:10px;letter-spacing:1px;font-weight:750;color:var(--v40-green);}
.v40-shop-upgrade .v40-shop-offer strong {font-size:19px;line-height:1.35;color:var(--v40-ink);font-weight:700;}
.v40-shop-upgrade .v40-shop-offer>div:first-child>span:last-child {font-size:13px;line-height:1.5;color:var(--v40-text);}
.v40-shop-upgrade .v40-shop-offer-action {display:flex;align-items:center;gap:24px;flex-shrink:0;}
.v40-shop-upgrade .v40-shop-offer-price {font-size:28px;line-height:1.1;font-weight:750;letter-spacing:-1px;color:var(--v40-green);white-space:nowrap;}
.v40-shop-upgrade .v40-shop-offer-price small {display:block;font-size:11px;font-weight:500;letter-spacing:0;line-height:1.5;margin-top:5px;}
.v40-shop-upgrade .v40-shop-btn {display:inline-flex;align-items:center;justify-content:center;gap:24px;min-height:46px;border-radius:9px;padding:13px 17px;background:var(--v40-lime);border:1px solid var(--v40-lime);color:var(--v40-green);font-size:14px;line-height:1.3;font-weight:700;text-decoration:none;}
.v40-shop-upgrade .v40-shop-btn:hover {background:#c2e23c;border-color:#c2e23c;color:var(--v40-green);}
.v40-shop-upgrade #main-content a:focus-visible,.v40-shop-upgrade #main-content button:focus-visible,.v40-shop-upgrade #main-content select:focus-visible {outline:3px solid #0f766e;outline-offset:3px;}
.v40-shop-upgrade .page-title:not(.v40-shop-intro) {padding-top:28px!important;padding-bottom:28px!important;margin-bottom:24px!important;min-height:0!important;}
.v40-shop-upgrade .page-title .entry-title {font-size:clamp(28px,4vw,42px)!important;line-height:1.2;}
.v40-shop-upgrade #main-content .widget {border:1px solid var(--v40-border);border-radius:12px;padding:20px!important;margin:0 0 14px!important;background:white;}
.v40-shop-upgrade #main-content .widget-title {color:var(--v40-ink);font-size:15px!important;font-weight:700;line-height:1.4;margin-bottom:16px;text-transform:none;}
.v40-shop-upgrade #main-content .widget a,.v40-shop-upgrade #main-content .widget label,.v40-shop-upgrade #main-content .widget .price_label {color:var(--v40-text);font-size:14px!important;line-height:1.6;}
.v40-shop-upgrade #main-content .widget li {padding:4px 0;}
.v40-shop-upgrade #main-content .widget li[hidden] {display:none!important;}
.v40-shop-upgrade #main-content .widget .count {color:var(--v40-text);border-color:var(--v40-border);font-size:12px;}
.v40-shop-upgrade #main-content .widget button {min-height:40px;border-radius:8px;color:var(--v40-green);background:var(--v40-soft);}
.v40-shop-upgrade #main-content .woocommerce-result-count {font-size:13px!important;line-height:1.6;color:var(--v40-text);}
.v40-shop-upgrade #main-content .woocommerce-ordering select {min-height:44px;border:1px solid var(--v40-border);border-radius:9px;background-color:white;color:var(--v40-ink);font-size:14px;}
.v40-shop-upgrade #main-content .wd-products-shop-view {display:none!important;}
.v40-shop-upgrade #main-content .v40-shop-card {margin:0!important;min-width:0;}
.v40-shop-upgrade #main-content .v40-shop-card .product-wrapper {height:100%;border:1px solid var(--v40-border);border-radius:14px!important;overflow:hidden;background:white;box-shadow:none!important;transition:border-color .15s,box-shadow .15s;}
.v40-shop-upgrade #main-content .v40-shop-card:hover .product-wrapper {border-color:#93b3a2;box-shadow:0 5px 18px #123b330c!important;}
.v40-shop-upgrade #main-content .v40-shop-card .product-element-top {border-radius:0!important;overflow:hidden;}
.v40-shop-upgrade #main-content .v40-shop-card .product-image-link {display:block;aspect-ratio:1/1;}
.v40-shop-upgrade #main-content .v40-shop-card .product-image-link img {width:100%;height:100%;object-fit:cover;}
.v40-shop-upgrade #main-content .v40-shop-card.product_cat-ondervloeren .product-image-link img,.v40-shop-upgrade #main-content .v40-shop-card.product_cat-randafwerking .product-image-link img {object-fit:contain;}
.v40-shop-upgrade #main-content .v40-shop-card .product-element-bottom {padding:16px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title {font-size:16px!important;line-height:1.45;min-height:46px;margin-bottom:7px;font-weight:650;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title a {color:var(--v40-ink);}
.v40-shop-upgrade #main-content .v40-shop-card .wd-product-cats,.v40-shop-upgrade #main-content .v40-shop-card .wd-product-cats a {color:#4c6257;font-size:12px;line-height:1.5;}
.v40-shop-upgrade #main-content .v40-shop-card .wrap-price {margin-top:12px;}
.v40-shop-upgrade #main-content .v40-shop-card .price {display:flex;flex-wrap:wrap;align-items:baseline;gap:5px 8px;color:var(--v40-green);font-size:21px;line-height:1.4;font-weight:750;}
.v40-shop-upgrade #main-content .v40-shop-card .price del {color:#58665e;font-size:14px;font-weight:500;opacity:1;}
.v40-shop-upgrade #main-content .v40-shop-card .price ins {background:none;color:var(--v40-green);text-decoration:none;}
.v40-shop-upgrade #main-content .v40-shop-unit {color:#4c6257;font-size:12px;font-weight:500;white-space:nowrap;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-product-footer {position:static!important;display:flex!important;flex-direction:column;gap:10px;opacity:1!important;visibility:visible!important;transform:none!important;height:auto!important;margin-top:14px;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-add-btn {width:100%;}
.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details {position:static;display:flex;justify-content:space-between;align-items:center;width:100%;min-height:44px;padding:11px 14px;border:1px solid var(--v40-border);border-radius:9px;background:white!important;color:var(--v40-green)!important;font-size:14px!important;font-weight:650;line-height:1.4;text-transform:none;box-shadow:none;}
.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details:hover {background:var(--v40-soft)!important;border-color:var(--v40-green);}
.v40-shop-upgrade #main-content .v40-shop-card .wd-action-buttons {display:none!important;}
.v40-shop-upgrade #main-content .woocommerce-pagination {margin-top:28px;}
@media(max-width:1024px){
 .v40-shop-upgrade .v40-shop-offer {align-items:flex-start;gap:18px;}
 .v40-shop-upgrade .v40-shop-offer-action {gap:16px;}
 .v40-shop-upgrade .v40-shop-offer strong {font-size:17px;}
 .v40-shop-upgrade .v40-shop-hero {padding-top:20px;}
 .v40-shop-upgrade #main-content .widget {padding:16px!important;}
}
@media(max-width:767px){
 .v40-shop-upgrade .v40-shop-intro {margin-bottom:18px;}
 .v40-shop-upgrade .v40-shop-hero {display:block;padding:18px 0;}
 .v40-shop-upgrade .v40-shop-hero h1 {font-size:32px;letter-spacing:-1px;}
 .v40-shop-upgrade .v40-shop-hero p {font-size:15px;line-height:1.6;}
 .v40-shop-upgrade .v40-shop-help {margin-top:14px;padding:10px 14px;min-height:44px;}
 .v40-shop-upgrade .v40-shop-categories {display:grid;grid-template-columns:1fr 1fr;gap:7px;padding-bottom:16px;}
 .v40-shop-upgrade .v40-shop-category {padding:10px 9px;font-size:13px;}
 .v40-shop-upgrade .v40-shop-offer {display:block;padding:17px;border-radius:12px;}
 .v40-shop-upgrade .v40-shop-offer-action {display:flex;flex-wrap:wrap;justify-content:space-between;gap:14px;margin-top:16px;}
 .v40-shop-upgrade .v40-shop-offer-price {font-size:26px;}
 .v40-shop-upgrade .v40-shop-btn {gap:14px;padding:12px 14px;font-size:13px;}
 .v40-shop-upgrade #main-content .products[data-source="main_loop"],.v40-shop-upgrade #main-content .products:not([data-source]) {--wd-col-sm:1!important;--wd-gap-sm:16px!important;grid-template-columns:minmax(0,1fr)!important;}
 .v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title {min-height:0;}
 .v40-shop-upgrade #main-content .v40-shop-card .product-element-bottom {padding:18px!important;}
 .v40-shop-upgrade #main-content .woocommerce-result-count {max-width:none!important;}
 .v40-shop-upgrade #main-content .woocommerce-ordering {width:100%;margin-top:8px;}
 .v40-shop-upgrade #main-content .woocommerce-ordering select {width:100%;}
}
@media(prefers-reduced-motion:reduce){.v40-shop-upgrade #main-content * {transition:none!important;}}

/* 1.0.1 — override the negative margin, clipping and hover lift observed in Woodmart 8.5.2. */
.v40-shop-upgrade #main-content .v40-shop-card {--wd-trans-h:0px!important;--wd-prod-gap:0px!important;align-self:stretch;}
.v40-shop-upgrade #main-content .v40-shop-card .product-wrapper,
.v40-shop-upgrade #main-content .v40-shop-card:hover .product-wrapper {display:flex!important;flex-direction:column!important;gap:0!important;height:100%;min-height:0;transform:none!important;border-radius:16px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .product-element-top,
.v40-shop-upgrade #main-content .v40-shop-card:hover .product-element-top {flex:0 0 auto!important;width:100%;clip-path:none!important;transform:none!important;margin:0!important;}
.v40-shop-upgrade #main-content .v40-shop-card .product-image-link {width:100%;height:auto!important;aspect-ratio:4/3!important;overflow:hidden;}
.v40-shop-upgrade #main-content .v40-shop-card .product-image-link img {display:block;width:100%!important;height:100%!important;max-height:none!important;object-fit:cover;}
.v40-shop-upgrade #main-content .v40-shop-card .product-element-bottom,
.v40-shop-upgrade #main-content .v40-shop-card:hover .product-element-bottom {display:flex!important;flex:1 0 auto!important;flex-direction:column;justify-content:flex-start;align-items:stretch;gap:0!important;margin:0!important;padding:18px!important;height:auto!important;min-height:0!important;transform:none!important;background:#fff;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-product-header {display:block!important;flex:0 0 auto!important;margin:0 0 8px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title {display:block;font-size:16px!important;line-height:1.45;min-height:46px;margin:0!important;letter-spacing:-.1px;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title a {display:block;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-product-cats {margin:0!important;min-height:18px;line-height:1.5;}
.v40-shop-upgrade #main-content .v40-shop-card .wrap-price {display:block!important;flex:0 0 auto!important;margin:14px 0 16px!important;min-height:30px;}
.v40-shop-upgrade #main-content .v40-shop-card .price {font-size:24px!important;line-height:1.25;gap:5px 9px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .price del {font-size:13px;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-product-footer,
.v40-shop-upgrade #main-content .v40-shop-card:hover .wd-product-footer {display:block!important;flex:0 0 auto!important;align-self:stretch;position:static!important;margin:auto 0 0!important;padding:0!important;height:auto!important;min-height:0!important;opacity:1!important;visibility:visible!important;transform:none!important;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-add-btn {flex:none!important;overflow:visible!important;height:auto!important;}
.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details {display:flex!important;align-items:center;justify-content:space-between;box-sizing:border-box!important;height:46px!important;min-height:46px!important;max-height:none!important;line-height:1.35!important;padding:11px 14px!important;background:var(--v40-green)!important;border-color:var(--v40-green)!important;color:#fff!important;border-radius:9px!important;font-size:14px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details:hover {background:#0c594b!important;border-color:#0c594b!important;color:#fff!important;}
.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details:before,.v40-shop-upgrade #main-content .v40-shop-card .v40-shop-details:after {display:none!important;}
.v40-shop-upgrade #main-content .v40-shop-card .product-labels {top:12px;left:12px;}
.v40-shop-upgrade #main-content .v40-shop-card .onsale {border-radius:6px!important;font-size:11px;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-buttons {top:10px;right:10px;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-wishlist-btn {background:#ffffffee;border-radius:50%;}
.v40-shop-upgrade .v40-shop-category.is-loading {position:relative;opacity:.8;}
.v40-shop-upgrade .v40-shop-category.is-loading:after {content:'';display:inline-block;flex:0 0 12px;width:12px;height:12px;margin-left:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:v40-shop-spin .7s linear infinite;}
@keyframes v40-shop-spin {to{transform:rotate(360deg)}}
@media(max-width:767px){
 .v40-shop-upgrade #main-content .v40-shop-card .product-image-link {aspect-ratio:4/3!important;}
 .v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title {min-height:0;font-size:17px!important;}
 .v40-shop-upgrade #main-content .v40-shop-card .product-element-bottom {padding:17px!important;}
 .v40-shop-upgrade #main-content .v40-shop-card .wrap-price {margin:12px 0 14px!important;}
}
@media(prefers-reduced-motion:reduce){.v40-shop-upgrade .v40-shop-category.is-loading:after {animation:none;}}

.v40-shop-upgrade #main-content .v40-shop-card .wd-add-btn > a.button {box-sizing:border-box;min-height:46px!important;height:auto;display:flex;align-items:center;justify-content:center;white-space:normal;}

/* 1.0.2: V40 Product Optimizer assigns a square ratio to the outer thumb
   and contain!important to its image. Keep outer and inner ratios identical. */
.v40-shop-upgrade #main-content .v40-shop-card .product-element-top {aspect-ratio:4/3!important;height:auto!important;min-height:0!important;padding-bottom:0!important;}
.v40-shop-upgrade #main-content .v40-shop-card .product-image-link img {object-fit:cover!important;object-position:center;}
.v40-shop-upgrade #main-content .v40-shop-card .product-element-bottom {padding-top:14px!important;}
.v40-shop-upgrade #main-content .v40-shop-card .wd-entities-title {min-height:0!important;}

/* 1.0.3: category title styles must also hold after Woodmart PJAX navigation. */
.v40-shop-upgrade #main-content .page-title {position:relative!important;isolation:isolate;overflow:hidden!important;}
.v40-shop-upgrade #main-content .page-title .wd-page-title-bg {position:absolute!important;inset:0!important;width:100%!important;height:100%!important;overflow:hidden!important;z-index:-1;}
.v40-shop-upgrade #main-content .page-title .wd-page-title-bg > img {display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center;}
.v40-shop-upgrade #main-content .page-title .wd-title-wrapp {display:flex;align-items:center;gap:12px;}
.v40-shop-upgrade #main-content .page-title .entry-title {margin:0!important;}
.v40-shop-upgrade #main-content .page-title .wd-back-btn {flex:0 0 auto;}
.v40-shop-upgrade .v40-shop-categories {align-items:stretch;}
.v40-shop-upgrade .v40-shop-category {box-sizing:border-box;min-height:44px;text-align:center;text-transform:none;letter-spacing:0;white-space:normal;}
/* Active-filter widget is a chip group, not a sidebar panel. */
.v40-shop-upgrade #main-content .wd-active-filters {display:flex!important;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 18px!important;}
.v40-shop-upgrade #main-content .wd-active-filters .widget {display:block!important;border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;margin:0!important;border-radius:0!important;}
.v40-shop-upgrade #main-content .wd-active-filters .widget ul {display:flex;flex-wrap:wrap;gap:8px;margin:0!important;padding:0!important;list-style:none;}
.v40-shop-upgrade #main-content .wd-active-filters .widget li {padding:0!important;margin:0!important;}
.v40-shop-upgrade #main-content .wd-clear-filters {margin:0!important;padding:0!important;border:0!important;}
.v40-shop-upgrade #main-content .wd-clear-filters:after {display:none!important;}
.v40-shop-upgrade #main-content .wd-clear-filters > a,
.v40-shop-upgrade #main-content .wd-active-filters .chosen > a,
.v40-shop-upgrade #main-content .wd-off-canvas-btn > a {display:inline-flex!important;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;min-height:44px!important;height:auto!important;padding:10px 14px!important;border:1px solid var(--v40-border)!important;border-radius:9px!important;background:#fff!important;color:var(--v40-green)!important;font-size:14px!important;line-height:1.4!important;font-weight:600;text-decoration:none;white-space:normal;}
.v40-shop-upgrade #main-content .wd-clear-filters > a:hover,
.v40-shop-upgrade #main-content .wd-active-filters .chosen > a:hover {background:var(--v40-soft)!important;border-color:var(--v40-green)!important;}
.v40-shop-upgrade #main-content .wd-products-per-page .per-page-title:after {content:':'!important;}
.v40-shop-upgrade #main-content .wd-off-canvas-btn {margin:0!important;}
@media(max-width:767px){
 .v40-shop-upgrade .v40-shop-categories {grid-auto-rows:minmax(44px,auto);align-items:stretch;}
 .v40-shop-upgrade .v40-shop-category {height:100%;padding:10px 8px;font-size:13px;}
 .v40-shop-upgrade #main-content .wd-shop-ordering {width:100%!important;max-width:100%!important;--container-widget-width:100%;flex:1 1 100%!important;}
 .v40-shop-upgrade #main-content .woocommerce-ordering {width:100%!important;margin:0!important;}
 .v40-shop-upgrade #main-content .woocommerce-ordering:after {display:none!important;}
 .v40-shop-upgrade #main-content .woocommerce-ordering select {display:block!important;width:100%!important;max-width:none!important;height:46px!important;padding:10px 38px 10px 12px!important;color:var(--v40-ink)!important;font-size:14px!important;text-indent:0!important;opacity:1!important;appearance:auto!important;background-image:none!important;}
}
