/* Responsive style made by giaidieu.com */
/* Updated on 30 Jun 2025 */
@media (max-width:1600px) {
}

@media (max-width:1440px) {
  #block-giaidieu-views-block-node-functions-block-home-sticky-products div.product-listing form.views-exposed-form div[name="tid"] ul li {
    max-width: 160px;
  }
  
  div.product-listing form.views-exposed-form div[name="tid"] ul {
    text-align: right;
  }
}

@media (max-width:1366px) {
}

@media (max-width:1240px) {
  #block-giaidieu-views-block-node-functions-block-home-sticky-products form.views-exposed-form {
    position: unset;
    margin-bottom: 30px;
  }

  #block-giaidieu-views-block-node-functions-block-home-sticky-products div.product-listing form.views-exposed-form div[name="tid"] ul li {
    max-width: 240px;
  }
  
  div.product-listing form.views-exposed-form div[name="tid"] ul {
    text-align: left;
  }
  
  #block-giaidieu-bottominfo > div.content {
    grid-template-columns: 206px 400px auto;
  }
  
  div.tiny-slideshow .tns-outer div.node-slideshow-teaser div.node-body h2 {
    font-size: 4.6rem;
  }
  
  #block-giaidieu-mainmenu div.content {
    padding-left: var(--field_gap);
    padding-right: var(--field_gap);
  }

  form.webform-submission-form div.form-item input[type="text"], form.webform-submission-form div.form-item textarea {
    width: calc(100% - 20px);
  }
}

@media (max-width:1024px) {
  #header {
    height: 130px;
  }
  
  /* Main menu */
  #block-giaidieu-danhmucchinh {
    pointer-events: none;
  }
  

  #block-giaidieu-danhmucchinh:before {
    content: "\f0c9";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: var(--primary_color);
    font-size: 3.0rem;
    position: fixed;
    pointer-events: all;
    cursor: pointer;
    background-color: #fff;
    padding: 10px 15px;
    box-shadow: 1px 2px 3px #666;
    border-radius: 0 50% 50% 0;
    left: 0;
    top: 0;
  }
  
  #block-giaidieu-danhmucchinh > ul {
    display: none;
    position: fixed;
    z-index: 999;
    left: 10px;
    top: 60px;
    width: 200px;
    pointer-events: all;
    margin: 0;
    padding: 0;
    color: var(--box_text_color);
    border-radius: 15px;
    background-color: var(--box_bg_color);
    box-shadow: var(--box_shadow);
  }
  
  #block-giaidieu-danhmucchinh > ul, #block-giaidieu-danhmucchinh > ul > li {
    float: none;
  }

  #block-giaidieu-danhmucchinh > ul li {
    list-style: none;
    font-weight: 500;
    font-size: 1.6rem;
    padding: 0;
    cursor: pointer;
    margin-right: 0;
    border-bottom: 1px solid #141414;
    display: block;
  }

  #block-giaidieu-danhmucchinh > ul li > a {
    color: var(--box_text_color);
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: none;
    background-color: #0D3759;
  }

  #block-giaidieu-danhmucchinh > ul li > a:hover {
    color: var(--secondary_color);
  }
  
  #block-giaidieu-mainmenu #block-giaidieu-headerhotline, #block-giaidieu-toprightheader #block-giaidieu-headerhotline-2 a > span {
    display: none;
  }
  
  #block-giaidieu-mainmenu:before {
    display: none;
  }
  
  #block-giaidieu-toprightheader #block-giaidieu-headerhotline-2 {
    display: block;
  }
  
  #block-giaidieu-toprightheader #block-giaidieu-headerhotline-2 img {
    height: 20px;
    width: auto;
  }
  
  #block-giaidieu-branding {
    margin-left: 100px;
  }
  
  #block-giaidieu-views-block-node-functions-block-home-news div.tiny-slideshow .tns-outer .tns-controls, #block-giaidieu-views-block-node-functions-block-all-sticky-products div.tiny-slideshow .tns-outer .tns-controls, div[view-display-id="block_relative_products"].tiny-slideshow .tns-outer .tns-controls {
    width: calc(100% + 40px);
  }
  
  body.entity-node-canonical:not(.content-type-webform) #highlighted {
    height: 50px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  
  body.content-type-webform.node-id-91 div#main.has-right > div.container {
    max-width: 100%;
    grid-template-columns: 1fr;
  }

  body.entity-node-canonical.content-type-webform.node-id-91 #highlighted {
    margin-top: 0;
  }
  
  #block-giaidieu-footercontactinfo-2 span {
    margin-top: 7px;
  }

  body.content-type-webform.node-id-91 #right {
    margin-top: 0;
  }
}

@media (max-width:990px) {
  #block-giaidieu-homeaboutus > div.content > div {
    grid-row-gap: 30px;
    flex-direction: column;
  }
  
  #block-giaidieu-homeaboutus > div.content > div img {
    width: 100%;
    height: auto;
  }

  #block-giaidieu-views-block-node-functions-block-home-branding div.rows-wrapper {
    grid-template-columns: 1fr 1fr 1fr;
  }

  #block-giaidieu-bottominfo > div.content {
    grid-template-columns: 1fr;
  }
  
  div.product-header {
    flex-direction: column;
    grid-row-gap: 30px;
  }
  
  div#main.has-right > div.container {
    grid-template-columns: 1fr;
  }
  
  #right div.block-content {
    margin-top: 0;
  }
}

@media (max-width:820px) {
  div.tiny-slideshow div.node-slideshow-teaser div.node-body {
    max-width: 100%;
  }
}

@media (max-width:768px) {
  #block-giaidieu-views-block-taxonomy-functions-block-product-category div.rows-wrapper, div.product-listing:not([view-display-id="page_all_products"]):not([view-display-id="block_all_sticky_products"]):not(.tiny-slideshow) div.rows-wrapper, div.product-listing [data-drupal-views-infinite-scroll-content-wrapper] {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    grid-gap: 30px;
  }
  
  div.product-listing form.views-exposed-form div[name="tid"] ul li {
    margin-bottom: 10px;
  }

  #block-giaidieu-views-block-node-functions-block-home-news div.tiny-slideshow .tns-outer .tns-controls, div[view-display-id="block_relative_products"].tiny-slideshow .tns-outer .tns-controls {
    width: calc(100% + 80px);
  }
  
  #block-giaidieu-views-block-node-functions-block-all-sticky-products div.tiny-slideshow .tns-outer .tns-controls {
    width: calc(100% + 40px);    
  }

  #block-giaidieu-branding {
    margin-left: 30px;
  }
  
  #views-exposed-form-site-search-page-site-search input[type="text"] {
    width: 150px;
  }
  
  div.tiny-slideshow .tns-outer div.node-slideshow-teaser div.node-body h2 {
    font-size: 3.6rem;
  }
    
  div[view-display-id="page_all_news"] div.rows-wrapper [data-drupal-views-infinite-scroll-content-wrapper] {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width:730px) {
}

@media (max-width:700px) {
}

@media (max-width:665px) {
}

@media (max-width:600px) {
  .container {
    width: auto;
    padding-right: 15px;
    padding-left: 15px;
  }
  
  #block-giaidieu-views-block-node-functions-block-home-branding div.rows-wrapper {
    grid-template-columns: 1fr 1fr;
  }

  #block-giaidieu-views-block-node-functions-block-home-news div.tiny-slideshow .tns-outer .tns-controls, #block-giaidieu-views-block-node-functions-block-all-sticky-products div.tiny-slideshow .tns-outer .tns-controls, div[view-display-id="block_relative_products"].tiny-slideshow .tns-outer .tns-controls {
    width: calc(100% + 40px);
  }

  div.tiny-slideshow div.tns-outer div.tns-controls [aria-controls], div.tiny-slideshow div.tns-outer div.tns-controls [aria-controls] {
    width: 32px;
    height: 33px;
  }
}

@media (max-width:510px) {
  #block-giaidieu-views-block-taxonomy-functions-block-product-category div.rows-wrapper div.views-row {
    width: 150px;
  }
  
  div.tiny-slideshow .tns-outer div.node-slideshow-teaser div.node-body h2 {
    font-size: 3.2rem;
  }
  
  div.tiny-slideshow .tns-outer p {
    font-size: 1.6rem;
  }
  
  #views-exposed-form-site-search-page-site-search input[type="text"] {
    width: 100px;
  }

  #block-giaidieu-chuyendoingonngu ul.links {
    padding-left: 15px;
  }

  div.tiny-slideshow div.node-slideshow-teaser img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    text-align: center;
  }

  input.button--secondary, .btn--secondary, a.btn--secondary, a.btn--secondary:visited, button.btn--secondary, button.btn--secondary:hover, button.btn--secondary:focus {
    padding-left: 10px;
    padding-right: 10px;
    font-size: 1.2rem;
  }
  
  body.view-node-functions-page-all-products #highlighted {
    height: 700px;
  }
  
  .ui-dialog h1.ui-dialog-title {
    font-size: 2.4rem;
  }
}

@media (max-width:450px) {
  #header {
    height: 190px;
  }
  
  #block-giaidieu-topheader > div.content {
    flex-direction: column;
    grid-row-gap: 5px;
  }

  #views-exposed-form-site-search-page-site-search input[type="text"] {
    width: 150px;
  }
  
  div#block-giaidieu-bottominfo.block-content {
    margin-top: 30px;
  }
  
  #block-giaidieu-bottominfo > div.content {
    grid-gap: 30px;
  }
  
  div.tiny-slideshow .tns-outer div.node-slideshow-teaser div.node-body h2 {
    font-size: 2.6rem;
    margin-top: 15px;
  }
  
  h2 {
    font-size: 2.4rem;
  }
  
  div.tiny-slideshow .tns-outer p {
    display: none;
  }

  body.view-node-functions-page-all-products #highlighted {
    height: 600px;
  }
}

@media (max-width:414px) {
  div.block-content h2 {
    display: block;
    text-align: center;
    margin-bottom: 30px;
  }
  
  div.block-content h2:before {
    width: 100px;
    left: 50%;
    transform: translateX(-50%);
  }

  #block-giaidieu-views-block-taxonomy-functions-block-product-category div.rows-wrapper div.views-row {
    width: 100%;
  }

  #block-giaidieu-views-block-taxonomy-functions-block-product-category div.rows-wrapper, div.product-listing:not([view-display-id="page_all_products"]):not([view-display-id="block_all_sticky_products"]):not(.tiny-slideshow) div.rows-wrapper, div.product-listing [data-drupal-views-infinite-scroll-content-wrapper] {
    grid-template-columns: 1fr;
  }

  div.product-listing:not([view-display-id="block_all_sticky_products"]) div.product-details p.node-desc {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    line-height: 1.2em;
    max-height: unset;
    min-height: unset;
  }
  
  div.product-listing:not([view-display-id="block_all_sticky_products"]) div.rows-wrapper div.node-product-teaser {
    max-height: unset;
  }

  div.product-listing form.views-exposed-form div[name="tid"] ul {
    text-align: center;
  }

  div[view-display-id="page_all_news"] div.rows-wrapper [data-drupal-views-infinite-scroll-content-wrapper] {
    grid-template-columns: 1fr;
  }
}

@media (max-width:390px) {
  body.view-node-functions-page-all-products #highlighted {
    height: 500px;
  }
}

@media (max-width:375px) {
}

@media (max-width:320px) {
}
