/* ============================================
   NEXIROX — Product Cards Improved Styles
   ============================================ */

/* Product Card Container */
.nx-featured__hero,
.nx-featured__grid-item {
    background: linear-gradient(135deg, rgba(20, 20, 25, 0.8) 0%, rgba(30, 30, 35, 0.8) 100%);
    border: 1px solid rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nx-featured__hero:hover,
.nx-featured__grid-item:hover {
    border-color: rgba(255, 193, 7, 0.3);
    box-shadow: 0 8px 32px rgba(255, 193, 7, 0.1);
    transform: translateY(-4px);
}

/* Product Image */
.nx-featured__hero-img-wrap,
.nx-featured__grid-img-wrap {
    position: relative;
    overflow: hidden;
    display: block;
    aspect-ratio: 1;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.05) 0%, rgba(255, 193, 7, 0.02) 100%);
}

.nx-featured__hero-img,
.nx-featured__grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-featured__hero:hover .nx-featured__hero-img,
.nx-featured__grid-item:hover .nx-featured__grid-img {
    transform: scale(1.08);
}

/* Discount Badge */
.nx-prod-disc {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    letter-spacing: 0.5px;
}

/* Product Badge */
.nx-prod-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 4;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nx-prod-badge--gold {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.3);
}

.nx-prod-badge--blue {
    background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.nx-prod-badge--green {
    background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

/* Product Body */
.nx-featured__hero-body,
.nx-featured__grid-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Product Brand */
.nx-prod-brand {
    font-size: 0.75rem;
    color: #ffc107;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Product Name */
.nx-featured__hero-name,
.nx-featured__grid-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.nx-featured__hero-name a,
.nx-featured__grid-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nx-featured__hero-name a:hover,
.nx-featured__grid-name a:hover {
    color: #ffc107;
}

/* Product Compatibility */
.nx-prod-compat {
    font-size: 0.8rem;
    color: #b0b0b0;
    line-height: 1.4;
}

/* Product Prices */
.nx-prod-prices {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.nx-prod-old {
    font-size: 0.85rem;
    color: #888;
    text-decoration: line-through;
}

.nx-prod-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffc107;
}

/* Product Footer */
.nx-featured__hero-foot,
.nx-featured__grid-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Add to Cart Button */
.nx-add-to-cart-btn,
.nx-featured__add-btn {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #000;
    border: none;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.nx-add-to-cart-btn:hover,
.nx-featured__add-btn:hover {
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 152, 0, 0.3);
}

/* Wishlist Button */
.nx-wishlist-btn,
.nx-featured__wishlist-btn {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.nx-wishlist-btn:hover,
.nx-featured__wishlist-btn:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.6);
    transform: scale(1.1);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
    .nx-featured__hero-body,
    .nx-featured__grid-body {
        padding: 1rem;
        gap: 0.5rem;
    }

    .nx-featured__hero-name,
    .nx-featured__grid-name {
        font-size: 1rem;
    }

    .nx-prod-price {
        font-size: 1rem;
    }

    .nx-featured__hero-foot,
    .nx-featured__grid-foot {
        gap: 0.75rem;
    }

    .nx-add-to-cart-btn,
    .nx-featured__add-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .nx-featured__hero-body,
    .nx-featured__grid-body {
        padding: 0.75rem;
    }

    .nx-featured__hero-name,
    .nx-featured__grid-name {
        font-size: 0.9rem;
    }

    .nx-prod-price {
        font-size: 0.95rem;
    }

    .nx-featured__hero-foot,
    .nx-featured__grid-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .nx-add-to-cart-btn,
    .nx-featured__add-btn {
        width: 100%;
    }
}
