/* Upstore catalogue v1.3.4 — tested against WoodMart 8.3.9 markup/styles.
   Preserve native links, product data, AJAX cart and wishlist handlers.
   The #ap2 branch overrides the existing home page's inline card styles only. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) {
 --up-card-red:#ce483c;--up-card-text:#212121;--up-card-muted:#74777e;
 --up-card-main:26px;--up-card-secondary:20px;--up-card-old:13px;
 --up-card-rows:20px 34px 34px;--up-card-slot:88px;
 --wd-prod-gap:0px;--wd-prod-bg-sp:0px;--wd-prod-bg-cont-sp:0px;--wd-trans-h:0px;
 --text-align:left;--btn-height:44px;
 container-type:normal;text-align:left!important;
 font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;font-style:normal;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-wrapper {
 display:flex!important;flex-direction:column!important;gap:0!important;
 height:100%!important;padding:14px!important;margin:0!important;
 background:#fff!important;border:1px solid #e9e9ed!important;border-radius:14px!important;
 box-sizing:border-box!important;box-shadow:none!important;overflow:visible!important;
 transform:none!important;transition:border-color .15s ease!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-wrapper:hover {border-color:#dcdde2!important;transform:none!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-element-top {
 position:relative!important;display:block!important;flex:0 0 auto!important;
 width:100%!important;height:auto!important;aspect-ratio:auto!important;
 margin:0!important;padding:0!important;border-radius:9px!important;
 overflow:hidden!important;clip-path:none!important;transform:none!important;
 background:#fff!important;transition:none!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .hover-img {
 position:absolute!important;inset:0!important;display:flex!important;
 align-items:center!important;justify-content:center!important;
 width:100%!important;height:100%!important;min-height:0!important;
 margin:0!important;padding:6px!important;box-sizing:border-box!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link img,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .hover-img img,
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link picture,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .hover-img picture {
 display:block!important;width:100%!important;height:100%!important;
 max-width:100%!important;max-height:100%!important;min-height:0!important;
 object-fit:contain!important;object-position:center!important;
 margin:0!important;padding:0!important;aspect-ratio:auto!important;mix-blend-mode:normal!important;
 transform:none!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .hover-img {transform:none!important;}
/* Keep the primary image in normal flow. Absolute images plus inline-size
   containment on a grid item made Elementor flex ancestors omit image height. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link {
 position:relative!important;inset:auto!important;display:block!important;height:auto!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link img {
 height:auto!important;aspect-ratio:1!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link picture {height:auto!important;}
/* Stop theme image sliders from stealing vertical space; product links still work. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-grid-slider-pagin {display:none!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-element-bottom {
 display:flex!important;flex-direction:column!important;gap:0!important;
 flex:1 1 auto!important;width:100%!important;min-width:0!important;
 container-type:inline-size;container-name:upstore-card-content;
 margin:0!important;padding:0!important;background:transparent!important;
 transform:none!important;transition:none!important;position:relative!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-header {
 display:block!important;flex:none!important;height:auto!important;
 margin:0!important;padding:0!important;min-width:0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-entities-title,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .woocommerce-loop-product__title {
 display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
 font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;font-size:15px!important;
 font-weight:500!important;font-style:normal!important;line-height:1.4!important;
 letter-spacing:-.015em!important;color:#212121!important;text-align:left!important;
 height:42px!important;min-height:42px!important;max-height:42px!important;
 margin:12px 0 10px!important;padding:0!important;width:100%!important;
 overflow:hidden!important;white-space:normal!important;word-break:normal!important;overflow-wrap:anywhere;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-entities-title a {
 font:inherit!important;color:inherit!important;letter-spacing:inherit!important;
 line-height:inherit!important;white-space:normal!important;text-decoration:none!important;
 display:inline!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wrap-price {display:block!important;flex:none!important;width:100%!important;margin:0!important;padding:0!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .price.upstore-card-price-wrap {
 display:block!important;flex:none!important;width:100%!important;
 height:var(--up-card-slot)!important;min-height:var(--up-card-slot)!important;
 margin:0!important;padding:0!important;box-sizing:border-box!important;
 line-height:1.2!important;overflow:visible!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-stack {
 display:grid!important;grid-template-rows:var(--up-card-rows)!important;
 grid-template-columns:minmax(0,1fr)!important;align-items:center!important;
 align-content:start!important;gap:0!important;height:100%!important;margin:0!important;
 font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;color:var(--up-card-text)!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-stack .amount,
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-stack bdi,
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-stack .woocommerce-Price-currencySymbol {
 font-family:inherit!important;font-size:inherit!important;font-weight:inherit!important;
 color:inherit!important;line-height:inherit!important;letter-spacing:inherit!important;
 white-space:nowrap!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-old {
 grid-row:1!important;display:block!important;margin:0!important;padding:0!important;
 font-size:var(--up-card-old)!important;color:#9699a1!important;font-weight:400!important;line-height:1.2!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-old del {
 display:inline!important;font:inherit!important;color:inherit!important;margin:0!important;
 padding:0!important;opacity:1!important;position:static!important;float:none!important;
 text-decoration:line-through!important;text-decoration-thickness:1px!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row {
 grid-row:2!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important;
 gap:7px!important;margin:0!important;padding:0!important;min-width:0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {
 display:block!important;font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;
 font-size:var(--up-card-main)!important;font-weight:700!important;font-style:normal!important;
 color:#151515!important;line-height:1.2!important;letter-spacing:-.035em!important;
 white-space:nowrap!important;margin:0!important;padding:0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge {
 display:inline-flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 auto!important;white-space:nowrap!important;font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;
 border:0!important;border-radius:7px!important;background:#ce483c!important;color:white!important;
 font-size:10px!important;font-weight:600!important;line-height:1!important;
 padding:5px 8px!important;margin:0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base {
 grid-row:3!important;align-self:start!important;display:block!important;
 font-size:var(--up-card-secondary)!important;font-weight:600!important;line-height:1.2!important;
 color:#212121!important;white-space:nowrap!important;letter-spacing:-.015em!important;
 margin:0!important;padding:2px 0 0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {grid-row:2!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-note {
 grid-row:3!important;display:block!important;align-self:start!important;
 font-family:var(--upstore-font,'Onest',Arial,sans-serif)!important;font-size:11px!important;
 font-weight:400!important;color:#74777e!important;line-height:1.35!important;
 white-space:normal!important;margin:0!important;padding:2px 0 0!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-footer {
 display:block!important;position:static!important;width:100%!important;flex:none!important;
 opacity:1!important;visibility:visible!important;transform:none!important;transition:none!important;
 margin:8px 0 0!important;padding:0!important;height:auto!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-add-btn {
 display:block!important;width:100%!important;max-width:none!important;flex:none!important;
 margin:0!important;padding:0!important;overflow:visible!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop {
 display:flex!important;align-items:center!important;justify-content:center!important;gap:9px!important;
 position:relative!important;width:100%!important;height:44px!important;min-height:44px!important;
 max-width:none!important;padding:0 10px!important;margin:0!important;box-sizing:border-box!important;
 font:600 13px/1.2 var(--upstore-font,'Onest',Arial,sans-serif)!important;text-transform:none!important;
 color:#fff!important;background:#ce483c!important;border:0!important;border-radius:9px!important;
 text-decoration:none!important;box-shadow:none!important;overflow:hidden!important;
 transform:none!important;transition:background .15s ease!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop:hover {background:#b83c32!important;transform:none!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop:focus-visible {outline:2px solid #212121!important;outline-offset:3px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop span {
 display:inline!important;flex:0 0 auto!important;width:auto!important;min-height:0!important;
 font:inherit!important;white-space:nowrap!important;text-overflow:clip!important;
 margin:0!important;padding:0!important;overflow:visible!important;
 transform:none!important;transition:none!important;opacity:1!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop:before {
 content:''!important;position:static!important;display:block!important;flex:0 0 18px!important;
 width:18px!important;height:20px!important;margin:0!important;inset:auto!important;
 background:currentColor!important;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cg fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 8h16l2 16H2L4 8Z'/%3E%3Cpath d='M8 10V6a4 4 0 0 1 8 0v4'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat;
 transform:none!important;transition:none!important;opacity:1!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.loading:before,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.loading span {opacity:0!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.loading:after {opacity:1!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-action-buttons,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .quick-view,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-compare-btn,
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .onsale,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-cats,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-brands-links,
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-product-sku,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-star-rating,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .star-rating {display:none!important;}
/* Native WoodMart wishlist markup/handler remains intact and always visible. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-element-top > .wd-buttons {
 position:absolute!important;top:0!important;right:0!important;left:auto!important;
 display:block!important;opacity:1!important;visibility:visible!important;transform:none!important;
 background:rgba(255,255,255,.92)!important;box-shadow:none!important;border-radius:50%!important;
 z-index:4!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a {width:34px!important;height:34px!important;color:#212121!important;--wd-action-icon-size:21px;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a:focus-visible {outline:2px solid #ce483c!important;outline-offset:2px!important;}
/* Do not defeat shop-wide restrictions set by the merchant. */
:is(.catalog-mode-on,.login-see-prices) :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-add-btn {display:none!important;}
@media(min-width:768px) {
@container upstore-card-content (max-width:200px) {
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {font-size:21px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base {font-size:17px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge {font-size:9px!important;padding:4px 6px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row {gap:5px!important;}
}
}
@media(max-width:767px) {
@container upstore-card-content (max-width:208px) {
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {font-size:21px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base {font-size:17px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge {font-size:9px!important;padding:4px 6px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row {gap:5px!important;}
}
}
@media(min-width:768px) {
@container upstore-card-content (max-width:145px) {
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {font-size:17px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base {font-size:15px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge {font-size:8px!important;padding:4px 5px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row {gap:4px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop {font-size:12px!important;gap:6px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-note {font-size:10px!important;}
}
}
@media(max-width:767px) {
@container upstore-card-content (max-width:153px) {
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title {font-size:17px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base {font-size:15px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge {font-size:8px!important;padding:4px 5px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row {gap:4px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop {font-size:12px!important;gap:6px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-note {font-size:10px!important;}
}
}
@media(max-width:767px) {
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) {--up-card-main:21px;--up-card-secondary:17px;--up-card-old:12px;--up-card-rows:18px 28px 34px;--up-card-slot:80px;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-wrapper {padding:10px!important;border-radius:12px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-entities-title,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .woocommerce-loop-product__title {font-size:13px!important;height:36.4px!important;min-height:36.4px!important;max-height:36.4px!important;margin:10px 0 8px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .product-image-link {padding:3px!important;}
 :is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a {width:30px!important;height:30px!important;--wd-action-icon-size:19px;}
}

/* Self-contained wishlist icon: no dependency on the theme icon font. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a:before {content:''!important;display:block!important;width:22px!important;height:22px!important;position:static!important;inset:auto!important;margin:0!important;background:currentColor!important;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1.1-1.1a5.5%205.5%200%200%200-7.8%207.8L12%2021l8.8-8.6a5.5%205.5%200%200%200%200-7.8Z%27%20fill%3D%27none%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;transform:none!important;opacity:1!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a.added {color:#ce483c!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a.added:before {mask-image:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%3E%3Cpath%20d%3D%27M20.8%204.6a5.5%205.5%200%200%200-7.8%200L12%205.7l-1.1-1.1a5.5%205.5%200%200%200-7.8%207.8L12%2021l8.8-8.6a5.5%205.5%200%200%200%200-7.8Z%27%20fill%3D%27black%27%20stroke%3D%27black%27%20stroke-width%3D%271.7%27%20stroke-linejoin%3D%27round%27%2F%3E%3C%2Fsvg%3E");}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn .wd-added-icon {display:none!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .wd-wishlist-btn a.loading:before {opacity:0!important;}

/* Six-column desktop view at its narrowest supported width. */
@media(min-width:768px) {
@container upstore-card-content (max-width:118px) {
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title{font-size:14px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge{font-size:7px!important;padding:4px 4px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row{gap:3px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base{font-size:13px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-old{font-size:11px!important;}
}
}
@media(max-width:767px) {
@container upstore-card-content (max-width:126px) {
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main,:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-title{font-size:14px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-sale-badge{font-size:7px!important;padding:4px 4px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-main-row{gap:3px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-base{font-size:13px!important;}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-price-old{font-size:11px!important;}
}
}

/* Two intentional lines instead of a stranded final word. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .upstore-card-quote-line {
 display:block!important;white-space:nowrap!important;
}
/* Server-confirmed cart state. Same dimensions as the normal button. */
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.upstore-in-cart {
 color:#216245!important;background:#e9f3ed!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.upstore-in-cart:hover {
 color:#184c35!important;background:#dcece2!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) .add-to-cart-loop.upstore-in-cart:before {
 mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12 4 4L19 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat!important;
}
:is(.product-grid-item.upstore-catalog-card,#ap2 .product-grid-item.upstore-catalog-card) a.added_to_cart.wc-forward,
.upstore-catalog-cart-state {display:none!important;}
