﻿body {
    padding-bottom: 100px;
    background-color: #EEE;
}

.dn_ads_product_list {
    border: solid 8px;
}

.dn_ads_product_item {
    border: solid 4px;
}

.dn_top_brands {
    display: block;
    margin: auto;
    margin-left: auto;
    font-weight: bold;
    font-size: 18px;
    line-height: 16px;
    padding-top: 20px;
    margin-left: 19px;
    margin-bottom: 16px;
}

.dn_header-img-border {
    /*border: 1px dashed gray;*/
    border-style: none;
}


.dn_slider-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    border-radius: 10px;
}

.dn_slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.dn_slider a, .dn_slider a img {
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    max-width: 1200px;
    height: 220px;
}

.dn_nav {
    position: absolute;
    /*top: 50%;*/
    transform: translateY(-50%);
    font-size: 30px;
    color: #758aa5;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
}

.dn_slider-container .dn_nav{
    top: 50%;
}

.dn_left {
    left: 10px;
}

.dn_right {
    right: 10px;
}

.dn_show_products_container {
    background-color: #3477DD;
}

/* ads 1*/
.dn_ad1-wrapper {
    margin: auto;
    background-color: transparent; /* Tùy chỉnh theo nền bạn muốn */
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    overflow-x: auto;
}

.dn_ad1-container {
    display: flex;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.dn_ad1-item {
    flex: 1;
    background-color: white;
    display: flex;
    align-items: center;
    padding: 5px 15px;
    border-radius: 6px;
    text-decoration: none;
    color: #000;
    font-size: 13px;
    font-weight: 500;
    gap: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s;
}

    .dn_ad1-item:hover {
        box-shadow: 0 0 8px rgba(0,0,0,0.1);
    }

.dn_ad1-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background-color: #eee;
}

.dn_ad1-title {
    flex: 1;
    line-height: 1.2;
}



/* header */
.dn_header {
    color: #fff;
    background-color: #3477DD
}

#header_menu {
    color: #fff;
    background-color: #245EB6;
}

.dn_menu_item:hover, .dn_header_hover:hover {
    background-color: #558BDD;
}

.dn_pop_up_sub_cats {
    color: #333;
}

.dn_cart_item{
    display: block;
    color: #000;
    width: 26px;
    line-height: 26px;
    height: 26px;
    text-align: center;
    border-radius: 100px;
    background-color: #FFE200 !important;
    margin-left: 5px;
}

.dn_instant_search {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 100%;
  z-index: 5;
  background: #3477DD;
  padding: 5px;
  border-radius: 10px 10px 0 0;
  height: 380px;
  overflow-y: scroll;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.5);
  border-bottom: 5px solid #3477DD;
}

.dn_instant_search .dn_instant_item {
  display: flex;
  background: #fff;
  color: #000;
  justify-content: space-between;
  border-radius: 5px;
  align-items: center;
  margin-bottom: 5px;
    padding: 5px 5px;
}

.dn_instant_search .dn_instant_item:hover {
    background-color: #8FB0E4;
}

.dn_instant_search .dn_instant_item_img {
  display: block;
  width: 50px;
  height: 50px;
}

.dn_instant_search .dn_instant_item_name {
  width: calc(100% - 130px);
  text-align: left;
  padding: 0 5px;
}

.dn_instant_search .dn_instant_item_price {
  width: 90px;
  text-align: right;
}

.dn_form_search {
  position: relative;
  /*width: 40%;*/
}

.dn_product_image {background: #eee url(../../img/sna_noimage.jpg) center/cover no-repeat; border-radius: 10px; overflow: hidden;}

.dn_logo {
    width: 188px;
    height: 40px;
}

.ads_product_chunk_3 {
    display: none;
}
.ads_product_chunk_5 {
    display: flex;
}

.show_1_chunk_3{
    display: none;
}
.show_1_chunk_4{
    display: flex;
}

.show_2_chunk_3{
    display: none;
}
.show_2_chunk_4{
    display: flex;
}

.show_3_chunk_3{
    display: none;
}
.show_3_chunk_4{
    display: flex;
}

.show_4_chunk_3{
    display: none;
}
.show_4_chunk_4{
    display: flex;
}

.show_5_chunk_3{
    display: none;
}
.show_5_chunk_4{
    display: flex;
}

.logo_second_line{
    display: none;
}

@media (max-width: 1200px) {
    #theo_doi_don_hang{
        display: none !important;
    }
}

@media (max-width: 768px) {
    .dn_ads_3-wrapper {
        height: auto;
    }
    .logo_second_line{
        display: flex;
        width: 100px;
    }
    .logo_first_line{
        display: none !important;
    }
}

@media (max-width: 430px) {

    /* 1️⃣ Ẩn Top Banner */
    #top_banner {
        display: none !important;
    }

    #theo_doi_don_hang{
        display: none !important;
    }

    /*.logo_second_line{*/
    /*    display: flex;*/
    /*    width: 100px;*/
    /*}*/

    .logo_first_line{
        display: none !important;
    }

    .dn_header_menu{
        overflow-x: auto;
    }

    .dn_logo{
        width: 120px;
        height: auto;
    }

    .dn_ad1_item_x{
        width: 103px !important;
    }

    .ads_product_chunk_3{
        display: flex;
    }
    .ads_product_chunk_5{
        display: none;
    }

    .show_1_chunk_3{
        display: flex;
    }
    .show_1_chunk_4{
        display: none;
    }

    .show_2_chunk_3{
        display: flex;
    }
    .show_2_chunk_4{
        display: none;
    }

    .show_3_chunk_3{
        display: flex;
    }
    .show_3_chunk_4{
        display: none;
    }

    .show_4_chunk_3{
        display: flex;
    }
    .show_4_chunk_4{
        display: none;
    }

    .show_5_chunk_3{
        display: flex;
    }
    .show_5_chunk_4{
        display: none;
    }
}