/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #111;
    color: white;
    margin: 0;
}

/* Header */
.header{
    background:#000;
    padding:15px 0;
}

.nav{
    max-width:1100px;
    margin:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 20px;
}

.nav a{
    color:white;
    text-decoration:none;
    font-size:14px;
    white-space:nowrap;
    transition:0.2s;
}

.nav a:hover{
    color:#ff6a00;
}

/* Hero Section */
.hero{
    position:relative;
    width:100%;
}

.hero-img{
    width:100%;
    height:20vh;              /* cố định chiều cao hero */
    object-fit:cover;         /* phủ kín */
    object-position:center 70%; /* đẩy ảnh xuống */
    display:block;
}
.hero-content{
    position:absolute;
    top:15%;
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    width:90%;
}

.hero-content h1{
    font-size:clamp(40px,8vw,80px);
    text-shadow:0 0 25px rgba(255,150,150,0.5);
}

.hero-content p{
    font-size:clamp(16px,3vw,22px);
}
/* Product Section */
.product-section {
    display: flex;
    flex-direction: column; /* Các sản phẩm sẽ hiển thị theo chiều dọc */
    justify-content: center;
    align-items: center;
    height: auto;
    background-color: #222;
    padding: 5px;
}

.product-card{
    position:relative;
    width:100%;
    max-width:1500px; /* bề ngang banner */
    height:400px; /* thêm dòng này */
    margin:10px auto;
    border-radius:16px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.4);
}
.product-img{
    width:100%;
    height:100%;     /* đổi từ auto thành 100% */
    object-fit:cover; /* quan trọng */
    display:block;
}
.product-content{
    position:absolute;
    top:60%; /* chỉnh khoảng cách chữ BIGBOT,LUCI */
    left:50%;
    transform:translate(-50%,-50%);
    text-align:center;
    width:90%;
}

.product-content h2{
    font-size:clamp(30px,6vw,60px);
    margin-bottom:15px;
}

.product-content p{
    font-size:clamp(14px,3vw,18px);
    margin-bottom:20px;
}

.product-buttons{
    display:flex;
    justify-content:center;
    gap:15px;
    flex-wrap:wrap;
}

.btn{
    min-width:140px;
    background:#ff6a00;
    color:white;
    padding:12px 20px;
    border-radius:10px;
    text-decoration:none;
    font-size:14px;
    transition:0.3s;
    min-width:140px;
}

.btn:hover{
    background:#ff8c2f;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

.overlay h2 {
    font-size: 48px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: bold;
}

.overlay p {
    font-size: 16px;
    margin-bottom: 30px;
}

.btn-container {
    display: flex;
    justify-content: space-between;
    width: 60%; /* Đặt chiều rộng cho các nút */
    gap: 10px; /* Khoảng cách giữa các nút */
}

.btn-learn-more, .btn-buy-now {
    background-color: #FF6F00;
    padding: 10px 20px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
    width: 48%; /* Đặt kích thước nút ngang */
}

.btn-learn-more:hover, .btn-buy-now:hover {
    background-color: #e65c00;
}

/* Footer */
footer {
    text-align: center;
    background-color: #000;
    color: white;
    padding: 10px;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content p {
        font-size: 18px;
    }

    .product-section {
        flex-direction: column;
        height: auto;
    }
}
/* căn chỉnh */
@media(max-width:768px){

    .nav{
        justify-content:space-around;
    }

    .nav a{
        font-size:12px;
    }

    .hero-content{
        top:15%;
    }

}

@media(max-width:768px){

    .product-content{
        top:55%;
    }

    .product-buttons{
        flex-direction:column;
        gap:10px;
    }

    .btn{
        width:100%;
    }

}