* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Mulish', sans-serif;
    background-color: #fcf7f7;
    color: #333;
    line-height: 1.6;
}
.product-page {
    max-width: 1300px;
    margin: 0px auto;
    background: #FFFBF5;
    border-radius: 16px;
    padding: 40px 20px;
    box-shadow: 0 10px 30px rgba(198,40,40,0.1);
}
.title {
    text-align: center;
    font-size: 32px;
    color: #4D403D;
    font-weight: 900;
    margin-bottom: 20px;
}
.product-search {
    text-align: center;
    margin-bottom: 40px;
}

.product-search form {
    display: inline-flex;
    border: 2px solid #b71c1c;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(183, 28, 28, 0.08);
}

.product-search input[type="text"] {
    padding: 12px 18px;
    font-size: 16px;
    border: none;
    outline: none;
    width: 300px;
}

.product-search button {
    padding: 12px 24px;
    border: none;
    background-color: #b71c1c;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.product-search button:hover {
    background-color: #4D403D;
}

.product-search select {
    padding: 0 12px;
    border: none;
    background: #FFFBF5;
    font-weight: 600;
    color: #4D403D;
    cursor: pointer;
}

.product-content {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    flex-wrap: wrap;
}
.product-sidebar {
    flex: 0 0 250px;
    background: #fff;
    border: 2px solid #b71c1c;
    border-radius: 12px;
    padding: 20px;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 140px);
    overflow-y: auto;
}
.product-sidebar h3 {
    font-size: 16px;
    color: #8b0000;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.product-sidebar ul {
    list-style: none;
    padding-left: 0;
}
.product-sidebar li {
    margin-bottom: 10px;
}
.product-sidebar a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.product-sidebar li.active a {
    color: #b71c1c;
    font-weight: 700;
    position: relative;
}

.product-sidebar li.active a::before {
    content: '•';
    position: absolute;
    left: -14px;
    color: #b71c1c;
    font-size: 18px;
    line-height: 1;
}
.product-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}
.product-card {
    background: #fff;
    border: 1.5px solid #b71c1c;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.product-card img {
    width: 100%;
    height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
}
.product-card h3 {
    font-size: 16px;
    color: #b71c1c;
    margin-bottom: 8px;
}
.product-card .description {
    font-size: 14px;
    color: #555;
    height: 36px;
    overflow: hidden;
}
.product-card .price {
    margin-top: 10px;
    color: #d32f2f;
    font-weight: bold;
}
.product-card .btn {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 16px;
    border: 2px solid #b71c1c;
    border-radius: 8px;
    text-decoration: none;
    color: #b71c1c;
    font-weight: 600;
    transition: 0.3s;
}
.product-card .btn:hover {
    background-color: #b71c1c;
    color: #fff;
}
.paginationProList {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    gap: 10px;
    padding: 20px 0 0;
    flex-wrap: wrap;
}
.paginationProList .page-item {
    display: inline-block;
}
.paginationProList .page-link {
    padding: 8px 12px;
    border: 2px solid #b71c1c;
    border-radius: 6px;
    background: #fff;
    color: #b71c1c;
    font-weight: 600;
    text-decoration: none;
    transition: 0.3s;
}
.paginationProList .page-link:hover,
.paginationProList .page-item.active .page-link {
    background: #b71c1c;
    color: #fff;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.25);
}

@media (max-width: 992px) {
    .product-content {
        flex-direction: column;
    }

    .product-sidebar {
        width: 100%;
        order: 2;
    }

    .product-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding: 0;
    }

    .product-sidebar li {
        list-style: none;
    }

    .product-sidebar a {
        display: block;
        padding: 6px 12px;
        background-color: #f8f8f8;
        border-radius: 6px;
        text-decoration: none;
        color: #222;
        font-weight: 500;
        transition: 0.2s;
    }

    .product-sidebar a:hover,
    .product-sidebar .active a {
        background-color: #222;
        color: #fff;
    }
}

@media (max-width: 768px) {
    .product-search input[type="text"] {
        width: 100%;
        font-size: 14px;
    }

    .product-search {
        flex-direction: column;
        gap: 10px;
    }

    .product-search button,
    .product-search select {
        width: 100%;
        font-size: 14px;
    }

    .title {
        font-size: 1.4rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    }

    .product-card {
        padding: 10px;
    }

    .product-card h3 {
        font-size: 0.9rem;
    }
}
