/* Retail cards: product photo, name, price and in-store finance. */
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card{padding:0;border:1px solid #e5e5e5;border-radius:12px;background:#f7f7f7;box-shadow:none;direction:rtl;text-align:right;overflow:hidden}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .store-gallery{aspect-ratio:1.5;margin:0;border-radius:0;background:#fff;flex:none}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .store-gallery img{padding:8px;aspect-ratio:auto;object-fit:contain;background:#fff}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card h3{padding:7px 9px 0;margin:0;min-height:3em;font-family:inherit;font-size:clamp(12px,3.1vw,16px);font-weight:700;line-height:1.45;direction:rtl;text-align:right;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;-webkit-line-clamp:2}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .product-specs,.retail-product-card .content-view-counter{display:none}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card>.price{display:flex;flex-direction:column;align-items:flex-end;justify-content:flex-end;gap:4px;width:100%;margin:auto 0 0;padding:8px 9px 5px;min-height:43px;direction:ltr;text-align:right;font-size:clamp(16px,4.2vw,22px);font-weight:800;line-height:1.35;color:#111}
:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .product-new-price{direction:ltr;display:inline-flex;align-items:baseline;gap:6px;font-weight:800;white-space:nowrap}
.retail-product-card .product-new-price small{font-size:.6em;font-weight:700}
.retail-product-card .product-old-price{font-size:12px;margin:0}
.retail-product-card .product-arrival-badge{top:0;right:0;left:auto;z-index:4;padding:3px 8px;border-radius:0 10px 0 8px;font-size:clamp(11px,2.7vw,13px);line-height:1.5;box-shadow:0 4px 9px #1f639536;background:linear-gradient(110deg,#2c7bac,#18517f);color:#fff}
.retail-product-card .product-arrival-badge:not(.is-used)::before{content:'•';margin-inline-end:5px;color:#d9eaf6}
.retail-product-card .product-arrival-badge.is-used{background:#dc2626;color:#fff}
.retail-product-card>.product-discount-badge{top:32px;right:6px;left:auto}
.retail-product-card .product-instore-finance{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:2px 9px 8px;margin:0;min-height:36px;direction:rtl;color:#555;font-size:clamp(10px,2.6vw,13px);font-weight:700;line-height:1.5}
.retail-product-card .product-instore-finance .valu-wordmark{display:block;width:55px;height:22px;flex:none;background:linear-gradient(to right,#13b9a4 0 82%,#ef7c43 82% 100%);-webkit-mask:url("/assets/valu-wordmark.svg?v=a211524baa306aa9") center/contain no-repeat;mask:url("/assets/valu-wordmark.svg?v=a211524baa306aa9") center/contain no-repeat}
html[data-theme=dark] :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card{background:var(--card-surface);border-color:var(--line)}
html[data-theme=dark] :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card>.price{color:#edf3ff}
html[data-theme=dark] .retail-product-card .product-instore-finance{color:#b9c6dc}
@media(min-width:700px){.retail-product-card .product-instore-finance .valu-wordmark{width:66px;height:26px}.retail-product-card .product-instore-finance{padding:2px 10px 9px}:is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card h3{padding-inline:10px}}

/* A short light sweep and a vertical, four-message benefits loop. */
.retail-product-card .product-instore-finance{display:block}
.product-perks-viewport{display:block;height:2.7em;overflow:hidden}
.product-perks-track{display:block;animation:product-perk-cycle 16s cubic-bezier(.4,0,.2,1) infinite}
.product-perk{display:flex;align-items:center;justify-content:space-between;gap:4px;height:2.7em;direction:rtl}
.product-perk-label{display:-webkit-box;flex:1;min-width:0;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-align:center;line-height:1.35}
.product-perk-icon{display:block;flex:none;width:14px;height:14px;color:var(--blue,#0878f9)}
@keyframes product-perk-cycle{0%,20%{transform:translateY(0)}25%,45%{transform:translateY(-20%)}50%,70%{transform:translateY(-40%)}75%,95%{transform:translateY(-60%)}100%{transform:translateY(-80%)}}
@media(min-width:700px){.product-perk-icon{width:20px;height:20px}}
@media(prefers-reduced-motion:reduce){.product-perks-track{animation:none}}

/* Three complete mobile cards, sized like the supplied store reference. */
@media(max-width:699px){
 :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card{border-radius:7px}
 :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .store-gallery{aspect-ratio:1.25}
 :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card .store-gallery img{padding:6px}
 :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card h3{padding:5px 6px 0;min-height:3.1em;font-size:clamp(10px,2.8vw,12px);line-height:1.4}
 :is(.reference-home,.product-detail-page) :is(#store-grid,#home-apple-grid,#other-products-grid,#product-recommendations-grid)>.product.retail-product-card>.price{padding:4px 6px 3px;min-height:32px;font-size:clamp(12px,3.5vw,16px);gap:2px}
 .retail-product-card .product-new-price{gap:3px}
 .retail-product-card .product-old-price{font-size:9px}
 .retail-product-card .product-arrival-badge{padding:2px 5px;font-size:clamp(9px,2.4vw,11px);border-radius:0 6px 0 6px}
 .retail-product-card>.product-discount-badge{top:25px;right:4px;font-size:9px;padding:2px 4px}
 .retail-product-card .product-instore-finance{padding:2px 6px 6px;min-height:28px;gap:4px;font-size:clamp(8px,2.1vw,10px);line-height:1.35}
 .retail-product-card .product-instore-finance .valu-wordmark{width:38px;height:18px}
}

.retail-product-card:not(:has(.product-condition-badge))>.product-discount-badge{top:0;right:0;border-radius:0 6px 0 6px}

/* Related products keep the same compact three-card mobile proportions. */
.product-detail-page #product-recommendations-grid{display:flex;direction:rtl;align-items:stretch;justify-content:flex-start;gap:clamp(10px,2vw,16px);overflow-x:auto;scroll-snap-type:x proximity;overscroll-behavior-inline:contain;padding:0 0 3px;scrollbar-width:none}
.product-detail-page #product-recommendations-grid::-webkit-scrollbar{display:none}
.product-detail-page #product-recommendations-grid>.product.retail-product-card{flex:0 0 calc((100% - 2 * clamp(10px,2vw,16px))/3);min-width:0;max-width:none;scroll-snap-align:start}
.retail-product-card .store-gallery img{cursor:pointer}
@media(min-width:700px){.product-detail-page #product-recommendations-grid>.product.retail-product-card{flex-basis:calc((100% - 2 * clamp(10px,2vw,16px))/3.5)}}
@media(min-width:1000px){.product-detail-page #product-recommendations-grid>.product.retail-product-card{flex-basis:calc((100% - 3 * clamp(10px,2vw,16px))/4.75)}}

/* Compact, keyboard-accessible color choices inside a product family card. */
.retail-product-card .product-card-options{display:flex;align-items:center;justify-content:space-between;gap:2px;min-height:28px;padding:0 6px 3px;direction:rtl}
.retail-product-card .product-card-colors{display:flex;align-items:center;gap:2px;min-width:0;overflow-x:auto;scrollbar-width:none}
.retail-product-card .product-card-colors::-webkit-scrollbar{display:none}
.retail-product-card .product-card-color{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;min-height:24px;padding:3px;border:1px solid transparent;border-radius:50%;background:transparent;box-shadow:none;cursor:pointer}
.retail-product-card .product-card-color::before{content:'';display:block;width:16px;height:16px;border:1px solid #0002;border-radius:50%;background:var(--variant-color)}
.retail-product-card .product-card-color[aria-pressed=true]{border-color:var(--blue,#0878f9)}
.retail-product-card .product-card-color:focus-visible{outline:2px solid var(--blue,#0878f9);outline-offset:1px}
.retail-product-card .product-card-capacity{flex-shrink:1;min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:9px;font-weight:600;color:var(--muted,#6b7280);white-space:nowrap}

/* A product photo is one native link, not a nested swipe surface. */
.retail-product-card .store-gallery{overflow:hidden;scroll-snap-type:none;touch-action:manipulation;-webkit-tap-highlight-color:rgba(8,120,249,.15)}
.retail-product-card .store-gallery>img{pointer-events:none}
