/* Storefront only. Elementor owns the section width, background and spacing. */
.amt-product-feed { container: amt-feed / inline-size; min-inline-size: 0; max-inline-size: 100%; color: var(--amt-ink); font: inherit; }
.amt-product-feed *, .amt-product-feed *::before, .amt-product-feed *::after { box-sizing: border-box; }
.amt-product-feed [hidden] { display: none !important; }
.amt-product-feed .amt-feed-list { display: grid; gap: 1rem; margin: 0; padding: .35rem; list-style: none; min-inline-size: 0; }
.amt-product-feed.amt-feed-carousel .amt-feed-list { grid-auto-flow: column; grid-auto-columns: 83%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding-inline: .35rem; }
.amt-product-feed.amt-feed-carousel .amt-feed-list::-webkit-scrollbar { display: none; }
.amt-product-feed.amt-feed-grid .amt-feed-list { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.amt-product-feed .amt-feed-item { min-inline-size: 0; padding: 0; margin: 0; scroll-snap-align: start; }
.amt-product-feed.amt-feed-carousel { position: relative; padding-block-start: 3.5rem; }
.amt-product-feed .amt-feed-card { display: flex; flex-direction: column; height: 100%; min-inline-size: 0; color: var(--amt-ink); background: var(--amt-paper); border-radius: min(var(--amt-radius), .75rem); text-decoration: none; box-shadow: 0 1px 3px rgb(0 0 0 / .05); transition: box-shadow .18s ease; }
/* Keep theme entry-content link decorations off the card without weakening focus outlines. */
.amt-product-feed .amt-feed-list a.amt-feed-card { text-decoration: none; }
.amt-product-feed .amt-feed-card:hover, .amt-product-feed .amt-feed-card:focus-visible { color: var(--amt-ink); text-decoration: none; box-shadow: 0 3px 10px rgb(0 0 0 / .08); }
.amt-product-feed .amt-feed-card:focus-visible, .amt-product-feed .amt-feed-controls button:focus-visible { outline: 3px solid var(--amt-accent); outline-offset: 2px; }
.amt-product-feed .amt-feed-media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--amt-soft); border-start-start-radius: min(var(--amt-radius), .75rem); border-start-end-radius: min(var(--amt-radius), .75rem); }
.amt-product-feed .amt-feed-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .24s ease; }
.amt-product-feed .amt-feed-placeholder { display: grid; place-items: center; height: 100%; font-size: 3rem; color: var(--amt-muted); }
.amt-product-feed .amt-feed-sale { position: absolute; inset-block-start: .625rem; inset-inline-start: .625rem; max-inline-size: calc(100% - 1.25rem); padding: .25rem .55rem; background: var(--amt-paper); color: var(--amt-accent); border-radius: 2rem; font-size: .6875rem; line-height: 1.5; font-weight: 600; overflow-wrap: anywhere; }
.amt-product-feed .amt-feed-body { display: grid; align-content: start; gap: .5rem; padding: .875rem .875rem 1rem; min-inline-size: 0; text-align: start; }
.amt-product-feed .amt-feed-title { font-size: 1rem; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; text-decoration: none; }
.amt-product-feed .amt-feed-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .5rem; line-height: 1.5; }
.amt-product-feed .amt-feed-price strong { font-size: 1.125rem; font-weight: 700; color: var(--amt-ink); }
.amt-product-feed .amt-feed-price bdi { display: inline-block; white-space: nowrap; }
.amt-product-feed .amt-feed-price del bdi { text-decoration: line-through; }
.amt-product-feed .amt-feed-price del, .amt-product-feed .amt-feed-from, .amt-product-feed .amt-feed-unavailable { color: var(--amt-muted); font-size: .8125rem; font-weight: 400; }
.amt-product-feed .amt-feed-from { flex-basis: 100%; }
.amt-product-feed .amt-feed-unavailable { line-height: 1.5; }
.amt-product-feed .amt-feed-controls { position: absolute; inset-block-start: 0; inset-inline-end: .35rem; display: flex; justify-content: end; gap: .5rem; }
.amt-product-feed .amt-feed-controls button { display: inline-grid; place-items: center; inline-size: 44px; block-size: 44px; min-inline-size: 44px; padding: 0; border: 1px solid var(--amt-line); border-radius: 50%; background: var(--amt-paper); color: var(--amt-ink); font: inherit; font-size: 1.125rem; line-height: 1; cursor: pointer; transition: background-color .18s ease, border-color .18s ease; }
.amt-product-feed .amt-feed-controls button:not(:disabled):hover { background: var(--amt-soft); border-color: var(--amt-accent); }
.amt-product-feed .amt-feed-controls button:not(:disabled):active { border-color: var(--amt-ink); }
.amt-product-feed .amt-feed-controls button:disabled { opacity: .4; cursor: default; }
.amt-product-feed[dir="rtl"] .amt-feed-controls button { transform: scaleX(-1); }
.amt-product-feed .amt-feed-empty { color: var(--amt-muted); margin-block: 1rem; }
/* Presentation modifiers share one card, one focus target, and all rail geometry. */
.amt-product-feed.amt-card-style-editorial .amt-feed-card { background: transparent; box-shadow: none; }
.amt-product-feed.amt-card-style-editorial .amt-feed-body { padding-inline: .125rem; padding-block: 1rem .75rem; gap: .625rem; background: var(--amt-paper); }
.amt-product-feed.amt-card-style-editorial .amt-feed-title { font-weight: 500; }
.amt-product-feed.amt-card-style-editorial .amt-feed-media { border-radius: min(var(--amt-radius), .375rem); }
.amt-product-feed.amt-card-style-editorial .amt-feed-card:hover .amt-feed-title { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.amt-product-feed.amt-card-style-overlay .amt-feed-card { display: grid; grid-template-columns: minmax(0, 1fr); height: auto; }
.amt-product-feed.amt-card-style-overlay .amt-feed-media { grid-area: 1 / 1; align-self: start; inline-size: 100%; border-radius: min(var(--amt-radius), .75rem); }
.amt-product-feed.amt-card-style-overlay .amt-feed-body { grid-area: 1 / 1; align-self: end; z-index: 1; margin: 3.5rem .5rem .5rem; padding: .75rem; background: var(--amt-paper); color: var(--amt-ink); border-radius: min(var(--amt-radius), .5rem); box-shadow: 0 1px 8px rgb(0 0 0 / .08); }
.amt-product-feed.amt-card-style-overlay .amt-feed-sale { z-index: 2; }
@container amt-feed (max-width: 24rem) { .amt-product-feed.amt-card-style-overlay .amt-feed-body { margin-inline: 0; padding-inline: .375rem; } }
/* Two ~16rem cards at 34rem; four ~13rem cards at 56rem, including gaps and focus gutters. */
@container amt-feed (min-width: 34rem) { .amt-product-feed.amt-feed-carousel .amt-feed-list { grid-auto-columns: calc((100% - 1rem) / 2); } }
@container amt-feed (min-width: 56rem) { .amt-product-feed.amt-feed-carousel .amt-feed-list { grid-auto-columns: calc((100% - 3rem) / 4); } }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .amt-product-feed .amt-feed-card:hover .amt-feed-media img { transform: scale(1.025); } }
@media (prefers-reduced-motion: reduce) { .amt-product-feed .amt-feed-card, .amt-product-feed .amt-feed-media img, .amt-product-feed .amt-feed-controls button { transition: none; } }
