.product-media-shell {
    position: relative;
    min-height: 160px;
}

.product-media-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    opacity: 0;
    transition: opacity 0.2s ease, backdrop-filter 0.2s ease, -webkit-backdrop-filter 0.2s ease;
    pointer-events: none;
}

.product-media-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 20;
    display: flex;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, calc(-50% - 4px));
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-media-shell.is-actions-visible .product-media-actions {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}

.product-media-shell.is-actions-visible::after {
    opacity: 1;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover .product-media-actions,
    .card:focus-within .product-media-actions {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, -50%);
    }

    .card:hover .product-media-shell::after,
    .card:focus-within .product-media-shell::after {
        opacity: 1;
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }
}

.product-media-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid #C1C1C1;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.98);
    color: #475569;
    cursor: pointer;
    box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.28);
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.product-media-action:hover {
    background: #FFFFFF;
    border-color: #94A3B8;
    color: #0F172A;
    transform: translateY(-1px);
}

.page-loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.96);
    padding: 24px;
}

.page-loading-card {
    width: 100%;
    max-width: 28rem;
    text-align: center;
}

.page-loading-spinner {
    width: 64px;
    height: 64px;
    border: 8px solid #D1D5DB;
    border-top-color: #2563EB;
    border-radius: 9999px;
    animation: product-card-spin 1s linear infinite;
    margin: 64px auto;
}

@keyframes product-card-spin {
    to {
        transform: rotate(360deg);
    }
}

.product-card-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3.5rem;
    max-height: 3.5rem;
    line-height: 1.75rem;
}

@media (max-width: 639px) {
    .product-media-shell-mobile {
        min-height: 96px;
    }

    .product-card-title {
        min-height: auto;
        max-height: none;
        line-height: 1.45rem;
    }
}
