/* Grundinställningar och box-sizing */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }

body {
  font-family: 'Lato', sans-serif;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased; /* Jämnare text */
  -moz-osx-font-smoothing: grayscale;
}

/* Gör bilder responsiva som standard */
img { max-width: 100%; height: auto; display: block; }

/* Brödtext */
p, div {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  font-weight: normal;
  font-family: 'Lato', sans-serif;
}

/* RUBRIKER – Playfair Display SC, normal tjocklek */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display SC', serif;
  font-weight: 400; /* viktigt: inte bold */
  margin-top: 0;
  margin-bottom: 0.5em;
  text-transform: uppercase;
  letter-spacing: 2px;
  line-height: 1.2;
}

/* Priser normalvikt */
.product-price,
.price,
.product-list .price,
strong.price {
  font-weight: normal !important;
}

/* Rensa marginaler i editabla block */
div[contenteditable="true"] div {
  margin: 0;
  padding: 0;
}

/* Footer på mobil */
@media (max-width: 768px) {
  .nordic--footer .row {
    display: block !important;
  }

  /* Kontakt + Länkar sida vid sida */
  .nordic--footer-left,
  .nordic--footer-mid-left {
    text-align: left !important;
    display: inline-block;
    width: 48%;
    vertical-align: top;
  }
  .nordic--footer-left { margin-right: 4%; }

  /* Social + Nyhetsbrev fullbredd och centrerat */
  .nordic--footer-mid-right,
  .nordic--footer-right {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
  }

  .nordic--footer-mid-right {
    margin-top: 40px !important;
    margin-bottom: 80px !important;
  }
  .nordic--footer-mid-right ul {
    display: inline-block !important;
    text-align: center !important;
  }
  .nordic--footer-mid-right ul li {
    margin: 0 10px;
  }

  .nordic--footer-right { margin-top: 80px !important; }
  .nordic--footer-right form {
    display: inline-block !important;
    text-align: center !important;
  }
}

/* Kolumner för återförsäljarlistan */
.retailer-list {
  column-gap: 24px;
  list-style: none;
  padding: 0;
}

/* Mobil: 1 kolumn */
@media (max-width: 767px) {
  .retailer-list { column-count: 1; }
}

/* Surfplatta: 2 kolumner */
@media (min-width: 768px) and (max-width: 1199px) {
  .retailer-list { column-count: 2; }
}

/* Dator: 3 kolumner */
@media (min-width: 1200px) {
  .retailer-list { column-count: 3; }
}

/* Varje post hålls ihop + luft under */
.retailer-list .p1 {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  margin: 0 0 12px 0;
  padding: 4px 6px;
  transition: background-color 0.2s ease;
}

/* Hover-effekt på återförsäljare */
.retailer-list .p1:hover {
  background-color: #f5f5f5;
  border-radius: 4px;
}

/* Sökfältets stil */
#retailerSearchInput {
  margin-bottom: 16px;
  padding: 6px 8px;
  font-size: 14px;
  width: 200px;
}

/* --- VISA OCH STYLA LOGIN-KNAPPEN PÅ MOBIL --- */
@media (max-width: 768px) {

  .nordic--top-bar { display: block !important; }
  .nordic--top-bar-wrapper { display: block !important; }

  .nordic--top-bar-right {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
  }

  .slot--top-bar-login { display: block !important; }
  .tws-login { display: block !important; }

  .tws-login--login {
    display: inline-flex !important;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    background-color: #000 !important;
    color: #fff !important;
    transition: background-color 0.2s ease;
  }

  .tws-login--login:hover {
    background-color: #222 !important;
    color: #fff !important;
  }

  .tws-login--login-text {
    display: inline !important;
  }
}

/* --- DESKTOP --- */
.user-logged-in .tws-article-buy-button-with-modal--cart-messages-0 p {
  display: none;
}