/**
 * Premium Immersive Product Card
 * Full-bleed design with glassmorphism hover effects
 */

/* Remove default card styling from li parent */
ul.products li.product:has(.product-card-premium) {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}


/* Card container - borderless, full-bleed */
.product-card-premium {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 1 / 1.1;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.4s ease;
}

.product-card-premium:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

/* Image - full-bleed with zoom on hover */
.product-card-premium__image-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.product-card-premium__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-premium:hover .product-card-premium__image {
    transform: scale(1.08);
}

/* Content overlay - positioned at bottom */
.product-card-premium__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    z-index: 2;
    pointer-events: none;
}

/* Typography - minimal, premium */
.product-card-premium__title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.product-card-premium__title a {
    color: inherit;
    text-decoration: none;
}

.product-card-premium__subtitle {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.3px;
}

.product-card-premium__price {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 16px 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Quick Add button - glassmorphism pill */
.product-card-premium__quick-add {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(80px);
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card-premium:hover .product-card-premium__quick-add {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

.product-card-premium__quick-add:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}

.product-card-premium__quick-add:active {
    transform: translate(-50%, -50%) translateY(0) scale(0.96);
}

/* Cart icon in button */
.product-card-premium__quick-add-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* Gradient overlay for better text readability */
.product-card-premium__gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.5) 50%,
            rgba(0, 0, 0, 0.2) 80%,
            transparent 100%);
    z-index: 1;
    pointer-events: none;
}

/* Category Badge (Top-Left of image) */
.product-card-premium__category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--cat-color, #16a34a);
    border-radius: 9999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
}

/* Colored dot before category name */
.product-card-premium__category-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--cat-color, #16a34a);
    border-radius: 50%;
    flex-shrink: 0;
}

.product-card-premium:hover .product-card-premium__category-badge {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* Alternative fade-in animation for Quick Add button */
.product-card-premium.fade-style .product-card-premium__quick-add {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 0;
}

.product-card-premium.fade-style:hover .product-card-premium__quick-add {
    transform: translate(-50%, -50%) translateY(0);
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .product-card-premium {
        border-radius: 16px;
    }

    .product-card-premium__title {
        font-size: 20px;
    }

    .product-card-premium__subtitle {
        font-size: 12px;
    }

    .product-card-premium__price {
        font-size: 24px;
    }

    .product-card-premium__content {
        padding: 20px;
    }

    .product-card-premium__quick-add {
        padding: 10px 20px;
        font-size: 13px;
    }
}