main {
    padding-top: 50px;
}

main .container {
    display: flex;
    justify-content: center;
}

main .title-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

main .title {
    margin: 0;
}

main .nav-product-list {
    display: flex;
    flex-direction: column;
    background-color: #FAF3E0;
    padding: 20px;
    border-radius: 10px;
    width: 100%;
}

main .product-image {
    width: 200px;
    height: 200px;
}

main a {
    text-decoration: none;
}

main .product-list {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
    gap: 15px;
}

main .product {
    border: 1px solid #cccccc;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
    width: 220px;
    text-align: center;
    box-sizing: border-box;
}

main .sale-percent {
    margin: 0;
    color: white;
    font-weight: bold;
}

main .sale-tag {
    background-color: red;
    width: 50px;
    border-top-right-radius: 10px;
    position: absolute;
    margin-top: -11px;
    margin-left: 159px;
}

main .product-name {
    color: black;
}

main .product-name h3 {
    margin-bottom: 0;
    font-size: 16px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

main .product-price {
    display: flex;
    justify-content: center;
    gap: 5px
}

main .new-price {
    color: red;
}

main .old-price {
    font-weight: normal;
    text-decoration: line-through;
}

main .buy {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: hsl(85, 44%, 40%);
    color: white;
    width: 100%;
    height: 30px;
    font-weight: bold;
    opacity: 75%;
    border-radius: 5px;
}

main .buy:hover {
    opacity: 1;
}

main .buy.disabled,
main .buy:disabled {
    background-color: #ccc;
    color: #666;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Không cho hover khi disabled */
main .buy.disabled:hover,
main .buy:disabled:hover {
    opacity: 0.6;
}

main nav {
    display: flex;
    justify-content: center;
    gap: 10px;
}

main nav a {
    padding: 8px 14px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    font-size: 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: white;
}

main nav a:hover {
    background-color: hsl(85, 44%, 40%);
    color: #fff;
    cursor: pointer;
}

main nav a.active {
    background-color: hsl(85, 44%, 40%);
    color: white;
    cursor: default;
}

main nav a.disabled {
    pointer-events: none;
    opacity: 0.5;
}