/* Datasheet cards: separate boxed cards, spec rows, one quiet action. Loads after site.css.
   Cards are concentric containers (tokens.css): one even padding from --rnt-gap, so the corner button gets lg-10-1 = 9px. */

#redronic-ntp .ntp-product-grid{gap:20px;border:0;border-radius:0;overflow:visible;box-shadow:none}
#redronic-ntp .ntp-product{margin:0;border:1px solid transparent;--rnt-r:var(--rnt-radius-lg);--rnt-gap:10px;--rnt-bw:1px;border-radius:var(--rnt-r);box-shadow:var(--rnt-paper-shadow);transform:none;background:#fff;padding:var(--rnt-gap);min-width:0;transition:border-color .15s,box-shadow .15s}
#redronic-ntp .ntp-product:hover{background:#fff;border-color:var(--ntp-text);box-shadow:0 6px 18px rgba(40,50,61,.08);transform:none;position:static}
#redronic-ntp .ntp-product-image{height:160px;overflow:hidden;margin-bottom:12px}
#redronic-ntp .ntp-product-image img{transition:transform .2s}
#redronic-ntp .ntp-product:hover .ntp-product-image img{transform:scale(1.03)}
#redronic-ntp .ntp-product h3{font-size:14px;font-weight:400;line-height:1.8;min-height:50px;margin:0 0 10px;padding:0;color:var(--ntp-text)}
#redronic-ntp .ntp-product h3 a{color:inherit;min-height:0}

/* As many columns as fit at >= 200px each: 4 beside the sidebar on desktop, 3 on narrower screens; phones stay at 2 (below). */
body.redronic-newtheme.woocommerce ul.products{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:20px;border:0;border-radius:0;overflow:visible;box-shadow:none}
body.redronic-newtheme.woocommerce ul.products li.product{margin:0;border:1px solid transparent;--rnt-r:var(--rnt-radius-lg);--rnt-gap:10px;--rnt-bw:1px;border-radius:var(--rnt-r);box-shadow:var(--rnt-paper-shadow);transform:none;background:#fff;padding:var(--rnt-gap);min-width:0;transition:border-color .15s,box-shadow .15s}
body.redronic-newtheme.woocommerce ul.products li.product:hover{background:#fff;border-color:var(--ntp-text);box-shadow:0 6px 18px rgba(40,50,61,.08);transform:none;position:static}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-thumbnail-wrap{height:160px;overflow:hidden;margin-bottom:12px}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-thumbnail-wrap img{transition:transform .2s}
body.redronic-newtheme.woocommerce ul.products li.product:hover  .astra-shop-thumbnail-wrap img{transform:scale(1.03)}
body.redronic-newtheme.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:14px;font-weight:400;line-height:1.8;min-height:50px;margin:0 0 10px;padding:0;color:var(--ntp-text)}
body.redronic-newtheme.woocommerce ul.products li.product .woocommerce-loop-product__title a{color:inherit;min-height:0}

body.redronic-newtheme.woocommerce ul.products li.product .ast-woo-product-category,body.redronic-newtheme.woocommerce ul.products li.product .ast-on-card-button{display:none}
.rnt-price-row .ntp-stock{display:inline-flex;align-items:center;gap:5px;margin-inline-start:auto;flex:none;font-size:12px;line-height:1.6;background:none!important;padding:0;border-radius:0}
.ntp-stock-dot{width:8px;height:8px;border-radius:50%;background:currentColor;display:inline-block}
.ntp-stock-instock{color:var(--ntp-stock-text,#236345)!important}
.ntp-stock-onbackorder{color:var(--ntp-backorder-text,#28323d)!important}
.ntp-stock-outofstock{color:var(--ntp-unavailable-text,#59636d)!important}
/* Free card height goes above the specs (or above the price row when there are none), so specs line up along a row. */
.rnt-specs{margin:auto 0 12px;padding:4px 8px;background:#f4f6f7;font-size:12.5px;line-height:1.6}
.rnt-specs>div{display:flex;justify-content:space-between;gap:8px;padding:4px 0;border-top:1px solid #dfe3e6}
.rnt-specs>div:first-child{border-top:0}
.rnt-specs dt{margin:0;color:#4d5862;flex:none;font-weight:400}
.rnt-specs dd{margin:0;min-width:0;text-align:left;font-variant-numeric:tabular-nums;color:var(--ntp-text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* price row (price + stock dot) + one action */
/* min-height = one price line (16px x 1.3) + padding + border, so rows without a price keep the divider aligned. */
.rnt-price-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:2px 8px;margin:0 0 10px;padding-top:10px;border-top:1px solid #dfe3e6;min-width:0;min-height:calc(16px * 1.3 + 11px);box-sizing:border-box}
/* The smaller currency symbol sits on the number's baseline and looks low; center it on the number instead. */
.rnt-price-row .price bdi{display:inline-flex;align-items:center;gap:3px}
#redronic-ntp .rnt-price-row .price .woocs_price_code{font-size:inherit} /* A plugin rule (body.rtl #main .woocs_price_code) scales the amount to 1.2em. */
/* In narrow cards the stock label always sits under the price, so short prices don't leave their divider lower than the neighbours'. */
:is(#redronic-ntp .ntp-product,body.redronic-newtheme.woocommerce ul.products li.product){container-type:inline-size}
@container (max-width:200px){.rnt-price-row .ntp-stock{flex-basis:100%;margin-inline-start:0}}
.rnt-price-row:not(.rnt-specs~*){margin-top:auto}
#redronic-ntp .ntp-product .ntp-price,body.redronic-newtheme.woocommerce ul.products li.product .price{margin:0;min-height:0;font-size:16px;font-weight:600;line-height:1.3;letter-spacing:-.01em;color:var(--ntp-text)}
.rnt-actions{display:flex;gap:8px;align-items:stretch}
/* Grow only inside the action row; in the shop loop the button sits in a column, where flex-grow would make it taller. */
.rnt-actions>.ntp-product-buy{flex:1 1 auto}
/* WooCommerce AJAX injects a "view cart" link after the button; not wanted in the card. */
.rnt-actions .added_to_cart{display:none}
#redronic-ntp .ntp-product .ntp-product-buy,body.redronic-newtheme.woocommerce ul.products li.product a.button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:40px;margin:0;padding:6px 16px;font-size:14px;text-align:center;line-height:1.5}
#redronic-ntp .ntp-product .ntp-product-buy:focus-visible,body.redronic-newtheme.woocommerce ul.products li.product a.button:focus-visible,.rnt-datasheet:focus-visible{outline:2px solid var(--ntp-focus,#a17c00);outline-offset:2px}
body.redronic-newtheme.woocommerce ul.products li.product a.button::after,body.redronic-newtheme.woocommerce ul.products li.product:hover a.button::after,#redronic-ntp .ntp-buy-arrow{content:none;display:none}
.rnt-datasheet{flex:none;display:grid;place-items:center;width:40px;min-height:40px;border:1px solid #dfe3e6;border-radius:var(--rnt-radius-xs);color:var(--ntp-text);background:#fff}
.rnt-datasheet:hover{border-color:var(--ntp-text)}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap{display:flex;flex-direction:column;position:relative}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>a.button{align-self:stretch;order:9}
/* The datasheet icon is pinned over the button row, so the full-width button leaves it room (40px + 8px gap). */
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap:has(>.rnt-datasheet)>a.button{margin-inline-end:48px}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.rnt-datasheet{position:absolute;inset-block-end:0;inset-inline-end:0;order:9}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.rnt-price-row{order:8}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.screen-reader-text{position:absolute}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.ast-loop-product__link{order:2}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.rnt-specs{order:3}
@media(max-width:1100px){#redronic-ntp .ntp-product-grid,body.redronic-newtheme.woocommerce ul.products{gap:16px}}
@media(max-width:760px){
#redronic-ntp .ntp-product-grid,body.redronic-newtheme.woocommerce ul.products{gap:12px}
body.redronic-newtheme.woocommerce ul.products{grid-template-columns:repeat(2,minmax(0,1fr))}
.rnt-specs{padding:2px 6px;font-size:12px}
.rnt-specs>div{flex-direction:column;gap:0;padding:3px 0}
.rnt-specs dd{text-align:start;direction:ltr}
.rnt-actions{flex-wrap:wrap}
}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-thumbnail-wrap>a.woocommerce-LoopProduct-link{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:0}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>a.button{margin-top:auto}
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-summary-wrap>.rnt-price-row+a.button{margin-top:0}
/* The card's stock dot already says out of stock; hide Astra's duplicate chip on the photo. */
body.redronic-newtheme.woocommerce ul.products li.product .astra-shop-thumbnail-wrap .ast-shop-product-out-of-stock{display:none!important}
