@media(max-width: 575px) {
  body {
    /* Margin bottom by footer height */
    margin-bottom: 48px;
  }
  .footer {
    line-height: 24px;
    height: 48px;
    font-size: 12px;
  }
  #featured-stores {
    width: 338px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media only screen and (max-width: 600px) {
  #order-payment-wrapper form {
    width: 80vw;
    min-width: initial;
  }
}

@media(max-width: 767px) {
  html {
    font-size: 20px;
  }
  .product-details, .bundle-details {
    text-align: center;
  }
  .modal-body {
    padding-top: 0;
  }
  .sizes label {
    margin-bottom: 0;
  }
  .product-details .title {
    font-size: 1.2rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 0;
  }
  .product-details h2, .product-details .h2, .sizes .size-select-div {
    font-size: 1rem;
  }
  .product-details .tags, .bundle-details .tags {
    overflow-x: auto;
    height: 3.5em;
    white-space: nowrap;
  }
  .product-details .variations {
    margin: 0;
  }
  .product-details .description, .bundle-details .description {
    font-size: 1rem;
    line-height: 1.2rem;
    max-height: 5em;
    overflow-y: auto;
    border: 1px solid #aaa;
  }
  .store {
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  table, thead, tbody, th, td, tr {
    display: block;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tr { border: 1px solid #ccc; }
  td {
    border: none;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 200px;
    margin-left: 150px;
  }
  td:before {
    position: absolute;
    top: 12px;
    left: 6px;
    width: 200px;
    padding-right: 40px;
    white-space: nowrap;
    margin-left: -150px;
  }
  #size-list-info td {
    margin-left: 0;
  }

  /* Responsive tables */
  table.cart td:nth-of-type(2):before, table.checkout tr.cart-row td:nth-of-type(1):before { content: "Продукт"; }
  table.cart td:nth-of-type(3):before, table.checkout tr.cart-row td:nth-of-type(2):before { content: "Размер"; }
  table.cart td:nth-of-type(4):before, table.checkout tr.cart-row td:nth-of-type(3):before { content: "Количество";}
  table.cart td:nth-of-type(5):before, table.checkout tr.cart-row td:nth-of-type(4):before { content: "Текст"; font-size: 1rem;}
  table.cart td:nth-of-type(6):before, table.checkout tr.cart-row td:nth-of-type(5):before { content: "Цена";}
  table.checkout tr.shipping-row td:nth-of-type(1),
  table.checkout tr.shipping-row td:nth-of-type(2),
  table.checkout tr.total-row td:nth-of-type(1),
  table.checkout tr.total-row td:nth-of-type(2) {
    display: none;
  }
  table.checkout tr.shipping-row td:nth-of-type(3):before { content: "Доставка"; font-weight: bold; }
  table.checkout tr.total-row td:nth-of-type(3):before { content: "Общо"; font-weight: bold; }

  table.table-orders td:nth-of-type(1):before { content: "Дата"; }
  table.table-orders td:nth-of-type(2):before { content: "Сума"; }
  table.table-orders td:nth-of-type(3):before { content: "Статус"; }
  table.table-orders td:nth-of-type(4):before { content: "Продукти"; }  
  table.table-orders td:nth-of-type(5):before { content: "Проследяване"; }

  table.table-order-details td:nth-of-type(1):before { content: "Брой"; }
  table.table-order-details td:nth-of-type(2):before { content: "Вид"; }
  table.table-order-details td:nth-of-type(3):before { content: "Магазин"; }
  table.table-order-details td:nth-of-type(4):before { content: "Име"; }

  #homepage-slider {
    width: 100%;
    height: 50vh;
  }

  #homepage-slider h1 {
    font-size: 1.375rem;
  }

  #homepage-slider .slide-content {
    max-width: 90%;
    max-height: 90%;
    padding: 1em 1.5em;
    font-size: 0.8em;
  }

  #featured-products-slider .swiper {
    width: 100%;
  }

  #featured-products-slider .product {
    width: 260px;
    padding: 24px 10px;
  }

  #featured-products-slider .swiper-slide {
    visibility: visible;
  }

  .swiper-button-prev, .swiper-button-next {
    display: none;
  }

  #product-editor-wrapper .price-calculator tr,
  #product-editor-wrapper .price-calculator td {
    padding: 0;
    margin: 0;
    border: none;
    font-size: 1rem;
  }

  .product-details .variations, .myproduct-details .myvariations {
    font-size: 0.8rem;
    font-family: sans-serif;
    font-weight: normal;
  }

  .product-details .tags, .bundle-details .tags {
    margin-top: 0;
    height: auto;
  }

  #popular-tags span, .product-details .tags span, .bundle-details .tags span {
    font-family: sans-serif;
    font-weight: normal;
    font-size: 0.5rem;
    padding: 3px;
  }
}

@media(max-width: 991px) {
  .navbar {
    max-height: 100%;
    overflow-y: auto;
  }

  /* On screen sizes up to medium, keep 3rd-level dropdown menus open by default. */
  .navbar .dropdown-menu .dropdown .dropdown-menu {
    display: block;
  }

}