/* =========================================================
   KAMPES - ORIGINALMENY + SUBTIL DROPDOWN V2
   Huvudmenyn behalls. Endast dropdown/megameny justeras.
   ========================================================= */

.tws-top-menu .navbar-nav {
  text-align: center;
  width: 100%;
}

.tws-top-menu .navbar-nav > li > a {
  text-transform: capitalize;
}


/* Själva dropdown-panelen */

.tws-top-menu .dropdown.open .tws-top-menu--mega-menu,
.tws-top-menu .dropdown.open > .dropdown-menu {
  opacity: 1;
  top: 100%;
  margin-top: 0;
  padding: 11px 15px 13px;
  background: #fff;
  border: 1px solid #d8d8d8;
  border-top: 3px solid #c62026;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 8px 18px rgba(0,0,0,.09);
}


/* Luft och struktur mellan kolumner */

.tws-top-menu--mega-menu [class*="col-"] {
  padding-left: 13px;
  padding-right: 13px;
  border-right: 1px solid #eeeeee;
}

.tws-top-menu--mega-menu [class*="col-"]:last-child {
  border-right: 0;
}


/* Kategorilänk */

.tws-top-menu .navbar-nav .tws-top-menu--sub-item a,
.tws-top-menu .dropdown-menu a,
.tws-top-menu--mega-menu a {
  display: block;
  position: relative;
  margin: 0 0 2px;
  padding: 6px 9px 8px;
  color: #333;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  text-transform: capitalize;
  transition:
    color .15s ease,
    padding-left .15s ease;
}


/* Kort markering */

.tws-top-menu .navbar-nav .tws-top-menu--sub-item a::after,
.tws-top-menu .dropdown-menu a::after,
.tws-top-menu--mega-menu a::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 2px;
  width: 36px;
  height: 3px;
  border-radius: 4px;
  background: #e8e8e8;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
  transition:
    width .15s ease,
    left .15s ease,
    background-color .15s ease;
}


/* Hover */

.tws-top-menu .navbar-nav .tws-top-menu--sub-item a:hover,
.tws-top-menu .navbar-nav .tws-top-menu--sub-item a:focus,
.tws-top-menu .dropdown-menu a:hover,
.tws-top-menu .dropdown-menu a:focus,
.tws-top-menu--mega-menu a:hover,
.tws-top-menu--mega-menu a:focus {
  color: #c62026;
  padding-left: 13px;
  background: transparent;
  text-decoration: none;
}

.tws-top-menu .navbar-nav .tws-top-menu--sub-item a:hover::after,
.tws-top-menu .navbar-nav .tws-top-menu--sub-item a:focus::after,
.tws-top-menu .dropdown-menu a:hover::after,
.tws-top-menu .dropdown-menu a:focus::after,
.tws-top-menu--mega-menu a:hover::after,
.tws-top-menu--mega-menu a:focus::after {
  left: 13px;
  width: 50px;
  background: #c62026;
}


/* Vanlig smal dropdown */

.tws-top-menu .dropdown.open > .dropdown-menu:not(.tws-top-menu--mega-menu) {
  min-width: 230px;
  padding: 10px 12px 12px;
}


/* Mobilmeny */

@media (max-width: 767px) {

  .tws-top-menu .dropdown.open .tws-top-menu--mega-menu,
  .tws-top-menu .dropdown.open > .dropdown-menu {
    margin-top: 0;
    padding: 8px 10px;
    border-top-width: 2px;
    border-radius: 0 0 6px 6px;
    box-shadow: none;
  }

  .tws-top-menu .navbar-nav .tws-top-menu--sub-item a,
  .tws-top-menu .dropdown-menu a,
  .tws-top-menu--mega-menu a {
    padding: 10px 10px 12px;
    font-size: 14px;
  }

  .tws-top-menu--mega-menu [class*="col-"] {
    padding-left: 8px;
    padding-right: 8px;
    border-right: 0;
  }
}


/* Textalk-logga */

.textalk-powered-logo {
  display: none;
}


/* Engelska menyknappar */

@media (min-width: 1100px) {

  html[lang="en"] .tws-mega-menu--buttons {
    right: 200px;
  }
}


/* =========================================================
   HUVUDMENY - HOVERMARKERING
   ========================================================= */

@media (min-width: 768px) {

  .tws-top-menu .navbar-nav > li > a {
    position: relative;
  }

  .tws-top-menu .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 15px;
    bottom: 12px;
    width: 0;
    height: 2px;
    border-radius: 2px;
    background: #c62026;
    opacity: 0;
    transition:
      width .15s ease,
      opacity .15s ease;
  }

  .tws-top-menu .navbar-nav > li > a:hover,
  .tws-top-menu .navbar-nav > li > a:focus,
  .tws-top-menu .navbar-nav > .open > a {
    color: #c62026 !important;
    text-shadow:
      0 0 0.45px currentColor,
      0 0 0.45px currentColor;
  }

  .tws-top-menu .navbar-nav > li > a:hover::after,
  .tws-top-menu .navbar-nav > li > a:focus::after,
  .tws-top-menu .navbar-nav > .open > a::after {
    width: 22px;
    opacity: 1;
  }
}


/* =========================================================
   MODERN DROPDOWN-PIL I HUVUDMENYN
   ========================================================= */

@media (min-width: 768px) {

  .tws-top-menu .navbar-nav > li.dropdown > a .caret {
    display: none !important;
  }

  .tws-top-menu .navbar-nav > li.dropdown > a {
    padding-right: 22px;
  }

  .tws-top-menu .navbar-nav > li.dropdown > a::before {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    margin-top: -5px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transform-origin: 65% 65%;
    transition:
      transform .15s ease,
      margin-top .15s ease;
    opacity: .9;
  }

  .tws-top-menu .navbar-nav > li.dropdown.open > a::before {
    transform: rotate(225deg);
    margin-top: -1px;
  }
}


/* =========================================================
   KAMPES - MODERNARE PRODUKTKORT

   VIKTIGT:
   CSS:en riktas endast mot riktiga produktkort som har
   ItemPrice + ItemArticleNr.

   Kategorikorten påverkas därför inte av produktkortens
   ram/padding och får inte den extra raden.
   ========================================================= */


/* Hela produktkortet */

.tws-list--grid-item.ItemPrice.ItemArticleNr {
  background: #ffffff;
  border: 1px solid #dddddd;
  border-radius: 10px;
  overflow: hidden;
  box-sizing: border-box;
  padding-bottom: 14px;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}


/* Diskret effekt på dator */

@media (min-width: 768px) {

  .tws-list--grid-item.ItemPrice.ItemArticleNr:hover {
    border-color: #c8c8c8;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
    transform: translateY(-2px);
  }
}


/* =========================================================
   PRODUKTBILD
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--product-image {
  background: #ffffff;
}


/* Hela produktbilden visas */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-img--image {
  object-fit: contain !important;
  object-position: center !important;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-img--container {
  background: #ffffff;
}


/* =========================================================
   TEXTDEL
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.caption {
  padding: 11px 13px 0;
  box-sizing: border-box;
}


/* Produktnamn */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name {
  margin-bottom: 4px;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name h2,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name .h5 {
  margin: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 600;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name a {
  color: #222222;
  text-decoration: none;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name a:hover,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-name a:focus {
  color: #c62026;
  text-decoration: none;
}


/* =========================================================
   ARTIKELNUMMER
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--article-nr {
  display: block;
  margin-top: 3px;
  color: #858585;
  font-size: 11px;
  line-height: 1.3;
}


/* =========================================================
   PRIS
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--price {
  margin-top: 7px;
  margin-bottom: 5px;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-api--price-current {
  color: #222222;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 700;
}


/* =========================================================
   LAGER / LEVERANS
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--delivery-info {
  margin: 6px 0 9px;
  color: #666666;
  font-size: 11.5px;
  line-height: 1.35;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--delivery-info-title {
  font-weight: 600;
  color: #555555;
}


/* =========================================================
   KÖPKNAPP
   ========================================================= */

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--buy-button {
  margin-top: 8px;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--buy-button .btn,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-buy-button-with-modal--buy-button {
  min-height: 36px;
  padding: 7px 14px;

  background: #c62026;
  border-color: #c62026;

  border-radius: 6px;

  color: #ffffff;

  font-size: 13px;
  font-weight: 700;

  box-shadow: none;
}


.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--buy-button .btn:hover,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-list--buy-button .btn:focus,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-buy-button-with-modal--buy-button:hover,

.tws-list--grid-item.ItemPrice.ItemArticleNr
.tws-article-buy-button-with-modal--buy-button:focus {
  background: #a9181e;
  border-color: #a9181e;
  color: #ffffff;
}


/* =========================================================
   MOBIL
   Behåller Abicarts befintliga antal kolumner.
   ========================================================= */

@media (max-width: 767px) {

  .tws-list--grid-item.ItemPrice.ItemArticleNr {
    border-radius: 8px;
    padding-bottom: 10px;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .caption {
    padding: 8px 9px 0;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-list--article-name h2,

  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-list--article-name .h5 {
    font-size: 13px;
    line-height: 1.25;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-list--article-nr {
    font-size: 10px;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-api--price-current {
    font-size: 16px;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-list--delivery-info {
    font-size: 10.5px;
    line-height: 1.3;
    margin: 5px 0 7px;
  }


  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-list--buy-button .btn,

  .tws-list--grid-item.ItemPrice.ItemArticleNr
  .tws-article-buy-button-with-modal--buy-button {
    width: 100%;
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
  }
}