/* =============================================
   ESKILSTUNA HUNDCENTER — Anpassad CSS
   ============================================= */

/* ── Typografi & grundläggande ── */
body {
  font-size: 16px;
  scroll-padding-top: 64px;
}

/* ── Header ── */
.bountiful--header {
  background-color: #ccbee8;
}

.bountiful--header .bountiful--header-wrapper {
  padding: 5px 15px;
}

@media only screen and (min-width: 1100px) {
  .bountiful--header .bountiful--header-wrapper {
    padding: 10px 30px;
  }
}

header, .site-header, #header {
  min-height: 146px;
}
@media (max-width: 768px) {
  header, .site-header, #header {
    min-height: 85px;
  }
}

.slot--header-horizontal-menu .navbar-nav > li a {
  letter-spacing: 1.5px;
  font-size: 18px;
}

/* ── Logotyp ── */
@media only screen and (min-width: 992px) {
  .slot--header-logo {
    max-width: 250px;
  }
}

@media (max-width: 778px) {
  .tws-logo--image .tws-react-img--wrapper .tws-img--container {
    padding-bottom: 73% !important;
  }
}

/* ── Sidebar-meny ── */
.bountiful--sidebar .tws-vertical-menu-light .tws-vertical-menu-light-root-level li a {
  font-size: 16px;
}

/* ── Produktlistor ── */
.tws-article-list--list .tws-list--type-grid .thumbnail {
  border: 0px solid #ebebeb;
}
.tws-article-list--list .tws-list--type-grid .thumbnail .caption {
  box-shadow: 0 0px 0px 0px rgba(0,0,0,0.2);
}

/* ── Brödsmulor ── */
.tws-breadcrumbs--text {
  background: white;
  color: black;
  font-size: 14px;
}
.tws-breadcrumbs a {
  color: black;
  font-size: 14px;
}

/* ── Diverse ── */
.tws-container--tws-instagram {
  margin: 4% 2% 2% 2%;
}
.tws-article-filter--filter-control-container {
  background: #a095c1;
  border-radius: 10px;
}
.lipscore-service-review-badge-separator {
  display: none;
}
.trustpilot-widget {
  margin-top: 20px;
}
.article .brandName a {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  color: #505050;
  line-height: 1.5;
  letter-spacing: 0.24px;
}
table {
  border-collapse: separate;
  border-spacing: 3px;
}

/* ── Knappar ── */
.buttonboka {
  background-color: #9C79E4;
  color: white;
  border: 2px solid #664DA6;
  border-radius: 15px;
}
.buttonboka:hover {
  background-color: #664DA6;
}

/* ── Kassa: leveransmeddelande ── */
.tws-checkout--select-delivery-list-empty::before {
  content: "Fyll i ditt postnummer för att visa tillgängliga leveransmetoder.";
  font-size: 14px;
}
.tws-checkout--select-delivery-list-empty {
  font-size: 0px;
}
.tws-checkout--select-delivery-list {
  display: flex;
  flex-direction: column;
}
.tws-checkout--delivery-method-19250  { order: 1; }
.tws-checkout--delivery-method-168764 { order: 2; }
.tws-checkout--delivery-method-148777 { order: 3; }
.tws-checkout--delivery-method-106981 { order: 4; }

/* ── Kassa: relaterade produkter ── */
.opc-checkout--related .tws-article-list--list .tws-list--type-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  align-items: stretch !important;
  gap: 16px !important;
}
.opc-checkout--related .tws-list--type-grid .tws-list--grid-item {
  flex: 0 1 240px !important;
  min-width: 240px !important;
  max-width: 320px !important;
  display: flex !important;
  flex-direction: column !important;
}
.opc-checkout--related .tws-util-heading--heading,
.opc-checkout--related .tws-article-list--article-name a {
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}
.opc-checkout--related .thumbnail {
  display: flex !important;
  flex-direction: column !important;
  height: 100%;
}
.opc-checkout--related .caption {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
}
.opc-checkout--related .tws-article-list--buy-button {
  margin-top: auto !important;
}
.opc-checkout--related .tws-article-favoritebutton--container,
.opc-checkout--related .thumbnail,
.opc-checkout--related .tws-list--grid-item {
  overflow: visible !important;
  position: relative;
}
.opc-checkout--related [role="tooltip"],
.opc-checkout--related .article-favoritebutton-desc {
  position: absolute !important;
  z-index: 9999 !important;
  white-space: normal;
  min-width: 160px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  left: 100px;
  bottom: 30px;
}

/* ── Bilder: grundläggande layout ── */
img {
  height: auto;
}
body:not(.checkout) .tws-img.tws-react-img img {
  aspect-ratio: 1/1;
  width: 100%;
  height: auto;
}
.tws-logo--container .tws-img.tws-react-img img {
  aspect-ratio: auto !important;
  width: auto !important;
}
.tws-img--wrapper,
.tws-react-img--wrapper {
  display: block;
}
.tws-img--image.tws-react-img--image {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  object-fit: contain;
}
.tws-logo--container .tws-img--image.tws-react-img--image {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}
.tws-logo--container .tws-img.tws-react-img {
  min-height: 0 !important;
}
body.article .tws-img--contain { object-fit: contain; }
body.article .tws-img--cover   { object-fit: cover; }
body.startpage .tws-img--contain { object-fit: contain; }
body.startpage .tws-img--cover   { object-fit: cover; }

/* ── Startsida: karusell ── */
@media (max-width: 768px) {
  body.startpage .slick-slider,
  body.startpage .swiper,
  body.startpage [class*="carousel"],
  body.startpage [class*="slider"] {
    min-height: 450px;
  }
}
body.startpage .tws-container--tws-articles-two.tws-container--tws-articles-two-type-carousel {
  margin-top: 12px;
}

/* ============================================
   CLS-FIXES
   ============================================ */

/* ── Top bar & Header ── */
.bountiful--top-bar {
  min-height: 38px;
}
@media (max-width: 768px) {
  .bountiful--top-bar-wrapper {
    min-height: 60px;
  }
}
.slot--header-logo {
  min-height: 125px;
}
.slot--breadcrumbs {
  min-height: 22px;
}

/* ── Produktinfo-slots ── */
.slot--article-rating {
  min-height: 32px;
  display: block;
}
.slot--article-price {
  min-height: 42px;
  display: block;
}
.slot--article-introduction {
  min-height: 56px;
  display: block;
}
.slot--payment-widget {
  min-height: 80px;
  display: block;
}
.slot--article-klarna-osm {
  min-height: 50px;
  display: block;
}
.bountiful--buy-button-group {
  min-height: 100px;
}

/* ── Produktbilder (skapas av JS) ── */
body.article .slot--article-images {
  min-height: calc(100vw - 30px);
}

/* ── MOBIL ── */
@media (max-width: 991px) {
  .tws-article-images--slick-nav {
    min-height: 130px;
  }
  .bountiful--article-left-col {
    min-height: calc(100vw + 130px);
  }
  .bountiful--article-right-col {
    min-height: 350px;
  }
  .bountiful--article-right-col:has(.tws-article-choices--table) {
    min-height: 880px;
  }
}

/* ── DESKTOP ── */
@media (min-width: 992px) {

  body.article .slot--article-images {
    min-height: 40vw;
  }

  .bountiful--content-wrapper {
  min-height: calc(100vh - 210px);
  }

  .bountiful--article-right-col {
    min-height: 500px;
  }
}

/* A11y och SEO fix */
h4:empty, h3:empty, h2:empty {
  display: none;
}

/* Förbättra kontrast på "Läs mer"-länk */
.tws-article-introduction--text .tws-article-introduction--read-more a {
  color: #333 !important;
  font-weight: 600;
}

/* Filterknappar: mörkare text */
.tws-article-filter--filter-control-container {
  background: #a095c1;
  color: #1a1a1a;
}

a.tws-breadcrumbs--home-icon::after {
  content: 'Start';
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
}
a.tws-breadcrumbs--home-icon {
  position: relative;
}

  /* Hem-ikon i brödsmulor */
  a.tws-breadcrumbs--home-icon {
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Brödsmule-länkar */
  .tws-breadcrumbs a {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 8px 4px;
  }

  /* Kontaktlänkar i footer */
  a[href^="mailto:"],
  a[href^="tel:"] {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 8px 0;
  }

.slot--header-shipping-notice{
  display: none;
}