/* Phase 4 comparison cards only. Product, home, header suggestions and cart keep their own layouts. */
:is(.tn710-p4,.tn710-p5-home) .tnp4-card{display:flex;flex-flow:column nowrap;align-items:stretch;justify-content:flex-start;gap:var(--tn710-ui-space-3,12px);min-width:0;height:100%;padding:var(--tn710-ui-space-4,16px);border:0;border-radius:0;background:var(--tn710-ui-surface,#fff);color:var(--tn710-ui-ink,#202a2c);box-shadow:none;overflow-wrap:anywhere}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-photo{display:block;position:relative;width:100%;aspect-ratio:4/3;overflow:hidden;background:var(--tn710-ui-surface,#fff);border:0}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-photo img{display:block;position:absolute;inset:0;width:100%;height:100%;max-width:100%;object-fit:contain;object-position:center}
:is(.tn710-p4,.tn710-p5-home) .tnp4-product-description,:is(.tn710-p4,.tn710-p5-home) .tnp4-offer{min-width:0}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card p,:is(.tn710-p4,.tn710-p5-home) .tnp4-card h3{margin:0}
:is(.tn710-p4,.tn710-p5-home) .tnp4-brand,:is(.tn710-p4,.tn710-p5-home) .tnp4-range,:is(.tn710-p4,.tn710-p5-home) .tnp4-unit,:is(.tn710-p4,.tn710-p5-home) .tnp4-facts,:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-price small{font-size:var(--tn710-ui-fs-sm,.875rem);line-height:1.55;color:var(--tn710-ui-muted,#495650)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-name{font:var(--tn710-ui-fw-semibold,650) var(--tn710-ui-fs-body,1rem)/1.5 var(--tn710-ui-font-heading,inherit);letter-spacing:normal}
:is(.tn710-p4,.tn710-p5-home) .tnp4-name a{color:inherit;text-decoration:none}
:is(.tn710-p4,.tn710-p5-home) .tnp4-name a:hover{text-decoration:underline}
:is(.tn710-p4,.tn710-p5-home) .tnp4-product-description>:not(:first-child),:is(.tn710-p4,.tn710-p5-home) .tnp4-offer>:not(:first-child){margin-block-start:var(--tn710-ui-space-1,4px)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-offer{margin-top:auto;display:flex;flex-flow:column nowrap;padding-top:var(--tn710-ui-space-2,8px)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-price{display:flex;align-items:baseline;gap:0 .35em;flex-wrap:wrap;line-height:1.4;font-variant-numeric:tabular-nums}
:is(.tn710-p4,.tn710-p5-home) .tnp4-sale-quantity{font-size:var(--tn710-ui-fs-sm,.875rem);font-weight:var(--tn710-ui-fw-medium,550)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-price del{font-size:.82em;color:var(--tn710-ui-muted,#495650)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-offer .amount{color:inherit}
:is(.tn710-p4,.tn710-p5-home) .tnp4-unit,:is(.tn710-p4,.tn710-p5-home) .tnp4-range{font-variant-numeric:tabular-nums}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-flags{font-size:var(--tn710-ui-fs-sm,.875rem);font-weight:var(--tn710-ui-fw-semibold,650);color:var(--tn710-ui-forest,#1d342c)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-fact{display:inline}:is(.tn710-p4,.tn710-p5-home) .tnp4-scent-icon{display:inline-block;vertical-align:-.15em;margin-inline-end:.25em;color:var(--tn710-ui-green,#008426)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-scent-icon svg{display:block;width:1em;height:1em}:is(.tn710-p4,.tn710-p5-home) .tnp4-fact-dot{padding-inline:.12em}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link{align-self:flex-start;display:inline-flex;align-items:center;gap:.45em;min-height:var(--tn710-ui-target-secondary,44px);margin-top:var(--tn710-ui-space-2,8px);max-width:100%;line-height:1.45}
@media(max-width:767px){:is(.tn710-p4,.tn710-p5-home) .tnp4-card{padding:var(--tn710-ui-space-3,12px) 0;gap:var(--tn710-ui-space-2,8px)}}

/* Each shelf row shares media, description, price, notes and action baselines.
   Flex above remains the fallback where CSS subgrid is unavailable. */
@supports (grid-template-rows:subgrid){
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card{display:grid;grid-template-rows:subgrid;grid-row:span 5;row-gap:var(--tn710-ui-space-2,8px);height:auto}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-card>.tnp4-photo{grid-row:1}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-product-description{grid-row:2}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-offer{display:contents}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-offer>.tnp4-price{grid-row:3;align-self:start}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-offer>:is(.tnp4-price-notes,.tnp4-unit){grid-row:4;align-self:start}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-offer>.tnp4-product-link{grid-row:5;justify-self:start;align-self:end}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid .tnp4-offer>:not(:first-child){margin-block-start:0}
}

/* Read WooCommerce amount + currency as one number; wrapping falls between complete prices and units. */
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .amount,:is(.tn710-p4,.tn710-p5-home) .tnp4-sale-quantity,:is(.tn710-p4,.tn710-p5-home) .tnp4-price small{white-space:nowrap}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-leadtime{display:block;color:var(--tn710-ui-muted);font-weight:var(--tn710-ui-fw-regular,400)}
/* The category picker is the boxed control; a compact directional cue identifies the product link. */
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link{color:var(--tn710-ui-forest);font-weight:var(--tn710-ui-fw-semibold);text-decoration:none}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link>[aria-hidden]{display:inline-grid;place-items:center;flex:none;inline-size:1.45rem;block-size:1.45rem;line-height:1;border-radius:50%;background:var(--tn710-ui-subtle);color:var(--tn710-ui-forest)}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link:is(:hover,:focus-visible){text-decoration:underline;text-underline-offset:.22em}
:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link:is(:hover,:focus-visible)>[aria-hidden]{background:var(--tn710-ui-forest);color:var(--tn710-ui-on-dark)}
@media(forced-colors:active){:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link{color:LinkText;text-decoration:underline}:is(.tn710-p4,.tn710-p5-home) .tnp4-card .tnp4-product-link>[aria-hidden]{color:LinkText}}
@media(max-width:767px){
 /* A single result reads as one compact row. The short edge of its photo stays bounded, even on wide phones. */
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card:only-child{display:grid;grid-column:1/-1;grid-row:auto;grid-template: "photo info" auto "photo offer" auto / clamp(4rem,23vw,9rem) minmax(0,1fr);gap:var(--tn710-ui-space-2,8px) var(--tn710-ui-space-4,16px);height:auto;align-items:start}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card:only-child>.tnp4-photo{grid-area:photo;aspect-ratio:1;align-self:start}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card:only-child>.tnp4-product-description{grid-area:info}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card:only-child>.tnp4-offer{grid-area:offer;display:flex;gap:var(--tn710-ui-space-1,4px);align-items:flex-start;margin:0;padding:0}
 :is(.tn710-p4,.tn710-p5-home) .tnp4-grid>.tnp4-card:only-child .tnp4-product-link{align-self:flex-start}
}
