/* =================================================================
   Products Page - Luxury Black & Gold Theme
   ================================================================= */

/* Override product grid for products page */
.featured-products {
    padding: 50px 0;
}

.featured-products .section-title {
    margin-bottom: 40px;
}

/* Enhanced Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 28px;
}

/* Product Card Enhancements */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.product-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, transparent, rgba(212, 168, 83, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow:
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(212, 168, 83, 0.15);
}

.product-card:hover::after {
    opacity: 1;
}

/* Product Image */
.product-image-link {
    display: block;
    aspect-ratio: 1 / 1;
    background: var(--bg-secondary);
    overflow: hidden;
    position: relative;
}

.product-image-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.product-card:hover .product-image-link::before {
    opacity: 1;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover img {
    transform: scale(1.1);
}

/* Product Info */
.product-info {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
    background: var(--bg-card);
}

.product-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    flex-grow: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}

.product-name a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.product-name a:hover {
    color: var(--gold-primary);
}

.product-serial {
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: var(--gold-primary);
    margin-bottom: 16px;
    padding: 6px 12px;
    background: rgba(212, 168, 83, 0.1);
    border-radius: 6px;
    display: inline-block;
    border: 1px solid rgba(212, 168, 83, 0.2);
}

.product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

/* View Button */
.btn-view {
    background: transparent;
    color: var(--gold-primary);
    border: 1px solid var(--gold-primary);
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    margin-top: auto;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-view::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gold-gradient);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn-view:hover {
    color: var(--bg-primary);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
}

.btn-view:hover::before {
    left: 0;
}

/* No Products Message */
.no-products {
    text-align: center;
    padding: 80px 30px;
    color: var(--text-muted);
    font-size: 1.1rem;
    grid-column: 1 / -1;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.no-products::before {
    content: '\f468';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    display: block;
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

/* Filter/Search Enhancement (if applicable) */
.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.products-filter select {
    padding: 12px 40px 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23a0a0a0'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    transition: all 0.3s ease;
}

.products-filter select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

/* Responsive */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .product-info {
        padding: 16px;
    }

    .product-name {
        font-size: 0.95rem;
        min-height: 40px;
    }

    .btn-view {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}