*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family: Arial, sans-serif;
}
body{
    background:whitesmoke;
    color:black;
}
.container{
    width:90%;
    max-width:1200px;
    margin: 0 auto;
}
a{
    text-decoration:none;
}

/*top*/
.top-bar {
    background: skyblue;
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}
.top-bar b{
    font-weight:600;
}

/* header */
.main-header{
    background:#fff;
    padding:18px 0; 
}
.main-header-content{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.brand-logo img{
    width:180px;
}
.service-info{
    display:flex;
    gap:35px;
}
.service-item{
    display:flex;
    align-items:center;
    gap:12px;
    background:whitesmoke;
    padding:10px 15px;
    border-radius:14px;
}
.service-item:hover{
    box-shadow:0 4px 12px black;
}
.service-item b{
    display:block;
    font-size:15px;
}
.cart-box{
    background:skyblue; 
    padding:13px 26px;
    border-radius:40px;
    font-weight:600;
}
.cart-box:hover{
    box-shadow:0 4px 12px black;
}

/* bar */
.nav-wrapper{
    background: skyblue;
    position:sticky;  
    top:0;
    z-index: 999;
    box-shadow:0 2px 8px gray;
}
.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    height:65px;
}
.menu-list {
    display: flex;
    list-style: none; 
    padding: 0;
    margin: 0;
    gap: 5px;
}
.menu-list li {
    position: relative; 
}
.menu-list a {
    display: block; 
    color: #fff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 17px;
    font-weight: 500;
}
.menu-list li ul {
    display: none;
    min-width: 200px;
    position: absolute;
    background: skyblue;
    top: 100%;
    left: 0;
    margin-top: 5px; 
    list-style: none; 
    padding: 0;       
}
.menu-list li ul li{
  border-bottom: 1px solid white;
}
.menu-list li:hover ul {
    display: block;
}
.search-box{
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:40px;
    overflow:hidden;
    width:300px;
    height:42px;
    box-shadow:0 3px 10px gray;
}
.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:0 16px;
    font-size:14px;
}
.search-btn{
    width:50px;
    height:42px;
    border:none;
    background:#fff;
    cursor:pointer;
    font-size:18px;
    transition:0.3s;
}
#slideshow {
    width: 100%;
    height: 500px; 
    overflow: hidden; 
}

#slideshow img {
    width: 100%;
    height: 100%; 
    object-fit: cover; 
    display: block;
}

/* section */
.mid-section {
    margin: 60px 0;
}
.mid-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}
.mid-left,
.mid-right{
    width: 50%;
}
.mid-left img{
    width: 100%; 
    margin-top: 140px;
    border-radius: 20px;
    display: block;
}
.mid-right h2{
    font-size: 45px;
    color: #0975B3;
    margin-bottom: 25px;
} 
.box{
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 25px;
}
.mid-right .box:hover{
    box-shadow: 0 4px 12px gray;
}

/* content */
.danh-muc-section, .san-pham-section {
    margin: 60px 0;
    text-align: center; 
}
.danh-muc-section h2 {
    color: #f15a24;
    font-size: 30px;
    margin-bottom: 25px;
}
.san-pham-section h2 {
    color: skyblue;
    font-size: 30px;
    margin-bottom: 25px;
}

.danh-sach-card, .product-grid {
    display: flex;
    flex-wrap: wrap; 
}
.card {
    background: white;
    display: block;
    width: 100%;
    padding: 15px;
    color: black;
    font-weight: bold;
    transition: 0.2s;
    box-shadow: 0 2px 8px gray;
}
.card img {
    height: 132px;
    border-radius: 20px;
    width: 100%;
    object-fit: cover;
    margin-bottom: 10px;
}
.card:hover, .product-item:hover {
    box-shadow: 0 6px 15px gray;
}

.product-item {
    background: white;
    width: 100%; 
    padding: 15px;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px gray;
}
.product-item img {
    width: 100%;
    border-radius: 20px;
    height: 132px;
    object-fit: cover; 
    margin-bottom: 10px;
}
.product-info h3 {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 10px;
    color: gray;
    line-height: 1.3;
    height: 36px;
    overflow: hidden;
}
.product-info .price {
    color: #d0021b;
    font-weight: bold;
    text-align: center;
    font-size: 15px;
}

/* footer */
#footer {
    width: 100%;
    background-color: skyblue;
    margin-top: 40px;
}
#footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    padding: 40px 0;
    color: white;
    gap: 20px;
}
.footer-info, .footer-menu, .footer-social {
    flex: 1;
    min-width: 200px;
}
.footer-menu ul {
    list-style: none;
}
.footer-menu a {
    color: #FFF;
}
.footer-social img {
    width: 180px;
    border-radius: 5px;
}
.copyright-bar {
    background-color: #0975B3;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    flex-wrap: wrap;
    gap: 10px;
}
.copyright-links {
    display: flex;
    gap: 20px;
}
.copyright-links a {
    color: #fff;
}
[class*="col-"] {
    padding: 15px;
    box-sizing: border-box;
}

/* Thiết lập CSS cho Mobile (Dưới 768px) */
@media only screen and (max-width: 767px) {
    #header { 
        display: none;
    }
    .col-s-1{width: 8.33%} 
    .col-s-2{width: 16.66%}
     .col-s-3{width: 25.0%}
    .col-s-4{width: 33.33%} 
    .col-s-5{width: 41.66%}
     .col-s-6{width: 50%}
    .col-s-7{width: 58.33%} 
    .col-s-8{width: 66.66%}
     .col-s-9{width: 75%}
    .col-s-10{width: 83.33%} 
    .col-s-11{width: 91.66%} 
    .col-s-12{width: 100%}
    
    .mid-content { flex-direction: column; }
    .mid-left, .mid-right { width: 100%; }
} 
/*tablet*/
@media only screen and (min-width: 768px) {
    #header { 
        display: block;
    } 
    .col-m-1{width: 8.33%} 
    .col-m-2{width: 16.66%}
     .col-m-3{width: 25.0%}
    .col-m-4{width: 33.33%}
     .col-m-5{width: 41.66%}
      .col-m-6{width: 50%}
    .col-m-7{width: 58.33%}
     .col-m-8{width: 66.66%}
      .col-m-9{width: 75%}
    .col-m-10{width: 83.33%} 
    .col-m-11{width: 91.66%}
     .col-m-12{width: 100%}
}

/* Thiết lập CSS cho Laptop/PC (Từ 1200px trở lên) */
@media only screen and (min-width: 1200px) {
    #header { 
        display: block;
    } 
    .col-x-1{width: 8.33%} 
    .col-x-2{width: 16.66%}
     .col-x-3{width: 25.0%}
    .col-x-4{width: 33.33%}
     .col-x-5{width: 41.66%}
      .col-x-6{width: 50%}
    .col-x-7{width: 58.33%} 
    .col-x-8{width: 66.66%}
     .col-x-9{width: 75%}
    .col-x-10{width: 83.33%}
     .col-x-11{width: 91.66%} 
     .col-x-12{width: 100%}

    .col-x-2-4 { width: 20%; } 
}
/*C1: gt đề tài - phạm vi
/*C2: vấn đề cơ bản, cơ sở làm
/*C3: mô tả từng cái function 1 của từng trang web
