/* Product Card Component Styles */

/* Grid Layout */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

/* Product Card Base Styles */
.product-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* Image Container */
.product-image-container {
    width: 100%;
    height: 500px;
    position: relative;
    overflow: hidden;
}

/* This rule is overridden by the mobile section below */

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-category {
    font-size: 12px;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--black);
    line-height: 1.3;
}

.product-formats {
    font-size: 14px;
    color: var(--gray-600);
    margin-bottom: 12px;
}

/* Product Footer */
.product-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.product-price {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
}

/* Button Styles */
.contact-btn, .quote-btn, .select-size {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.contact-btn:hover, .quote-btn:hover, .select-size:hover {
    background: var(--gray-900);
    transform: scale(1.05);
}

.quote-btn {
    background: var(--accent);
}

.quote-btn:hover {
    background: #0056cc;
}

/* Responsive Design */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }

    .product-card {
        max-width: 100%;
    }

    .product-info {
        padding: 16px;
    }
}

/* Mobile: Full viewport cards */
@media (max-width: 481px) {
    .products-container {
        padding: 0;
        max-width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 8px;
    }

    .product-card {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .product-image-container {
        height: 60vh;
        min-height: 300px;
        max-height: 70vh;
    }

    .product-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }

    .product-info {
        padding: 16px;
    }
}