/* CSS riêng cho các trang danh mục: Laptop, PC Gaming, Phụ kiện */

.category-main {
    padding: 40px 8%;
    background-color: #f5f7fb;
    min-height: 100vh;
}

.category-hero {
    background: linear-gradient(135deg, #111827, #2563eb);
    color: #ffffff;
    padding: 48px 40px;
    border-radius: 18px;
    margin-bottom: 32px;
}

.category-hero h1 {
    font-size: 38px;
    margin-bottom: 12px;
}

.category-hero p {
    font-size: 16px;
    max-width: 650px;
    line-height: 1.6;
    color: #e5e7eb;
}

.category-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.category-search {
    flex: 1;
    min-width: 240px;
}

.category-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
}

.category-sort select {
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    background-color: #ffffff;
}

.category-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
}

.category-filter {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 22px;
    height: fit-content;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.category-filter h3 {
    margin-bottom: 18px;
    font-size: 20px;
    color: #111827;
}

.filter-group {
    margin-bottom: 22px;
}

.filter-group h4 {
    margin-bottom: 10px;
    font-size: 15px;
    color: #374151;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    color: #4b5563;
    font-size: 14px;
    cursor: pointer;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.product-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.14);
}

.product-image {
    width: 100%;
    height: 210px;
    background-color: #eef2ff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.product-info {
    padding: 18px;
}

.product-tag {
    display: inline-block;
    padding: 5px 10px;
    margin-bottom: 10px;
    border-radius: 999px;
    background-color: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 600;
}

.product-info h3 {
    font-size: 18px;
    color: #111827;
    margin-bottom: 8px;
}

.product-desc {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.product-price {
    color: #dc2626;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
}

.product-actions {
    display: flex;
    gap: 10px;
}

.product-actions a,
.product-actions button {
    flex: 1;
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
}

.btn-detail {
    background-color: #e5e7eb;
    color: #111827;
}

.btn-cart {
    background-color: #2563eb;
    color: #ffffff;
}

.btn-cart:hover {
    background-color: #1d4ed8;
}

.category-note {
    margin-top: 34px;
    padding: 18px;
    background-color: #ffffff;
    border-left: 5px solid #2563eb;
    border-radius: 12px;
    color: #4b5563;
}

/* Responsive cho tablet */
@media (max-width: 992px) {
    .category-layout {
        grid-template-columns: 1fr;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Responsive cho điện thoại */
@media (max-width: 576px) {
    .category-main {
        padding: 24px 5%;
    }

    .category-hero {
        padding: 34px 24px;
    }

    .category-hero h1 {
        font-size: 28px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .product-actions {
        flex-direction: column;
    }
}