/*
* ===================================================
*     CUSTOM CSS CODE BELOW
* ===================================================
*/

/* Airlectra */
button.qs-cart-submit:hover {
    color:#ffffff;
    opacity:0.7;
}

/* Slut Airlectra */

.dt-free-shipping-bar {
  width: 100%;
  margin: 6px 0 14px;
  padding: 8px 10px 10px;
  border-radius: 10px;
  background-color: #f5f1e8;
  font-size: 14px;
}

.dt-free-shipping-bar .dt-fs-text {
  margin-bottom: 6px;
  text-align: center;
}

.dt-free-shipping-bar .dt-fs-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: #e1ddd3;
  overflow: hidden;
}

.dt-free-shipping-bar .dt-fs-fill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background-color: #4c5b4b;
  transition: width 0.4s ease;
}
/* Struktur på kortet */
.product {
    border: 1px solid #e3dfd4;
    border-radius: 14px;
    overflow: hidden;
    background: #ffffff;
    margin-bottom: 20px; /* spacing mellan rader */
}

/* Bilden */
.product img {
    display: block;
    width: 100%;
}

/* Beige nederdel som en hel platta */
.product-bottom {
    background: #f5f2e8;
    padding: 14px;
}
/* Gör om produktgriden till ett 4-kolumners grid */
section[data-qb-element="productgrid"] > .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px; /* minsta snygga avståndet mellan korten */
}
section[data-qb-element="productgrid"] .product {
    border: 1px solid #e5e2da;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}
section[data-qb-element="productgrid"] .product {
    margin: 0;
    padding: 0;
}
section[data-qb-element="productgrid"] > .row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px; /* lite luft */
}
section[data-qb-element="productgrid"] .product {
    border: 1px solid #e5e2da;
    border-radius: 10px;
    background: #fff;
    width: 100%;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
section[data-qb-element="productgrid"] .product-image {
    width: 100%;
    height: auto;
    margin-bottom: 10px;
}

section[data-qb-element="productgrid"] .product-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}
section[data-qb-element="productgrid"] .product[class*="col-"] {
    flex: unset !important;
    max-width: unset !important;
}
@media(max-width: 767px) {
    section[data-qb-element="productgrid"] > .row {
        grid-template-columns: repeat(2, 1fr);
    }
/* MOBIL: premium "+ Lägg till" knapp för produktkort */
@media (max-width: 767px) {

  .product .qs-cart-submit {
    width: 85%;
    margin: 10px auto 6px;
    padding: 10px 14px;

    background-color: #f5f2e8; /* mjuk beige */
    color: #4e8d48 !important; /* grön text */
    border: 1px solid #d8d2c6; /* subtil ram */
    border-radius: 14px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
    cursor: pointer;
    text-decoration: none !important;
    transition: all 0.2s ease;
  }

  .product .qs-cart-submit:active,
  .product .qs-cart-submit:hover {
    background-color: #ece7da;
    border-color: #c0b9ac;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,0.08);
  }

  /* ikon storlek (om svg används) */
  .product .qs-cart-submit svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
  }
.product-slider .qs-cart-submit {
  display:block !important;
}
.product-slider .qs-cart-submit,
.start_productslider .qs-cart-submit {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
}
/* Visa + Lägg till knapp i karusell på mobil */
@media (max-width: 768px) {
    .product-slider .qs-cart-submit,
    .start_productslider .qs-cart-submit {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;

        position: relative;
        bottom: 0;
        margin-top: 8px;

        width: 90% !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* Dölj ev hover-effekter som blockerar */
    .product-slider .product-hover,
    .start_productslider .product-hover {
        display: none !important;
    }
}
/* GLOBAL "+ Lägg till"-knapp */
.qs-cart-submit {
    width: 100%;
    padding: 10px 14px;

    background-color: #4e8d48;    /* Grön bakgrund */
    color: #ffffff !important;        /* Vit text */
    border-radius: 8px;           /* Mjuka hörn */
    border: none;

    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    text-align: center;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}

/* Hover-effekt */
.qs-cart-submit:hover {
    background-color: #3b6c36;
    transform: translateY(-1px);
}

/* Disable state */
.qs-cart-submit.disabled,
.qs-cart-submit:disabled {
    background-color: #9fb99b;
    cursor: not-allowed;
}

/* Fix i sliders och sidecart */
.product-slider .qs-cart-submit,
.start_productslider .qs-cart-submit {
    width: 85%;
    margin: 8px auto 6px;
}
/* Grön "+ Lägg till" knapp i produktGRID */
.qs-cart-submit,
.qs-cart-submit {
    background-color: #4e8d48 !important;  /* tvinga grön */
    color: #ffffff !important;             /* vit text */
    border: none !important;
}
/* Tvinga vit text på "+ Lägg till" knappen i produktGRID */
.product .qs-cart-submit,
.product button.qs-cart-submit {
    color: #ffffff !important;
}
.qs-cart-submit * {
    color: #ffffff !important;
}
/* Restore centering of all product page images */
.detail-carousel .productpage-image,
.detail-slider .productpage-image,
.swiper-slide .productpage-image {
    display: block;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}
/* Relaterade grid */
.related-products-block .related-grid .product {
  border: 1px solid #e9e6df;
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Bildstorlek */
.related-products-block .product-image img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Produkttitel */
.related-products-block .color-text-base {
  color: #2a2a2a;
  text-decoration: none;
}

/* Köpknapp */
.related-products-block .qs-cart-submit {
  background-color: #4e8d48 !important;
  color: #fff !important;
  border: none;
  border-radius: 6px;
  padding: 8px 10px;
  font-weight: 600;
  width: 100%;
}
.related-grid .product {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.related-grid .product h3 {
    min-height: 3.6em; /* jämnar ut titelhöjd */
}

.related-grid .qs-cart {
    margin-top: auto !important; /* knappen alltid längst ner */
}/* ===== Tvinga grön "+ Lägg till"-knapp i produktgrid / listor (desktop & tablet) ===== */
@media (min-width: 768px) {
  /* vanliga varianter i grids/listor */
  .product .qs-cart-submit,
  .product form.qs-cart .qs-cart-submit,
  .related-grid .qs-cart-submit,
  .col-md-3 .qs-cart-submit,
  .product .btn.qs-cart-submit,
  .product a.qs-cart-submit,
  .product button.qs-cart-submit,
  .product input.qs-cart-submit[type="submit"] {
    background-color: #4e8d48 !important;   /* grön */
    color: #ffffff !important;               /* vit text */
    border: none !important;
    box-shadow: none !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    padding: 10px 18px !important;
    display: inline-block !important;
    text-align: center !important;
    vertical-align: middle !important;
    min-width: 120px !important;
    line-height: 1 !important;
  }

  /* hover / active */
  .product .qs-cart-submit:hover,
  .related-grid .qs-cart-submit:hover {
    background-color: #3b6c36 !important;
    transform: translateY(-1px) !important;
  }

  /* ensure icons + text are white */
  .product .qs-cart-submit i,
  .product .qs-cart-submit svg,
  .product .qs-cart-submit .fa,
  .product .qs-cart-submit .icon {
    color: #fff !important;
  }

  /* remove ugly default outlines / borders some themes add */
  .product .qs-cart-submit:focus,
  .product .qs-cart-submit:active {
    outline: none !important;
    box-shadow: 0 2px 6px rgba(75,121,63,0.12) !important;
  }
}

/* Extra safeguard för större skärmar */
@media (min-width: 1200px) {
  .product .qs-cart-submit { min-width: 140px !important; padding: 12px 22px !important; }
}
/* Dölj "Visa alla i Våra produkter" på mobilmenyn */
@media (max-width: 768px) {
    .mobile-nav-link.show-all {
        display: none 
    }
}
#sticky-atc {
  display: none;
}

@media (max-width: 768px) {
  #sticky-atc {
    display: block;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-top: 1px solid #e6e2d8;
    padding: 10px 12px;
  }

  .sticky-atc-inner {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .sticky-atc-price {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    white-space: nowrap;
  }

  .sticky-atc-btn {
    flex: 1;
    background: #4e8d48;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
  }
}
.qs-cart-related-btn {
  width: 100%;
  background: #4e8d48;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.qs-cart-related-btn:hover {
  background: #3f7a3c;
}