﻿@property --carbon-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.product-luxury-card {
    --carbon-angle: 0deg;
    contain: layout paint style;
    content-visibility: auto;
    contain-intrinsic-size: 400px 620px;
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(180deg, #14181f 0%, #0d1117 100%);
    border: 1px solid rgba(206, 162, 119, 0.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transform: translateZ(0) scale(1);
    transform-style: flat;
    perspective: none;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

    .product-luxury-card::before {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        padding: 1px;
        background: conic-gradient(from var(--carbon-angle), transparent 0%, rgba(245, 208, 169, 0.85) 12%, transparent 28%, transparent 72%, rgba(245, 208, 169, 0.85) 88%, transparent 100%);
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
        z-index: 0;
    }

.product-card-stretched-link {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    text-decoration: none;
    color: inherit;
    outline: none;
}

    .product-card-stretched-link:focus-visible {
        outline: 2px solid #cea277;
        outline-offset: -4px;
    }

@media (hover: hover) {
    .product-luxury-card:hover {
        transform: translateY(-6px) scale(1.015);
        border-color: rgba(206, 162, 119, 0.35);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(206, 162, 119, 0.2), 0 0 48px rgba(206, 162, 119, 0.16);
    }

        .product-luxury-card:hover::before {
            opacity: 1;
            animation: carbonAngleSpin 3.2s linear infinite;
        }

        .product-luxury-card:hover .product-card-glow-ring {
            opacity: 1;
            transform: scale(1);
        }

        .product-luxury-card:hover .product-card-gold-sweep {
            opacity: 1;
            animation: goldSweep 1.1s cubic-bezier(0.22, 1, 0.36, 1);
        }

        .product-luxury-card:hover .product-img-holder img.is-loaded {
            transform: scale(1.07);
            filter: brightness(1.06) saturate(1.08);
        }
}

.product-luxury-card:active {
    transform: scale(0.97);
    transition: transform 0.12s ease;
}

.product-luxury-card:focus-within {
    border-color: rgba(206, 162, 119, 0.35);
    box-shadow: 0 0 0 1px rgba(206, 162, 119, 0.2), 0 0 48px rgba(206, 162, 119, 0.16);
}

    .product-luxury-card:focus-within::before {
        opacity: 1;
        animation: carbonAngleSpin 3.2s linear infinite;
    }

@keyframes carbonAngleSpin {
    to {
        --carbon-angle: 360deg;
    }
}

.product-img-holder {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #0a0d11;
    z-index: 1;
}

.product-img-skeleton {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, #0d1117 30%, #1b2028 50%, #0d1117 70%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.6s ease-in-out infinite;
    z-index: 0;
}

.img-ready .product-img-skeleton {
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.product-img-holder img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    opacity: 0;
    transform: scale(1.08);
    filter: blur(6px);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1), filter 0.6s ease, opacity 0.5s ease;
    pointer-events: none;
}

    .product-img-holder img.is-loaded {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

.product-card-glow-ring {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: radial-gradient(circle at 50% 40%, rgba(245, 208, 169, 0.22), transparent 65%);
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
}

.product-card-gold-sweep {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(115deg, transparent 35%, rgba(245, 208, 169, 0.5) 50%, transparent 65%);
    transform: translateX(-140%) skewX(-12deg);
    opacity: 0;
    transition: opacity 0.35s ease;
    mix-blend-mode: overlay;
    will-change: transform;
}

.badge-discount-carbon {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.72rem;
    padding: 5px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
    overflow: hidden;
    pointer-events: none;
}

.badge-discount-carbon__pulse {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.55);
    animation: badgePulse 2.4s ease-out infinite;
    pointer-events: none;
}

@keyframes badgePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.5);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

.card-floating-actions {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 6;
}

.floating-circle-btn.wishlist-btn {
    position: relative;
    isolation: isolate;
    z-index: 5;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(15, 18, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #f6f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    padding: 0;
}

    .floating-circle-btn.wishlist-btn i {
        position: relative;
        z-index: 1;
        line-height: 1;
        font-size: 1.05rem;
        color: #f6f5f5;
    }

    .floating-circle-btn.wishlist-btn:hover {
        background: rgba(15, 18, 24, 0.92);
        border-color: rgba(206, 162, 119, 0.45);
        transform: scale(1.1);
    }

        .floating-circle-btn.wishlist-btn:hover i {
            color: #e63946;
        }

    .floating-circle-btn.wishlist-btn:focus-visible {
        outline: 2px solid #cea277;
        outline-offset: 3px;
    }

    .floating-circle-btn.wishlist-btn:active {
        transform: scale(0.92);
    }

    .floating-circle-btn.wishlist-btn.is-liked {
        background: #e63946;
        border-color: #e63946;
    }

        .floating-circle-btn.wishlist-btn.is-liked i {
            color: #fff;
        }

        .floating-circle-btn.wishlist-btn.is-liked:hover {
            background: #d62839;
            border-color: #d62839;
        }

            .floating-circle-btn.wishlist-btn.is-liked:hover i {
                color: #fff;
            }

        .floating-circle-btn.wishlist-btn.is-liked i {
            animation: likedPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

@keyframes likedPop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.35);
    }

    100% {
        transform: scale(1);
    }
}

.wishlist-heart-burst {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 2;
}

    .wishlist-heart-burst span {
        position: absolute;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: #e63946;
        opacity: 0;
        transform: translate(0, 0) scale(0);
    }

.floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span {
    animation: heartBurstParticle 0.6s ease-out forwards;
}

    .floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span:nth-child(1) {
        --bx: 18px;
        --by: -12px;
    }

    .floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span:nth-child(2) {
        --bx: -18px;
        --by: -12px;
    }

    .floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span:nth-child(3) {
        --bx: 0;
        --by: -22px;
    }

    .floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span:nth-child(4) {
        --bx: 20px;
        --by: 8px;
    }

    .floating-circle-btn.wishlist-btn.is-liked .wishlist-heart-burst span:nth-child(5) {
        --bx: -20px;
        --by: 8px;
    }

@keyframes heartBurstParticle {
    0% {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(var(--bx), var(--by)) scale(0.2);
    }
}

.product-details-holder {
    position: relative;
    padding: 16px 16px 18px;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(7, 9, 11, 0.4) 100%);
}

.product-brand-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.product-brand-tag {
    color: #cea277;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

.product-brand-divider {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(206, 162, 119, 0.4), transparent);
}

.product-title-luxury {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    color: #f6f5f5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.85em;
}

.card-price-box {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 10px;
    margin-top: 4px;
}

.card-old-price {
    color: rgba(246, 245, 245, 0.42);
    text-decoration: line-through;
    text-decoration-color: rgba(230, 57, 70, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    order: 1;
}

.card-current-price {
    color: #f5d0a9;
    font-weight: 800;
    font-size: 1.05rem;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    order: 2;
}

.card-current-price__value {
    font-size: inherit;
}

.card-current-price__unit {
    font-size: 0.7rem;
    font-weight: 600;
    color: rgba(245, 208, 169, 0.7);
}

.card-save-badge {
    order: 3;
    flex-basis: 100%;
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    background: rgba(46, 204, 113, 0.12);
    border: 1px solid rgba(46, 204, 113, 0.25);
    color: #2ecc71;
    font-size: 0.7rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 575px) {
    .product-details-holder {
        padding: 12px 12px 14px;
    }

    .product-title-luxury {
        font-size: 0.85rem;
        min-height: 2.7em;
    }

    .card-current-price {
        font-size: 0.95rem;
    }

    .badge-discount-carbon {
        font-size: 0.65rem;
        padding: 4px 10px;
    }

    .floating-circle-btn.wishlist-btn {
        width: 36px;
        height: 36px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-luxury-card,
    .product-luxury-card *,
    .product-luxury-card::before,
    .product-card-gold-sweep,
    .product-card-glow-ring,
    .badge-discount-carbon,
    .badge-discount-carbon__pulse,
    .floating-circle-btn.wishlist-btn,
    .floating-circle-btn.wishlist-btn i,
    .product-img-holder img,
    .product-img-skeleton {
        transition: none !important;
        animation: none !important;
    }

    .product-img-holder img {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}
