body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

header {
    text-align: center;
    background-color: rgb(30, 30, 30);
    color: rgb(255, 255, 255);
    padding: 20px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    justify-content: center;
    background-color: purple;
}

nav ul {
    list-style-type: none;
    display: flex;
    margin: 0;
    padding: 0;
}

nav ul li {
    margin: 0 20px;
}

nav ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    padding: 10px;
}

nav ul li a:hover {
    background-color: rgb(106, 0, 106);
    color: rgb(255, 255, 255);
}

.taskbar {
    display: none;
    cursor: pointer;
}

.taskbar .fa-bars {
    font-size: 24px;
    background-color: white;
}

header nav ul {
    list-style-type: none;
}

header ul li {
    display: inline;
    margin: 20px;
}

header ul li a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    padding: 10px;
}

header ul li a:hover {
    background-color: rgb(106, 0, 106);
    color: rgb(255, 255, 255);
}

header img {
    width: 50px;
    height: 50px;
    position: absolute;
    left: 30px;
    top: 30px;
}

/* main */
.sp {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
}

.phone {
    text-align: center;
    background-color: #ccc;
    border-radius: 10px;
    border: 1px #999 solid;
    font-weight: bold;
    margin: 20px;
    transition: transform 0.3s ease;
}

.phone img {
    width: 150px;
    height: 200px;
}

.phone a {
    color: white;
}

.phone button {
    padding: 10px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
    background-color: purple;
    cursor: pointer;
    border: none;
}

.phone button:hover {
    background-color: rgb(106, 0, 106);
}

.phone a {
    text-decoration: none;
}

/* detail */
.detail {
    margin: 20px;
}

.sanpham {
    padding: 0;
    margin: 20px;
}

.sanpham img {
    float: left;
    width: 20%;
}

.sanpham ul {
    width: 70%;
    float: right;
}

.sanpham ul li {
    list-style-type: none;
    margin: 10px;
}

.sanpham .act,
.sanpham .butt,
.sanpham .pink,
.sanpham .lightblue,
.sanpham .lightgreen,
.sanpham .black,
.sanpham .lightyellow {
    cursor: pointer;
    border: none;
    padding: 10px;
    border-radius: 10px;
    color: rgb(255, 255, 255);
}

.sanpham .act {
    background-color: purple;
}

.sanpham .butt {
    background-color: blueviolet;
}

.sanpham .pink {
    background-color: rgb(245, 70, 99);
}

.sanpham .lightblue {
    background-color: lightblue;
}

.sanpham .lightgreen {
    background-color: lightgreen;
}

.sanpham .black {
    background-color: black;
}

.sanpham .lightyellow {
    background-color: lightyellow;
}

/* footer */
footer {
    width: 100%;
    height: 300px;
    background-color: rgb(36, 36, 36);
    clear: both;
    overflow: hidden;
}

.footer-30 {
    width: 28%;
    height: 200px;
    float: left;
    color: rgb(255, 255, 255);
    text-align: center;
    margin: 30px 20px;
}

.footer-30>ul {
    text-align: center;
    list-style-type: none;
}

.footer-30 ul li span {
    color: grey;
    line-height: 25px;
}

.footer-30>ul>li>a {
    text-decoration: none;
    color: grey;
    line-height: 25px;
    font-size: large;
    font-variant: inherit;
    padding-top: 10px;
}

.footer-30>.icon>li {
    display: inline-block;
    margin: 15px;
}

.footer-30>ul>li>a:hover {
    color: white;
}

.login {
    position: absolute;
    top: 20px;
    right: 10px;
    text-decoration: none;
}

.login a {
    color: white;
    text-decoration: none;
}

.login :hover {
    color: rgb(235, 79, 217);
    cursor: pointer;
}

@media only screen and (max-width: 600px) {


    .sp {
        display: flex;
        flex-wrap: wrap;
    }

    .logo img {
        max-width: 60px;
        margin-right: 10px;
    }

    .sp .hinh {
        width: 100%;
    }

    .menu-icon {
        display: block;
    }

    nav ul {
        display: none;
    }
}

@media only screen and (max-width: 768px) {

   
    .sp {
        display: flex;
        flex-wrap: wrap;
    }

    .slides img {
        height: auto;
    }

    .slides {
        height: auto;
    }

    .popular,
    .price,
    .new {
        padding: 20px;
    }

    .footer-30 {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }

    .footer-30 ul {
        padding: 0;
    }

    .footer-30 img {
        display: block;
        margin: 0 auto;
    }

    .footer-30 li {
        margin-bottom: 10px;
    }

    nav {
        display: none;
    }

    .taskbar {
        display: block;
    }

    .nav-container.active nav {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: purple;
    }

    .nav-container.active nav ul {
        flex-direction: column;
    }

    .nav-container.active nav ul li {
        margin: 10px 0;
    }
}

.phone:hover {
    transform: scale(1.1);
}

@media(max-width: 960px) {
    .sp .iphone {
        max-width: 230px;
    }
}

@media(max-width: 600px) {
    .sp .iphone {
        max-width: 220px;
    }
}

@media(max-width: 480px) {
    .sp .iphone {
        max-width: 320px;
    }
}