/**
 * TruthForge Nuclear - Rebuilt Product Grid & Card Styles
 * Matches the reference "Moment of Truth" screenshot.
 */

/* 1. Collection Grid Layout */
.tf-collection-grid-section {
    padding: 80px 0;
    background: #000;
}

.tf-collection-grid,
.products.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* 2. Rebuilt Product Card */
.tf-product-card-rebuilt {
    position: relative;
    background: #0c0c0c;
    border-radius: 12px;
    overflow: hidden;
    transition: var(--tf-transition-smooth);
    display: flex;
    flex-direction: column;
}

.tf-product-card-rebuilt:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

/* Image & Overlay */
.tf-product-image-wrapper {
    position: relative;
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    background: #111;
}

.tf-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tf-product-card-rebuilt:hover .tf-product-image {
    transform: scale(1.08);
}

.tf-product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--tf-brand-primary);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    padding: 6px 12px;
    border-radius: 4px;
    z-index: 10;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Specific Badge Colors */
.tf-product-badge[data-badge="NEWEST"] { background: #A855F7; }
.tf-product-badge[data-badge="LIMITED"] { background: #facc15; color: #000; }

.tf-product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    opacity: 0;
    transition: var(--tf-transition-smooth);
    z-index: 5;
}

.tf-product-card-rebuilt:hover .tf-product-overlay {
    opacity: 1;
}

.view-text {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: #fff;
    text-transform: uppercase;
}

.overlay-button {
    background: var(--tf-brand-primary);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    padding: 14px 28px;
    border-radius: 8px;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tf-product-card-rebuilt:hover .overlay-button {
    transform: translateY(0);
}

/* Product Info */
.tf-product-info {
    padding: 24px;
    text-align: left;
}

.tf-product-category {
    display: block;
    font-size: 9px;
    font-weight: 900;
    color: var(--tf-brand-primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.tf-product-title {
    font-size: 1.25rem !important;
    margin-bottom: 12px !important;
    color: #fff !important;
    font-style: italic !important;
    text-transform: uppercase !important;
    font-weight: 900 !important;
}

.tf-product-price {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.tf-product-price ins {
    text-decoration: none;
    color: #fff;
}

.tf-product-price del {
    font-size: 0.9rem;
    margin-right: 8px;
    opacity: 0.4;
}

/* Responsive Grid */
@media (max-width: 1024px) {
    .tf-collection-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 768px) {
    .tf-collection-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 20px !important; /* Matches Nav Symmetrically */
    }

    .tf-product-card-rebuilt {
        border-radius: 16px !important;
    }

    .tf-product-info {
        padding: 24px 16px !important;
    }

    /* --- NUCLEAR CLASS SYNC --- */
    .card-product-title,
    .tf-product-title {
        font-size: 14px !important;
        line-height: 1.3 !important;
        font-weight: 500 !important;
        margin-bottom: 4px !important;
    }

    /* Force buttons to be visible below product info on mobile */
    .card-interaction-overlay,
    .tf-product-overlay {
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important; /* Move out of overlay into flow */
        background: transparent !important;
        display: block !important;
        padding: 0 !important;
        margin-top: 16px !important;
        transform: none !important;
        width: 100% !important;
    }

    .interaction-buttons {
        display: flex !important;
        flex-direction: row !important; /* Side by side for dual-action parity */
        width: 100% !important;
        gap: 12px !important;
    }

    .btn-nuke-addcart,
    .btn-nuke-quickview,
    .overlay-button {
        transform: none !important;
        flex: 1 !important;
        text-align: center !important;
        padding: 0 !important;
        height: 44px !important; /* STRICT TOUCH-READY 44PX */
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
    }

    .btn-nuke-addcart {
        background: var(--tf-brand-primary) !important;
        color: #fff !important;
    }

    .btn-nuke-quickview {
        background: rgba(255, 255, 255, 0.1) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
    }
}
