/************************************************************************************
smaller than 980
*************************************************************************************/
@media screen and (max-width: 980px) {

  #mobile-price-group,
  .node-type-product .nd-region-left .add-to-cart {
    display: block;
  }

  .video embed,
  .video object,
  .video iframe {
    width: 100%;
    max-width: 100% !important;
    height: auto;
    min-height: 300px;
  }
  iframe {
    max-width: 100% !important;
  }



  body.layout-jello .sizer {
    width: 100%;
    max-width: 100%;
  }

  body.layout-jello .expander0 {
    min-width: 320px;
    width: 99%;
    margin: 0 auto;
  }

  body.layout-jello .page {
    padding: 0;
  }

  .colmain {
    float: none;
  }
  #main,
  #section1,
  #breadcrumb {
    padding: 10px 30px 20px 5px;
  }
  body.l-m-eq .colleft {
    display: none;
  }

  body.l-m-r-eq .outer, body.l-m-eq .outer, body.l-m-eq .outer {
    margin-left: 0;
  }
  #phonereg {
    left: auto;
    width: auto;
    right: 0;
  }

  #block-block-51 table {
    float: right;
    width: auto;
  }
  #block-block-51 td:first-child {
    width: auto !important;
  }
  #block-block-51 td:first-child div {
    margin: 0 !important;
  }
  #block-block-51 td:last-child {
    display: none;
    width: 0 !important;
  }

  #top-elements {
    float: none;
    clear: both;
    text-align: left;
    padding: 0;
    width: 100%;
  }
  #top-elements #banner {
    position: relative;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
  }
  #search {
    float: none;
    text-align: center;
  }
  #search .form-text {
    width: 80%;
    max-width: 400px;
  }
  #header .block {
    padding: 0;
    margin: 0;
  }
  #banner .block {
    margin: 0;
    padding: 0px 10px;
    float: none;
  }
  #name-and-slogan {
    padding: 15px 0 0 0;
  }
  #block-block-68 .content div:first-child {
    text-align: center !important;
  }

  #block-nice_menus-10 .content {
    padding: 0;
  }
  ul.nice-menu-down li {
    margin-right: 0;
  }

  .block .content {
    padding: 6px 10px;
    margin: 0;
  }

  .navleft {
    padding-left: 0;
  }
  body.sfish #navlinks li {
    float: left;
  }

  ul.megadropdown-topnav {
    float: none;
  }
  .menudropdown-topnav-li {
    margin-left: 0 !important;
  }
  .megadropdown-dropdown {
    right: auto !important;
  }

  .view-me-recomended td {
    display: inline-block;
    width: 24%;
  }
  .view-me-recomended img,
  .view-me-recomended-visits img,
  .category-grid-products img,
  .main-product-image img {
    height:auto;
    width:100%;
  }

  #section2 table td {
    display: block;
    float: left;
    padding: 0 10px;
    width: 45%;
  }
  #section2 table td.u8 {
    width: 90%;
  }

  #div_f {
    display: none !important;
  }

  #edit-subject {
    width: 94%;
  }

  .megadropdown-dropdown {
    display:none !important;
  }

  body.l-m-r-eq .colleft, body.m-r-eq .colleft, body.l-m-eq .colleft {
    width: 90%;
    margin-left: 0;
  }

  #update-checkout-buttons,
  #update-checkout-buttons input,
  #continue-shopping-button {
    float: none;
    display: block;
  }

  .menu-3378 > ul,
  .menu-3401 > ul {
    column-count: 2;
    column-gap: 0;
  }

}

/************************************************************************************
smaller than 768
*************************************************************************************/
@media screen and (max-width: 768px) {
  body {
    font-size: 100%;
  }

  #body_left, 
  #body_right,
  #top_left, 
  #top_right {
    background: none;
  }
  #body_right,
  #top_right {
    padding: 0 15px;
  }
  #main, #section1, #breadcrumb {
    padding: 10px 0 10px 0;
  }
  td.section {
    padding: 0;
  }

  ul.nice-menu-down > li.menuparent {
    width: 100%;
  }
  ul.nice-menu-down > li > a:hover {
    background: #5a7d4f url(../images/nav-down.png) 93% center no-repeat;
  }

  ul.nice-menu-down > li.menuparent > a, ul.nice-menu-down > li.menuparent > a:hover {
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
    padding-top: 10px;
    margin-bottom: 5px;
  }
  ul.nice-menu-down > li.menuparent.over > a, ul.nice-menu-down > li.menuparent.over > a:hover {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  body.sfish #navlinks li {
    float: left;
    display: block;
    width: 100%;
  }
  body.sfish #navlinks li > a {
    display: block;
    border-bottom-right-radius: 7px;
    border-bottom-left-radius: 7px;
    padding: 4px 25px 4px;
  }
  ul.nice-menu-down li ul li a {
    padding-top: 5px;
    padding-bottom: 5px;
  }
  ul.nice-menu li.menuparent ul, #header-region ul.nice-menu li.menuparent ul {
    width: 100%;
  }
  ul.nice-menu-down li ul li {
    width: 100%;
  }

  .sf-fake-parent {
    font-size: 15px;
    font-weight: bold;
  }

  /* embedded videos */
  .video embed,
  .video object,
  .video iframe {
    min-height: 250px;
  }

  table {
    font-size: 10px;
    table-layout: fixed;
    word-break: break-all;
  }
  table td, table th {
    white-space: normal !important;
  }

  .line-item-table .li-title {
    font-weight: normal;
    text-align: left;
    width: auto;
  }

  #main .catalog-description table tr {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
  }


  .buildmode-full .nd-region-middle-wrapper {
    float: right;
    width: 70%;
    margin-right: 0;
  }
  .buildmode-full .nd-two-sidebars .nd-region-middle {
    margin-left: 2%;
    margin-right: 0;
  }
  .buildmode-full .nd-region-right {
    width: 100%;
  }

  body.l-m-r-eq .outer, body.m-r-eq .outer, body.m-r-eq .outer {
    margin-right: 0;
  }
  body.l-m-r-eq .colright, body.m-r-eq .colright, body.l-m-eq .colright {
    margin-right: 0px;
    width: 100%;
  }
  #block-block-15 img {
    height: 0px;
    width: 0px;
  }
  #block-block-15 .content div {
    text-align: left !important;
  }
  #block-block-15 .content div:after {
    content: " ";
    background: transparent url(../images/icons-line-2_h.png) 0 0 no-repeat;
    height: 59px;
    width: 90%;
    display: block;
  }
  .page-cart-checkout #content-bottom {
    display: none;
  }

  .grid-products {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  }

  .category-list-products .nd-region-middle-wrapper {
    width: 70%;
  }
  .category-list-products .nd-region-right {
    width: 100%;
  }

  .category-list-products .nd-region-middle-wrapper {
    float: right;
    margin-right: 0;
  }
  .category-list-products .nd-two-sidebars .nd-region-middle {
    margin-left: 5%;
    margin-right: 0;
  }


  .view-price-list2 .ajax-cart-submit-form .ajax-cart-submit-form-button,
  .view-price-list4 .ajax-cart-submit-form .ajax-cart-submit-form-button {
    text-indent: -9999px;
    background-image: url(../images/add-to-cart.png);
    background-repeat: no-repeat;
    background-position: center;
  }
}

/************************************************************************************
smaller than 640
*************************************************************************************/
@media screen and (max-width: 640px) {

  #logo img {
    margin: 0px 5px 5px 5px;
    height: 100px;
  }

  #block-block-52 td {
    display: block;
    width: 100%;
  }
  #block-block-52 img {
    max-width: 100%;
  }

  #block-uc_upsell-0,
  #section2 .u6,
  #section2 .u7,
  #section2 .u8 .block_1,
  #section2 .u8 .block_3,
  #block-views-upsell_product_pairs-block_1,
  #content-bottom,
  #crossss_1 {
    display: none;
  }

  #footer, #footer a {
    font-size: 13px !important;
  }

  .category-list-products .nd-region-middle-wrapper {
    width: 100%;
  }

  .category-list-products .nd-region-middle-wrapper {
    float: none;
  }
  .category-list-products .nd-two-sidebars .nd-region-middle {
    margin-left: 0;
  }

}

/************************************************************************************
smaller than 480
*************************************************************************************/
@media screen and (max-width: 480px) {

  /* disable webkit text size adjust (for iPhone) */
  html {
    -webkit-text-size-adjust: none;
  }

  #logo {
    width: 100%;
    text-align: center;
  }

  #block-block-51,
  #block-views-me_recomended-block_1,
  #block-block-26,
  #block-block-18,
  #block-block-6,
  #block-hcard-0 .geo {
    display: none;
  }

  #block-block-71 {
    display: block;
  }

  table.category td {
    display: block;
    width: 100%;
  }
  .grid-products {
    grid-template-columns: none;
    display: block;
  }


  .category-grid-products td {
    display: block;
    width: 98%;
  }
  .category-grid-products img {
    max-width: 220px;
  }

  #catalog-filters .catalog-filter,
  .address-pane-table table td {
    display: block;
    width: 100%;
    text-align: left;
  }
  #catalog-filters .filter-limit,
  #catalog-filters .filter-mode {
    display: none;
  }

  select, input:not(.form-submit) {
    width: 90% !important;
  }

  .address-pane-table table.saved-addresses td {
    width: 100%;
  }

  .full-node .node {
    position: relative;
  }
  .full-node .node .nd-region-middle-wrapper {
    width: 100%;
    margin-top: 29em;
  }
  .full-node .node .nd-region-left  {
    width: 100%;
    position: absolute;
    top: 0;
    height: 29em;
    left: 0;
    overflow: hidden;
  }
  .full-node .node .main-product-image img {
    width: auto;
  }

  #block-block-14 img {
    width: 94% !important;
  }

  #catalog-filters {
    grid-template-columns: repeat(auto-fit, minmax(50%, 1fr));
  }

  #section2 table td {
    padding: 0;
    width: 100%;
  }

}
