/* Keep single-image cards visible; reveal the next image without an empty cycle. */
.product-card:hover .product-card-image,
.product-card:hover .product-card-image:not(.product-card-image-alt),
.product-card:hover .product-card-image-alt-one,
.product-card:hover .product-card-image-alt-two,
.product-card:hover .product-card-image-alt-1,
.product-card:hover .product-card-image-alt-2,
.product-card:focus-within .product-card-image {
    animation: none;
}
 .product-card .product-card-image:not(.is-preview-active) { opacity: 0; }
.product-card .product-card-image.is-preview-active { opacity: 1; }
.product-purchase-actions { display: grid; grid-template-columns: minmax(65px, .6fr) 1fr 1fr; gap: .5rem; }
.product-purchase-actions .qty-input { width: 100%; max-width: none; }
.product-actions .btn, .product-actions .qty-input { min-height: 44px; margin: 0; }
.product-secondary-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; align-items: stretch; }
.product-secondary-actions form { margin: 0; }
.product-secondary-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
@media (max-width: 420px) {
    .product-purchase-actions { grid-template-columns: 70px 1fr; }
    .product-purchase-actions button[name="purchase_action"] { grid-column: 1 / -1; }
    .product-secondary-actions > *, .product-secondary-actions .btn { width: 100%; }
}

.catalog-themed-card {
    background: var(--product-surface);
    color: var(--product-text);
    border-top: 3px solid var(--product-accent);
}
.catalog-themed-card .product-category,
.catalog-themed-card .product-special-badge { color: var(--product-accent); }
.product-themed-page {
    background: var(--product-background);
    color: var(--product-text);
    --brand-primary: var(--product-accent);
    --brand-accent: var(--product-accent);
}
.product-themed-page .card,
.product-themed-page .feature-mini { background: var(--product-surface); color: var(--product-text); }
.product-themed-page .product-detail-badge { color: var(--product-accent); }
.product-themed-page .btn-primary,
.product-themed-page .site-primary-btn { background: var(--product-accent); border-color: var(--product-accent); color: white; }
.product-description-copy { white-space: pre-line; overflow-wrap: anywhere; }
.product-description-more summary { color: var(--product-accent); font-weight: 600; cursor: pointer; }
.product-description-more summary .see-less { display: none; }
.product-description-more[open] summary .see-less { display: inline; }
.product-description-more[open] summary .see-more { display: none; }
.product-description-more[open] .product-description-copy { margin-top: .75rem; }
@media (prefers-reduced-motion: reduce) {
    .product-card .product-card-image { transition: none; }
}
