/* Products Page Styles */

.category-filter {
    padding: 0.75rem 1.5rem;
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 2rem;
    color: var(--red-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-filter:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: var(--red-primary);
    transform: translateY(-2px);
}

.category-filter.active {
    background: linear-gradient(135deg, var(--red-primary), var(--red-light));
    color: white;
    border-color: var(--red-primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid rgba(212, 175, 55, 0.2);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--gold-primary), var(--red-primary));
    opacity: 0;
    transition: opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.product-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(220, 38, 38, 0.3), 0 0 0 2px var(--gold-primary);
    border-color: var(--gold-primary);
}

/* Dark Theme for Product Cards */
[data-theme="dark"] .product-card {
    background: #1f2937;
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .product-card:hover {
    box-shadow: 0 12px 40px rgba(239, 68, 68, 0.4), 0 0 0 2px #fbbf24;
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.08));
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Sold Out Banner */
.sold-out-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    background: rgba(220, 38, 38, 0.95);
    color: white;
    padding: 0.75rem 8rem;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    z-index: 10;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border-top: 3px solid rgba(255, 255, 255, 0.3);
    border-bottom: 3px solid rgba(255, 255, 255, 0.3);
    width: 140%;
    text-align: center;
}

.product-card.sold-out {
    opacity: 0.75;
}

.product-card.sold-out .product-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.product-card.sold-out .product-image img {
    filter: grayscale(50%);
}

.product-card.sold-out:hover .product-image img {
    transform: scale(1);
}

.product-card.sold-out .weight-selector,
.product-card.sold-out .custom-weight-input,
.product-card.sold-out .add-to-cart-btn {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.product-card.sold-out .add-to-cart-btn:hover {
    transform: none !important;
    box-shadow: none !important;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 1.5rem;
}

.product-name {
    color: var(--red-primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.product-description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.product-price .price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--red-primary);
}

.product-price .unit {
    font-size: 1rem;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.qty-btn {
    width: 35px;
    height: 35px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.3);
    border-radius: 0.5rem;
    color: var(--red-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--red-primary);
    color: white;
    transform: scale(1.1);
}

.qty-input {
    width: 70px;
    text-align: center;
    padding: 0.5rem;
    border: 2px solid rgba(220, 38, 38, 0.3);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

.qty-input:focus {
    outline: none;
    border-color: var(--red-primary);
}

.add-to-cart-btn {
    width: 100%;
    justify-content: center;
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .sold-out-banner {
        font-size: 1.2rem;
        padding: 0.5rem 4rem;
        letter-spacing: 2px;
    }
}

