#head-content {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

#brands-list {
    display: none;
    padding: 0.5rem;
    border-radius: 0.5rem;
    border-width: 1px;
    width: 100%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

#brands-list > nav {
    height: 100%;
}

#brands-list > nav > ul {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 700;
}

#brands-list > nav > ul > li {
    width: 100%;
}

#brands-list > nav > ul > li > a {
    display: flex;
    padding: 0.25rem;
    justify-content: space-between;
    align-items: center;
}

#slider-container {
    grid-column: span 3 / span 3;
}

#slider {
    overflow: hidden;
    position: relative;
    border-radius: 0.5rem;
    border-width: 2px;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07))
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
    aspect-ratio: 2.3;
}

#left-arrow-container {
    display: flex;
    position: absolute;
    left: 0.5rem;
    z-index: 10;
    align-items: center;
    height: 100%;
}

#right-arrow-container {
    display: flex;
    position: absolute;
    right: 0.5rem;
    z-index: 10;
    align-items: center;
    height: 100%;
}

.arrow-button {
    aspect-ratio: 1 / 1;
    border-radius: 100%;
    width: 3rem;
    background-color: rgb(0, 0, 0, 0.5);
    cursor: pointer;
}

#left-arrow {
    transform: translateX(-70px);
    transition: transform 300ms;
}

#right-arrow {
    transform: translateX(70px);
    transition: transform 300ms;
}

#slider:hover #left-arrow,
#slider:hover #right-arrow {
    transform: translateX(0px);
}

#slide-content {
    display: flex;
    flex-wrap: nowrap;
    height: 100%;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

#slide-content > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

#swipper {
    display: flex;
    margin-top: 0.75rem;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
}

.swipper-dot {
    height: 0.5rem;
    border-radius: 1000px;
    transition-property: width, background-color;
    transition-duration: 300ms;
    cursor: pointer;
}

/* SALE BANNER */

#sale-banner {
    overflow: hidden;
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.07))
        drop-shadow(0 2px 2px rgba(0, 0, 0, 0.06));
}

#sale-banner > img {
    width: 100%;
    display: none;
}

#sale-banner > img:first-child {
    display: block;
}

/* HOT SALE */

#hot-sale {
    overflow: hidden;
    position: relative;
    padding: 0.5rem;
    margin-top: 0.75rem;
    border-radius: 0.5rem;
    background-image: linear-gradient(to bottom, #dc2626, #991b1b);
}

#hot-sale > h2 {
    color: #fff;
    font-size: min(8vw, 50px);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
        "Liberation Mono", "Courier New", monospace;
    font-weight: 700;
}

#hot-sale > p {
    font-weight: 600;
    color: #ffffff;
}

#left-arrow-items-container {
    display: flex;
    position: absolute;
    left: 0;
    top: 3.5rem;
    z-index: 10;
    align-items: center;
    height: 100%;
}

#right-arrow-items-container {
    display: flex;
    position: absolute;
    right: 0;
    top: 3.5rem;
    z-index: 10;
    align-items: center;
    height: 100%;
}

.arrow-items-button {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    border-radius: 100%;
    border-width: 1px;
    width: 4rem;
    background-color: rgb(255, 255, 255, 0.7);
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

#left-arrow-items {
    justify-content: flex-end;
    transform: translateX(-2rem);
}

#right-arrow-items {
    justify-content: flex-start;
    transform: translateX(2rem);
}

#left-arrow-items > i {
    margin-right: 0.25rem;
    width: 50%;
    color: #000;
}

#right-arrow-items > i {
    margin-left: 0.25rem;
    width: 50%;
    color: #000;
}

#hot-sale-items-container {
    overflow: hidden;
    position: relative;
    padding-inline: 1px;
    margin-top: 2.5rem;
}

#slide-content-items {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-item-container {
    position: relative;
    padding-inline: 0.5rem;
    border-radius: 1rem;
    background-color: #ffffff;
    height: 330px;
    flex-shrink: 0;
    width: calc(50% - 4px);
}

/* HOT ITEMS */

#hot-items {
    overflow: hidden;
    position: relative;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    margin-top: 0.75rem;
    color: #000000;
}

#hot-items-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#hot-items-header > h2 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

#hot-items-header > a {
    font-size: 1.125rem;
    line-height: 1.75rem;
    color: rgb(71, 85, 105);
}

#phone-brands {
    display: flex;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

#phone-brands > div {
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    background-color: rgb(241, 245, 249);
}

#hot-items-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.75rem;
}

#hot-items-items > a {
    position: relative;
    padding-inline: 0.5rem;
    border-radius: 1rem;
    border-width: 1px;
    background-color: #ffffff;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    height: 400px;
    flex-shrink: 0;
}

.special-offer {
    padding: 0.5rem 6px;
    margin-top: 0.25rem;
    border-radius: 0.375rem;
    background-color: rgb(241, 245, 249);
}

/* ITEMS */

.sale-badget {
    font-size: 0.625rem;
    color: white;
    font-weight: 600;
    padding: 1px 0.25rem;
    background-color: rgb(220, 38, 38);
    width: max-content;
    border-radius: 1rem;
    border-top-left-radius: 0.5rem;
    border-bottom-left-radius: 0px;
    position: absolute;
    left: -0.25rem;
}

.slider-item-container > .item-img-container {
    margin-top: 1rem;
    height: 50%;
}

.item-img-container > img {
    object-fit: contain;
    width: 100%;
    height: 100%;
}

.item-img-container {
    margin-top: 1rem;
    height: 150px;
}

.item-info {
    margin-top: 0.5rem;
    font-size: 0.625rem;
    overflow: hidden;
}

.item-name {
    height: 2.75rem;
    font-size: 0.625rem;
    font-weight: 700;
}

.hang-dat-truoc {
    display: inline-block;
    font-size: 0.625rem;
    padding: 1px 6px;
    border-radius: 0.375rem;
    font-weight: 600;
    color: rgb(220, 38, 38);
    background-color: rgb(254, 242, 242);
    margin-bottom: 0.25rem;
}

.item-price {
    font-weight: 700;
    color: rgb(220, 38, 38);
}

.item-price > del {
    color: rgb(107, 114, 128);
}

.item-price-upgrade {
    margin-top: 1px;
}

.rating {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 1px;
    height: 0.75rem;
    margin-top: 1rem;
    color: rgb(234, 179, 8);
}

.slider-item-container .rating {
    margin-top: 0.5rem;
}

.favorite {
    display: flex;
    position: absolute;
    bottom: 0.5rem;
    right: 0.75rem;
    gap: 0.5rem;
    align-items: center;
}

.favorite > div {
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(107, 114, 128);
}

.favorite > button {
    cursor: pointer;
    color: rgb(248, 113, 113);
}

/* PAYMENT OFFERS */
#payment-offers {
    margin-top: 0.75rem;
}

#payment-offers > h2 {
    font-size: 1.125rem;
    line-height: 1.75rem;
    font-weight: 700;
}

#payment-offers > div {
    display: grid;
    margin-top: 0.25rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

#payment-offers > div > img {
    object-fit: contain;
    border-radius: 0.75rem;
    border-width: 1px;
    width: 100%;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* RESPONSIVE */

@media (min-width: 425px) {
    .slider-item-container {
        width: calc(50% - 6px);
    }

    .item-info {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    .item-name {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    #slide-content-items {
        gap: 0.75rem;
    }
}

@media (min-width: 768px) {
    .slider-item-container {
        width: calc(calc(100% / 3) - 8px);
    }

    .sale-badget {
        font-size: 0.75rem;
        line-height: 1rem;
        padding: 0.25rem 0.5rem;
    }

    .item-info {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .item-name {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }

    .hang-dat-truoc {
        font-size: 0.75rem;
        line-height: 1rem;
    }

    #hot-items-items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    #head-content {
        display: grid;
    }

    #brands-list {
        display: block;
    }

    .slider-item-container {
        width: calc(25% - 9px);
    }

    #sale-banner > img:first-child {
        display: none;
    }

    #sale-banner > img:nth-child(2) {
        display: block;
    }

    #hot-sale > h2 {
        text-align: center;
    }
    #hot-sale > p {
        text-align: center;
    }

    #hot-items-items {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    #payment-offers > div {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .slider-item-container {
        width: calc(20% - 9.6px);
    }

    #hot-items-items {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
