/* ==========================================================================
   Product Card - Grid Cards + Hover/Glow Effects
   ========================================================================== */

.tc-product-card {
    position: relative;
    background: var(--tc-bg-card);
    border: 1px solid var(--tc-border-color);
    border-radius: var(--tc-radius-lg);
    overflow: hidden;
    transition: all var(--tc-transition-base);
    cursor: pointer;
}

.tc-product-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--tc-radius-lg);
    opacity: 0;
    transition: opacity var(--tc-transition-base);
    pointer-events: none;
    z-index: 1;
    /* Orange radial glow - position set by JS */
    background: radial-gradient(
        300px circle at var(--glow-x, 50%) var(--glow-y, 50%),
        rgba(255, 107, 0, 0.15),
        transparent 60%
    );
}

.tc-product-card:hover::before {
    opacity: 1;
}

.tc-product-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 107, 0, 0.1);
}

/* Badges container */
.tc-product-card__badges {
    position: absolute;
    top: var(--tc-space-sm);
    left: var(--tc-space-sm);
    display: flex;
    flex-direction: column;
    gap: var(--tc-space-xs);
    z-index: 3;
}

/* Image wrapper */
.tc-product-card__image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 5 / 7;
    background: var(--tc-bg-secondary);
}

.tc-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--tc-transition-slow);
}

.tc-product-card:hover .tc-product-card__image img {
    transform: scale(1.05);
}

/* Holographic shine sweep */
.tc-product-card__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        115deg,
        transparent 20%,
        rgba(255, 255, 255, 0.05) 40%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.05) 60%,
        transparent 80%
    );
    transform: translateX(-100%);
    z-index: 2;
    pointer-events: none;
}

.tc-product-card:hover .tc-product-card__shine {
    animation: tc-shine-sweep 0.8s ease forwards;
}

@keyframes tc-shine-sweep {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

/* Quick view overlay */
.tc-product-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity var(--tc-transition-base);
    z-index: 3;
}

.tc-product-card:hover .tc-product-card__overlay {
    opacity: 1;
}

.tc-product-card__view-btn {
    padding: 0.6rem 1.2rem;
    background: var(--tc-accent);
    color: #fff;
    font-family: var(--tc-font-heading);
    font-weight: 600;
    font-size: var(--tc-text-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--tc-radius-md);
    transform: translateY(10px);
    transition: all var(--tc-transition-base);
}

.tc-product-card:hover .tc-product-card__view-btn {
    transform: translateY(0);
}

.tc-product-card__view-btn:hover {
    background: var(--tc-accent-hover);
}

/* Card info */
.tc-product-card__info {
    padding: var(--tc-space-md);
    position: relative;
    z-index: 2;
}

.tc-product-card__category {
    display: block;
    font-size: var(--tc-text-xs);
    color: var(--tc-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--tc-space-xs);
}

.tc-product-card__title {
    font-family: var(--tc-font-heading);
    font-size: var(--tc-text-sm);
    font-weight: 600;
    color: var(--tc-text-primary);
    margin-bottom: var(--tc-space-sm);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-product-card__title a {
    color: inherit;
}

.tc-product-card__title a:hover {
    color: var(--tc-accent);
}

.tc-product-card__price {
    font-family: var(--tc-font-heading);
    font-size: var(--tc-text-lg);
    font-weight: 700;
    color: var(--tc-accent);
}

.tc-product-card__price del {
    color: var(--tc-text-muted);
    font-size: var(--tc-text-sm);
    font-weight: 400;
    margin-right: var(--tc-space-xs);
}

.tc-product-card__price ins {
    text-decoration: none;
}

/* Add to cart button in grid */
.tc-product-card__add-to-cart {
    margin-top: var(--tc-space-sm);
}

.tc-product-card__add-to-cart .button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--tc-space-sm);
    padding: 0.6rem !important;
    font-size: var(--tc-text-xs) !important;
    background: var(--tc-bg-elevated) !important;
    border: 1px solid var(--tc-border-color) !important;
    color: var(--tc-text-secondary) !important;
}

.tc-product-card__add-to-cart .button:hover {
    background: var(--tc-accent) !important;
    border-color: var(--tc-accent) !important;
    color: #fff !important;
}

.tc-product-card__add-to-cart .added_to_cart {
    display: none;
}

/* Out of stock */
.tc-product-card--out-of-stock .tc-product-card__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
    .tc-product-card__info {
        padding: var(--tc-space-sm);
    }

    .tc-product-card__title {
        font-size: var(--tc-text-xs);
    }

    .tc-product-card__price {
        font-size: var(--tc-text-base);
    }

    .tc-product-card__overlay {
        display: none;
    }
}
