
.content-area {
    padding: 30px;
    background-color: #f8f9fa;
    min-height: 100vh;
}


.products-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e0e6ef;
}

.products-header h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.products-header p {
    color: #7f8c8d;
    font-size: 1rem;
}


.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}


.product-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #e0e6ef;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-bottom: 1px solid #e0e6ef;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-info {
    padding: 1.2rem;
}

.product-title {
    font-size: 1.1rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    height: 2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-code {
    font-size: 0.9rem;
    color: #3498db;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.product-spec {
    font-size: 0.85rem;
    color: #7f8c8d;
    margin-bottom: 0.2rem;
}


.wall-thickness {
    display: none;
}


.cart-controls {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f0f4f8;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.price-tag {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e74c3c;
    text-align: center;
    margin-bottom: 0.5rem;
    display: none;
}

.quantity-control {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e6ef;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
    max-width: 150px;
    margin: 0 auto;
}

.quantity-btn {
    background-color: #f8f9fa;
    border: none;
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 600;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    user-select: none;
}

.quantity-btn:hover {
    background-color: #e9ecef;
    color: #2980b9;
}

.quantity-btn:active {
    background-color: #dee2e6;
    transform: scale(0.95);
}

.quantity-btn:disabled {
    background-color: #f8f9fa;
    color: #bdc3c7;
    cursor: not-allowed;
}

.quantity-btn:disabled:hover {
    background-color: #f8f9fa;
    color: #bdc3c7;
}

.quantity-input {
    width: 60px;
    height: 40px;
    border: none;
    border-left: 1px solid #e0e6ef;
    border-right: 1px solid #e0e6ef;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: #2c3e50;
    background-color: white;
    outline: none;
    -moz-appearance: textfield;
    transition: all 0.2s ease;
}

.quantity-input:focus {
    background-color: #f8f9fa;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.add-to-cart-btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(41, 128, 185, 0.2);
}

.add-to-cart-btn:active {
    transform: translateY(0);
    box-shadow: none;
}

.add-to-cart-btn::before {
    content: "🛒";
    font-size: 1rem;
}


.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 1.5rem 0;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-link {
    display: inline-block;
    padding: 0.6rem 0.9rem;
    background-color: #f8f9fa;
    color: #2c3e50;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: 1px solid #e0e6ef;
    font-size: 0.9rem;
    min-width: 40px;
    text-align: center;
}

.page-link:hover {
    background-color: #e9ecef;
    color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.page-link.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.page-ellipsis {
    padding: 0.6rem 0.3rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.page-link.next {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 500;
}

.page-link.next:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.3);
}

.page-link.prev {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
    background-color: #3498db;
    color: white;
    border-color: #3498db;
    font-weight: 500;
}

.page-link.prev:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 2px 4px rgba(41, 128, 185, 0.3);
}


@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .content-area {
        padding: 20px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .quantity-control {
        max-width: 130px;
    }
    
    .quantity-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .quantity-input {
        width: 50px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .products-header h2 {
        font-size: 1.5rem;
    }
    
    .add-to-cart-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .pagination {
        flex-wrap: wrap;
        padding: 1rem;
    }
    
    .page-link {
        padding: 0.5rem 0.8rem;
        min-width: 35px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cart-controls {
        gap: 0.6rem;
    }
    
    .price-tag {
        font-size: 1rem;
    }
    
    .quantity-control {
        max-width: 120px;
    }
    
    .pagination {
        gap: 0.3rem;
    }
    
    .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.85rem;
        min-width: 30px;
    }
}