/* Products Page Styles */

/* Hero Section */
.products-hero {
    background: var(--gradient-header);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}

.products-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-highlight);
    text-transform: uppercase;
}

.products-hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Products Layout */
.products-section {
    padding: 80px 0;
    background-color: var(--bg-main);
}

.products-grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    perspective: 2000px;
}

@media (max-width: 1400px) {
    .products-grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1100px) {
    .products-grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .products-grid-container {
        grid-template-columns: 1fr;
    }
}

/* Product Card */
.product-item-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transform-style: preserve-3d;
}

.product-item-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
}

.product-item-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
    transform-style: preserve-3d;
}

.product-item-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.product-item-card:hover .product-item-img {
    transform: scale(1.1) translateZ(40px);
}

.product-item-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
}

.product-item-title {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: var(--bg-header);
    margin: 0;
}

.product-category-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.7rem;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #c8e6c9;
}

.product-item-desc {
    color: #555;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
}

.product-item-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
    border-top: 1px solid #f1f1f1;
    padding: 20px 25px;
    background: #fcfcfc;
    margin-top: auto;
}

.product-price-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-price-label {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-price-value {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--accent-color);
}

.btn-purchase {
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.2);
}

.btn-purchase:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(33, 150, 243, 0.3);
}

/* Empty State */
.products-empty-state {
    text-align: center;
    grid-column: 1 / -1;
    padding: 100px 0;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
}

.products-empty-icon {
    font-size: 5rem;
    color: #ddd;
    margin-bottom: 20px;
}

.products-empty-state h2 {
    font-size: 2rem;
    color: var(--text-main);
    margin-bottom: 10px;
}

.products-empty-state p {
    color: var(--text-muted);
    margin-bottom: 25px;
}

/* Component Responsiveness */
@media (max-width: 576px) {
    .product-item-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-item-footer {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
        text-align: center;
    }

    .btn-purchase {
        width: 100%;
        text-align: center;
    }
}