/* reset css*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
/* thiet lap font chung */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: bisque;
    display: grid;
    grid-template-columns: 80% 20%;
    /* chia trang lam 2 cot*/
    max-width: 1200px;
    /*do rong toi da*/
    margin: 0 auto;
    /*canh giua*/
}
/* tieu de*/
header {
    background-color: cornflowerblue;
    color: dimgrey;
    padding: 20px;
    text-align: center;
    grid-column: 1 /span 2;
    /* trai deu 2 cot*/
}
/*menu dieu huong*/
nav {
    background-color: floralwhite;
    color: gainsboro;
    text-align: center;
    padding: 10px;
    grid-column: 1 /span 2;
}
nav ul{
    list-style: none;
}
nav ul li{
    display: inline;
    margin-right: 20px;
}
/*danh sach san pham*/
.product-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /*hien thi 3 san pham tren moi hang*/
    gap: 20px;
    /*khoang cach san pham*/
    padding: 20px;
    grid-column: 1;
    /* chi nam o cot dau tien*/
}
.product-card{
    background-color: brown ;
    border:1px solid lightpink;
    border-radius: 5px;
    padding: 10px;
    width: 100%;
    text-align: center;
}
.product-card img{
    max-width: 100%;
    height: auto;
}
/*phan sidebar*/
.sidebar{
    background-color: mediumslateblue;
    color: mintcream;
    padding: 10px;
    grid-column: 2;
}
.social-icons{
    margin-top: 20px;
}
.social-icons a{
    color: mintcream;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
}
/*chinh lai bo cuc cho dt*/
@media(max-width: 576px) {
    .product-list{
        grid-template-columns: 1fr;
        /*hien thi 1 san pham moi hang*/
    }
    .product-card{
        width: 100%;
        margin-bottom: 20px;
    }
    .sidebar {
        grid-column: 1/span 2;
    }
    /*chinh lai bo cuc footer*/
    .footer{
        grid-template-columns: 1fr;
        /*xep chong len nhau*/
    }
}
.footer {
    background-color: mediumslateblue;
    color: mintcream;
    text-align: center;
    padding: 20px;
    grid-column: 1/ span 2;
    display: grid;
}
/*cot trong footer*/
.footer-item{
    padding: 10px;
}
/*chinh layout cho mt*/
@media(min-width: 768px) {
    .footer{
        grid-template-columns: repeat(3, 1fr);
    }
}
.button {
    background-color: black;
    border: none;
    color: white;
    padding: 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 16px;
    margin: 4px 2px;
    cursor: pointer;
}
.button:hover {
    background-color: white;
    color: black;
    border: 4px solid black;
}
.button1{
    border-radius: 2px;
}
.button3{
    border-radius: 8px;
}
.button4{
    border-radius: 12px;
}
.button5{
    border-radius: 50%;
}
/* Khung chứa chi tiết sản phẩm */
.product-detail-container {
    margin-top: 50px;
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
}

/* Hiệu ứng cho hình ảnh */
.product-image-wrapper {
    padding: 20px;
    transition: transform 0.3s ease;
}

.main-img {
    max-height: 450px;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
}

.product-image-wrapper:hover {
    transform: scale(1.05);
}

/* Phần thông tin */
#product-name {
    color: #2c3e50;
    text-transform: capitalize;
}

#product-price {
    font-size: 2rem;
    letter-spacing: 1px;
}

.description-box {
    background: #fdfdfd;
    padding: 15px;
    border-radius: 8px;
    border-left: 5px solid #198754; /* Màu xanh success */
}

/* Nút bấm */
.btn-lg {
    padding: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-outline-secondary {
    border-style: dashed;
}

/* Responsive cho điện thoại */
@media (max-width: 768px) {
    .border-end {
        border-end: none !important;
        border-bottom: 1px solid #dee2e6;
        margin-bottom: 20px;
    }
}