/* ============================================
   Product Card — YouTube-style thumbnail
   ============================================ */

.mypod-product-card {
    position: relative;
    width: 100%;
    background: var(--mypod-color-surface);
    border-radius: var(--mypod-radius-lg);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
    .mypod-product-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--mypod-shadow-md);
    }
}

.mypod-product-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail — square, shows full product (no cropping) */
.mypod-product-card__thumb {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: var(--mypod-radius-lg);
    overflow: hidden;
    background: var(--mypod-color-bgTertiary);
}

.mypod-product-card__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

@media (hover: hover) {
    .mypod-product-card:hover .mypod-product-card__img {
        transform: scale(1.03);
    }
}

.mypod-product-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mypod-color-textSecondary);
}

.mypod-product-card__placeholder .mypod-icon {
    width: 48px;
    height: 48px;
    opacity: 0.4;
}

/* Sale badge */
.mypod-product-card__sale-badge {
    position: absolute;
    top: var(--mypod-space-sm);
    left: var(--mypod-space-sm);
    background: var(--mypod-color-accent);
    color: #fff;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: var(--mypod-radius-sm);
    letter-spacing: 0.03em;
}

/* Quick View — single eye-icon button (replaces former cart icon) */
.mypod-product-card__quick-view-btn {
    position: absolute;
    bottom: var(--mypod-space-sm);
    right: var(--mypod-space-sm);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--mypod-color-surface);
    color: var(--mypod-color-text);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--mypod-shadow-md);
    opacity: 0;
    transform: translateY(4px) scale(0.92);
    transition: opacity 0.2s, transform 0.2s, background 0.15s, color 0.15s;
    cursor: pointer;
    border: none;
    z-index: 3;
    padding: 0;
}

.mypod-product-card__quick-view-btn svg,
.mypod-product-card__quick-view-btn .mypod-icon {
    width: 20px;
    height: 20px;
}

.mypod-product-card__quick-view-btn:hover {
    background: var(--mypod-color-accent, #2563eb);
    color: #fff;
    transform: translateY(0) scale(1);
}

@media (hover: hover) {
    .mypod-product-card:hover .mypod-product-card__quick-view-btn,
    .mypod-product-card:focus-within .mypod-product-card__quick-view-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Always visible on touch devices */
@media (hover: none) {
    .mypod-product-card__quick-view-btn {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Info */
.mypod-product-card__info {
    padding: var(--mypod-space-md) var(--mypod-space-sm) var(--mypod-space-md);
    text-align: center;
}

.mypod-product-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
    margin: 0 0 6px;
    color: var(--mypod-color-text);
}

.mypod-product-card__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--mypod-space-sm);
    flex-wrap: wrap;
}

.mypod-product-card__price {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--mypod-color-text);
    letter-spacing: 0.01em;
}

.mypod-product-card__price del {
    color: var(--mypod-color-textSecondary);
    font-weight: 400;
    margin-right: 4px;
}

.mypod-product-card__price ins {
    text-decoration: none;
    color: var(--mypod-color-accent);
}

/* Rating stars */
.mypod-product-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.mypod-product-card__stars {
    font-size: 0.75rem;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #fbbf24 calc(var(--rating) * 20%), var(--mypod-color-border) 0%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}