/* Products Page Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: 70px;
}

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.breadcrumb a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.breadcrumb a:hover {
    opacity: 0.8;
}

.breadcrumb span {
    margin: 0 10px;
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* Product Controls */
.product-controls {
    background: #f8f9fa;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
}

.controls-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-section {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
}

.sort-section select {
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 25px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.sort-section select:hover,
.sort-section select:focus {
    border-color: #667eea;
}

/* Products Section */
.products-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

/* Product Card */
.product-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.product-card.hidden {
    display: none;
}

/* Product Badge */
.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    text-transform: uppercase;
}

.product-badge.new {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.product-badge.hot {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

/* Product Image */
.product-image {
    position: relative;
    height: 280px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 10px;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
}

.btn-quick-view {
    background: white;
    color: #667eea;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.product-card:hover .btn-quick-view {
    transform: translateY(0);
}

.btn-quick-view:hover {
    background: #f8f9fa;
}

/* Product Info */
.product-info {
    padding: 25px;
}

.product-category {
    display: inline-block;
    color: #667eea;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.product-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

.product-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.product-specs span {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-specs i {
    color: #667eea;
    font-size: 14px;
}

/* Product Bottom */
.product-bottom {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    margin-bottom: 15px;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 5px;
    margin-bottom: 8px;
}

.price-label {
    font-size: 12px;
    color: #999;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #e91e63;
}

.price-unit {
    font-size: 14px;
    color: #666;
}

.product-moq {
    font-size: 13px;
    color: #666;
}

.product-moq span {
    background: #f0f0f0;
    padding: 4px 10px;
    border-radius: 12px;
    display: inline-block;
}

/* Inquiry Button */
.btn-inquiry {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-inquiry:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-inquiry i {
    font-size: 14px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 0;
    text-align: center;
    color: white;
}

.cta-content h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.btn-lg {
    padding: 15px 40px;
    font-size: 18px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 80px 0 40px;
    }

    .page-header h1 {
        font-size: 32px;
    }

    .page-header p {
        font-size: 16px;
    }

    .controls-wrapper {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-section {
        justify-content: center;
    }

    .sort-section {
        width: 100%;
    }

    .sort-section select {
        width: 100%;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .product-image {
        height: 250px;
    }
    
    .product-image img {
        padding: 8px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .cta-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-header h1 {
        font-size: 26px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }

    .product-title {
        font-size: 18px;
    }

    .price-value {
        font-size: 20px;
    }
}

/* Animation for filtering */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.product-card.show {
    animation: fadeIn 0.3s ease;
}

