/* ============================================
   PRODUCT CARD STYLES - Matching product-card.ejs
   ============================================ */

/* Force product cards to be visible (override reveal-on-scroll) */
.product-card.reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
}

.product-card {
    cursor: pointer;
}

/* Full-card clickable overlay */
.card-link-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    text-decoration: none;
}

/* -----------------------------------
   CARD INNER WRAPPER
   ----------------------------------- */
.card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 2;
}

/* -----------------------------------
   BADGE SYSTEM
   ----------------------------------- */
.card-labels {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(6px);
}

.badge-premium.instant-p {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.9), rgba(16, 185, 129, 0.9));
    color: #fff;
}

.badge-premium.sale-p {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.9), rgba(251, 113, 133, 0.9));
    color: #fff;
}

/* -----------------------------------
   WISHLIST BUTTON
   ----------------------------------- */
.wish-btn-new {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}
.wish-btn-new:hover {
    background: #ef4444;
    border-color: #ef4444;
    transform: scale(1.1);
}

/* -----------------------------------
   IMAGE WRAPPER
   ----------------------------------- */
.card-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #060814;
}

.card-img-wrapper .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover .card-img-wrapper .main-img {
    transform: scale(1.08);
}

.card-img-wrapper::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9), transparent);
    z-index: 2;
    pointer-events: none;
}

.img-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.04) 50%, transparent 60%);
    background-size: 200% 200%;
    animation: shimmerMove 3s ease-in-out infinite;
    z-index: 3;
    pointer-events: none;
}

@keyframes shimmerMove {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* -----------------------------------
   CARD INFO AREA
   ----------------------------------- */
.card-info {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    z-index: 5;
}

.info-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.tag-platform {
    padding: 3px 10px;
    background: rgba(43, 80, 188, 0.12);
    border: 1px solid rgba(43, 80, 188, 0.25);
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #93c5fd;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.star-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
}
.star-rating i { color: #fbbf24; font-size: 0.7rem; }
.star-rating span { color: #f8fafc; font-weight: 600; }

/* -----------------------------------
   PRODUCT TITLE
   ----------------------------------- */
.product-title-new {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;
}

.product-title-new a {
    color: #f8fafc;
    text-decoration: none;
    transition: color 0.2s;
}

.product-title-new a:hover {
    color: #2b50bc;
}

/* -----------------------------------
   CARD FOOTER (PRICE + ACTION)
   ----------------------------------- */
.card-footer-premium {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.price-stack {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.curr-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #f8fafc;
    letter-spacing: -0.5px;
}

.curr-price small {
    font-size: 0.65rem;
    font-weight: 600;
    color: #2b50bc;
    margin-left: 2px;
}

.old-price {
    font-size: 0.75rem;
    color: #64748b;
    text-decoration: line-through;
}

.action-btn-new {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(43, 80, 188, 0.1);
    border: 1px solid rgba(43, 80, 188, 0.25);
    border-radius: 12px;
    color: #2b50bc;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.action-btn-new:hover {
    background: #2b50bc;
    color: #fff;
    border-color: #2b50bc;
    transform: scale(1.1);
}

/* -----------------------------------
   RESPONSIVE
   ----------------------------------- */
@media (max-width: 768px) {
    .card-info {
        padding: 10px;
    }
    .product-title-new {
        font-size: 0.85rem;
        min-height: 2.3em;
    }
    .curr-price {
        font-size: 1.1rem;
    }
    .action-btn-new {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }
    .card-labels {
        top: 8px;
        left: 8px;
    }
    .badge-premium {
        font-size: 0.55rem;
        padding: 3px 7px;
    }
}

@media (max-width: 400px) {
    .info-top {
        display: none;
    }
    .card-footer-premium {
        border-top: none;
        padding-top: 6px;
    }
}
