.qlqcg-wrap {
    --qlqcg-gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.qlqcg-wrap * {
    box-sizing: border-box;
}

.qlqcg-banner {
    width: 100%;
    margin: 0 0 16px;
    overflow: hidden;
    border-radius: 16px;
}

.qlqcg-banner-image {
    display: block;
    width: 100%;
    height: auto;
}

.qlqcg-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--qlqcg-gap);
    width: 100%;
}

.qlqcg-slot {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    perspective: 1100px;
    min-width: 0;
}

.qlqcg-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 680ms cubic-bezier(.45,0,.55,1);
    transform-origin: center center;
    will-change: transform;
}

.qlqcg-card-inner.is-flipped {
    transform: rotateY(180deg);
}

.qlqcg-face {
    position: absolute;
    inset: 0;
    display: flex;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0,0,0,.09);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.qlqcg-face--back {
    transform: rotateY(180deg);
}

.qlqcg-product-link {
    display: flex;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.qlqcg-image-wrap {
    width: 100%;
    height: 100%;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qlqcg-product-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

.qlqcg-message {
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #fafafa;
}

@media (max-width: 767px) {
    .qlqcg-wrap {
        --qlqcg-gap: 10px;
    }

    /* En celular el giro dura más y tiene más profundidad para que se note claramente. */
    .qlqcg-slot {
        perspective: 720px;
    }

    .qlqcg-card-inner {
        transition-duration: 1250ms;
        transition-timing-function: cubic-bezier(.45,0,.55,1);
    }

    .qlqcg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .qlqcg-face {
        border-radius: 13px;
        box-shadow: 0 3px 10px rgba(0,0,0,.08);
    }

    .qlqcg-image-wrap {
        padding: 6px;
    }
}

